+invirt-remote (0.4.20) precise; urgency=low
+
+ * Fix a typo.
+
+ -- Alexander Chernyakhovsky <achernya@mit.edu> Mon, 22 Jul 2013 03:22:48 -0400
+
invirt-remote (0.4.19) precise; urgency=low
* New (c)lvm requires that an LV be deactivated before renamed or resized.
# Rename the LV to something else so we can wipe it before reusing
# the space
if lvm_activation(lvpath, 'n') != 0:
- print >>sys.stderr, "Could not deactivate LV %s", % (lvname,)
+ print >>sys.stderr, "Could not deactivate LV %s" % (lvname,)
sys.exit(1)
while True:
new_lvname = "old_%s_%s" % (lvname, ''.join(random.choice(string.ascii_letters) for i in xrange(6)))
size = sys.argv[4]
ensureoff(machine)
if lvm_activation(lvpath, 'n') != 0:
- print >>sys.stderr, "Could not deactivate LV %s", % (lvname,)
+ print >>sys.stderr, "Could not deactivate LV %s" % (lvname,)
sys.exit(1)
p = Popen(["/sbin/lvresize", "-L", size + "M", lvpath],
stdin=PIPE, stderr=PIPE)
lvpath = "/dev/" + vg + "/" + lvname
new_lvpath = "/dev/" + vg + "/" + newlvname
if lvm_activation(lvpath, 'n') != 0:
- print >>sys.stderr, "Could not deactivate LV %s", % (lvname,)
+ print >>sys.stderr, "Could not deactivate LV %s" % (lvname,)
sys.exit(1)
rv = call(["/sbin/lvrename", vg, lvname, newlvname])
if rv != 0: