openstack-nova-compute.service not starting in Manual openstack installation in Centos 7

asked 2017-02-23 02:47:35 -0500

Anil Chandy gravatar image

Hi,

I am trying to install openstack(Newton) manually on VMs. It is a 2 VM setup where one is controller and another one is compute.

I followed the steps mentioned in the http://openstack.org site and controller installation was fine.

While doing the compute installation the openstack-nova-compute.service didn't start .

tailf /var/log/nova/nova-compute.log is as below.

2017-02-23 02:19:10.090 3482 ERROR oslo.messaging._drivers.impl_rabbit [-] [af027ac9-8f91-45b6-942d-c87e6633602f] AMQP server on controller:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 2 seconds. Client port: 56651
2017-02-23 02:19:12.158 3482 INFO oslo.messaging._drivers.impl_rabbit [-] [af027ac9-8f91-45b6-942d-c87e6633602f] Reconnected to AMQP server on controller:5672 via [amqp] clientwith port 56653.

2017-02-23 02:19:14.270 3482 INFO oslo.messaging._drivers.impl_rabbit [-] A recoverable connection/channel error occurred, trying to reconnect: [Errno 104] Connection reset by peer 2017-02-23 02:19:44.080 3482 WARNING nova.conductor.api [req-badcc01f-5543-476b-b9bf-a805b1cbdd26 - - - - -]

Timed out waiting for nova-conductor. Is it running? Or did this service start before nova-conductor? Reattempting establishment of nova-conductor connection...

in controller :

[root@controller rabbitmq]# tailf rabbit\@controller.log 

=INFO REPORT==== 23-Feb-2017::02:32:45 ===
Connection <0.3843.0> (10.43.45.109:32814 -> 10.43.45.109:5672) has a client-provided name: nova-conductor:8084:ad247899-a86d-44cb-9cb6-428653378a8a

=ERROR REPORT==== 23-Feb-2017::02:32:45 ===
Error on AMQP connection <0.3843.0> (10.43.45.109:32814 -> 10.43.45.109:5672, state: starting):
AMQPLAIN login refused: user 'openstack' - invalid credentials



   =INFO REPORT==== 23-Feb-2017::02:32:45 ===

closing AMQP connection <0.3843.0> (10.43.45.109:32814 -> 10.43.45.109:5672 - nova-conductor:8084:ad247899-a86d-44cb-9cb6-428653378a8a)

=INFO REPORT==== 23-Feb-2017::02:32:45 ===
accepting AMQP connection <0.3843.0> (10.43.45.109:32814 

-> 10.43.45.109:5672)

=INFO REPORT==== 23-Feb-2017::02:32:45 ===
Connection <0.3843.0> (10.43.45.109:32814 -> 10.43.45.109:5672) has a client-provided name: nova-conductor:8084:ad247899-a86d-44cb-9cb6-428653378a8a

=ERROR REPORT==== 23-Feb-2017::02:32:45 ===
Error on AMQP connection <0.3843.0> (10.43.45.109:32814 -> 10.43.45.109:5672, state: starting):
AMQPLAIN login refused: user 'openstack' - invalid credentials

I changed the password for openstack user and checked but still same error.

In controller openstack-nova-consoleauth.service and openstack-nova-scheduler.service is in activating state but nova-conductor is started .

Feb 23 02:35:56 controller systemd[1]: openstack-nova-scheduler.service holdoff time over, scheduling restart. Feb 23 02:35:56 controller systemd[1]: Starting OpenStack Nova Scheduler Server...

[root@controller rabbitmq]# systemctl status   openstack-nova-conductor.service openstack-nova-novncproxy.service
● openstack-nova-conductor.service - OpenStack Nova Conductor Server
   Loaded: loaded (/usr/lib/systemd/system/openstack-nova-conductor.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2017-02-22 14:41:00 EST; 11h ago
 Main PID: 919 (nova-conductor)
   CGroup: /system.slice/openstack-nova-conductor.service
           ├─ 919 /usr/bin/python2 /usr/bin/nova-conductor
           ├─9688 /usr/bin/python2 /usr/bin/nova-conductor
           └─9689 /usr/bin/python2 /usr/bin/nova-conductor

Any inputs to what could be the issue here???

Br, -Anil Chandy

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2017-02-23 07:42:12 -0500

Anil Chandy gravatar image

Hi , nova-conductor state was showing as down in my controller.

[root@controller rabbitmq]# openstack compute service list
+----+------------------+------------+----------+---------+-------+----------------------------+
| ID | Binary           | Host       | Zone     | Status  | State | Updated At                 |
+----+------------------+------------+----------+---------+-------+----------------------------+
|  1 | nova-scheduler   | controller | internal | enabled | up    | 2017-02-23T13:22:06.000000 |
|  2 | nova-consoleauth | controller | internal | enabled | up    | 2017-02-23T13:22:02.000000 |
|  3 | nova-conductor   | controller | internal | enabled | down  | None                       |
+----+------------------+------------+----------+---------+-------+----------------------------+

I again changed the password for opensatck user

rabbitmqctl change_password openstack RABBIT_PASS

then changed the username and passowrd in /etc/nova/nova.conf in both controller and compute node.

Then stopped the openstack-nova-conductor.service in controller node and restarted it

systemctl stop  openstack-nova-conductor.service 

systemctl restart  openstack-nova-conductor.service

After that stopped and restarted libvirtd.service and openstack-nova-compute.service in compute node

systemctl stop libvirtd.service openstack-nova-compute.service

systemctl restart libvirtd.service openstack-nova-compute.service

and it worked.. :)

[root@controller keystone]# openstack compute service list
+----+------------------+------------+----------+---------+-------+----------------------------+
| ID | Binary           | Host       | Zone     | Status  | State | Updated At                 |
+----+------------------+------------+----------+---------+-------+----------------------------+
|  1 | nova-scheduler   | controller | internal | enabled | up    | 2017-02-23T13:34:56.000000 |
|  2 | nova-consoleauth | controller | internal | enabled | up    | 2017-02-23T13:34:53.000000 |
|  3 | nova-conductor   | controller | internal | enabled | up    | 2017-02-23T13:34:52.000000 |
|  6 | nova-compute     | compute    | nova     | enabled | up    | 2017-02-23T13:34:57.000000 |
+----+------------------+------------+----------+---------+-------+----------------------------+


[root@controller rabbitmq]# tailf /var/log/rabbitmq/rabbit\@controller.log 
accepting AMQP connection <0.5399.0> (10.43.45.109:50536 -> 10.43.45.109:5672)

=INFO REPORT==== 23-Feb-2017::08:32:51 ===
Connection <0.5399.0> (10.43.45.109:50536 -> 10.43.45.109:5672) has a client-provided name: nova-conductor:17639:e153e0c7-cfe8-46f7-a456-894926104055

=INFO REPORT==== 23-Feb-2017::08:32:52 ===
accepting AMQP connection <0.5411.0> (10.43.45.110:56689 -> 10.43.45.109:5672)

=INFO REPORT==== 23-Feb-2017::08:32:52 ===
Connection <0.5411.0> (10.43.45.110:56689 -> 10.43.45.109:5672) has a client-provided name: nova-compute:15785:863f10e7-5512-4ec9-b395-ab21e8cd3d7b

Br, -Anil Chandy

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-02-23 02:47:35 -0500

Seen: 3,276 times

Last updated: Feb 23 '17