]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Update expected error message from lvs
authorAlberto Murillo <alberto.murillo.silva@intel.com>
Tue, 30 Jun 2015 21:12:55 +0000 (16:12 -0500)
committerAlberto Murillo <powerbsd@yahoo.com>
Fri, 3 Jul 2015 19:36:23 +0000 (14:36 -0500)
commita0e2f994ff44db495eb4ccb1fad9d132ec994ce9
tree50d1dc1a40c94fa81fa85f95fc8a8e8f234775f4
parentb2a752ba9819b99254323acc8497eaee63692207
Update expected error message from lvs

drivers/lvm.py uses _volume_not_present() to avoid deleting a snapshot
when it does not exist in the lvm backend. This functions uses brick/
local_dev/lvm.py get_lv_info() which expects "not found" as error message.

Since LVM2 2.102.112, The error message returned by lvs changed
From:
    One or more specified logical volume(s) not found
To:
    Failed to find logical volume \"%s/%s\"

Change-Id: I032a916666918b07d00983a42f10dd8efc17ee8b
Closes-Bug: #1470218
cinder/brick/local_dev/lvm.py
cinder/tests/unit/brick/test_brick_lvm.py