From 6930ba312f787e0459f7455ac6ba2a70b3c7c37d Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Thu, 1 Sep 2016 07:25:28 -0500 Subject: [PATCH] Specify a cloud for openstack complete there is a bug in openstackclient that is causing a password prompt Related-Bug: 1619274 here. Change-Id: I3aee25845ece846ed2b35aa242dc684b55ac2381 --- stack.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stack.sh b/stack.sh index 09466a6894..1cc4eca1b9 100755 --- a/stack.sh +++ b/stack.sh @@ -1383,7 +1383,12 @@ check_libs_from_git # =============== # Prepare bash completion for OSC -openstack complete | sudo tee /etc/bash_completion.d/osc.bash_completion > /dev/null +# +# BUG: https://bugs.launchpad.net/python-openstackclient/+bug/1619274 +# the os-cloud param should not be required but if we don't provide it +# then this command hangs indefinitely if something is wrong with +# default environment credentials. +openstack --os-cloud=devstack complete | sudo tee /etc/bash_completion.d/osc.bash_completion > /dev/null # If cinder is configured, set global_filter for PV devices if is_service_enabled cinder; then