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 2139834 - hammer content-view version info not working with --lifecycle-environment flag
Summary: hammer content-view version info not working with --lifecycle-environment flag
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Views
Version: 6.11.1
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: 6.15.0
Assignee: Samir Jha
QA Contact: Sam Bible
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-03 15:08 UTC by Prashant
Modified: 2024-04-23 17:12 UTC (History)
6 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:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 36900 0 Normal New hammer content-view version info not working with --lifecycle-environment flag 2023-11-07 19:31:53 UTC
Red Hat Issue Tracker SAT-19516 0 None None None 2023-08-11 15:47:53 UTC
Red Hat Product Errata RHSA-2024:2010 0 None None None 2024-04-23 17:12:47 UTC

Description Prashant 2022-11-03 15:08:37 UTC
Description of problem:

#  hammer content-view version info --organization-id 1  --lifecycle-environment 2022Q3V2_RHEL_7 --content-view RHEL_7_DEV_contentview
Error: Missing options to search lifecycle_environment.

# hammer content-view version info --organization-id 1  --lifecycle-environment Library --content-view RHEL_7_DEV_contentview
Error: Missing options to search lifecycle_environment.

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

tfm-rubygem-hammer_cli-3.1.0.1-1.el7sat.noarch

Additional info:

# hammer lifecycle-environment list --organization-id 1
---|-------------------------|------------------------
ID | NAME                    | PRIOR
---|-------------------------|------------------------
27 | 2022Q2V1_RHEL_7         | Library
25 | 2022Q2V1_RHEL_8         | Library
28 | 2022Q2V2_RHEL_7         | 2022Q2V1_RHEL_7
26 | 2022Q2V2_RHEL_8         | 2022Q2V1_RHEL_8
32 | 2022Q3V1_RHEL_7         | 2022Q2V2_RHEL_7
33 | 2022Q3V2_RHEL_7         | 2022Q3V1_RHEL_7
8  | DAILY_DEV               | Library
2  | EPEL_7_DEV              | Library
3  | EPEL_8_DEV              | Library
4  | EPEL_9_DEV              | Library
1  | Library                 |
5  | RHEL_7_DEV              | Library
6  | RHEL_8_DEV              | Library
7  | RHEL_9_DEV              | Library
64 | TEST_2022Q4V2_RHEL_7    | Library
68 | TEST_2022Q4V3_RHEL_7    | TEST_2022Q4V2_RHEL_7
29 | UBI_7_DEV               | Library
30 | UBI_8_DEV               | Library
31 | UBI_9_DEV               | Library

# hammer content-view version info --organization-id 1  --lifecycle-environment-id 1 --content-view RHEL_7_DEV_contentview
Missing arguments for '--id'.

# hammer content-view version info --organization-id 1  --lifecycle-environment-id 1 --content-view RHEL_7_DEV_contentview --id 5
Id:                     5
Name:                   RHEL_7_DEV_contentview 1.0
Version:                1.0
Description:            RHEL_7_DEV_contentview published by automation scripts
Content View ID:        5
Content View Name:      RHEL_7_DEV_contentview
Content View Label:     RHEL_7_DEV_contentview
Lifecycle Environments:
 1) Id:    27
    Name:  2022Q2V1_RHEL_7
    Label: 2022Q2V1_RHEL_7
Repositories:
 1) Id:    34
    Name:  Red Hat Enterprise Linux 7 Server RPMs x86_64 7Server
    Label: Red_Hat_Enterprise_Linux_7_Server_RPMs_x86_64_7Server
 2) Id:    37
    Name:  Red Hat Enterprise Linux 7 Server - Extras RPMs x86_64
    Label: Red_Hat_Enterprise_Linux_7_Server_-_Extras_RPMs_x86_64
 3) Id:    36
    Name:  Red Hat Enterprise Linux 7 Server - Optional RPMs x86_64 7Server
    Label: Red_Hat_Enterprise_Linux_7_Server_-_Optional_RPMs_x86_64_7Server
 4) Id:    35
    Name:  EPEL_7_DEV_repo
    Label: EPEL_7_DEV_repo

Comment 1 Samir Jha 2023-11-07 19:31:52 UTC
Created redmine issue https://projects.theforeman.org/issues/36900 from this bug

Comment 2 Bryan Kearney 2023-11-08 20:02:07 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36900 has been resolved.

Comment 3 Sam Bible 2024-01-10 04:07:20 UTC
Verified on 6.15 - 5

Steps to Verify:
1. Create a CV, and publish a version of it. 
2. Verify that hammer content-view version info works with both the --lifecycle-environment and --lifecycle-environment-id flag

Expected Results:
No error is encountered with these flags, and the search is conducted appropriately.

Actual Results:
No error is encountered with these flags, and the search is conducted appropriately.

Comment 7 errata-xmlrpc 2024-04-23 17:12:46 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


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