[Pkg-xen-devel] Bug#682202: xcp-squeezed not started on boot
Ian Campbell
ijc at hellion.org.uk
Fri Jul 20 09:13:43 UTC 2012
Package: xcp-squeezed
Version: 1.3.2-9
Severity: important
When trying to start a guest I get:
# xe vm-start name-label=squeeze-2
The server failed to handle your request, due to an internal error. The given message may give details useful for debugging the problem.
message: Failure("The ballooning daemon is not running")
If I then manually run "/etc/init.d/xcp-squeezed start" it appears to (silently)
succeed and I can start the guest.
I do seem to have the necessary start links:
# ls /etc/rc*/*xcp-squeezed
/etc/rc0.d/K01xcp-squeezed /etc/rc3.d/S18xcp-squeezed /etc/rc6.d/K01xcp-squeezed
/etc/rc1.d/K01xcp-squeezed /etc/rc4.d/S18xcp-squeezed
/etc/rc2.d/S18xcp-squeezed /etc/rc5.d/S18xcp-squeezed
But I wonder if this relates to this message which I see on boot (transcribed
from the screen by hand):
xc: error: Could not obtain handle on privileged command interface (2 = No such file or directory): Internal error
Fatal error: exception Xenctrl.Error("Unable to open XC interface")
Error: Connection refused (calling connect )
This immediately follows xcp-networkd but is before the "Starting Xen daemons:
xenfs xenstore" etc which I think is also when /proc/xen is mounted. Presumably
the issue is a missing dependency?
Changing the "Required-Start: ... xend" to just "xen" and rerunning
insserv causes xcp-squeezed to get started on boot. I guess this is due
to the renaming of xend->xen in xen-utils-common, although the new
script "Provides: xend" so I dunno. I suppose you would also want to
depend on the required minimum version of xen-utils-common (4.1.2-4).
However now when I try and start a guest I get:
~# xe vm-start name-label=squeeze-2
The server failed to handle your request, due to an internal error. The given message may give details useful for debugging the problem.
message: missing table
<extra>: host
<extra>:
and after waiting a bit I get:
root at h09:~# xe vm-list
Authentication failed
For usage run: 'xe help'
I tried "/etc/init.d/xcp-xapi restart" which took a while but did
eventually succeed and now "xe vm-start name-label=squeeze-2" works.
In /var/log/daemon.log I find:
Jul 20 09:02:30 h09 xapi: [ warn|h09|26 heartbeat|heartbeat thread D:3a99d7bf5268|startup] thread [heartbeat thread] died
Jul 20 09:02:30 h09 xapi: [ warn|h09|25|control domain memory D:e8383adbfa08|startup] thread [control domain memory] died
Jul 20 09:02:31 h09 xapi: [error|h09|0 thread_zero|Bringing up physical PIFs D:9c09058f02e4|xapi] Network configuration error: SCRIPT_ERROR [script = /sbin/ip, args = link set vif4.0 up, code = 1, stdout = , stderr = Cannot find device "vif4.0"#012]
Jul 20 09:02:32 h09 xapi: [ info|h09|0 thread_zero||watchdog] (Re)starting xapi...
Jul 20 09:02:35 h09 xapi: [error|h09|0 thread_zero|Registering SR plugins D:ec9f329de969|sm_exec] Not scanning /var/lib/xcp/sm for SM backends: directory does not exist
Jul 20 09:02:35 h09 xapi: [error|h09|75|scan one D:ba7e1b263c64|xapi] Caught exception attempting an SR.scan: INTERNAL_ERROR: [ Not_found ]
Jul 20 09:02:35 h09 xapi: [ warn|h09|0 thread_zero|server_init D:65ec2f79406b|startup] task [initialising storage] exception: Api_errors.Server_error("SESSION_INVALID", _)
Jul 20 09:02:35 h09 xapi: [ warn|h09|0 thread_zero|server_init D:65ec2f79406b|startup] task [wait management interface to come up] exception: Api_errors.Server_error("INTERNAL_ERROR", _)
Jul 20 09:02:35 h09 xapi: [ warn|h09|79|Calling on_xapi_initialize event hook in the external authentication plugin D:94fc7e19e159|startup] thread [Calling on_xapi_initialize event hook in the external authentication plugin] died
Jul 20 09:03:05 h09 xapi: [ warn|h09|0 thread_zero|server_init D:48f5c4af1389|startup] task [Listening localhost] exception: Failure("Repeatedly failed to bind: INET 127.0.0.1:80")
Jul 20 09:03:05 h09 xapi: [error|h09|0 thread_zero||xapi] Caught exception at toplevel: 'Failure("Repeatedly failed to bind: INET 127.0.0.1:80")'
Jul 20 09:03:05 h09 xapi: [ info|h09|0 thread_zero||watchdog] received exit code 2
Jul 20 09:03:05 h09 xapi: [ info|h09|0 thread_zero||watchdog] Received bad exit, retrying
Jul 20 09:03:05 h09 xapi: [ info|h09|0 thread_zero||watchdog] (Re)starting xapi...
Jul 20 09:03:05 h09 xapi: [error|h09|80|scan one D:c5861d9f9a12|xapi] Caught exception attempting an SR.scan: INTERNAL_ERROR: [ Unix.Unix_error(63, "connect", "") ]
Jul 20 09:03:05 h09 xapi: [error|h09|0 thread_zero|Registering SR plugins D:a6be6cf646b7|sm_exec] Not scanning /var/lib/xcp/sm for SM backends: directory does not exist
Jul 20 09:03:35 h09 xapi: [error|h09|81|scan one D:6d9bfc3eb80c|xapi] Caught exception attempting an SR.scan: INTERNAL_ERROR: [ Not_found ]
Jul 20 09:03:35 h09 xapi: [ warn|h09|0 thread_zero|server_init D:3ad550ca1aad|startup] task [Listening localhost] exception: Failure("Repeatedly failed to bind: INET 127.0.0.1:80")
Jul 20 09:03:35 h09 xapi: [error|h09|0 thread_zero||xapi] Caught exception at toplevel: 'Failure("Repeatedly failed to bind: INET 127.0.0.1:80")'
Jul 20 09:03:35 h09 xapi: [ info|h09|0 thread_zero||watchdog] received exit code 2
Jul 20 09:03:35 h09 xapi: [ info|h09|0 thread_zero||watchdog] Received 2 bad exits within no-retry-interval. Giving up.
Jul 20 09:04:05 h09 xapi: [error|h09|82|scan one D:f999e631efd9|xapi] Caught exception attempting an SR.scan: INTERNAL_ERROR: [ Unix.Unix_error(63, "connect", "") ]
Jul 20 09:04:35 h09 xapi: [error|h09|84|scan one D:08df987cab9b|xapi] Caught exception attempting an SR.scan: INTERNAL_ERROR: [ Unix.Unix_error(63, "connect", "") ]
Jul 20 09:05:05 h09 xapi: [error|h09|86|scan one D:4ba9fcb6eb86|xapi] Caught exception attempting an SR.scan: INTERNAL_ERROR: [ Unix.Unix_error(63, "connect", "") ]
Jul 20 09:05:35 h09 xapi: [error|h09|87|scan one D:3e7e0228469d|xapi] Caught exception attempting an SR.scan: INTERNAL_ERROR: [ Unix.Unix_error(63, "connect", "") ]
Jul 20 09:06:05 h09 xapi: [error|h09|88|scan one D:1f061cc8a480|xapi] Caught exception attempting an SR.scan: INTERNAL_ERROR: [ Unix.Unix_error(63, "connect", "") ]
which I think corresponds to the initial startup before I restarted:
Jul 20 09:06:15 h09 xapi: [ info|h09|0 thread_zero||watchdog] (Re)starting xapi...
Jul 20 09:06:16 h09 xapi: [error|h09|0 thread_zero|Registering SR plugins D:35c6e7b9c206|sm_exec] Not scanning /var/lib/xcp/sm for SM backends: directory does not exist
As an aside it'd be nice to add some success/failure logging to the
xcp-squeezed initscript.
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages xcp-squeezed depends on:
ii libc6 2.13-33
ii libxen-4.1 4.1.3~rc1+hg-20120614.a9c0a89c08f2-4
ii lsb-base 4.1+Debian7
ii xen-hypervisor-4.1-amd64 [xen-hypervi 4.1.3~rc1+hg-20120614.a9c0a89c08f2-4
ii xen-utils-common 4.1.3~rc1+hg-20120614.a9c0a89c08f2-4
xcp-squeezed recommends no packages.
xcp-squeezed suggests no packages.
-- no debconf information
--
Ian Campbell
Current Noise: Death - Together As One
I don't care where I sit as long as I get fed.
-- Calvin Trillin
More information about the Pkg-xen-devel
mailing list