Ask Your Question

How to properly reboot a machine running

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

rz2p gravatar image

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

smaffulli gravatar image

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

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

How does ./ resume the screens where they left off? When the server is powered down, won't he lose all those screens, therefore making the 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 ./'ing or not)
  • Start up the server
  • Run ./

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


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

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

I know I kind of asked a similar question regarding how 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 -0600 )edit

You should not be running production servers with devstack - see question 1 here .

darragh-oreilly gravatar imagedarragh-oreilly ( 2013-09-27 09:36:40 -0600 )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 -0600 )edit

2 answers

Sort by » oldest newest most voted

answered 2013-09-27 09:27:59 -0600

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:

  • ./ first
  • Reboot
  • ./ &

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


does the take the same time as the ( nearly 1 hour)

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

In stable/kilo, running ./ 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 -0600 )edit

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

ICBeter gravatar imageICBeter ( 2016-02-29 16:13:34 -0600 )edit is removed in the latest version. What's the properway to restart/shutdown

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

guess what, haha

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

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

rabel-b1 gravatar image

For completeness, because this thread is still found by search engines: has been removed. See

edit flag offensive delete link more

Comments 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 -0600 )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 -0600 )edit

I've been searching for a couple hours to find the proper use of 'screen -c stack-screenrc' to no avail. Like IG, I also do not have a 'stack-screenrc' file in /opt/devstack. Do I need to create a screen session named screenrc first? If so, how exactly? Can someone point to instructions?

judonome gravatar imagejudonome ( 2020-02-14 14:31:45 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-09-26 16:04:10 -0600

Seen: 15,926 times

Last updated: Sep 04 '17