Ask Your Question
2

How to Start/Stop OpenStack services manually [closed]

asked 2014-06-07 08:33:20 -0500

mani619cash gravatar image

I have OpenStack Havanna installed in Ubuntu 12.04 Server and I want to start or stop OpenStack services manually through command-line?

I have searched but there is no tutorial where I see such things.

Can anyone help me?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by koolhead17
close date 2014-06-17 07:54:48.402097

Comments

Closing this as we have good solutions provided here. :)

koolhead17 gravatar imagekoolhead17 ( 2014-06-17 07:54:40 -0500 )edit

4 answers

Sort by ยป oldest newest most voted
2

answered 2014-06-07 09:44:22 -0500

mpetason gravatar image

Depending on your OS, if the service scripts do not work properly then you can restart services directly from /etc/init.d:

/etc/init.d/XXX stop

/etc/inti.d/XXX start

You can tab complete to finish out service names this way, in case you don't remember the full name of the service.

edit flag offensive delete link more

Comments

Can u plz solve the the following query on the below link.. https://ask.openstack.org/en/question...

Queen gravatar imageQueen ( 2015-01-29 21:16:55 -0500 )edit
4

answered 2014-06-07 10:00:40 -0500

dbaxps gravatar image

updated 2014-06-08 00:42:20 -0500

       Restart Compute services:

        # service openstack-nova-api restart
        # service openstack-nova-cert restart
        # service openstack-nova-consoleauth restart
        # service openstack-nova-scheduler restart
        # service openstack-nova-conductor restart
        # service openstack-nova-novncproxy restart

        Restart Networking services.

        # service neutron-server restart
        # service neutron-dhcp-agent restart
        # service neutron-l3-agent restart
        # service neutron-metadata-agent restart

        Also restart your chosen Networking plug-in agent, for example, Open vSwitch.

        # service neutron-openvswitch-agent restart
    Cinder Services restart

    # service openstack-cinder-api restart
    # service openstack-cinder-backup restart
    # service openstack-cinder-scheduler restart
    # service openstack-cinder-volume restart
On ubuntu run
    #  service --status-all | grep nova
    #  service --status-all | grep neutron
To get service names specific to OS
edit flag offensive delete link more

Comments

For all the commands you told ...

Openstack-nova-api: unrecognized service

mani619cash gravatar imagemani619cash ( 2014-06-08 00:28:45 -0500 )edit

It's on Fedora 20, on Ubuntu services names might differ. Try just nova-api and so on.

dbaxps gravatar imagedbaxps ( 2014-06-08 00:38:27 -0500 )edit

On ubuntu run
# service --status-all | grep nova
# service --status-all | grep neutron
To get service names specific to OS

dbaxps gravatar imagedbaxps ( 2014-06-08 00:43:18 -0500 )edit

service --status-all | grep nova

but there is not service listed nova ... I am running OpenStack that was installed using DevStack

mani619cash gravatar imagemani619cash ( 2014-06-08 00:58:30 -0500 )edit
1

Please source tenants credentials and run :-
$ nova-manage service list
$ neutron agent-list

dbaxps gravatar imagedbaxps ( 2014-06-08 01:02:49 -0500 )edit
0

answered 2014-06-07 08:46:48 -0500

jscheponik gravatar image

sudo service xxxx stop

sudo service xxxx start

where xxxx is the name of a running service

http://docs.openstack.org/trunk/insta... should have most of the services you need to stop and start listed in the sections around the installation of each piece.

edit flag offensive delete link more
0

answered 2014-06-08 11:48:41 -0500

don gravatar image

here's a hack you can use to restart one subsystem:

#!/bin/bash

srv=$1
if [ $# -eq 2 ]
then
    action=$2
else
    action=restart
fi
echo usage action $action
cd /etc/init/; for i in $(ls $srv-* | cut -d \. -f 1 | xargs); do sudo service $i $action; done

and invoke with e.g. 'nova' or 'neutron' or 'cinder' etc.

edit flag offensive delete link more

Comments

Your script seems not to keep correct order of restarting for nova and neutron services.

DanIzack gravatar imageDanIzack ( 2014-06-08 13:08:10 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-06-07 08:33:20 -0500

Seen: 70,572 times

Last updated: Jun 08 '14