Amit Aviram has posted comments on this change.

Change subject: vm.py: State saving in hotunplugDisk.
......................................................................


Patch Set 2:

(2 comments)

https://gerrit.ovirt.org/#/c/45928/2/vdsm/virt/vm.py
File vdsm/virt/vm.py:

Line 4044:             self._dom.detachDevice(driveXml)
Line 4045:         except libvirt.libvirtError as e:
Line 4046:             self.log.error("Hotunplug failed", exc_info=True)
Line 4047:             if e.get_error_code() == libvirt.VIR_ERR_NO_DOMAIN:
Line 4048:                 return response.error('noVM')
> response.error() is not available in 3.5, look around to see how it was don
Actually this change should not be included in this patch. it is just noise 
from later commits..
Line 4049:             return response.error('hotunplugDisk', e.message)
Line 4050:         else:
Line 4051:             self._devices[hwclass.DISK].remove(drive)
Line 4052: 


Line 4046:             self.log.error("Hotunplug failed", exc_info=True)
Line 4047:             if e.get_error_code() == libvirt.VIR_ERR_NO_DOMAIN:
Line 4048:                 return response.error('noVM')
Line 4049:             return response.error('hotunplugDisk', e.message)
Line 4050:         else:
> You must update the sdIds list as was done in the old code.
Done
Line 4051:             self._devices[hwclass.DISK].remove(drive)
Line 4052: 
Line 4053:             # Find and remove disk device from vm's conf
Line 4054:             for dev in self.conf['devices'][:]:


-- 
To view, visit https://gerrit.ovirt.org/45928
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I2cf18186cbba33d7e74fd15651ffec3149c98e1d
Gerrit-PatchSet: 2
Gerrit-Project: vdsm
Gerrit-Branch: ovirt-3.5
Gerrit-Owner: Tal Nisan <[email protected]>
Gerrit-Reviewer: Amit Aviram <[email protected]>
Gerrit-Reviewer: Francesco Romani <[email protected]>
Gerrit-Reviewer: Nir Soffer <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-HasComments: Yes
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to