[et-mgmt-tools] [PATCH] Koan virt-path bug
Michael DeHaan
mdehaan at redhat.com
Mon Jul 30 14:39:31 UTC 2007
Adam Rosenwald wrote:
> 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 """
>
> _______________________________________________
> et-mgmt-tools mailing list
> et-mgmt-tools at redhat.com
> https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Committed, thanks!
--Michael
More information about the et-mgmt-tools
mailing list