Ask Your Question
1

devstack fails to connect to MySQL server

asked 2014-06-27 10:41:00 -0500

andi gravatar image

updated 2014-06-27 16:20:04 -0500

smaffulli gravatar image

I am trying to get started with OpenStack by using devstack. Currently, devstack seems broken.

Here is what I'm doing:

  1. Bring up a new ubuntu 12.04 OS:

    vagrant init hashicorp/precise64 vagrant up vagrant reload

(I do the last step in case guest additions were updated.)

  1. Log in and Setup devstack:

    vagrant ssh sudo apt-get update sudo apt-get install git git clone https://github.com/openstack-dev/devs... cd devstack ./stack.sh

This fails. The ./stack.sh output is enormous. It ends with

+++ nova flavor-list
ERROR (ConnectionError): HTTPConnectionPool(host='10.0.2.15', port=8774): Max retries exceeded with url: /v2/191228efe8a649d29ad5a7e823f63a15/flavors/detail (Caused by <class 'socket.error'>: [Errno 111] Connection refused)

Scrolling up a bit earlier, I see stuff like this:

++ openstack endpoint show -f value -c publicurl ec2
ERROR: cliff.app Authorization Failed: An unexpected error prevented the server from fulfilling your request. (OperationalError) (2003, "Can't connect to MySQL server on '127.0.0.1' (111)") None None (Disable debug mode to suppress these details.) (HTTP 500)

Any ideas what is going wrong? Did I miss a step?

FWIW, info about the OS that vagrant creates:

$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS"
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2014-06-27 16:19:22 -0500

smaffulli gravatar image

It seems that devstack failed at installing and configuring MySQL properly. Try to understand why that happened, maybe try again and edit the question to add more details.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-06-27 10:41:00 -0500

Seen: 1,144 times

Last updated: Jun 27 '14