WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH][RFC] Fix help option of xm create

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH][RFC] Fix help option of xm create
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Thu, 21 Sep 2006 22:11:18 +0900
Delivery-date: Thu, 21 Sep 2006 06:12:06 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxx>

Best regards,
 Kan

Attachment: help_create.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>