How do I restart a devstack VM?

asked 2013-04-11 13:52:36 -0600

katylava gravatar image

I've installed devstack on a VM on my laptop, and at first I was able to log in to the Horizon dashboard. But I stopped my VM and restarted it later, now when I log in the authentication fails. My horizon_error.log shows the following: DEBUG:openstack_auth.backend:Authorization Failed: HTTPConnectionPool(host='', port=5000): Max retries exceeded with url: /v2.0/tokens (Caused by <class 'socket.error'>: [Errno 111] Connection refused).

I think Keystone isn't running. How do I tell if it is, and how do I start it if it isn't? If it is running, then what could be going wrong here?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2013-04-11 14:25:09 -0600

katylava gravatar image

ladquin in #openstack-101 helped me out with this advice: "go to your devstack folder and run './'"

I had two devstack folders though... make sure the one you use has a stack-screenrc file in it. You can do locate stack-screenrc to find the right folder.

edit flag offensive delete link more


Also make sure you mount the stack-volumes volume before running

coolsvap gravatar imagecoolsvap ( 2013-06-21 05:39:44 -0600 )edit

I run the rejoin script but it falls into a loop. This is the last entry: DEBUG cinder.openstack.common.processutils [req-3da471d0-6807-43e8-aeab-e8ec6b1f4818 None None] Running cmd (subprocess): env LC_ALL=C LANG=C vgs --noheadings --unit=g -o name,size,free,lv_count,uuid --separator : --nosuffix stack-volumes from (pid=6368) execute /opt/stack/cinder/cinder/openstack/common/ Maybe I need to mount the stack volumes as you mention? How do I do that? (and what are the stack volumens)

sib gravatar imagesib ( 2013-11-24 16:13:14 -0600 )edit

answered 2013-04-17 01:42:29 -0600

NovelKumar gravatar image

Usually devstack method installs in /opt/stack directory of stack user. so su to stack user and cd to devstack directory. Run ./

Its a known issue with devstack when the server is rebooted. This happens because all stack services are NOT getting restarted properly when the server is rebooted.

edit flag offensive delete link more


FWIW, it isn't an 'issue' with DevStack but is that way by design, partially to keep it from being used in long-running installations. If that is what you need check out Ubuntu or Fedora packaged installations.

dtroyer gravatar imagedtroyer ( 2013-04-30 21:40:38 -0600 )edit

Also make sure you mount the stack-volumes volume before running

coolsvap gravatar imagecoolsvap ( 2013-06-22 03:34:38 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-04-11 13:52:36 -0600

Seen: 5,089 times

Last updated: Apr 17 '13