[et-mgmt-tools] [PATCH] Koan virt-path bug

Adam Rosenwald thestrider at gmail.com
Sat Jul 28 08:04:51 UTC 2007


With the convention of '--virt-path=Volume_Group', we should examine the 
free space on the 'volume group' -- not the 'logical volume'... Koan 
won't run with --virt-path specified as such... patch below. --A.

""" Begin Patch """

--- app.py.orig 2007-07-28 03:25:52.000000000 -0400
+++ app.py      2007-07-28 04:01:17.000000000 -0400
@@ -985,7 +985,7 @@
                 raise InfoException, "The volume group [%s] does not 
exist." % location
             
             # check free space
-            args = "/usr/sbin/lvs --noheadings -o vg_free --units g %s" 
% location
+            args = "/usr/sbin/vgs --noheadings -o vg_free --units g %s" 
% location
             print args
             cmd = sub_process.Popen(args, stdout=sub_process.PIPE, 
shell=True)
             freespace_str = cmd.communicate()[0]

""" End Patch """




More information about the et-mgmt-tools mailing list