Bug #27455
closedSetting puppet environment for hostgroup via hammer fails
Description
Hi,
When I try to set the puppet environment using hammer during a create or an update it errors with a message about the lifecycle_environement not found. I am able to change and save as expected via the GUI.
eg:
hammer hostgroup update --name "test" --environment production --organization TEST --lifecycle-environment test
Could not update the hostgroup:
Error: lifecycle_environment not found.
Updated by Andrew Kofink over 5 years ago
This should be fixed once hammer_cli_katello 0.18.2 is pushed to the Katello 3.12 repository https://fedorapeople.org/groups/katello/releases/yum/3.12/katello/el7/x86_64/
Updated by Matthew Smith over 5 years ago
Andrew Kofink wrote:
This should be fixed once hammer_cli_katello 0.18.2 is pushed to the Katello 3.12 repository https://fedorapeople.org/groups/katello/releases/yum/3.12/katello/el7/x86_64/
Cheers Andrew. I found a workaround by using the --environment-id instead.
Updated by Jonathon Turel over 5 years ago
- Assignee set to Justin Sherrill
Justin, can you sign and release hammer_cli_katello 0.18.2 ?
Updated by Chris Roberts over 5 years ago
- Category set to Hammer
- Status changed from New to Need more information
- Target version set to Katello 3.12.2
- Triaged changed from No to Yes
Hi Matthew,
This version of Hammer was included in Katello 3.12.2 which was released yesterday. Can you upgrade and let us know if the issue still exists?
Updated by Matthew Smith over 5 years ago
Chris Roberts wrote:
Hi Matthew,
This version of Hammer was included in Katello 3.12.2 which was released yesterday. Can you upgrade and let us know if the issue still exists?
Hi Chris,
Yes that works now. Thanks
[root@katello ~] # hammer hostgroup create --name "test" --puppet-environment production --organization Test --lifecycle-environment Test
Hostgroup created.
[root@katello ~]# hammer hostgroup update --name "test" --puppet-environment production --organization Test --lifecycle-environment Library
Hostgroup updated.
Updated by Chris Roberts over 5 years ago
- Status changed from Need more information to Resolved
Hi Matthew,
Great! I will close this bug out then.