Project

General

Profile

Bug #27455

Setting puppet environment for hostgroup via hammer fails

Added by Matthew Smith over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

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.

History

#1 Updated by Andrew Kofink over 1 year 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/

#2 Updated by Matthew Smith over 1 year 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.

#3 Updated by Jonathon Turel over 1 year ago

  • Assignee set to Justin Sherrill

Justin, can you sign and release hammer_cli_katello 0.18.2 ?

https://github.com/theforeman/foreman-packaging/pull/3961

#4 Updated by Chris Roberts over 1 year ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.12.2
  • Status changed from New to Need more information
  • Category set to Hammer

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?

#5 Updated by Matthew Smith over 1 year 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.

#6 Updated by Chris Roberts over 1 year ago

  • Status changed from Need more information to Resolved

Hi Matthew,

Great! I will close this bug out then.

Also available in: Atom PDF