Vinzenz Feenstra has uploaded a new change for review.
Change subject: vdsm: Ignore after_vm_cont hook if _dom was not yet created
......................................................................
vdsm: Ignore after_vm_cont hook if _dom was not yet created
There's a race condition happening which results in an exception because the
domain has not yet being assigned/created.
This is a workaround to fix the exception from happening, however this is not
a long term solution.
Change-Id: I0e36f988c965b51855861f04bcebee5ad51d3b09
Signed-off-by: Vinzenz Feenstra <vfeenstr(a)redhat.com>
---
M vdsm/libvirtvm.py
1 file changed, 11 insertions(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/58/12558/1
diff --git a/vdsm/libvirtvm.py b/vdsm/libvirtvm.py
index e2ada06..d76fadf 100644
--- a/vdsm/libvirtvm.py
+++ b/vdsm/libvirtvm.py
@@ -3035,7 +3035,17 @@
elif event == libvirt.VIR_DOMAIN_EVENT_RESUMED:
self._guestCpuRunning = True
if detail == libvirt.VIR_DOMAIN_EVENT_RESUMED_UNPAUSED:
- hooks.after_vm_cont(self._dom.XMLDesc(0), self.conf)
+ # This is not a real solution however the safest way to handle
+ # this for now. Ultimately we need to change the way how we are
+ # creating self._dom.
+ # The event handler delivers the domain instance in the
+ # callback however we do not use it.
+ try:
+ domxml = self._dom.XMLDesc(0)
+ except AttributeError:
+ pass
+ else:
+ hooks.after_vm_pause(domxml, self.conf)
elif (detail == libvirt.VIR_DOMAIN_EVENT_RESUMED_MIGRATED and
self.lastStatus == 'Migration Destination'):
self._incomingMigrationFinished.set()
--
To view, visit http://gerrit.ovirt.org/12558
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0e36f988c965b51855861f04bcebee5ad51d3b09
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Vinzenz Feenstra <vfeenstr(a)redhat.com>
oVirt Jenkins CI Server has posted comments on this change.
Change subject: [WIP] Java client
......................................................................
Patch Set 1:
Build Started http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/1879/ (2/2)
--
To view, visit http://gerrit.ovirt.org/13747
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I1af69cee1aced5c28e48c0c07a1d155be2889036
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Saggi Mizrahi <smizrahi(a)redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: [WIP] Java client
......................................................................
Patch Set 1:
Build Started http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit/1930/ (1/2)
--
To view, visit http://gerrit.ovirt.org/13747
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I1af69cee1aced5c28e48c0c07a1d155be2889036
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Saggi Mizrahi <smizrahi(a)redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server