Nova-compute can't connect to Nova-controller
Hello I'm running Ubuntu 14.04LTS and trying to install Kilo (http://docs.openstack.org/kilo/install-guide/install/apt/content/ch_nova.html#compute-service (http://docs.openstack.org/kilo/instal...)).
The issue is: Nova-compute doesn't connect to nova-controller:
+----+------------------+--------+----------+---------+-------+----------------------------+-----------------+
| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+----+------------------+--------+----------+---------+-------+----------------------------+-----------------+
| 1 | nova-cert | ubuntu | internal | enabled | up | 2015-05-21T12:17:52.000000 | - |
| 2 | nova-consoleauth | ubuntu | internal | enabled | up | 2015-05-21T12:17:52.000000 | - |
| 3 | nova-scheduler | ubuntu | internal | enabled | up | 2015-05-21T12:17:49.000000 | - |
| 4 | nova-conductor | ubuntu | internal | enabled | up | 2015-05-21T12:17:52.000000 | - |
+----+------------------+--------+----------+---------+-------+----------------------------+-----------------+
After i moved
[oslo_messaging_rabbit]
rabbit_host = controller
rabbit_userid = openstack
rabbit_password = RABBIT_PASS
to [DEFAULT] section, i got |5| nova-compute status "enabled" state "Up" but, later it changed state to "down".
/var/log/nova/nova-compute.log
2015-05-21 08:13:22.073 2572 **WARNING** nova.compute.resource_tracker [-] **No service record for host ubuntu**
2015-05-21 08:13:22.120 2572 **ERROR** nova.openstack.common.threadgroup [-] **Compute host ubuntu could not be found.**
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 142, in inner
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/nova/conductor/manager.py", line 286, in service_get_all_by
context, result['host'])
File "/usr/lib/python2.7/dist-packages/nova/objects/base.py", line 163, in wrapper
result = fn(cls, context, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/nova/objects/compute_node.py", line 355, in get_all_by_host
raise exception.ComputeHostNotFound(host=host)
I see folowing messages in /var/log/rabbitmq/rabbit@ubuntu.log on controller:
=INFO REPORT==== 21-May-2015::08:13:21 ===
accepting AMQP connection <0.1525.0> (10.0.0.31:51452 -> 10.0.0.11:5672)
=INFO REPORT==== 21-May-2015::08:13:21 ===
accepting AMQP connection <0.1540.0> (10.0.0.31:51453 -> 10.0.0.11:5672)
=INFO REPORT==== 21-May-2015::08:13:22 ===
closing AMQP connection <0.1540.0> (10.0.0.31:51453 -> 10.0.0.11:5672)
=WARNING REPORT==== 21-May-2015::08:13:22 ===
closing AMQP connection <0.1525.0> (10.0.0.31:51452 -> 10.0.0.11:5672):
connection_closed_abruptly
If i try to telnet from compute to controller:
=INFO REPORT==== 21-May-2015::08:29:35 ===
accepting AMQP connection <0.1728.0> (10.0.0.31:51455 -> 10.0.0.11:5672)
=ERROR REPORT==== 21-May-2015::08:29:45 ===
closing AMQP connection <0.1728.0> (10.0.0.31:51455 -> 10.0.0.11:5672):
{handshake_timeout,handshake}
Seems like some issue with RabbitMQ, but i don't see where
/etc/nova/nova.conf
[DEFAULT]
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/var/lock/nova
force_dhcp_release=True
iscsi_helper=tgtadm
libvirt_use_virtio_for_bridges=True
connection_type=libvirt
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
verbose=True
ec2_private_dns_show_ip=True
api_paste_config=/etc/nova/api-paste.ini
volumes_path=/var/lib/nova/volumes
enabled_apis=ec2,osapi_compute,metadata
rpc_backend = rabbit
auth_strategy = keystone
my_ip = 10.0.0.31
vnc_enabled = True
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = 10.0.0.31
novncproxy_base_url = http://controller:6080/vnc_auto.html
verbose = True
rabbit_host = controller
rabbit_userid = openstack
rabbit_password = RABBIT_PASS
[oslo_messaging_rabbit]
#rabbit_host = controller ...
Hi,
anyone got any resolution on this error. I am also facing same error.
Hello Egor, Do you still have the issue or did you manage to resolve it?