Open etsauer opened 8 years ago
This is fixed in the latest PR I'll be pushing
Sample output replicating this use case:
TASK [Pause for confirmation on normal run.] ***********************************
[Pause for confirmation on normal run.]
WARNING! About to delete the following objects matching the environment ID '[[:alnum:]]{8}-[[:alnum:]]{4}-[[:alnum:]]{4}-[[:alnum:]]{4}-[[:alnum:]]{12}':
4 instances, 0 IPs and 3 attached volumes:
[Instance IDs]: '8f7d7570-e8ac-4855-b87d-d8968a8dfff7, 54215983-bb1e-4596-b55c-e46433cdd639, 795961f0-ffab-46fa-a401-5246ddd86118, fdf002dd-150b-4d64-8bcb-e493e6ab59e1'
[Instance Names]: 'casl-vvaldez-1467922100-dns1, casl-vvaldez-1467922100-master1, casl-vvaldez-1467922100-node1, casl-vvaldez-1467922100-node2'
[Instance IPs]: ''
[Floating IP IDs]: ''
[Attached Volumes]: '580b5d92-6cf2-40f1-9f36-d909ccd7a0f4, 6944fd53-b6c4-47e8-81e4-34e0bfb49f74, b7db4514-0718-4573-af5d-5b198d5e706c'
[Unique Images]: 'rhel-guest-image-7.2'
Press ENTER to delete these or CTRL+c to cancel:
ok: [localhost]
TASK [Pause for confirmation on dry run.] **************************************
skipping: [localhost]
PLAY [instance_ips] ************************************************************
skipping: no hosts matched
When running the following:
ansible-playbook ./repository/rhc-ose/rhc-ose-ansible/playbooks/openstack/terminate.yml -e 'env_id=casl-esauer-1467913665'
Some or all instances may not have floating IPs. In this case, parsing fails with the following:
@vvaldez