diff options
| author | Zuul <zuul@review.opendev.org> | 2022-08-09 13:14:55 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2022-08-09 13:14:55 +0000 |
| commit | 981699f554463783b46872661d26a94d11c42a4d (patch) | |
| tree | a91528fc30be7a58a58a8f4bdadec1250c8e51ce /tools/init-runonce | |
| parent | c31471fa84b912d60788dc6ae369bdcb4dd2af6a (diff) | |
| parent | 73a1812c5856be635827b6c6de81b39c22346457 (diff) | |
| download | kolla-ansible-981699f554463783b46872661d26a94d11c42a4d.tar.gz kolla-ansible-981699f554463783b46872661d26a94d11c42a4d.zip | |
Merge "Add clouds.yaml file and use it"
Diffstat (limited to 'tools/init-runonce')
| -rwxr-xr-x | tools/init-runonce | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/tools/init-runonce b/tools/init-runonce index 9e4b5b2b7..5dd9c6b81 100755 --- a/tools/init-runonce +++ b/tools/init-runonce @@ -47,12 +47,16 @@ for i in curl openstack; do fi done -# Test for credentials set -if [[ "${OS_USERNAME}" == "" ]]; then - echo "No Keystone credentials specified. Try running source /etc/kolla/admin-openrc.sh command" - exit +# Test for clouds.yaml +if [[ ! -f /etc/openstack/clouds.yaml ]]; then + echo "/etc/openstack/clouds.yaml is missing." + echo " Did your deploy finish successfully?" + exit 1 fi +# Select admin account from clouds.yaml +export OS_CLOUD=kolla-admin + # Test to ensure configure script is run only once if $KOLLA_OPENSTACK_COMMAND image list | grep -q cirros; then echo "This tool should only be run once per deployment." @@ -144,7 +148,7 @@ Done. To deploy a demo instance, run: -openstack server create \\ +openstack --os-cloud=kolla-admin server create \\ --image ${IMAGE_NAME} \\ --flavor m1.tiny \\ --key-name mykey \\ |
