Bug 843387
| Summary: | VDSM: unable to start VM (UnboundLocalError: local variable 'volPath' referenced before assignment) | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Avi Tal <atal> | ||||||
| Component: | vdsm | Assignee: | Eduardo Warszawski <ewarszaw> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Jakub Libosvar <jlibosva> | ||||||
| Severity: | low | Docs Contact: | |||||||
| Priority: | high | ||||||||
| Version: | 6.3 | CC: | abaron, bazulay, cpelland, dkmaster, hateya, iheim, ilvovsky, lpeer, michal.skrivanek, srevivo, ykaul, zdover | ||||||
| Target Milestone: | beta | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | virt | ||||||||
| Fixed In Version: | vdsm-4.9.6-29.0 | Doc Type: | Bug Fix | ||||||
| Doc Text: |
Previously, it was impossible to start a virtual machine in the REST API if the data center contained an activated ISO domain. This was because the local variable 'volPath' was referenced before it was assigned.
It is now possible to start a virtual machine in the REST API if the data center contains an activated ISO domain.
|
Story Points: | --- | ||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2012-12-04 19:03:45 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: | |||||||||
| Attachments: |
|
||||||||
Created attachment 600457 [details]
vdsm log
This appears only when creating VM from template using REST API More specific scenario: 1. add ISO domain 2. Create Template 3. Use REST API to create VM from template 4. Start VM Created attachment 600492 [details]
engine log
http://gerrit.ovirt.org/#/c/6794/ In addition, the input sent for the VM is invalid. Note the specParams values in the drives specification. {'index': '2', 'iface': 'ide', 'specParams': {'path': ''}, 'readonly': 'true', ' deviceId': 'f1127db3-a854-4440-94bf-f633f5d5953e', 'device': 'cdrom', 'type': 'disk'}, {'index': 0, 'iface': 'virtio', 'format': 'cow', 'bootOrder': '1', 'poolID': '92abbb7c-140e-4356-b767-fcce5bfb5907', 'volumeID': 'f7d3d58f-c6b2-4026-b 79e-dd0d6144ad29', 'imageID': '8caa461e-3460-4f7e-99d9-2b4ac73477bc', 'specParams': {}, 'readonly': 'false', 'domainID': '46f1e885-206b-4ffc-9b4b-310d637c1d62', 'optional': 'false', 'deviceId': '8caa461e-3460-4f7e-99d9-2b4ac73477bc', 'ad dress': {'domain': '0x0000', ' slot': '0x05', ' function': '0x0', ' type': 'pci', ' bus': '0x00'}, 'device': 'disk', 'shared': 'false', 'propagateErrors': 'off', 'type': 'disk'} Change-Id: I8ad50c3a3485812f57800bbe6b7318a90fe5b962 I am adding text to the Doc Text field. However, since this bug is still ON_QA, I want to be sure that I am documenting actual behavior and not just writing science fiction. If my Doc Text is incorrect, please alter it and needinfo me, informing me of what I missed. Thanks in advance! Verified with vdsm-4.9.6-44.0.el6_3.x86_64 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2012-1508.html |
Description of problem: Unable to start VM if DC contain an activated ISO domain. Thread-102::ERROR::2012-07-26 10:54:42,386::vm::604::vm.Vm::(_startUnderlyingVm) vmId=`408f0eb9-2d7a-451d-91d4-01b0d8fd2159`::The vm start process failed Traceback (most recent call last): File "/usr/share/vdsm/vm.py", line 570, in _startUnderlyingVm self._run() File "/usr/share/vdsm/libvirtvm.py", line 1294, in _run self.preparePaths(devices[vm.DISK_DEVICES]) File "/usr/share/vdsm/vm.py", line 616, in preparePaths drive['path'] = self.cif.prepareVolumePath(drive, self.id) File "/usr/share/vdsm/clientIF.py", line 227, in prepareVolumePath self.log.info("prepared volume path: %s", volPath) UnboundLocalError: local variable 'volPath' referenced before assignment Steps to Reproduce: 1. attach and activate ISO domain 2. Create linux VM from template 3. start VM Actual results: Can't start due to "local variable 'volPath' referenced before assignment"