diff --git a/bin/heat-db-setup b/bin/heat-db-setup index 76d859e310..b0e39ac747 100755 --- a/bin/heat-db-setup +++ b/bin/heat-db-setup @@ -152,7 +152,7 @@ then exit 0 ;; *) - echo "Invalid response." + echo "Invalid response." >&2 exit 1 esac fi @@ -177,7 +177,7 @@ then exit 0 ;; *) - echo "Invalid response." + echo "Invalid response." >&2 exit 1 esac fi @@ -208,14 +208,14 @@ then if [ "${MYSQL_ROOT_PW}" = "${PW2}" ] ; then PW_MATCH=1 else - echo "Passwords did not match." + echo "Passwords did not match." >&2 fi done fi echo "UPDATE mysql.user SET password = password('${MYSQL_ROOT_PW}') WHERE user = 'root'; DELETE FROM mysql.user WHERE user = ''; flush privileges;" | mysql -u root if ! [ $? -eq 0 ] ; then - echo "Failed to set password for 'root' MySQL user." + echo "Failed to set password for 'root' MySQL user." >&2 exit 1 fi elif [ ! "${MYSQL_ROOT_PW+defined}" ] ; then @@ -235,7 +235,7 @@ fi echo "SELECT 1;" | mysql -u root ${MYSQL_ROOT_PW_ARG} > /dev/null if ! [ $? -eq 0 ] then - echo "Failed to connect to the MySQL server. Please check your root user credentials." + echo "Failed to connect to the MySQL server. Please check your root user credentials." >&2 exit 1 fi echo "Verified connectivity to MySQL." @@ -292,7 +292,7 @@ rm $log_conf echo "SELECT * FROM migrate_version;" | mysql -u heat --password=${MYSQL_HEAT_PW} heat > /dev/null if ! [ $? -eq 0 ] then - echo "Final sanity check failed." + echo "Final sanity check failed." >&2 exit 1 fi diff --git a/bin/heat-keystone-setup b/bin/heat-keystone-setup index f74ae7df4d..2ded3b24ad 100755 --- a/bin/heat-keystone-setup +++ b/bin/heat-keystone-setup @@ -122,7 +122,7 @@ get_user() { if [ -n "$user_id" ]; then echo "Found existing $username user" >&2 - echo $user_id + echo $user_id >&2 else echo "Creating $username user..." >&2 get_id openstack user create $username \ @@ -249,8 +249,8 @@ keystone_setup() { fi if [[ "$SERVICE_HOST" == "localhost" ]]; then - echo "Warning: Endpoints will be registered as localhost, but this usually won't work." - echo "Set SERVICE_HOST to a publicly accessible hostname/IP instead." + echo "Warning: Endpoints will be registered as localhost, but this usually won't work." >&2 + echo "Set SERVICE_HOST to a publicly accessible hostname/IP instead." >&2 fi echo ADMIN_ROLE $ADMIN_ROLE diff --git a/devstack/upgrade/upgrade.sh b/devstack/upgrade/upgrade.sh index a699c6cd5a..87ea43abe3 100755 --- a/devstack/upgrade/upgrade.sh +++ b/devstack/upgrade/upgrade.sh @@ -23,7 +23,7 @@ cleanup() { set +o errexit echo "*********************************************************************" - echo "ERROR: Abort $0" + echo "ERROR: Abort $0" >&2 echo "*********************************************************************" # Kill ourselves to signal any calling process diff --git a/uninstall.sh b/uninstall.sh index e9e09f1c85..bce10951cc 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -1,7 +1,7 @@ #!/bin/bash if [ $EUID -ne 0 ]; then - echo "This script must be run as root." + echo "This script must be run as root." >&2 exit fi @@ -18,4 +18,4 @@ if [ $have_pip -eq 1 ]; then fi echo "pip-python not found. install package (probably python-pip) or run -'easy_install pip', then rerun $0"; +'easy_install pip', then rerun $0" >&2;