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] Fedora 12 xen 4.0.0

To: Pasi Kärkkäinen <pasik@xxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Fedora 12 xen 4.0.0
From: Shai Maskit <sjmaskit@xxxxxxxxx>
Date: Thu, 15 Apr 2010 10:56:50 +0300
Cc:
Delivery-date: Thu, 15 Apr 2010 00:58:41 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type :content-transfer-encoding; bh=uqPj33Sx0vGCntdp1mxC/Drwso/BHjCHDkt27XxsvwA=; b=CmkiTPJKFckH5Jrp4a2HRBQWYygrBYfWVOSlUVSkP7XWHE0HOFcdALUOdSAhMGjXeC tBwU5q/yIVrExpYYIPe8B9Rx5WaYZk7Qnt13uMv7L/IbTG0Vk7lewuJ1FIanbKmcU1SD mgFfNHbQlH7K+wB8OQh6MfqUULu5ho54oP924=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=G1ch4Y0SMaeYMNNDv1lrzCD7QbA/GbopAnjr6BIFD7vK8qWY78PkB2uRAOn1We0Gu+ Gh8043EWMjAurN+srEaKvwf7HkcLYpFlYUWc/JHtpyo81979WcqqDTLoAOa1Qin1Ilbh MLxNz2KWwn8VtlA/Yfho9oSPO3bKKKGzZZ+GA=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <s2j4b37069f1004140713y810fe454x67d52017bfc6b4f3@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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <y2t4b37069f1004140528y2a753ca8i2ab7a022ba19351d@xxxxxxxxxxxxxx> <20100414130257.GP1878@xxxxxxxxxxx> <x2q4b37069f1004140633ma28e1649g129ffd8f7c91be29@xxxxxxxxxxxxxx> <20100414133757.GT1878@xxxxxxxxxxx> <s2j4b37069f1004140713y810fe454x67d52017bfc6b4f3@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
i've done some debugging to /usr/sbin/xend and this is what i came up with:

from  /var/log/xen/xend.log:
[2010-04-15 10:50:16 32442] ERROR (SrvDaemon:356) Exception starting
xend (no element found: line 1, column 0)
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/xen/xend/server/SrvDaemon.py",
line 348, in run
    servers = SrvServer.create()
  File "/usr/lib/python2.6/site-packages/xen/xend/server/SrvServer.py",
line 251, in create
    root.putChild('xend', SrvRoot())
  File "/usr/lib/python2.6/site-packages/xen/xend/server/SrvRoot.py",
line 40, in __init__
    self.get(name)
  File "/usr/lib/python2.6/site-packages/xen/web/SrvDir.py", line 84, in get
    val = val.getobj()
  File "/usr/lib/python2.6/site-packages/xen/web/SrvDir.py", line 52, in getobj
    self.obj = klassobj()
  File "/usr/lib/python2.6/site-packages/xen/xend/server/SrvNode.py",
line 30, in __init__
    self.xn = XendNode.instance()
  File "/usr/lib/python2.6/site-packages/xen/xend/XendNode.py", line
1140, in instance
    inst = XendNode()
  File "/usr/lib/python2.6/site-packages/xen/xend/XendNode.py", line
70, in __init__
    saved_host = self.state_store.load_state('host')
  File "/usr/lib/python2.6/site-packages/xen/xend/XendStateStore.py",
line 105, in load_state
    dom = minidom.parse(xml_path)
  File "/usr/lib/python2.6/site-packages/_xmlplus/dom/minidom.py",
line 1915, in parse
    return expatbuilder.parse(file)
  File "/usr/lib/python2.6/site-packages/_xmlplus/dom/expatbuilder.py",
line 926, in parse
    result = builder.parseFile(fp)
  File "/usr/lib/python2.6/site-packages/_xmlplus/dom/expatbuilder.py",
line 211, in parseFile
    parser.Parse("", True)
ExpatError: no element found: line 1, column 0

the file which it's trying to parse is /var/lib/xend/state/host.xml,
which is empty.
which service/module creates this xml file?  do i need to edit it?

thanks!

On Wed, Apr 14, 2010 at 5:13 PM, Shai Maskit <sjmaskit@xxxxxxxxx> wrote:
> [root@kpc35 ~]# ls -ltr /var/run/
> .
> .
> .
> -rw-r--r--. 1 root      root          5 2010-04-14 16:58 xend.pid
> [root@kpc35 ~]# rm /var/run/xend.pid
> rm: remove regular file `/var/run/xend.pid'?
> [root@kpc35 ~]# bash -x /etc/init.d/xend start
> + . /etc/rc.d/init.d/functions
> ++ TEXTDOMAIN=initscripts
> ++ umask 022
> ++ PATH=/sbin:/usr/sbin:/bin:/usr/bin
> ++ export PATH
> ++ '[' -z '' ']'
> ++ COLUMNS=80
> ++ '[' -z '' ']'
> +++ /sbin/consoletype
> ++ CONSOLETYPE=pty
> ++ '[' -f /etc/sysconfig/i18n -a -z '' -a -z '' ']'
> ++ . /etc/profile.d/lang.sh
> ++ unset LANGSH_SOURCED
> ++ '[' -z '' ']'
> ++ '[' -f /etc/sysconfig/init ']'
> ++ . /etc/sysconfig/init
> +++ BOOTUP=color
> +++ RES_COL=60
> +++ MOVE_TO_COL='echo -en \033[60G'
> +++ SETCOLOR_SUCCESS='echo -en \033[0;32m'
> +++ SETCOLOR_FAILURE='echo -en \033[0;31m'
> +++ SETCOLOR_WARNING='echo -en \033[0;33m'
> +++ SETCOLOR_NORMAL='echo -en \033[0;39m'
> +++ LOGLEVEL=3
> +++ PROMPT=yes
> +++ AUTOSWAP=no
> ++ '[' pty = serial ']'
> ++ 
> __sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
> + '[' '!' -d /proc/xen ']'
> + grep -q control_d /proc/xen/capabilities
> + RETVAL=0
> + case "$1" in
> + start
> + echo -n 'Starting xend daemon: '
> Starting xend daemon: + /usr/sbin/xend
> + RETVAL=1
> + test 1 = 0
> + echo_failure
> + '[' color = color ']'
> + echo -en '\033[60G'
>                                                           + echo -n '['
> [+ '[' color = color ']'
> + echo -en '\033[0;31m'
> + echo -n FAILED
> FAILED+ '[' color = color ']'
> + echo -en '\033[0;39m'
> + echo -n ']'
> ]+ echo -ne '\r'
> + return 1
> + echo
>
> + '[' 1 -eq 0 ']'
> + exit 1
> [root@kpc35 ~]#
>
> from what i see, "/usr/sbin/xend" returns 1.
> i'm running Python 2.6.2,
>
> thanks! (again ;)
>
> On Wed, Apr 14, 2010 at 4:37 PM, Pasi Kärkkäinen <pasik@xxxxxx> wrote:
>> On Wed, Apr 14, 2010 at 04:33:49PM +0300, Shai Maskit wrote:
>>> my /etc/fstab doesn't contain any mount information concerning xenfs,
>>> however:
>>>
>>> [root@kpc35 ~]# ls -l /proc/xen/
>>> total 0
>>> -r--r--r--. 1 root root 0 2010-04-13 13:19 capabilities
>>> -rw-------. 1 root root 0 2010-04-13 13:19 privcmd
>>> -rw-------. 1 root root 0 2010-04-13 13:19 xenbus
>>> -rw-------. 1 root root 0 2010-04-13 13:19 xsd_kva
>>> -rw-------. 1 root root 0 2010-04-13 13:19 xsd_port
>>>
>>> so when i tried to add:
>>> none                    /proc/xen               xenfs   defaults        0 0
>>>
>>
>> You don't need that since the fedora init script will try to
>> mount the xenfs automatically, and seemingly it has already done that.
>>
>>
>>> i got:
>>> [root@kpc35 ~]# mount -a
>>> mount: none already mounted or /proc/xen busy
>>>
>>
>> Yes, it's already mounted.
>>
>>> as far as modules:
>>>
>>> [root@kpc35 ~]# lsmod | grep xen
>>> xen_evtchn              3729  1
>>> xenfs                   7726  1
>>>
>>
>> So that's all OK.
>>
>>> >> .
>>> >> [root@kpc35 ~]# service xend status
>>> >> xend dead but pid file exists
>>> >>                                                            [FAILED]
>>> >>
>>
>> Did you try removing the pid file and then restarting xend?
>>
>> -- Pasi
>>
>>
>

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

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