Deployment of multiple overcloud stacks using single undercloud failed with "msg": "Cloud overcloud-two was not found."
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
New
|
Low
|
Unassigned |
Bug Description
Description:
During the creation of a new job to deploy multiple overcloud using a single undercloud we hit an error where deployment failed with "msg": "Cloud overcloud-two was not found."
Logs:-
~~~
2020-11-24 11:29:55,147 p=22669 u=mistral n=ansible | TASK [Clean up legacy Cinder keystone catalog entries] *******
2020-11-24 11:29:55,147 p=22669 u=mistral n=ansible | Tuesday 24 November 2020 11:29:55 -0500 (0:00:00.398) 0:42:19.289 ******
2020-11-24 11:29:57,500 p=22669 u=mistral n=ansible | fatal: [undercloud]: FAILED! => {"changed": false, "msg": "Cloud overcloud-two was not found."}
~~~
~~~
TASK [tripleo-
Monday 23 November 2020 05:01:32 -0500 (0:00:00.191) 0:30:41.385 *******
fatal: [undercloud]: FAILED! => {"changed": false, "msg": "Cloud overcloud-two was not found."}
~~~
~~~
TASK [Manage Cinder Volume Type] *******
Wednesday 25 November 2020 10:07:43 -0500 (0:00:00.222) 0:18:56.253 ****
fatal: [undercloud]: FAILED! => {"changed": false, "cmd": "if ! openstack volume type show \"tripleo\"; then\n openstack volume type create --public \"trip
leo\"\nfi\n", "delta": "0:00:03.360400", "end": "2020-11-25 10:07:47.360509", "msg": "non-zero return code", "rc": 1, "start": "2020-11-25 10:07:44.000109", "
stderr": "Cloud overcloud-two was not found.\nCloud overcloud-two was not found.", "stderr_lines": ["Cloud overcloud-two was not found.", "Cloud overcloud-two was not found."], "stdo
ut": "", "stdout_lines": []}
~~~
This was because below was happening in ci job :
* Deploy overcloud stack
* Run tempest on overcloud stack (which created /root/.
https:/
* Deploy overcloud-two stack which failed with "msg": "Cloud overcloud-two was not found." ( because /root/.
~~~
[zuul@undercloud ~]$ openstack --os-cloud sandeep endpoint list
+------
| ID | Region | Service Name | Service Type | Enabled | Interface | URL |
+------
| 0a864587b43641a
| 216ec335717848e
| 5bacb43660794eb
+------
[zuul@undercloud ~]$ sudo -i
[root@undercloud ~]# openstack --os-cloud sandeep endpoint list
Cloud sandeep was not found.
[root@undercloud ~]# cat /root/.
clouds:
overcloud:
auth:
auth_url: http://
password: UQKWmvfZsI3Weni
project_
project_name: admin
user_
username: admin
cacert: ''
identity_
region_name: regionOne
undercloud:
auth:
auth_url: https:/
password: fbZ6YXx42kUPN9J
project_
project_name: admin
user_
username: admin
cacert: /etc/pki/
identity_
region_name: regionOne
~~~
1) We need to modify in tripleo-
2) on a side note: we're using become: true on some tasks like when creating keystone resources, we probably should not.
We can probably remove "become: true" from the following places.
~~~
https:/
https:/
https:/
~~~
We have tested removing become: true from the above places in a local environment, stack deployment is successful with these changes.
Changed in tripleo: | |
milestone: | wallaby-1 → wallaby-2 |
Changed in tripleo: | |
milestone: | wallaby-2 → wallaby-3 |
Changed in tripleo: | |
milestone: | wallaby-3 → wallaby-rc1 |
Changed in tripleo: | |
milestone: | wallaby-rc1 → xena-1 |
Changed in tripleo: | |
milestone: | xena-1 → xena-2 |
Changed in tripleo: | |
milestone: | xena-2 → xena-3 |
https:/ /review. opendev. org/c/openstack /tripleo- heat-templates/ +/764283