Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2106256 - hammer host create doesn't support --lifecycle-environment option
Summary: hammer host create doesn't support --lifecycle-environment option
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hosts - Content
Version: 6.11.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: 6.15.0
Assignee: satellite6-bugs
QA Contact: Cole Higgins
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-12 08:15 UTC by Jan Senkyrik
Modified: 2024-08-22 04:25 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-04-23 17:12:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SAT-19857 0 None None None 2023-09-05 14:35:38 UTC
Red Hat Product Errata RHSA-2024:2010 0 None None None 2024-04-23 17:12:28 UTC

Description Jan Senkyrik 2022-07-12 08:15:57 UTC
Description of problem:
`hammer host create` doesn't support --lifecycle-environment option, but it should:

# hammer host create --help | grep lifecycle
 --lifecycle-environment[-id] VALUE/NUMBER 

Users are forced to use --lifecycle-environment-id instead because the host creation fails with:

Could not create the host:
  Error: lifecycle_environment not found.



Version-Release number of selected component (if applicable):
Satellite 6.11



Additional info:
This seems to be specific to `hammer host create` as `hammer host update` works just fine:


# hammer lifecycle-environment list --organization-id 1
---|---------|--------
ID | NAME    | PRIOR  
---|---------|--------
1  | Library |        
2  | test    | Library
---|---------|--------


# hammer host update --lifecycle-environment test --name jsenkyri-rhel8-sat611.sysmgmt.lan --organization-id 1
Host updated.

Comment 9 Partha Aji 2023-11-13 21:19:09 UTC
Not able to reproduce this issue and may be fixed by  https://github.com/Katello/hammer-cli-katello/pull/879 . Closing it as works for me. Feel free to reopen

Comment 17 errata-xmlrpc 2024-04-23 17:12:26 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Satellite 6.15.0 release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2024:2010

Comment 18 Red Hat Bugzilla 2024-08-22 04:25:07 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


Note You need to log in before you can comment on or make changes to this bug.