Hi, I found strange behaviors and messages when tested the following commands. - xm create --help [config file] - xm create --help_config [config file] - xm help create <cf.> # xm create --help Usage: create [options] [vars] Create a domain (snip) addresses for virtual network interfaces. This must be a unique value across the entire cluster. Error: Cannot open config file "xmdefconfig" # xm create --help /xen/vm1.conf Usage: create [options] [vars] Create a domain. (snip) addresses for virtual network interfaces. This must be a unique value across the entire cluster. Using config file "/xen/vm1.conf". The following are automically imported: import sys import os import os.path from xen.util.ip import * # xm create --help_config /xen/vm1.conf Using config file "/xen/vm1.conf". The following are automically imported: import sys import os import os.path from xen.util.ip import * # xm help create Usage: create [options] [vars] Create a domain. (snip) addresses for virtual network interfaces. This must be a unique value across the entire cluster. Error: Cannot open config file "xmdefconfig" I made this patch not to display these messages. But I''m wondering whether my approach is right, and the "/etc/xen/xmdefconfig" should be created to solve this problem. I need any comments about this matter or reason why the help_config option''s behavior. Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com> Best regards, Kan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Alastair Tse
2006-Sep-22 16:34 UTC
Re: [Xen-devel] [PATCH][RFC] Fix help option of xm create
On Thu, 2006-09-21 at 22:11 +0900, Masaki Kanno wrote:> Hi, > > I found strange behaviors and messages when tested the following > commands. > - xm create --help [config file] > - xm create --help_config [config file] > - xm help create[snip..] Hi, I put in a patch to fix the --help_config problem after my option parsing error handling clean up. You''re right that it shouldn''t be trying to load anything if --help_config is specified. Thanks, Alastair _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel