Ask Your Question
2

start openstack after restarting system

asked 2015-06-23 01:55:09 -0600

sumit gravatar image

I installed devstack. Al things was working fine. But when i restart my system, after that i am not able to use openstack.

When i run

nova list

it return following error

ERROR (ConnectionError): ('Connection aborted.', error(113, 'No route to host'))

I guess i need to restart all openstack services but how??

There no service available related to openstack.I checked in /etc/init.d/ also.

However horizon is available and i can access the dashboard.

Kindly tell how to restart all openstack services as they were before shutting down the system.

edit retag flag offensive close merge delete

5 answers

Sort by ยป oldest newest most voted
3

answered 2015-06-23 02:18:40 -0600

hi,

If you are using devstack setup, and after restarting your system if you want to retain the previous state of openstack then run ./rejoin-stack.sh in your terminal.

if you run ./stack.sh then it will clear all the previous instances, database entries,etc.

for more information about devstack after rebooting

edit flag offensive delete link more
2

answered 2015-06-23 02:19:37 -0600

Ams70 gravatar image

I have this problems too. But if you run ./stack.sh after each restarting you don not have any problems and openstack work fine.

edit flag offensive delete link more

Comments

1

running ./stack.sh after every reboot not recommended because it will clears all the previous data. so if you want to retain the previous state of your openstack then run ./rejoin-stack.sh

PradeepNaik gravatar imagePradeepNaik ( 2015-06-23 02:23:37 -0600 )edit
1

answered 2015-06-23 02:50:58 -0600

uts9 gravatar image

updated 2015-06-23 02:51:33 -0600

After every reboot you need to run ./stack.sh.

./rejoin-stack.sh just reconnects to the active screen. This is useful if you want to reconnect to the screen after closing the terminal.

# if screenrc exists, run screen
if [[ -e $TOP_DIR/stack-screenrc ]]; then
    if screen -ls | egrep -q "[0-9].stack"; then
        echo "Attaching to already started screen session.."
        exec screen -r stack
    fi
    exec screen -c $TOP_DIR/stack-screenrc
fi
edit flag offensive delete link more
0

answered 2017-05-26 07:06:36 -0600

vabada gravatar image

Since devstack's main use case is not running a cloud, it will fail after a reboot. Instead of re-running ./stack.sh and after the disappearance of ./rejoin-stack.sh, the method I found useful, and it is working for me so far, is to create snapshots of the virtual machine's state, whenerver I want to save something I might be using later.

edit flag offensive delete link more
0

answered 2019-08-31 08:06:45 -0600

Easiest Solution is...

yum install openstack-utils dnsmasq-utils -y

openstack-service restart

openstack-status -l

edit flag offensive delete link more

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: 2015-06-23 01:55:09 -0600

Seen: 13,659 times

Last updated: May 26 '17