From a75385f2c5715a6258bd253504206f634a17d9fb Mon Sep 17 00:00:00 2001 From: Sara Nierodzik Date: Tue, 9 Jul 2019 16:18:43 +0000 Subject: [PATCH] Functional testing script password update This patch includes a fix for "configure_for_func_testing.sh" script. When the guidelines are followed from the following link: https://docs.openstack.org/neutron/latest/contributor/testing/testing. html the test script displays the following error: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES). The fix for this is to include the saved password in order to access the MySQL database. Change-Id: I6ab5cb3ef1583258cebec9f8f5966eda250a6367 Bug-Link: https://bugs.launchpad.net/neutron/+bug/1836028 --- tools/configure_for_func_testing.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/configure_for_func_testing.sh b/tools/configure_for_func_testing.sh index c4a47d69fc2..862e849d08f 100755 --- a/tools/configure_for_func_testing.sh +++ b/tools/configure_for_func_testing.sh @@ -164,7 +164,7 @@ GRANT ALL PRIVILEGES ON *.* TO 'openstack_citest'@'localhost'; GRANT ALL PRIVILEGES ON *.* TO 'openstack_citest'; FLUSH PRIVILEGES; EOF - /usr/bin/mysql -u root < $tmp_dir/mysql.sql + /usr/bin/mysql -u root -p"$MYSQL_PASSWORD" < $tmp_dir/mysql.sql if [[ "$install_pg" == "True" ]]; then cat << EOF > $tmp_dir/postgresql.sql