Ask Your Question
0

How do I ensure all services are up after the reboot using devstack?

asked 2014-04-08 08:54:00 -0500

techy_bolek gravatar image

updated 2014-04-09 02:46:13 -0500

smaffulli gravatar image

I'm running devstack on ubuntu. I did the following:

  1. ./stack.sh

  2. Verified the Horizon GUI, logged in as administrator

  3. ./unstack.sh

  4. Tried to log on again but the browser it says it can't connect

Another scenario:

  1. I reboot my computer without running ./unstack.sh.

  2. After reboot, I run ./rejoin_stack.sh

  3. Try to log on to Horizon GUI. The screen does come up but I get an error: "Unable to authenticate, please try again later".

I guess my question is:

  1. How do I bounce openstack.

  2. How do I ensure all services are up after the reboot.

  3. When should I run ./unstack.sh and and what do I need to do to bring the services back after I run it.

Note: I've seen a few similar questions on restarting openstack but they haven't helped.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
2

answered 2014-04-09 02:50:02 -0500

SGPJ gravatar image

Devstack is not persistence and you should use packstack for your requirement.

edit flag offensive delete link more
2

answered 2014-04-08 11:27:14 -0500

SGPJ gravatar image

You need to stack again by running ./stack.sh

If you want to run in offline mode, enable flag OFFLINE=True

After reboot also, you need to see whether stack is running by ps -ef| grep stack, if not then run ./stack.sh from devstack dir.

edit flag offensive delete link more

Comments

I may be missing something but ./stack.sh re-creates everything from scratch and wipes out the existing configuration. It appears to be a setup script not a restart script. I want to be able to restart devstack with the existing configuration.

techy_bolek gravatar imagetechy_bolek ( 2014-04-08 17:20:57 -0500 )edit

Devstack is a development tool not something you should use to run things in production. It won't setup init scripts, if that's what you're asking.

smaffulli gravatar imagesmaffulli ( 2014-04-09 02:45:16 -0500 )edit

Thanks, I knew it was a dev tool (as the name devstack implied) and I was not intending to use it in production. I did not realize that it did not provide restart scripts. On a side note, as a newbie developer starting with openstack I would find it beneficial if such scripts were provided.

techy_bolek gravatar imagetechy_bolek ( 2014-04-09 13:14:44 -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: 2014-04-08 08:54:00 -0500

Seen: 1,629 times

Last updated: Apr 09 '14