Actions
Bug #21347
closedHammer hostgroup create fails with multiple puppet classes
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Host groups
Target version:
-
Description
I tried to create a hostgroup with 26 puppet classes and it fails with the error:
Error: one of puppetclasses not found
Looking at the debug output, I can see in the request that get classes ID:
"per_page" => 25,
which corresponds to the parameter "Entries per page" under Setting / General (Number of records shown per page in Foreman).
I set this parameter to 30 and I can now create hostgroups with up to 30 classes attached.
Not sure this param should be used for internal hammer requests.
Updated by Anthony Chevalet over 6 years ago
- Found in Releases hammer-cli-0.13 added
Updated by Shira Maximov almost 5 years ago
- Status changed from New to Closed
I tried to reproduce, and it's working well for me, therefore I'm closing the issue.
mmer -d hostgroup create --name "testest" --environment-id 1 --puppet-class-ids "9,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39"
result:
Hostgroup created.
Updated by Oleh Fedorenko almost 5 years ago
- Is duplicate of Bug #24717: hammer hostgroup create fails due to pagination when the number of supplied puppet classes exceeds entries_per_page added
Actions