[extra-computes] Libvirt is down on Non-Ubuntu compute node after power cycle
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Invalid
|
High
|
Victor Ryzhenkin | ||
8.0.x |
Invalid
|
High
|
Victor Ryzhenkin | ||
9.x |
Invalid
|
High
|
Victor Ryzhenkin |
Bug Description
Steps To Reproduce:
1. Deploy OpenStack cluster with 3 controllers and 1 compute node (Ubuntu)
2. Add RHEL-based or CentOS-based compute node to the cluster
3. Check the cluster health, it will work fine.
4. Shutdown non-Ubuntu compute node and power on this node
5. Check the hypervisor status and libvirt process status on compute node
Expected Result:
Compute node should work fine after power cycle.
Observed Result:
libvirt process is down, hyper visor status is "down":
[root@rhel-1 ~]# virsh list
error: failed to connect to the hypervisor
error: no valid connection
error: Failed to connect socket to '/var/run/
We can see that libvirtd is enabled in autostart:
[root@rhel-1 ~]# chkconfig libvirtd
Note: Forwarding request to 'systemctl is-enabled libvirtd.service'.
enabled
tags: | added: area-mos |
Logs from rhel node, /var/log/messages:
Feb 1 08:02:59 rhel-1 nova-compute: 2016-02-01 08:02:59.749 2637 INFO nova.virt. libvirt. driver [-] Connection event '0' reason 'Failed to connect to libvirt' libvirt. host [req-8d03d226- 9d24-4ecb- af6a-3585b750f2 f9 - - - - -] Connection to libvirt failed: Failed to connect socket to '/var/run/ libvirt/ libvirt- sock': No such file or directory# 0122016- 02-01 08:03:00.432 2637 ERROR nova.virt. libvirt. host Traceback (most recent call last):# 0122016- 02-01 08:03:00.432 2637 ERROR nova.virt. libvirt. host File "/usr/lib/ python2. 7/site- packages/ nova/virt/ libvirt/ host.py" , line 528, in get_connection# 0122016- 02-01 08:03:00.432 2637 ERROR nova.virt. libvirt. host conn = self._get_ connection( )#0122016- 02-01 08:03:00.432 2637 ERROR nova.virt. libvirt. host File "/usr/lib/ python2. 7/site- packages/ nova/virt/ libvirt/ host.py" , line 515, in _get_connection #0122016- 02-01 08:03:00.432 2637 ERROR nova.virt. libvirt. host wrapped_conn = self._get_ new_connection( )#0122016- 02-01 08:03:00.432 2637 ERROR nova.virt. libvirt. host File "/usr/lib/ python2. 7/site- packages/ nova/virt/ libvirt/ host.py" , line 467, in _get_new_ connection# 0122016- 02-01 08:03:00.432 2637 ERROR nova.virt. libvirt. host wrapped_conn = self._connect( self._uri, self._read_ only)#0122016- 02-01 08:03:00.432 2637 ERROR nova.virt. libvirt. host File "/usr/lib/ python2. 7/site- packages/ nova/virt/ libvirt/ host.py" , line 321, in _connect# 0122016- 02-01 08:03:00.432 2637 ERROR nova.virt. libvirt. host libvirt.openAuth, uri, auth, flags)# 0122016- 02-01 08:03:00.432 2637 ERROR nova.virt. libvirt. host File "/usr/lib/ python2. 7/site- packages/ eventlet/ tpool.py" , line 141, in proxy_call# 0122016- 02-01 08:03:00.432 2637 ERROR nova.virt. libvirt. host rv = execute(f, *args, **kwargs) #0122016- 02-01 08:03:00.432 2637 ERROR nova.virt. libvirt. host File "/usr/lib/ python2. 7/site- packages/ eventlet/ tpool.py" , line 122, in execute# 0122016- 02-01 08:03:00.432 2637 ERROR nova.virt. libvirt. host six.reraise(c, e, tb)#0122016-02-01 08:03:00.432 2637 ERROR nova.virt. libvirt. host File "/usr/lib/ python2. 7/site- packages/ eventlet/ tpool.py" , line 80, in tworker# 0122016- 02-01 08:03:00.432 2637 ERROR nova.virt. libvirt. host rv = meth(*args, **kwargs) #0122016- 02-01 08:03:00.432 2637 ERROR nova.virt. libvirt. host File "/usr/lib64/ python2. 7/site- packages/ libvirt. py", line 105, in openAuth# 0122016- 02-01 08:03:00.432 2637 ERROR nova.virt. libvirt. host if ret is None:raise libvirtError( 'virConnectOpen Auth() failed' )#0122016- 02-01 08:03:00.432 2637 ERROR nova.virt. libvirt. host libvirtError: Failed to connect socket to '/var/run/ libvirt/ libvirt- sock': No such file or directory# 0122016- 02-01 08:03:00.432 2637 ERROR nova.virt. libvirt. host python2. 7/site- packages/ eventlet/ queue.py" , line 117, in switch switch( value) python2. 7/site- packages/ eventlet/ greenthread. py", line 214, in main
Feb 1 08:03:00 rhel-1 nova-compute: 2016-02-01 08:03:00.432 2637 ERROR nova.virt.
Feb 1 08:03:00 rhel-1 nova-compute: Traceback (most recent call last):
Feb 1 08:03:00 rhel-1 nova-compute: File "/usr/lib/
Feb 1 08:03:00 rhel-1 nova-compute: self.greenlet.
Feb 1 08:03:00 rhel-1 nova-compute: File "/usr/lib/
Feb 1 08...