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: