Libvirt Error when add ceph as nova backend

asked 2018-10-11 01:08:52 -0600

adhi gravatar image

Hi, Im running my openstack environment with rocky release, and I want to integrate ceph as nova-compute backend, so I followed instruction here : http://superuser.openstack.org/articl...

and this is my nova.conf at my compute node

[DEFAULT]
...
compute_driver=libvirt.LibvirtDriver

[libvirt]
images_type = rbd
images_rbd_pool = vms
images_rbd_ceph_conf = /etc/ceph/ceph.conf
rbd_user = nova
rbd_secret_uuid = a93824e0-2d45-4196-8918-c8f7d7f35c5d
....

and this is log when I restarted the nova compute service :

2018-10-11 01:59:57.123 5275 ERROR nova.virt.libvirt.host [req-f4e2715a-c925-4c12-b8e6-aa550fc588b1 - - - - -] Exception handling connection event: AttributeError: 'NoneType' object has no attribute 'rfind'
2018-10-11 01:59:57.123 5275 ERROR nova.virt.libvirt.host Traceback (most recent call last):
2018-10-11 01:59:57.123 5275 ERROR nova.virt.libvirt.host   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/host.py", line 148, in _dispatch_conn_event
2018-10-11 01:59:57.123 5275 ERROR nova.virt.libvirt.host     handler()
2018-10-11 01:59:57.123 5275 ERROR nova.virt.libvirt.host   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/host.py", line 414, in handler
2018-10-11 01:59:57.123 5275 ERROR nova.virt.libvirt.host     return self._conn_event_handler(*args, **kwargs)
2018-10-11 01:59:57.123 5275 ERROR nova.virt.libvirt.host   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 470, in _handle_conn_event
2018-10-11 01:59:57.123 5275 ERROR nova.virt.libvirt.host     self._set_host_enabled(enabled, reason)
2018-10-11 01:59:57.123 5275 ERROR nova.virt.libvirt.host   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 3780, in _set_host_enabled
2018-10-11 01:59:57.123 5275 ERROR nova.virt.libvirt.host     mount.get_manager().host_up(self._host)
2018-10-11 01:59:57.123 5275 ERROR nova.virt.libvirt.host   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/volume/mount.py", line 134, in host_up
2018-10-11 01:59:57.123 5275 ERROR nova.virt.libvirt.host     self.state = _HostMountState(host, self.generation)
2018-10-11 01:59:57.123 5275 ERROR nova.virt.libvirt.host   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/volume/mount.py", line 229, in __init__
2018-10-11 01:59:57.123 5275 ERROR nova.virt.libvirt.host     mountpoint = os.path.dirname(disk.source_path)
2018-10-11 01:59:57.123 5275 ERROR nova.virt.libvirt.host   File "/usr/lib64/python2.7/posixpath.py", line 129, in dirname
2018-10-11 01:59:57.123 5275 ERROR nova.virt.libvirt.host     i = p.rfind('/') + 1
2018-10-11 01:59:57.123 5275 ERROR nova.virt.libvirt.host AttributeError: 'NoneType' object has no attribute 'rfind'
2018-10-11 01:59:57.123 5275 ERROR nova.virt.libvirt.host 
2018-10-11 01:59:57.231 5275 WARNING nova.compute.monitors [req-df2559f3-5a01-499a-9ac0-3dd9dc255f77 - - - - -] Excluding nova.compute.monitors.cpu monitor virt_driver. Not in the list of enabled monitors (CONF.compute_monitors).
2018-10-11 02:04:57.279 5275 ERROR nova.compute.manager [req-df2559f3-5a01-499a-9ac0-3dd9dc255f77 - - - - -] Error updating resources for node cp2.os-srg.adhi.: TimedOut: [errno 110] error connecting to the cluster
2018-10-11 02:04:57.279 5275 ERROR nova.compute.manager Traceback (most recent call last):
2018-10-11 02:04:57.279 5275 ERROR nova ...
(more)
edit retag flag offensive close merge delete

Comments

I also had turn off the firewall service for compute node & ceph node

adhi gravatar imageadhi ( 2018-10-11 01:11:23 -0600 )edit

Apart from the error messages in the log, is there a problem?

Regarding the firewall: Since OpenStack wants to manage netfilter rules directly, it conflicts with any firewall service like firewalld. I don't know about Ceph though.

Bernd Bausch gravatar imageBernd Bausch ( 2018-10-11 07:21:23 -0600 )edit