<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>148628</bug_id>
          
          <creation_ts>2006-09-22 04:28 0000</creation_ts>
          <short_desc>/etc/init.d/xendomains fails with domains containing numbers</short_desc>
          <delta_ts>2006-10-13 17:06:40 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>2006.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <status_whiteboard>scheduled for app-emulation/xen-tools-3.0.2-r4</status_whiteboard>
          <keywords>Bug</keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>robert.spam.me.senseless@gmail.com</reporter>
          <assigned_to>aross@gentoo.org</assigned_to>
          <cc>xen@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>robert.spam.me.senseless@gmail.com</who>
            <bug_when>2006-09-22 04:28:47 0000</bug_when>
            <thetext>My /etc/xen/auto dir. contains the following line:

name = &quot;debian31&quot;

When I start /etc/init.d/xendomains it gives the domain the title &apos;debian31&quot;&apos; - this should be &apos;debian31&apos; without the &quot;.
# /etc/init.d/xendomains start 
 * Starting Xen domains from /etc/xen/auto 
 * Creating screen session to hold domain consoles ... [ ok ] 
 * Starting domain debian31&quot; ... [ ok ] 

When I shut this down, it doesn&apos;t recognise this domain:
# /etc/init.d/xendomains stop 
 * Shutting down Xen domains from /etc/xen/auto 
 * Not stopping domain debian31&quot; - not running 
 * Closing screen session xen ... 

This seems to screw things up when I reboot - the domain won&apos;t start.

The solution is: don&apos;t use numbers in the xen domain name (maybe the init script should point this out if this is important) OR to replace &quot;:alpha:&quot; with &quot;:alnum:&quot; in line 14 in the /etc/init.d/xendomains script thus

local name_from_file=$(sed -rn &apos;s/^name\W*=\W*\&quot;?([[:alpha:]_]+)\&quot;?\W*;?/\1/p&apos; &quot;${1}&quot; | tail -n 1)

changes to 

local name_from_file=$(sed -rn &apos;s/^name\W*=\W*\&quot;?([[:alnum:]_]+)\&quot;?\W*;?/\1/p&apos; &quot;${1}&quot; | tail -n 1)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aross@gentoo.org</who>
            <bug_when>2006-09-22 07:29:49 0000</bug_when>
            <thetext>Thanks, your fix will be included in -r4</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robert.spam.me.senseless@gmail.com</who>
            <bug_when>2006-09-24 04:51:34 0000</bug_when>
            <thetext>Maybe a few other character should be allowed.  The demo domains have &quot;-&quot; and &quot;.&quot; in them.  I think that these should work run without errors.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aross@gentoo.org</who>
            <bug_when>2006-10-13 17:06:40 0000</bug_when>
            <thetext>Fixed in app-emulation/xen-tools-3.0.2-r4, thanks.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>