Project

General

Profile

Actions

Bug #27455

closed

Setting puppet environment for hostgroup via hammer fails

Added by Matthew Smith about 5 years ago. Updated about 5 years ago.

Status:
Resolved
Priority:
Normal
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
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.

Actions #1

Updated by Andrew Kofink about 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/

Actions #2

Updated by Matthew Smith about 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.

Actions #3

Updated by Jonathon Turel about 5 years 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

Actions #4

Updated by Chris Roberts about 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?

Actions #5

Updated by Matthew Smith about 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.

Actions #6

Updated by Chris Roberts about 5 years ago

  • Status changed from Need more information to Resolved

Hi Matthew,

Great! I will close this bug out then.

Actions

Also available in: Atom PDF