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

Also available in: Atom PDF