How to Start/Stop OpenStack services manually [closed]

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

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


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

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

4 answers

Sort by ยป oldest newest most voted

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

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


Can u plz solve the the following query on the below link..

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

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

dbaxps gravatar image

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

       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


For all the commands you told ...

Openstack-nova-api: unrecognized service

mani619cash gravatar imagemani619cash ( 2014-06-08 00:28:45 -0600 )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 -0600 )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 -0600 )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 -0600 )edit

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

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

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

jscheponik gravatar image

sudo service xxxx stop

sudo service xxxx start

where xxxx is the name of a running service 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

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

don gravatar image

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


if [ $# -eq 2 ]
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


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

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

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


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

Seen: 75,390 times

Last updated: Jun 08 '14