<?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>137886</bug_id>
          
          <creation_ts>2006-06-24 15:15 0000</creation_ts>
          <short_desc>&lt;=app-emulation/xen-tools-3.0.2-r2 doesn&apos;t get_domname reliably enough</short_desc>
          <delta_ts>2007-03-04 08:07:12 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>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <keywords>Bug</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mike@gaima.co.uk</reporter>
          <assigned_to>aross@gentoo.org</assigned_to>
          <cc>xen@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>mike@gaima.co.uk</who>
            <bug_when>2006-06-24 15:15:36 0000</bug_when>
            <thetext>Reliably probably isn&apos;t the right word.
Many of the docs I&apos;ve read put semi-colons at the end of each line in the vm config, so that&apos;s what I&apos;ve done on my test system.
get_domname() doesn&apos;t strip that semi-colon off, so making the is_running() check fail whether the vm is actually running or not.
Changing the sed call to:
sed -ne &apos;s/^[ \t]*name[ \t]*=[ \t]*&quot;\([^&quot;]*\)&quot;[;]*/\1/p&apos; $1
(adding a [;] after the last &quot; and before the last *)
makes it work either way of defining config variables.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aross@gentoo.org</who>
            <bug_when>2006-08-13 00:35:41 0000</bug_when>
            <thetext>Thanks for your report and proposed fix.

get_domname() has been rewritten for xen-tools-3.0.2-r3 , which should hit the tree in the next few days (at which point this bug will be resolved).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aross@gentoo.org</who>
            <bug_when>2006-08-14 00:20:05 0000</bug_when>
            <thetext>Fixed xen-tools-3.0.2-r3.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mike@gaima.co.uk</who>
            <bug_when>2006-12-15 04:06:27 0000</bug_when>
            <thetext>Andrew, while your re-write fixed the problem this bug was originally about, you&apos;ve unfortunately introduced a new one.
[[:alpha:]_] should be [[:alnum:]_], or you could use \w.
Numbers are legal in VM names.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aross@gentoo.org</who>
            <bug_when>2006-12-15 20:31:53 0000</bug_when>
            <thetext>Mike, according to bug #148628 the alpha-&gt;alnum fix was included in -r4

Please check to make sure you&apos;re using xen-tools-3.0.2-r4, and let me know so I can properly close this bug.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mike@gaima.co.uk</who>
            <bug_when>2006-12-16 03:38:56 0000</bug_when>
            <thetext>(In reply to comment #4)
&gt; Mike, according to bug #148628 the alpha-&gt;alnum fix was included in -r4
&gt; 
&gt; Please check to make sure you&apos;re using xen-tools-3.0.2-r4, and let me know so I
&gt; can properly close this bug.

Ahh, yes, sorry. I&apos;m testing 3.0.3, and as it fails to install the init scripts I took the first one I saw in ${FILESDIR} which is different than ${FILESDIR}/3.0.2-r4.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aross@gentoo.org</who>
            <bug_when>2007-03-04 08:06:30 0000</bug_when>
            <thetext>Reopening so I can mark as fixed - stupid bugzilla :-)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aross@gentoo.org</who>
            <bug_when>2007-03-04 08:07:12 0000</bug_when>
            <thetext>Fixed in xen-tools-3.0.2-r4.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>