Cloud DCN01 was not found | Openstack wallaby | DistributedcomputeHCI

Bug #2003919 reported by swogat pradhan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
New
Undecided
Unassigned

Bug Description

Hi,
I am trying to setup DCN on openstack wallaby and in the final step getting the following error:

2023-01-26 06:56:23.872980 | 48d539a1-1679-cde7-c27e-0000000000fa | OK | External deployment Post Deploy tasks | undercloud -> localhost | result={
    "changed": false,
    "msg": "Use --start-at-task 'External deployment Post Deploy tasks' to resume from this task"
}
[WARNING]: ('undercloud -> localhost', '48d539a1-1679-cde7-c27e-0000000000fa')
missing from stats
play: External deployment Post Deploy tasks
task: TASK: Nova: Manage aggregate and availability zone and add hosts to the zone
task.action: os_nova_host_aggregate
2023-01-26 06:56:23.897677 | 48d539a1-1679-cde7-c27e-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-ragkiahtqxwbirfdqmxazlgmgpnniyix ; OS_CLOUD=dcn01 /usr/bin/python3'"'"' && sleep 0'
The full traceback is:
  File "/tmp/ansible_os_nova_host_aggregate_payload_38wy2cnw/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-26 06:56:27.440886 | 48d539a1-1679-cde7-c27e-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.localdomain",
                "dcn01-hci-1.localdomain",
                "dcn01-hci-2.localdomain"
            ],
            "interface": "public",
            "metadata": null,
            "name": "dcn01",
            "region_name": null,
            "state": "present",
            "timeout": 180,
            "validate_certs": null,
            "wait": true
        }
    },
    "msg": "Cloud dcn01 was not found."
}
2023-01-26 06:56:27.442789 | 48d539a1-1679-cde7-c27e-0000000000fe | TIMING | Nova: Manage aggregate and availability zone and add hosts to the zone | undercloud | 0:13:48.204228 | 3.54s

NO MORE HOSTS LEFT *************************************************************

PLAY RECAP *********************************************************************
dcn01-hci-0 : ok=387 changed=114 unreachable=0 failed=0 skipped=161 rescued=0 ignored=1
dcn01-hci-1 : ok=372 changed=112 unreachable=0 failed=0 skipped=162 rescued=0 ignored=1
dcn01-hci-2 : ok=368 changed=112 unreachable=0 failed=0 skipped=162 rescued=0 ignored=1
localhost : ok=0 changed=0 unreachable=0 failed=0 skipped=2 rescued=0 ignored=0
undercloud : ok=72 changed=9 unreachable=0 failed=1 skipped=26 rescued=0 ignored=1

Can you please suggest a solution to this?

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

Deployment script:

(undercloud) [stack@hkg2director dcn01]$ cat deploy_dcn01.sh
#!/bin/bash
THT=/usr/share/openstack-tripleo-heat-templates/
CNF=/home/stack/
openstack overcloud deploy \
--stack dcn01 \
--templates $THT \
-r $CNF/dcn01/dcn01_roles.yaml \
-n $CNF/dcn01/custom_network_data.yaml \
-e $CNF/dcn01/node-info.yaml \
-e $CNF/dcn01/scheduler-hints.yaml \
-e $CNF/dcn01/overcloud-networks-deployed.yaml \
-e $CNF/dcn01/vip-deployed-environment.yaml \
-e ~/containers-prepare-parameter.yaml \
-e $THT/environments/services/neutron-ovn-dvr-ha.yaml \
-e /usr/share/openstack-tripleo-heat-templates/environments/podman.yaml \
-e /usr/share/openstack-tripleo-heat-templates/environments/dcn-storage.yaml \
-e /usr/share/openstack-tripleo-heat-templates/environments/cephadm/cephadm-rbd-only.yaml \
-e /usr/share/openstack-tripleo-heat-templates/environments/nova-az-config.yaml \
-e /usr/share/openstack-tripleo-heat-templates/environments/services/etcd.yaml \
-e $CNF/dcn01/dcn01_overcloud-baremetal-deployed.yaml \
-e $CNF/dcn01/glance_dcn01.yaml \
-e $CNF/dcn01/deployed_ceph.yaml \
-e $CNF/dcn01/dcn01_parameters.yaml \
-e $CNF/dcn01/overcloud-export.yaml \
-e $CNF/dcn01/clouddomain.yaml \
--ntp-server 172.25.201.68 -vv

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.