Change in vdsm[master]: vdsm: check libvirt availability at startup

fromani at redhat.com fromani at redhat.com
Wed Nov 26 12:19:17 UTC 2014


Francesco Romani has posted comments on this change.

Change subject: vdsm: check libvirt availability at startup
......................................................................


Patch Set 1: Verified+1

Verified as follows, on master, on RHEL 6.6 host
- positive flow/no regression:
  booted a bunch of VMs, restarted VDSM. Recovery flow engaged as usual with no negative effect spotted.
- libvirt brought down (also simulates libvirt slower to respawn). VDSM panics and kills itself as expected, on startup we see in the logs

MainThread::INFO::2014-11-26 13:06:53,188::vdsm::161::vds::(run) <VmStatsThread(Thread-67, started daemon 140609624987392)>
MainThread::INFO::2014-11-26 13:07:13,493::vdsm::151::vds::(run) (PID: 24886) I am the actual vdsm 4.17.0-44.git29cb8b8.el6 toji.rokugan.lan (2.6.32-504.1.3.el6.x86_64)
MainThread::DEBUG::2014-11-26 13:07:13,493::profile::94::root::(_start_profiling) Starting profiling
MainThread::DEBUG::2014-11-26 13:07:13,495::libvirtconnection::154::root::(get) trying to connect libvirt
MainThread::ERROR::2014-11-26 13:07:23,517::utils::1007::root::(panic) Panic: failed to connect to libvirt
Traceback (most recent call last):
  File "/usr/share/vdsm/vdsm", line 83, in serve_clients
    conn = libvirtconnection.get()
  File "/usr/lib/python2.6/site-packages/vdsm/libvirtconnection.py", line 157, in get
    passwd)
  File "/usr/lib/python2.6/site-packages/vdsm/libvirtconnection.py", line 102, in open_connection
    return utils.retry(libvirtOpen, timeout=10, sleep=0.2)
  File "/usr/lib/python2.6/site-packages/vdsm/utils.py", line 935, in retry
    return func()
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 102, in openAuth
    if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirtError: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Connection refused
MainThread::INFO::2014-11-26 13:07:23,683::vdsm::151::vds::(run) (PID: 24903) I am the actual vdsm 4.17.0-44.git29cb8b8.el6 toji.rokugan.lan (2.6.32-504.1.3.el6.x86_64)

-- 
To view, visit http://gerrit.ovirt.org/35596
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I36137a424427b03a5dd3f24b5a7af1af454d0a23
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Francesco Romani <fromani at redhat.com>
Gerrit-Reviewer: Francesco Romani <fromani at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: No


More information about the vdsm-patches mailing list