List nova instances after overcloud deploy

Nova instances status is essentially required for investigation
of failed overcloud deployments.

Change-Id: I324d208df5a0098143da1c23b86d1d018804a692
This commit is contained in:
Sagi Shnaidman 2017-02-02 16:06:11 +02:00
parent 3ae1e2e335
commit 78f88bdfcf
1 changed files with 7 additions and 0 deletions

View File

@ -73,6 +73,13 @@
shell: "which openstack-status &> /dev/null && (. ~/keystonerc_admin; openstack-status &> /var/log/extra/openstack-status.txt)"
when: "'controller' in inventory_hostname"
- name: List nova servers on undercloud
shell: >
if [[ -e {{ working_dir }}/stackrc ]]; then
source {{ working_dir }}/stackrc;
nova list &> /var/log/extra/nova_list.txt;
fi
- name: lsmod
shell: "lsmod &> /var/log/extra/lsmod.txt"