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-bugs

[Xen-bugs] [Bug 859] New: xendomains can't handle domains with names lon

To: xen-bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-bugs] [Bug 859] New: xendomains can't handle domains with names longer than 17 chars
From: bugzilla-daemon@xxxxxxxxxxxxxxxxxxx
Date: Sun, 14 Jan 2007 05:42:08 -0800
Delivery-date: Sun, 14 Jan 2007 05:42:45 -0800
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
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=859

           Summary: xendomains can't handle domains with names longer than
                    17 chars
           Product: Xen
           Version: unstable
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Tools
        AssignedTo: xen-bugs@xxxxxxxxxxxxxxxxxxx
        ReportedBy: henning_sprang@xxxxxx


When trying to use xendomains stop and having domains running with names longer
than 17 chars, it comes into trouble.

The reason is the function parseln, which hard cuts xm list output at 17th
character.

A working parseln function would look like this:

parseln()
{
   #name=`echo "$1" | cut -c0-17`
   name=`echo "$1" | cut -d " " -f 1`
   name=${name%% *}
   #rest=`echo "$1" | cut -c18- `
   rest=`echo "$1" | cut -d " " -f 2-`
   read id mem cpu vcpu state tm < <(echo "$rest")
}

See the thread in the mailing list:

http://lists.xensource.com/archives/html/xen-users/2007-01/msg00061.html


-- 
Configure bugmail: 
http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
Xen-bugs mailing list
Xen-bugs@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-bugs

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-bugs] [Bug 859] New: xendomains can't handle domains with names longer than 17 chars, bugzilla-daemon <=