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

Re: [Xen-users] xendomains problem with long domain names?

To: Henning Sprang <henning_sprang@xxxxxx>
Subject: Re: [Xen-users] xendomains problem with long domain names?
From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Date: Wed, 3 Jan 2007 14:02:43 +0000
Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 03 Jan 2007 06:02:48 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <5bb00b3f0701030554xc819e4bxd5013ed5f3d759b7@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <5bb00b3f0701030554xc819e4bxd5013ed5f3d759b7@xxxxxxxxxxxxxx>
Reply-to: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.1i
On Wed, Jan 03, 2007 at 02:54:42PM +0100, Henning Sprang wrote:
> I will look deeper into this later, but is it a known problem that
> xendomains seems to be unable to save domains with long names?
> 
> look at this:
> 
> rio:/var/lib/xen/save# /etc/init.d/xendomains stop
> Shutting down Xen domains: service-db(save). service-files(save)..
> service-install(save)... service-monitorin(save)..Error: Domain 'g'
> does not exist.
> Usage: xm save <Domain> <CheckpointFile>
> 
> Save a domain state to restore later.
> !(shut)Error: Domain 'g' does not exist.
> Usage: xm shutdown <Domain> [-waRH]
> 
> Shutdown a domain.
> ! SHUTDOWN_ALL .......
> 
> The domains that fails is actually called service-monitoring, but
> xendomains tries to save a domain named "service-monitorin" and then
> reports that Domain "g" does not exist - very strange, and together
> these two strings make the correct name of the domains which does fail
> to be saved...

'service-monitorin'  is exactly 17 characters long. And if I look at the
shell code in /etc/init.d/xendomains there's this interesting function


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

which is used to parse the output of 'xm list'. The 'cut -c0-17' bit looks
like the obvious problem - truncating the name at 17 characters :-(

Regards,
Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

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

<Prev in Thread] Current Thread [Next in Thread>