-
Sub-task
-
Resolution: Done
-
Undefined
-
None
-
False
-
-
False
-
0
-
Phoenix - Content
-
-
-
Sprint 135, Sprint 136, Sprint 137, Sprint 138, Sprint 139, Sprint 140, Sprint 141
Description of problem:
While performing the below hammer command to enable(override) the repository from satellite 6.12.5 for a particular host is disabling all the repositories on the host.
- hammer host subscription content-override --content-label rhel-8-for-x86_64-baseos-rpms --value 1 --host host1.example.com
The same command worked fine when I tested on satellite versions 6.11 and 6.14
The issue is only with the hammer cli tool on the satellite 6.12 version
Version-Release number of selected component (if applicable): satellite 6.12.5
How reproducible:
100 % reproducible
Steps to Reproduce:
1. register a host to the satellite server
2. enable and sync some repositories on the satellite
3. now enable the repository from satellite cli for the particular host.
- hammer host subscription content-override --content-label <repo-label> --value 1 --host <hostname>
- hammer host subscription content-override --content-label rhel-8-for-x86_64-baseos-rpms --value 1 --host node3.example.com
Actual results:
- yum repolist
Updating Subscription Management repositories.
YUM version: 4.7.0
cachedir: /var/cache/dnf
Total packages: 0
Expected results:
[On client cli]
yum repolist
Updating Subscription Management repositories.
repo id repo name
rhel-8-for-x86_64-appstream-rpms Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
rhel-8-for-x86_64-baseos-rpms Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
Additional info: It works fine with a satellite GUI.
QE Tracker for https://issues.redhat.com/browse/SAT-23228
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2263922