Bug 1274145
Summary: | python event-test.py chokes on snapshot revert events | |||
---|---|---|---|---|
Product: | [Community] Virtualization Tools | Reporter: | yafu <yafu> | |
Component: | libvirt-python | Assignee: | Libvirt Maintainers <libvirt-maint> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | ||
Severity: | low | Docs Contact: | ||
Priority: | low | |||
Version: | unspecified | CC: | crobinso, dyuan, fjin, jdenemar, mzhan, yafu, zpeng | |
Target Milestone: | --- | |||
Target Release: | --- | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | LibvirtFirstBug | |||
Fixed In Version: | libvirt-python-4.9.0 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1648890 (view as bug list) | Environment: | ||
Last Closed: | 2018-11-12 13:25:08 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1648890 |
Description
yafu
2015-10-22 05:41:35 UTC
This is a minor issue in the example script, moving to upstream. Tagging as LibvirtFirstBug, this will be something for the GSOC pile. Easy to reproduce: sudo ./examples/event-test.py , then fire up virt-manager, start a VM, create a snapshot, then revert to it. Not only should event-test be extended to handle whatever event is firing that it doesn't know about, we should find a way to have it not choke on such issues in the future. So some solution that isn't blindly trying to access a list index that might not exist This is fixed by This should be already fixed upstream by commit d5342a9803925ca728a33bfc5ffc6b2be0f356a6 Refs: v4.7.0-1-gd5342a9 Author: Philipp Hahn <hahn> AuthorDate: Thu Sep 20 08:10:43 2018 +0200 Commit: Michal Privoznik <mprivozn> CommitDate: Mon Sep 24 09:05:59 2018 +0200 event-test.py: Sync list of domain lifecycle events Add new events to prevent crash: > Traceback (most recent call last): > File "/usr/lib/python2.7/dist-packages/libvirt.py", line 4601, in _dispatchDomainEventCallbacks > cb(self, virDomain(self, _obj=dom), event, detail, opaque) > File "libvirt-python/examples/event-test.py", line 505, in myDomainEventCallback1 > domDetailToString(event, detail))) > File "libvirt-python/examples/event-test.py", line 484, in domDetailToString > return domEventStrings[event][detail] > IndexError: tuple index out of range Signed-off-by: Philipp Hahn <hahn> Signed-off-by: Michal Privoznik <mprivozn> |