Ask Your Question
2

How do I restart a devstack VM?

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

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='127.0.0.1', 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
3

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

katylava gravatar image

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

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

Comments

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

coolsvap gravatar imagecoolsvap ( 2013-06-21 05:39:44 -0500 )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/processutils.py:142 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 -0500 )edit
1

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

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 ./rejoin-stack.sh.

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

Comments

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 -0500 )edit

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

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

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: 2013-04-11 13:52:36 -0500

Seen: 4,990 times

Last updated: Apr 17 '13