Bug 1908141
| Summary: | Wrong message output when running hammer repository list --content-view-id <id> --organization-id <id> | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Lai <ltran> |
| Component: | Content Views | Assignee: | satellite6-bugs <satellite6-bugs> |
| Status: | CLOSED ERRATA | QA Contact: | Danny Synk <dsynk> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.9.0 | CC: | chrobert, pcreech, satellite6-bugs, zhunting |
| Target Milestone: | 6.9.0 | Keywords: | Triaged |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | tfm-rubygem-hammer_cli_katello-0.24.0.2-1 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-04-21 13:24:23 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Lai
2020-12-15 22:33:37 UTC
Chris, This failed cherrypick. Can you take a look? Thanks, Patrick Steps to test: - Deploy a Satellite 6.9, snap 17. - Create a custom product, add the EPEL repository to the product, and sync EPEL. - Create a content view and add EPEL to the content view. - Before publishing the content view, use hammer to list repositories in the content view. Expected Results: When using the correct content-view-id and organization-id, hammer should display the repository in the content view without errors. Actual Results: When using the correct content-view-id and organization-id, hammer displays the repository in the content view without errors: # hammer content-view list ----------------|---------------------------|---------------------------|-----------|---------------------|--------------- CONTENT VIEW ID | NAME | LABEL | COMPOSITE | LAST PUBLISHED | REPOSITORY IDS ----------------|---------------------------|---------------------------|-----------|---------------------|--------------- 1 | Default Organization View | Default_Organization_View | false | 2021/03/11 22:05:17 | 3 | epel8 | epel8 | false | | 21 2 | rhel8 | rhel8 | false | 2021/03/19 13:41:38 | 2, 1 ----------------|---------------------------|---------------------------|-----------|---------------------|--------------- # hammer repository list --content-view-id 3 --organization-id 1 ---|-------|---------|--------------|----------------------------------------------------------- ID | NAME | PRODUCT | CONTENT TYPE | URL ---|-------|---------|--------------|----------------------------------------------------------- 21 | EPEL8 | EPEL8 | yum | https://dl.fedoraproject.org/pub/epel/8/Everything/x86_64/ ---|-------|---------|--------------|----------------------------------------------------------- Verified on Satellite 6.9, snap 17. Notes: There is still a duplicate repository listed when the above `hammer repository list` command is run after initially publishing the content view, but the duplicate is not present after publishing the content view a second time. After speaking with Chris about this, I will be filing a new BZ to address this behavior. 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 (Moderate: Satellite 6.9 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-2021:1313 |