Translated message

A translation of this page exists in English.

subscription-manager コマンドが "EntitlementCertificate object has no attribute alt_name" エラーで失敗する

Solution In Progress - Updated -

Issue

  • システムを RHSM に登録するときに、subscription-manager コマンドが次のエラーで失敗します。
[root@~]# subscription-manager register 
'EntitlementCertificate' object has no attribute 'alt_name'
  • トレースバックは、'subscription-manager register' コマンドの実行中に /var/log/rhsm/rhsm.log に表示されます。
EntitlementCertificate' object has no attribute 'alt_name'
2018-11-20 16:59:27,322 [INFO] rhsmd:12812:MainThread @rhsmd:279 - rhsmd started
2018-11-20 16:59:27,467 [ERROR] subscription-manager:12806:MainThread @managercli.py:181 - exception caught in subscription-manager
2018-11-20 16:59:27,468 [ERROR] subscription-manager:12806:MainThread @managercli.py:182 - 'EntitlementCertificate' object has no attribute 'alt_name'
Traceback (most recent call last):
  File "/usr/sbin/subscription-manager", line 96, in <module>
    sys.exit(abs(main() or 0))
  File "/usr/sbin/subscription-manager", line 87, in main
    return managercli.ManagerCLI().main()
  File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 2618, in __init__
    CLI.__init__(self, command_classes=commands)
  File "/usr/lib64/python2.7/site-packages/subscription_manager/cli.py", line 99, in __init__
    cmd=clazz()
  File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 974, in __init__
    super(RegisterCommand, self).__init__("register", shortdesc, True)
  File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 522, in __init__
    super(UserPassCommand, self).__init__(name, shortdesc, primary)
  File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 252, in __init__
    self.identity=inj.require(inj.IDENTITY)
  File "/usr/lib64/python2.7/site-packages/subscription_manager/injection.py", line 106, in require
    return FEATURES.require(feature, *args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/subscription_manager/injection.py", line 80, in require
    self.providers[feature]=provider(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/subscription_manager/identity.py", line 133, in __init__
    self.reload()
  File "/usr/lib64/python2.7/site-packages/subscription_manager/identity.py", line 148, in reload
    self._name=self.consumer.getConsumerName()
  File "/usr/lib64/python2.7/site-packages/subscription_manager/identity.py", line 87, in getConsumerName
    altName=self.x509.alt_name
AttributeError: 'EntitlementCertificate' object has no attribute 'alt_name'

Environment

  • Red Hat Enterprise Linux Server 7
  • Red Hat Subscription Management (RHSM)

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