-
Bug
-
Resolution: Done-Errata
-
Major
-
rhel-7.9.z
-
subscription-manager-1.24.54-1.el7_9
-
None
-
Moderate
-
rhel-sst-csi-client-tools
-
ssg_subscription_management
-
None
-
False
-
-
No
-
None
-
Pass
-
None
-
Unspecified Release Note Type - Unknown
-
None
Note: issue moved from https://bugzilla.redhat.com/show_bug.cgi?id=2242050
What were you trying to do that didn't work?
Cert check and Auto-attach update failed on RHEL7 hosts.
Please provide the package NVR for which bug is seen:
subscription-manager-1.24.52-2.el7_9.x86_64
How reproducible:
Steps to reproduce
1) install the latest subscription-manager version on RHEL7 host (python-requests is not automatically installed):
# rpm -q subscription-manager
subscription-manager-1.24.52-2.el7_9.x86_64
# rpm -q python-requests
package python-requests is not installed
2) even if used "python-requests" is not a package dependency:
# rpm -q --requires subscription-manager /bin/sh /bin/sh /bin/sh /bin/sh /usr/bin/python2 config(subscription-manager) = 1.24.52-2.el7_9 dbus-python gobject-introspection libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) libglib-2.0.so.0()(64bit) pygobject3-base python(abi) = 2.7 python-dateutil python-decorator python-dmidecode >= 3.12.2-2 python-ethtool python-iniparse python-inotify python-setuptools python-six python-syspurpose rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rtld(GNU_HASH) subscription-manager-rhsm = 1.24.52 systemd systemd systemd usermode virt-what yum >= 3.2.29-73 rpmlib(PayloadIsXz) <= 5.2-1
To solve the issue install the missing dependency and restart the daemon:
# yum install python-requests -y # systemctl restart rhsmcertd
Expected results
python-requests package should be installed as a dependency while installing subscription-manager package & rhsm.log should show below messages
~~~
(Auto-attach) Certificates updated.
(Cert Check) Certificates updated.
~~~
Actual results
if python-requests package is not installed on the host then it will show below warning in rhsm.log file;
(Auto-attach) Update failed (1), retry will occur on next run.
(Cert Check) Update failed (1), retry will occur on next run.
- is duplicated by
-
RHEL-24798 rhsmcertd-worker failed due to missing Python request module
- Closed
- links to
-
RHBA-2024:127721 subscription-manager enhancement update