Bug #36908
closedCreating an override with hammer for one repository overrides all repositories
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2245237
Description of problem:
- When using hammer to set a repository to enabled will enable all repositories
Version-Release number of selected component (if applicable):
- Satellite 6.13
How reproducible:
- Everytime
Steps to Reproduce:
1. List enabled repositories for the client
# hammer host subscription product-content --content-access-mode-all=true --content-access-mode-env=true --host fluffy.example.com
-----|------------------------------------------------------------------|-------------------------------------------|------------------|---------
ID | NAME | LABEL | DEFAULT ENABLED? | OVERRIDE
-----|------------------------------------------------------------------|-------------------------------------------|------------------|---------
8227 | epel-9-x86_64 | redhat_epel_epel-9-x86_64 | yes |
381 | Red Hat Enterprise Linux 9 for x86_64 - AppStream (Kickstart) | rhel-9-for-x86_64-appstream-kickstart | no |
397 | Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs) | rhel-9-for-x86_64-appstream-rpms | yes |
468 | Red Hat Enterprise Linux 9 for x86_64 - BaseOS (Kickstart) | rhel-9-for-x86_64-baseos-kickstart | no |
394 | Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs) | rhel-9-for-x86_64-baseos-rpms | yes |
5429 | Red Hat Enterprise Linux 9 for x86_64 - High Availability (RPMs) | rhel-9-for-x86_64-highavailability-rpms | no |
5882 | Red Hat Enterprise Linux 9 for x86_64 - Resilient Storage (RPMs) | rhel-9-for-x86_64-resilientstorage-rpms | no |
385 | Red Hat Satellite Client 6 for RHEL 9 x86_64 (RPMs) | satellite-client-6-for-rhel-9-x86_64-rpms | no |
-----|------------------------------------------------------------------|-------------------------------------------|------------------|---------
2. Change the satellite-client-6-for-rhel-9-x86_64-rpms repo to enabled
# hammer host subscription content-override --host fluffy.example.com --content-label satellite-client-6-for-rhel-9-x86_64-rpms --enabled=true --value=true
Updated content override.
3. List enabled repositories for the client again
[root@satellite6:/root]# hammer host subscription product-content --content-access-mode-all=true --content-access-mode-env=true --host fluffy.example.com
-----|------------------------------------------------------------------|-------------------------------------------|------------------|----------
ID | NAME | LABEL | DEFAULT ENABLED? | OVERRIDE
-----|------------------------------------------------------------------|-------------------------------------------|------------------|----------
8227 | epel-9-x86_64 | redhat_epel_epel-9-x86_64 | yes | enabled:1
381 | Red Hat Enterprise Linux 9 for x86_64 - AppStream (Kickstart) | rhel-9-for-x86_64-appstream-kickstart | no | enabled:1
397 | Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs) | rhel-9-for-x86_64-appstream-rpms | yes | enabled:1
468 | Red Hat Enterprise Linux 9 for x86_64 - BaseOS (Kickstart) | rhel-9-for-x86_64-baseos-kickstart | no | enabled:1
394 | Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs) | rhel-9-for-x86_64-baseos-rpms | yes | enabled:1
5429 | Red Hat Enterprise Linux 9 for x86_64 - High Availability (RPMs) | rhel-9-for-x86_64-highavailability-rpms | no | enabled:1
5882 | Red Hat Enterprise Linux 9 for x86_64 - Resilient Storage (RPMs) | rhel-9-for-x86_64-resilientstorage-rpms | no | enabled:1
385 | Red Hat Satellite Client 6 for RHEL 9 x86_64 (RPMs) | satellite-client-6-for-rhel-9-x86_64-rpms | no | enabled:1
-----|------------------------------------------------------------------|-------------------------------------------|------------------|----------
Actual results:
- All repositories are now enabled
Expected results:
- Only satellite-client-6-for-rhel-9-x86_64-rpms should be enabled
Additional info:
Updated by Lucy Fu about 1 year ago
- Subject changed from Creating an override with hammer for one repository overrides all repositories to Creating an override with hammer for one repository overrides all repositories
- Category changed from Repositories to Hosts
Issue is with katello 4.7 / Satellite 6.13 only. It has been fixed in Katello 4.8 via https://github.com/Katello/katello/pull/10387.
Updated by The Foreman Bot about 1 year ago
- Status changed from New to Ready For Testing
- Assignee set to Lucy Fu
- Pull request https://github.com/Katello/katello/pull/10793 added
Updated by Quinn James about 1 year ago
- Target version set to Katello 4.11.0
- Triaged changed from No to Yes
Updated by The Foreman Bot about 1 year ago
- Pull request deleted (
https://github.com/Katello/katello/pull/10793)
Updated by The Foreman Bot about 1 year ago
- Pull request https://github.com/Katello/katello/pull/10793 added
Updated by Ian Ballou about 1 year ago
- Status changed from Ready For Testing to Closed
- Target version changed from Katello 4.11.0 to Katello 4.7 No Release