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/
Home Products Support Community News


[Xen-bugs] [Bug 699] New: Unfriendly error messages in xm create

To: xen-bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-bugs] [Bug 699] New: Unfriendly error messages in xm create
From: bugzilla-daemon@xxxxxxxxxxxxxxxxxxx
Date: Mon, 10 Jul 2006 02:09:51 -0700
Delivery-date: Mon, 10 Jul 2006 02:10:52 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-bugs-request@lists.xensource.com?subject=help>
List-id: Xen Bugzilla <xen-bugs.lists.xensource.com>
List-post: <mailto:xen-bugs@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=unsubscribe>
Reply-to: bugs@xxxxxxxxxxxxxxxxxx
Sender: xen-bugs-bounces@xxxxxxxxxxxxxxxxxxx

           Summary: Unfriendly error messages in xm create
           Product: Xen
           Version: 3.0.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Tools
        AssignedTo: xen-bugs@xxxxxxxxxxxxxxxxxxx
        ReportedBy: o.pernet@xxxxxxxxx

The error messages in xm create are not really friendly at the moment. As an
example, inverting the memory size and domain name in xm mem-set outputs this :

>xm mem-set 1024 domainFoo
ignoring unknown unit
Unexpected error: exceptions.ValueError

Please report to xen-devel@xxxxxxxxxxxxxxxxxxx
Traceback (most recent call last):
  File "/usr/sbin/xm", line 10, in ?
  File "/var/tmp/xen-3.0.1-12.1_slc4.1-root/usr/lib/python/xen/xm/main.py",
line 906, in main
  File "/var/tmp/xen-3.0.1-12.1_slc4.1-root/usr/lib/python/xen/xm/main.py",
line 570, in xm_mem_set
  File "/var/tmp/xen-3.0.1-12.1_slc4.1-root/usr/lib/python/xen/xm/main.py",
line 270, in int_unit
ValueError: invalid literal for int(): domainFo

This is OK, but not really needed : the output should only inform the user that
it has inverted the parameters, that's all.
It gets worse if I use the domain ID instead of the name :

>xm mem-set 1024 41
Error: Domain '1024' not found when running 'xm mem-set'

Which doesn't tell the user at all that she inverted the parameters. But then,
a proper fix to that would probably involve adding command-line flags, which
you probably don't want since averybody is using this in their scripts already.

-- Olivier

Configure bugmail: 
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Xen-bugs mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-bugs] [Bug 699] New: Unfriendly error messages in xm create, bugzilla-daemon <=