Change in vdsm[master]: tests: FakeLVM test command failure

nsoffer at redhat.com nsoffer at redhat.com
Mon Nov 9 19:00:03 UTC 2015


Nir Soffer has posted comments on this change.

Change subject: tests: FakeLVM test command failure
......................................................................


Patch Set 8: Code-Review-1

(1 comment)

https://gerrit.ovirt.org/#/c/47864/8/tests/storagefakelib.py
File tests/storagefakelib.py:

Line 115:                      opened=False,
Line 116:                      active=bool(activate))
Line 117: 
Line 118:         try:
Line 119:             lv_count = int(self.vgmd[vgName]['lv_count']) + 1
Seems that you missed my comment about missing 'lv_count', would be hidden as missing vg.

Should separate getting the vg from modifying it.
Line 120:         except KeyError:
Line 121:             raise se.CannotCreateLogicalVolume(vgName, lvName)
Line 122: 
Line 123:         if (vgName, lvName) in self.lvmd:


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I954b750d744df0dbd9b7ac13138731d80db54bb8
Gerrit-PatchSet: 8
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Adam Litke <alitke at redhat.com>
Gerrit-Reviewer: Adam Litke <alitke at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Nir Soffer <nsoffer at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-HasComments: Yes


More information about the vdsm-patches mailing list