Friday, April 6, 2018

Common Openstack tripleo undercloud and overcloud deployment issues

If you come across these common errors during the exercise of the tripleo installations



If a node is in maintenance state to take this out of maintenance state perform the following. Please note that the baremetalServers in the maint state are skipped from provisioning.



openstack baremetal node maintenance unset <BaremetalServer>

--
If there is a node that has come to an error state as seen the baremetal list then the same can be cleaned and made available using 

openstack baremetal node undeploy overcloud-node2

--

If the overcloud deploy heat stack create fails and you have to re-run the deploy

If the overcloud heat stack creation fails, then you try seeing the problems on the screen and troubleshoot.

If you want to re-deploy, then delete the failed stack and re-run the openstack overcloud deploy.

As the stack user get the stack name for the overcloud deploy

openstack stack list 

Delete the stack


openstack stack delete <stack_name>

Run the overcloud deploy again

openstack overcloud deploy <OPTIONS>

--

Small things to check for a failed overcloud deploy you can try logging in to the openstack overcloud 


On the undercloud as the stack user first get the IP address of the overcloud deployed servers. 

SSH to the overcloud server (being logged in as stack user to the undercloud server) as heat-admin user. Once logged in to the overcloud server see stacks in /var/lib/heat-config


The above will look like


(undercloud) [stack@pike ~]$ openstack server list
+--------------------------------------+-------------------------+--------+------------------------+----------------+--------------+
| ID                                   | Name                    | Status | Networks               | Image          | Flavor       |
+--------------------------------------+-------------------------+--------+------------------------+----------------+--------------+
| ba22ab2c-9806-449b-9634-a1fa03633f99 | overcloud-novacompute-1 | ACTIVE | ctlplane=172.16.201.20 | overcloud-full | compute      |
| 29cd628e-dab0-4604-ae86-244532d8d4a8 | overcloud-controller-0  | ACTIVE | ctlplane=172.16.201.16 | overcloud-full | control      |
| 3099e7c7-f78e-40b7-985b-b6a386f6d610 | overcloud-cephstorage-2 | ACTIVE | ctlplane=172.16.201.14 | overcloud-full | ceph-storage |
| 74813a4e-a05e-46e1-b37d-9b282c710b21 | overcloud-controller-1  | ACTIVE | ctlplane=172.16.201.26 | overcloud-full | control      |
| 21bb7cff-9022-4a28-a6b9-c31e3152944d | overcloud-novacompute-0 | ACTIVE | ctlplane=172.16.201.15 | overcloud-full | compute      |
| 5050f803-13d5-4824-87bb-0a8bb51d467b | overcloud-cephstorage-0 | ACTIVE | ctlplane=172.16.201.13 | overcloud-full | ceph-storage |
| fade8e00-cc0f-4b58-b492-85c7bc3a39f7 | overcloud-cephstorage-1 | ACTIVE | ctlplane=172.16.201.23 | overcloud-full | ceph-storage |
+--------------------------------------+-------------------------+--------+------------------------+----------------+--------------+
(undercloud) [stack@pike ~]$
(undercloud) [stack@pike ~]$


(undercloud) [stack@pike ~]$ ssh heat-admin@172.16.201.14
The authenticity of host '172.16.201.14 (172.16.201.14)' can't be established.
ECDSA key fingerprint is SHA256:5AI/hMKyjTjPdn3Ffo/6up95zHK7V5xe104cssd+fSk.
ECDSA key fingerprint is MD5:f1:a9:b2:bf:00:d0:7c:38:b1:90:22:5e:cf:cb:26:da.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '172.16.201.14' (ECDSA) to the list of known hosts.
[heat-admin@overcloud-cephstorage-2 ~]$
[heat-admin@overcloud-cephstorage-2 ~]$
[heat-admin@overcloud-cephstorage-2 ~]$ sudo su -
Last login: Tue Apr  3 14:59:40 UTC 2018

[root@overcloud-cephstorage-2 heat-config]# ls -ltr /var/lib/heat-config
total 12
drwx------. 2 root root 4096 Apr  4 03:32 heat-config-script
drwx------. 2 root root 4096 Apr  4 03:48 heat-config-ansible
drwx------. 2 root root 4096 Apr  4 03:49 deployed
[root@overcloud-cephstorage-2 heat-config]#
[root@overcloud-cephstorage-2 heat-config]#
[root@overcloud-cephstorage-2 heat-config]#

Go to the Main page of the OpenStack Tripleo on KVM : Openstack Pike TripleO undercloud deployment with overcloud controller HA on KVM (libvirt)

No comments:

Post a Comment