Ask Your Question
1

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

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

harikrishna-mallavolu gravatar image

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

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
3

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

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

Comments

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 -0500 )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 -0500 )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 -0500 )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 -0500 )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 -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-03-07 01:01:39 -0500

Seen: 2,250 times

Last updated: Mar 07 '14