FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora/Linux Management Tools

 
 
LinkBack Thread Tools
 
Old 05-29-2008, 02:21 AM
Hiroyuki Kaguchi
 
Default add error message when the number of vcpus is out of range.

Hi,

When the number of vcpus is out of range, the domain boots with vcpus=1
successfully.
This patch changes the policy that virt-install exits and shows error message.

Thanks,
Signed-off-by: Hiroyuki Kaguchi <fj7025cf@aa.jp.fujitsu.com>

diff -r 4776c61e0fa7 virtinst/cli.py
--- a/virtinst/cli.py Thu May 15 16:13:55 2008 -0400
+++ b/virtinst/cli.py Wed May 28 15:57:32 2008 +0900
@@ -183,11 +183,12 @@ def get_vcpus(vcpus, check_cpu, guest, c
vcpus = int(prompt_for_input(_("How many VCPUs should be attached?")))
except ValueError, e:
print _("ERROR: "), e
- if vcpus:
+ if vcpus is not None:
try:
guest.vcpus = vcpus
except ValueError, e:
print _("ERROR: "), e
+ sys.exit(1)

def get_cpuset(cpuset, mem, guest, conn):
if cpuset and cpuset != "auto":

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 

Thread Tools




All times are GMT. The time now is 08:34 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org