Ask Your Question
4

How to properly reboot a machine running devstack.sh?

asked 2013-09-26 16:04:10 -0500

rz2p gravatar image

updated 2013-09-26 17:32:44 -0500

smaffulli gravatar image

I am using OpenStack installed with Devstack and I need to reboot the server.

Do I ./unstack.sh before the reboot? Or do I simply reboot the server while everything is stacked and then ./rejoin-stack.sh to bring it all back up?

How does ./rejoin-stack.sh resume the screens where they left off? When the server is powered down, won't he lose all those screens, therefore making the rejoin-stack.sh script fail?

"if screen -ls | egrep -q "[0-9].stack"; then".....

Or maybe I don't understand how screen works. Just from what I am understanding, this is what I can expect:

I have 20 images, and 5 VMs, and 10 users in my OpenStack...

  • Shutdown the server (Not sure about ./unstack.sh'ing or not)
  • Start up the server
  • Run ./rejoin-stack.sh

I will have my 20 images, my 5 running VMs and the same 10 users in OpenStack?

I am only asking because this was originally going to be used for development, and because of a bind we were in, we had to migrate some production servers into OpenStack. I am scared of the reboot because I really don't know what to expect! Will we lose our running instance? If we do, OK, but will we lose the base image we created too?

Thanks again for any help, hopefully this is my last question here!

edit retag flag offensive close merge delete

Comments

I hope you keep asking questions here and give answers too :)

smaffulli gravatar imagesmaffulli ( 2013-09-26 17:33:03 -0500 )edit

I know I kind of asked a similar question regarding how rejoin-stack.sh works. But This time I am more looking for the exact steps needed to take reboot the machine. I got my hands on an unused blade, I am putting devstack on it now. Going to install some images and reboot it. see what happens.

rz2p gravatar imagerz2p ( 2013-09-27 08:27:35 -0500 )edit
1

You should not be running production servers with devstack - see question 1 here http://devstack.org/faq.html .

darragh-oreilly gravatar imagedarragh-oreilly ( 2013-09-27 09:36:40 -0500 )edit

Like I said, we are in a bind. It's only temporary. This is a development machine

rz2p gravatar imagerz2p ( 2013-09-27 09:38:21 -0500 )edit

2 answers

Sort by » oldest newest most voted
7

answered 2013-09-27 09:27:59 -0500

rz2p gravatar image

Wow, I should have probably tested it myself.

Alright, very cool stuff right here I like it. I think I need to learn more about "screen".

If you need to reboot:

  • ./unstack.sh first
  • Reboot
  • ./rejoin-stack.sh &

Yoube back online. Your instances still registered and everything. But, They are powered off.

I made a customized "SnapShot manager" in our openstack, that lets us create and revert live running snapshots. I will just snapshot before the reboot..Reboot, and then revert all the snapshots. Should be gold!

edit flag offensive delete link more

Comments

does the rjoin-stack.sh take the same time as the stack.sh ( nearly 1 hour)

www gravatar imagewww ( 2014-02-06 14:20:41 -0500 )edit
2

In stable/kilo, running ./unstack.sh will remove keystone.conf from /etc/apache2/sites-enabled. To restart stack you have to run sudo ln -s /etc/apache2/sites-available/keystone.conf /etc/apache2/sites-enabled/ and sudo service apache2 restart.

Cirdec gravatar imageCirdec ( 2015-11-09 13:44:13 -0500 )edit

It is important to point out that the first is not to be typed in after ./unstack.sh Even it eventually does not do any harm...

ICBeter gravatar imageICBeter ( 2016-02-29 16:13:34 -0500 )edit

rejoin-stack.sh is removed in the latest version. What's the properway to restart/shutdown

聪明健康 gravatar image聪明健康 ( 2016-06-09 20:58:43 -0500 )edit

guess what, haha

Thomas Li gravatar imageThomas Li ( 2016-11-29 09:54:50 -0500 )edit
0

answered 2017-09-04 00:36:09 -0500

rabel-b1 gravatar image

For completeness, because this thread is still found by search engines: rejoin-stack.sh has been removed. See https://review.openstack.org/#/c/291453/

edit flag offensive delete link more

Comments

regjoin-stack.sh no more exists, instead we can use screen -c stack-screenrc

stack-screenrc is the screen name located under devstack directory.

Praveen N gravatar imagePraveen N ( 2017-09-04 01:10:03 -0500 )edit

I can't find any stack-screenrc on devstack folder. I need to reboot my OpenStack devstack. On my OpenStack, after reboot I cannot connect to my instances even after bringing them online using the webpage. Any suggestions on how to resolve this ? Thank you !

IG gravatar imageIG ( 2017-09-14 12:52:08 -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-09-26 16:04:10 -0500

Seen: 15,285 times

Last updated: Sep 04 '17