The libvirt inspector may can't inspect data from libvirt on some occasions after
libvirtd is restarted, though we have reconnecting logic. When this occurs, it will
raise libvirt.VIR_ERR_INTERNAL_ERROR instead of libvirt.VIR_ERR_SYSTEM_ERROR in
reconnecting logic. This results compute agent no longer reconnects to libvirt, and
fails to inspect data any more. This patch is just updated to deal with INTERNAL_ERROR.
Reviewed: https:/ /review. openstack. org/225699 /git.openstack. org/cgit/ openstack/ ceilometer/ commit/ ?id=7f290fcdb51 eff0e70f5b20922 57eb0f40f3ef5d
Committed: https:/
Submitter: Jenkins
Branch: master
commit 7f290fcdb51eff0 e70f5b2092257eb 0f40f3ef5d
Author: Guangyu Suo <email address hidden>
Date: Mon Sep 21 14:12:17 2015 +0000
Fix reconnecting to libvirt
The libvirt inspector may can't inspect data from libvirt on some occasions after VIR_ERR_ INTERNAL_ ERROR instead of libvirt. VIR_ERR_ SYSTEM_ ERROR in
libvirtd is restarted, though we have reconnecting logic. When this occurs, it will
raise libvirt.
reconnecting logic. This results compute agent no longer reconnects to libvirt, and
fails to inspect data any more. This patch is just updated to deal with INTERNAL_ERROR.
Change-Id: Ifbd754cb050ec7 e364d17fea3b321 91da1e22ef5
Closes-bug: #1498013