Restarting a service on Openstack installed with Devstack

How to restart a specific openstack service installed with devstack?

+6
source share
5 answers

When. / Stack.sh exits, openstack supposedly works.

as the user of the stack, you can then execute this command:

screen -dr 

this should open a screen session with windows for each of the services. services start from screen terminal sessions or ptys.

you can just kill the process and restart it with these ptys.

Of course, the standard logical order of operations applies. if mysql is dead, nova-api will not start very well. the same thing happens for the trapezoid. so pay attention to the dependencies.

if you do not know how to perform services in terminals, first do ps auxww | grep service ps auxww | grep service or something like that. This should give some insight into how to run the binaries again.

Good luck.

+1
source

Insert the stack screen as

./rejoin-stack.sh

and go to the specified service page using ctrl + a + ", then enter the screen number that you need to execute.

Press 9 and then ctrl + C. The service will stop. Run the following devstack command again to start the service: (for example, for a nova network) cd / opt / stack / nova & & / usr / bin / nova-network --config / etc / nova / nova.conf || echo "n-net failed to start" | tee "/opt/stack/stack/n-net.failure"

Press Ctrl + d to disconnect from the stack screen.

+4
source

To run an on-screen command

  screen -r 

Now you will be in the screen window, and you will see a list of Openstack services; Like "q-svc", "horizon", "key-access" at the bottom of the screen; The currently active screen will be marked * as "horizon *"

To go to a specific Openstack service, click

  "Ctrl + a" and "0-9" Example: "Ctrl + a" 5 

go to the actual service; You can also go to the next or previous screen using the commands below.

  "Ctrl + a" and n --- > for next "Ctrl + a" and p --- > for previous 

Now to stop and start the service; Go to the appropriate screen window and click

  "Ctrl + c" 

To stop the service; Now the bash screen will be displayed in the corresponding screen window; and to start the service, press the UP arrow to see the last command executed in the screen window, and press Enter to start the same.

Life is easier on screen to start and stop Openstack services configured to work with Devstack.

+3
source

rejoin-stack.sh was deleted according to this git commit , you need to do screen -c / path / to / devstack_install / stack-screenrc

+1
source

Run this command as root (for example: to start the trace service)

 $ systemctl start devstack@keystone.service 

You can use restart , stop , status , etc. instead of start as your need.

You can also use a wildcard. As shown below.

$ systemctl start devstack @ *

=> it will start all devstack services.

0
source

All Articles