Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-24798

rhsmcertd-worker failed due to missing Python request module

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Normal Normal
    • None
    • rhel-7.9
    • subscription-manager
    • None
    • None
    • Moderate
    • rhel-sst-csi-client-tools
    • ssg_subscription_management
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • x86_64
    • None

      What were you trying to do that didn't work?

      rhsmcertd-worker fails to run after updating subscription-manager to version 1.24.51-1 and newer.

      It is complaining about missing the python-requests module as below:

      Traceback (most recent call last):
      File "/usr/libexec/rhsmcertd-worker", line 9, in <module>
      load_entry_point('subscription-manager==1.24.52', 'console_scripts', 'rhsmcertd-worker')()
      File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point
      return get_distribution(dist).load_entry_point(group, name)
      File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point
      return ep.load()
      File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
      entry = _import_(self.module_name, globals(),globals(), ['__name__'])
      File "/usr/lib64/python2.7/site-packages/subscription_manager/scripts/rhsmcertd_worker.py", line 56, in <module>
      from cloud_what.provider import detect_cloud_provider, CLOUD_PROVIDERS
      File "/usr/lib64/python2.7/site-packages/cloud_what/provider.py", line 24, in <module>
      from cloud_what.providers.aws import AWSCloudProvider
      File "/usr/lib64/python2.7/site-packages/cloud_what/providers/aws.py", line 20, in <module>
      import requests
      ImportError: No module named requests
       
      rpm -qi --requires subscription-manager-rhsm-1.24.53-1.el7_9.x86_64
      <snip>
      libc.so.6()(64bit)
      libc.so.6(GLIBC_2.14)(64bit)
      libc.so.6(GLIBC_2.2.5)(64bit)
      libc.so.6(GLIBC_2.4)(64bit)
      libcrypto.so.10()(64bit)
      libcrypto.so.10(libcrypto.so.10)(64bit)
      libpthread.so.0()(64bit)
      libpython2.7.so.1.0()(64bit)
      libssl.so.10()(64bit)
      python(abi) = 2.7
      python-dateutil
      python-iniparse
      python-six
      rpm-python
      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-certificates = 1.24.53-1.el7_9
      rpmlib(PayloadIsXz) <= 5.2-1

      Please provide the package NVR for which bug is seen:

      subscription-manager-rhsm-1.24.51-1.el7_9.x86_64

      subscription-manager-rhsm-1.24.52-1.el7_9.x86_64

      subscription-manager-rhsm-1.24.53-1.el7_9.x86_64

      How reproducible:

      easy

      Additional info:

      The workaround is to install the python-requests rpm in RHEL 7 manually

      The python3-requests dependency is also missing in subscription-manager rpm for RHEL 8. However, it appears that python3-requests is installed in RHEL 8 as system default so it is not causing the failure above.

       

              csi-client-tools-bugs CSI Client Tools Bugs Bot
              rhn-support-hyu Hao Chang Yu
              CSI Client Tools Bugs Bot CSI Client Tools Bugs Bot
              CSI Client Tools Bugs Bot CSI Client Tools Bugs Bot
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: