|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-users
Re: [Xen-users] xendomains problem with long domain names? 
| 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
 | 
 |  | 
  
    |  |  |