Comment 4 for bug 1905667

Revision history for this message
swogat pradhan (swogat) wrote :

I too am facing similar issue but in Nova section, i am trying to setup DCN:
2023-01-27 20:07:21.523012 | 48d539a1-1679-deee-75e4-0000000000fe | TASK | Nova: Manage aggregate and availability zone and add hosts to the zone
Using module file /usr/lib/python3.6/site-packages/ansible/modules/cloud/openstack/os_nova_host_aggregate.py
Pipelining is enabled.
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: stack
<localhost> EXEC /bin/sh -c 'sudo -H -S -n -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-urbvkhqfmaljfracvpejeknzcglnfdxd ; OS_CLOUD=dcn01 /usr/bin/python3'"'"' && sleep 0'
The full traceback is:
  File "/tmp/ansible_os_nova_host_aggregate_payload_xmki19vw/ansible_os_nova_host_aggregate_payload.zip/ansible/module_utils/openstack.py", line 159, in openstack_cloud_from_module
    interface=module.params['interface'],
  File "/usr/lib/python3.6/site-packages/openstack/__init__.py", line 63, in connect
    options=options, **kwargs)
  File "/usr/lib/python3.6/site-packages/openstack/config/__init__.py", line 36, in get_cloud_region
    return config.get_one(options=parsed_options, **kwargs)
  File "/usr/lib/python3.6/site-packages/openstack/config/loader.py", line 1107, in get_one
    config = self._get_base_cloud_config(cloud, profile)
  File "/usr/lib/python3.6/site-packages/openstack/config/loader.py", line 509, in _get_base_cloud_config
    name=name))
2023-01-27 20:07:24.783699 | 48d539a1-1679-deee-75e4-0000000000fe | FATAL | Nova: Manage aggregate and availability zone and add hosts to the zone | undercloud | error={
    "changed": false,
    "invocation": {
        "module_args": {
            "api_timeout": null,
            "auth": null,
            "auth_type": null,
            "availability_zone": "dcn01",
            "ca_cert": null,
            "client_cert": null,
            "client_key": null,
            "hosts": [
                "dcn01-hci-0.bdxworld.com",
                "dcn01-hci-1.bdxworld.com",
                "dcn01-hci-2.bdxworld.com"
            ],
            "interface": "public",
            "metadata": null,
            "name": "dcn01",
            "region_name": null,
            "state": "present",
            "timeout": 180,
            "validate_certs": null,
            "wait": true
        }
    },
    "msg": "Cloud dcn01 was not found."
}

Reference case: https://bugs.launchpad.net/tripleo/+bug/2003919

Do i need to remove become: true parameter in nova deployment template as well or do i need to copy the clouds.yaml file to root and change the cloud details to my edge site?