[Et-mgmt-commits-list] [SCM] koan branch, master now at v0.2.9-45-g12cd0fb
Michael DeHaan
mdehaan at redhat.com
Mon Jul 16 22:44:36 UTC 2007
Hello,
This is an automated email from the git hooks/update script, it was
generated because a ref change was pushed to the repository.
Updating branch, master,
via 12cd0fb09988d7e1b789631b1da2404c1369bd20 (commit)
via a3e37105a79f0cac5a11937f690a8cb7f7aee376 (commit)
via 225f07a015526e6d28ec409a38bd81c6192661ca (commit)
via ec182bea137fa9e52aa703a057a175bd15b3f9f0 (commit)
from fa69613fd1a6d3ddabc7cc5fabe55d5bbe05eddb (commit)
- Log -----------------------------------------------------------------
commit 12cd0fb09988d7e1b789631b1da2404c1369bd20
Author: Michael DeHaan <mdehaan at mdehaan.rdu.redhat.com>
Date: Mon Jul 16 18:46:24 2007 -0400
qemu/kvm to LVM partition works.
commit a3e37105a79f0cac5a11937f690a8cb7f7aee376
Author: Michael DeHaan <mdehaan at mdehaan.rdu.redhat.com>
Date: Mon Jul 16 18:44:04 2007 -0400
Brain not working...
commit 225f07a015526e6d28ec409a38bd81c6192661ca
Author: Michael DeHaan <mdehaan at mdehaan.rdu.redhat.com>
Date: Mon Jul 16 18:43:29 2007 -0400
Typo.
commit ec182bea137fa9e52aa703a057a175bd15b3f9f0
Author: Michael DeHaan <mdehaan at mdehaan.rdu.redhat.com>
Date: Mon Jul 16 18:40:10 2007 -0400
Working on LVM
-----------------------------------------------------------------------
Diffstat:
koan/app.py | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/koan/app.py b/koan/app.py
index 7559325..8ca8d83 100755
--- a/koan/app.py
+++ b/koan/app.py
@@ -876,16 +876,12 @@ class Koan:
else:
raise InfoException, "invalid location: %s" % location
elif location.startswith("/dev/"):
- #if self.virt_type != "xenpv":
- # raise InfoException, "partition storage not supported for this virt type"
# partition
if os.path.exists(location):
return (location, True)
else:
raise InfoException, "virt path is not a valid block device"
else:
- if self.virt_type != "xenpv":
- raise InfoException, "LVM storage not supported for this virt type"
# it's a volume group, verify that it exists
args = "/usr/sbin/vgs -o vg_name"
print "%s" % args
@@ -916,7 +912,7 @@ class Koan:
print lvs_str
# have to create it?
- if not lvs_str.find(name):
+ if lvs_str.find(name) == -1:
args = "/usr/sbin/lvcreate -L %sG -n %s %s" % (virt_size, name, location)
print "%s" % args
lv_create = sub_process.call(args, shell=True)
@@ -924,7 +920,7 @@ class Koan:
raise InfoException, "LVM creation failed"
# return partition location
- return ("/dev/%s/%s" % (location,name), True)
+ return ("/dev/mapper/%s-%s" % (location,name), True)
else:
raise InfoException, "volume group [%s] needs %s GB free space." % virt_size
hooks/update
---
Git Source Code Management System
hooks/update refs/heads/master \
fa69613fd1a6d3ddabc7cc5fabe55d5bbe05eddb \
12cd0fb09988d7e1b789631b1da2404c1369bd20
More information about the Et-mgmt-commits-list
mailing list