Overcloud RHSM registration failed

Solution In Progress - Updated -

Issue

  • We am trying to implement the satellite registration in overcloud deploy. Based on the document, we have the template below:
resource_registry:
  OS::TripleO::Services::Rhsm: /usr/share/openstack-tripleo-heat-templates/extraconfig/services/rhsm.yaml

parameter_defaults:
  RhsmVars:
    rhsm_method: "satellite"
    rhsm_org_id: "Organization_overcloudbox"
    rhsm_activation_key: "Openstack 13 Key - Lab-Staging"
    rhsm_satellite_url: "https://capsule.localdomain"
    rhsm_server_hostname: "capsule.localdomain"
    rhsm_rhsm_port: 8443
    rhsm_force_register: True
  • Please be noted that capsule.localdomain is a capsule so we added:
rhsm_rhsm_port: 8443
  • However, overcloud deploy failed with the following message:
 overcloud.AllNodesDeploySteps.CephStorageHostPrepDeployment.1:
  resource_type: OS::Heat::SoftwareDeployment
  physical_resource_id: d716a557-3e10-44f0-8c12-3c499de4ba14
  status: UPDATE_FAILED
  status_reason: |
    Error: resources[1]: Deployment to server failed: deploy_status_code : Deployment exited with non-zero status code: 2
  deploy_stdout: |
    ...
    TASK [redhat-subscription : SATELLITE | Set Satellite version] *****************
    ok: [localhost]

    TASK [redhat-subscription : SATELLITE | Run Satellite  tasks] ******************
    fatal: [localhost]: FAILED! => {"reason": "Unable to retrieve file contents\nCould not find or access '/var/lib/heat-config/heat-config-ansible/satellite-.yml' o$
 the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"}
        to retry, use: --limit @/var/lib/heat-config/heat-config-ansible/b6a67f63-613d-4458-9dcf-c9262d552207_playbook.retry

    PLAY RECAP *********************************************************************
    localhost                  : ok=15   changed=2    unreachable=0    failed=1

    (truncated, view all with --long)
  deploy_stderr: |

overcloud.AllNodesDeploySteps.CephStorageHostPrepDeployment.0:
  resource_type: OS::Heat::SoftwareDeployment
  physical_resource_id: 4098c6cb-aced-4504-bf50-7b2f4ddaf849
  status: UPDATE_FAILED
  status_reason: |
    Error: resources[0]: Deployment to server failed: deploy_status_code : Deployment exited with non-zero status code: 2
  deploy_stdout: |
    ...
    TASK [redhat-subscription : SATELLITE | Set Satellite version] *****************
    ok: [localhost]

    TASK [redhat-subscription : SATELLITE | Run Satellite  tasks] ******************
    fatal: [localhost]: FAILED! => {"reason": "Unable to retrieve file contents\nCould not find or access '/var/lib/heat-config/heat-config-ansible/satellite-.yml' on
 the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"}
        to retry, use: --limit @/var/lib/heat-config/heat-config-ansible/8b7631a5-cf80-4009-92b8-adebb4945fe2_playbook.retry

    PLAY RECAP *********************************************************************
    localhost                  : ok=15   changed=2    unreachable=0    failed=1

    (truncated, view all with --long)
  deploy_stderr: |
overcloud.AllNodesDeploySteps.CephStorageHostPrepDeployment.2:
  resource_type: OS::Heat::SoftwareDeployment
  physical_resource_id: 191ef1c4-ec8a-4f03-b575-741bb7e88632
  status: UPDATE_FAILED
  status_reason: |
    Error: resources[2]: Deployment to server failed: deploy_status_code : Deployment exited with non-zero status code: 2
  deploy_stdout: |
    ...
    TASK [redhat-subscription : SATELLITE | Set Satellite version] *****************
    ok: [localhost]

    TASK [redhat-subscription : SATELLITE | Run Satellite  tasks] ******************
    fatal: [localhost]: FAILED! => {"reason": "Unable to retrieve file contents\nCould not find or access '/var/lib/heat-config/heat-config-ansible/satellite-.yml' on
 the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"}
        to retry, use: --limit @/var/lib/heat-config/heat-config-ansible/2617deb3-77f9-4661-a239-40eed741648c_playbook.retry

    PLAY RECAP *********************************************************************
    localhost                  : ok=15   changed=2    unreachable=0    failed=1

    (truncated, view all with --long)
  deploy_stderr: |

Environment

  • Red Hat OpenStack Platform 13.0 (RHOSP)

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