Why the 'subscription-manager status' command fails with the error 'Error No module named http_client' after security patching?

Solution Verified - Updated -

Issue

  • After installing security patches using yum update --security the subscription-manager status command fails with the below error.
[root@example ~]# subscription-manager status
Unable to find Subscription Manager module.
Error: No module named http_client

[root@example ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.5 (Maipo)
[root@example ~]#

Environment

  • Red Hat Enterprise Linux 7.x
  • Red Hat Enteprise Linux 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content