yahoo/Openstack-Devstack2 — Issue #23: setting DB password to '' causes exception
Author: wwkeyboard
Created: 2012-01-26 22:33:52+00:00
State: open

Command
========

$ ./stack -a install -d $HOME/openstack -c glance

When prompted for a db password I just pressed return. After that I entered the password for sudo, the install continued until...

Stacktrace
========

INFO: @devstack.util : Getting packages for distro ubuntu-oneiric and component db.
Traceback (most recent call last):
File "./stack", line 60, in
sys.exit(main())
File "./stack", line 48, in main
run_ok = actions.run(args)
File "/home/nova/Openstack-Devstack2/devstack/progs/actions.py", line 378, in run
return _run_action(args)
File "/home/nova/Openstack-Devstack2/devstack/progs/actions.py", line 370, in _run_action
results = _run_components(action, component_order, components, distro, rootdir, args)
File "/home/nova/Openstack-Devstack2/devstack/progs/actions.py", line 303, in _run_components
install_result = _install(component, instance)
File "/home/nova/Openstack-Devstack2/devstack/progs/actions.py", line 219, in _install
trace = instance.post_install()
File "/home/nova/Openstack-Devstack2/devstack/components/db.py", line 98, in post_install
utils.execute_template(*cmds, params=params, shell=True)
File "/home/nova/Openstack-Devstack2/devstack/utils.py", line 72, in execute_template
exec_res = sh.execute(*cmd_to_run, run_as_root=root_run, process_input=stdin, **kargs)
File "/home/nova/Openstack-Devstack2/devstack/shell.py", line 121, in execute
cmd=str_cmd)
devstack.exceptions.ProcessExecutionError: Unexpected error while running command.
Command: mysql --user=root --password=97cf5184aee78543 -e "GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' identified by '97cf5184aee78543';"
Exit code: 1
Stdout: ''
Stderr: "ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)\n"