Ask Your Question
0

Nova - Restart nova service in devstack

asked 2015-08-31 23:47:20 -0500

itsme gravatar image

I am using openstack devstack.

I need to modify nova.conf file and needs to restart all the nova services.

When I trying to restart it results in error:

$ sudo service nova-network restart
 restart: unrecognized service

Also I have followed the link:

https://ask.openstack.org/en/question/1916/cannot-restart-services-on-devstack/ (https://ask.openstack.org/en/question...)

But it seems not working for me.

Some one help me sort out this.

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
1

answered 2015-09-01 02:07:38 -0500

updated 2015-09-02 08:41:30 -0500

Hello, usually the combination to enter linux screens is this combination Ctrl + a + " (Depends of your keyboard configuration can be another combination of letters to enter the screens). Step by step:

1- Enter to devstack screens executing ./rejoin-stack.sh script at your devstack directory
2- Once inside, press Ctrl + a + "
3- You will see some services, one of them is n-net, select it and press Enter.
4- Press Ctrl + c to stop the service
5- Press up arrow ↑
6- Press enter to re run the service. 
7- Exit from screens by pressing Ctrl + a + d

Regards

edit flag offensive delete link more

Comments

when I have tried the steps you mentioned.I am not able to see the id of the particular service.How can I find the same.?

itsme gravatar imageitsme ( 2015-09-01 02:51:51 -0500 )edit

Paste the services you see in the screens, maybe you aren't using nova-network and have neutron, these services start by "q" https://wiki.openstack.org/wiki/NeutronDevstack

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2015-09-01 02:55:54 -0500 )edit

Nova services starts by "n-"

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2015-09-01 02:58:18 -0500 )edit

some of services were as follows: n-cpu n-cond n-crt n-sch n-novnc n-cauth n-obj n-api q-svc , q-agt,q-dhcp,q-l3,q-meta,q-lbaa

itsme gravatar imageitsme ( 2015-09-01 03:37:15 -0500 )edit

It doesn't have n-net, So if I need to restart all services starts with "n-" ?

itsme gravatar imageitsme ( 2015-09-01 03:37:45 -0500 )edit
0

answered 2015-09-01 00:46:44 -0500

updated 2015-09-01 00:58:46 -0500

If the status is disabled or the state is XXX, connect the compute node to the controller node manually.

nohup /usr/bin/python /usr/bin/nova-network --config-file /etc/nova/nova.conf --logfile /var/log/nova/network.log &

Also update same entry rc.local file... Please check availability to nova-network for your Openstack environment. It might be diff location /usr/bin/nova-network in your environment.

edit flag offensive delete link more

Comments

Thank you. What about this answer. https://ask.openstack.org/en/question/1916/cannot-restart-services-on-devstack/ (https://ask.openstack.org/en/question...)

But I am not getting it working

itsme gravatar imageitsme ( 2015-09-01 01:40:58 -0500 )edit

I am trying as you mentioned.

nohup /usr/bin/python /usr/local/bin/nova-network --config-file /etc/nova/nova.conf --logfile /var/log/nova/network.log &

but its showing a error

itsme gravatar imageitsme ( 2015-09-01 02:07:32 -0500 )edit

error is as follows:

2015-09-01 00:04:56.941 WARNING nova.conductor.api [req-02694722-bf96-4da8-8b64-382c73f123f7 None None] Timed out waiting for nova-conductor.  Is it running? Or did this service start before nova-conductor?  Reattempting establishment of nova-conductor connection...
itsme gravatar imageitsme ( 2015-09-01 02:07:53 -0500 )edit

May I know how much time It will take to restart the service. And how we can know that ?

itsme gravatar imageitsme ( 2015-09-02 02:25:43 -0500 )edit

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-08-31 23:47:20 -0500

Seen: 4,590 times

Last updated: Sep 02 '15