Search code examples
mysqlwindowsopenstackdevstack

Openstack/devstack virtual machine installation error


I want to contribute to Openstack. Keeping this in mind, I git cloned devstack on virtual machine with Ubuntu 14:0 on Windows XP. After this, I ran ./stack.sh. It was not working. I was not able to launch an instance.I tried deleting the devstack and git cloned again. Even now its not working.

git clone https://github.com/openstack-dev/devstack.git

I get the following error. I am using my computer as an administrator.

sudo mysql -uroot -pa2350bf7c5f41b70a808 -h127.0.0.1 -e 'GRANT ALL PRIVILEGES ON *.* TO '\''root'\''@'\''%'\'' identified by '\''a2350bf7c5f41b70a808'\'';'
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
+ exit_trap
+ local r=1
++ jobs -p
+ jobs=
+ [[ -n '' ]]
+ kill_spinner
+ '[' '!' -z '' ']'
+ [[ 1 -ne 0 ]]
+ echo 'Error on exit'
Error on exit

What is the error and how to overcome the error? I m presuming that the error is due to permission settings.


Solution

  • Remove mysql and try running script again.

    apt-get purge mysql-server
    apt-get purge mysql*
    rm -rf /var/lib/mysql/ /etc/mysql/
    

    The problem is that devstack installs mysql and set a root password. If you run dev stack again without removing mysql, it won't install mysql again and keeps current installation. Since the devstack script doesn't know old mysql password, the whole thing fails.