why do we need to unstack and stack it again when we turn off the system??

asked 2014-03-07 01:01:39 -0600

harikrishna-mallavolu gravatar image

updated 2014-03-07 09:45:38 -0600

I'm a new to openstack and installed latest Havana in my laptop. After I shutdown it and restart it later, when I try to login into the dashboard even after entering the valid credentials it gives me error like Authentication failed.Then I unstack it and stack using ./stack.sh it works fine there after. What I want to know is why it is necessary and are there any specific reasons behind this.

Thanks in advance.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-03-07 07:38:27 -0600

Hi Harikrishna,

I am assuming you installed Openstack using Devstack.

How devstack works is, it starts all the Openstack service as a python process, unlike something like Packstack, that runs them as services. So obviously, when your computer is turned off, it kills all the python processes before shutdown. Running stack.sh again starts these services once more, enabling you to run Openstack as usual.

Hope this helps.

edit flag offensive delete link more


furthermore, rejoin-stack.sh allows you to resume to previous session, and does not wipe the databases like stack.sh.

darragh-oreilly gravatar imagedarragh-oreilly ( 2014-03-07 08:02:24 -0600 )edit

@darragh-orielly from the above answer, if you are running stack as a devstack implementation, all the services will be automatically stop on system shutdown then there is no use of ./rejoin-stack.sh. rejoin-stack.sh is only used when your services are running.

harikrishna-mallavolu gravatar imageharikrishna-mallavolu ( 2014-03-07 11:22:47 -0600 )edit

Thank you @mithilarun, If you don't mind can you give some references where I exactly get right kind of information regarding Packstack.

harikrishna-mallavolu gravatar imageharikrishna-mallavolu ( 2014-03-07 11:32:05 -0600 )edit

@harikrishna-mallavolu rejoin-stack.sh does work after reboot, I use it all the time. See https://github.com/openstack-dev/devstack/blob/master/rejoin-stack.sh#L4 and give it a try.

darragh-oreilly gravatar imagedarragh-oreilly ( 2014-03-07 14:12:43 -0600 )edit

are you sure about this... I checked it... I din't find any services running on after rebooting,when I used this command I get no screen found error.

harikrishna-mallavolu gravatar imageharikrishna-mallavolu ( 2014-03-07 15:05:19 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-03-07 01:01:39 -0600

Seen: 2,724 times

Last updated: Mar 07 '14