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

Handle traceback for unsupported cloud offering / CP autoreg denial

Linking RHIVOS CVEs to...Migration: Automation ...RHELPRIO AssignedTeam ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-10.0
    • subscription-manager
    • None
    • No
    • None
    • subs-client-tools-2
    • 5
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

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

      Cloud Automatic Registration

      What is the impact of this issue to you?

      No functional impact, just ugly traceback

      Please provide the package NVR for which the bug is seen:

      subscription-manager-1.30.10-1.el10.x86_64

      How reproducible is this bug?: 100% with no offering on aws acct

      Steps to reproduce

      1. Spin up 1P image with no 3P offerings on account
      2. Enable and allow autoreg to occur
      3.  

      Expected results

      No traceback

      Actual results

      2025-09-23T19:43:11.270+00:00 [DEBUG] rhsmcertd-worker:12426:MainThread @connection.py:1184 - Response: status=501, requestUuid=b9ced4eb-2aa0-47e5-811e-8e5acdac4c51, request="POST /subscription/cloud/authorize?version=2"
      2025-09-23T19:43:11.270+00:00 [DEBUG] rhsmcertd-worker:12426:MainThread @connection.py:1190 - Server wants to close connection. Closing HTTP connection
      2025-09-23T19:43:11.270+00:00 [ERROR] rhsmcertd-worker:12426:MainThread @rhsmcertd_worker.py:302 - Cloud token could not be obtained. Unable to perform automatic registration.
      Traceback (most recent call last):
        File "/usr/lib64/python3.12/site-packages/subscription_manager/scripts/rhsmcertd_worker.py", line 295, in _auto_register
          token: Dict[str, str] = cache.CloudTokenCache.get(
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/lib64/python3.12/site-packages/subscription_manager/cache.py", line 1142, in get
          token: Dict[str, str] = cls._get_from_server(uep, cloud_id, metadata, signature)
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/lib64/python3.12/site-packages/subscription_manager/cache.py", line 1196, in _get_from_server
          result: Dict[str, str] = uep.getCloudJWT(cloud_id, metadata, signature)
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/lib64/python3.12/site-packages/rhsm/connection.py", line 1546, in getCloudJWT
          return self.conn.request_post(
                 ^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/lib64/python3.12/site-packages/rhsm/connection.py", line 1399, in request_post
          result: Dict[str, Any] = self._request(
                                   ^^^^^^^^^^^^^^
        File "/usr/lib64/python3.12/site-packages/rhsm/connection.py", line 1230, in _request
          self.validateResult(result, request_type, handler)
        File "/usr/lib64/python3.12/site-packages/rhsm/connection.py", line 1329, in validateResult
          raise RestlibException(result["status"], error_msg, result.get("headers"))
      rhsm.connection.RestlibException: HTTP error (501 - Not Implemented): Cloud registration is not supported for the type of offering the client is using 

              csi-client-tools-bugs CSI Client Tools Bugs Bot
              rhn-support-cdonnell Craig Donnelly
              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:
              3 Start watching this issue

                Created:
                Updated: