Project

General

Profile

Actions

Bug #21347

closed

Hammer hostgroup create fails with multiple puppet classes

Added by Anonymous about 7 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Host groups
Target version:
-
Difficulty:
Triaged:
No
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:
yes

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.


Related issues 1 (0 open1 closed)

Is duplicate of Hammer CLI - Bug #24717: hammer hostgroup create fails due to pagination when the number of supplied puppet classes exceeds entries_per_pageClosedOleh FedorenkoActions
Actions #1

Updated by Anthony Chevalet over 6 years ago

  • Found in Releases hammer-cli-0.13 added
Actions #2

Updated by Shira Maximov almost 5 years ago

  • In Kanboard set to yes
Actions #3

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.

Actions #4

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

Also available in: Atom PDF