rhtconsulting / rhc-ose

OpenShift Automation and Utilities by Red Hat Consulting
42 stars 34 forks source link

Add connection test to OpenStack before proceeding #151

Closed vvaldez closed 8 years ago

vvaldez commented 8 years ago

What does this PR do?

Adds a connection check task using nova credentials to pre_tasks to abort the playbook if a connection to the specified OpenStack environment is not present before getting too far in the playbook. This could be due the openrc.sh file not being sourced, bad information sourced, a connection to the environment is down (such as any required VPN not connected), or other network problems.

Note that the output of nova credentials only contains the user and tenant ids and the user role, no sensitive authentication data, but this would only be shown with -v. A normal playbook run only shows the task name.

Run a playbook that uses the openstack-create role pre_tasks section with any of the following conditions:

None.

Who would you like to review this?

/cc @oybed @etsauer @sabre1041

etsauer commented 8 years ago

lgtm, merging