Package: xen-tools
Version: 4.3.1-1
Severity: normal

Dear Maintainer,

Running on a system which contains Xen (xl) but not xend results in:
    2013-12-18 02:23:56 Z executing ssh ... [email protected]         
xen-create-image \
            --dhcp --mac 5a:36:0e:b9:00:09 \
            --memory 512Mb --swap 1000Mb \
            --dist squeeze \
            --mirror http://10.80.16.196/debian \
            --hostname debian.guest.osstest \
            --lvm marilith-n5 --force \
            --kernel /boot/vmlinuz-3.12.0+ \
            --genpass 0 --password xenroot \
            --initrd /boot/initrd.img-3.12.0+ \
            --arch armhf

    Failed to read /etc/xen/xend-config.sxp: No such file or 
directory2013-12-18 02:23:57 Z runvar store: 
debian_cfgpath=/etc/xen/debian.guest.osstest.cfg
    2013-12-18 02:23:57 Z runvar store: debian_swap_lv=debian.guest.osstest-swap
    + rc=0

(full log is currently at
http://www.chiark.greenend.org.uk/~xensrcts/logs/22457/test-armhf-armhf-xl/7.ts-debian-install.log
 but will likely expire, so also attached).

Upstream Xen has made Xen a configure time option which defaults to off which
will release with Xen 4.4 in the new year. Also the new ARM port will not
include xend even as an option (the above log is actually from the ARM test
because the test infrastructure currently forces xend on for x86). BTW apart
from this issue xen-tools seems to work perfectly fine on armhf.

This was observed on Wheezy but by inspection the version in Sid (4.4-1)
appears to still have this issue.

I also observed a few secondary issues:

The callers of fail() appear for the most part to expect the final "\n" to be
appended to the log but logprint() does not do so (the callers of logprint
appear to get this right and pass "\n" themselves where necessary).

The overall xen-create-image command appears to succeed despite erroring out
early (no domain is actually created).

If xend is installed then the warning/advice to add a network-script setting
to xend-config.sxp is contrary to both upstream Xen and the Debian Xen
maintainer's advice, which is to use /etc/network/interfaces to configure host
level networking, see /usr/share/doc/xen-utils-4.1/README.Debian and
http://wiki.xen.org/wiki/HostConfiguration/Networking. Under xl this is the
only possible way to configure networking.

FYI the xl equivalent of xend-config.sxp:(vif-script FOO) is
/etc/xen/xl.conf:vif.default.script = "FOO". Note that it is also valid  with
both xl and xm to include the script in per-vif configuration string.

Thanks,
Ian.

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.10-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages xen-tools depends on:
ii  cdebootstrap                  0.5.10
ii  debootstrap                   1.0.53
ii  libconfig-inifiles-perl       2.82-1
ii  libdata-validate-domain-perl  0.10-1
ii  libdata-validate-ip-perl      0.20-1
ii  libdata-validate-uri-perl     0.06-1
ii  libfile-slurp-perl            9999.19-2
ii  libfile-which-perl            1.09-1
ii  libterm-ui-perl               0.36-1
ii  libtext-template-perl         1.45-2
ii  openssh-client                1:6.2p2-6
ii  perl                          5.18.1-4
ii  perl-modules                  5.18.1-4

Versions of packages xen-tools recommends:
ii  libexpect-perl                                   1.21-1
ii  rinse                                            2.0.1-1
ii  xen-hypervisor-4.1-amd64 [xen-hypervisor-amd64]  4.1.4-4
ii  xen-utils-4.1 [xen-utils]                        4.1.4-4

Versions of packages xen-tools suggests:
pn  btrfs-tools    <none>
pn  cfengine2      <none>
ii  reiserfsprogs  1:3.6.21-1
ii  xfsprogs       3.1.9

-- no debconf information
+ OSSTEST_JOB=test-armhf-armhf-xl
+ export OSSTEST_JOB
+ ./ts-debian-install
2013-12-18 02:23:41 Z starting 22457.test-armhf-armhf-xl
2013-12-18 02:23:41 Z setting 
all_hostflags=arch-armhf,arch-xen-armhf,suite-wheezy,purpose-test
2013-12-18 02:23:41 Z setting arch=armhf
2013-12-18 02:23:41 Z setting buildjob=build-armhf
2013-12-18 02:23:41 Z setting console=hvc0
2013-12-18 02:23:41 Z setting debian_arch=armhf
2013-12-18 02:23:41 Z setting debian_kernkind=pvops
2013-12-18 02:23:41 Z setting host=marilith-n5
2013-12-18 02:23:41 Z setting host_suite=wheezy
2013-12-18 02:23:41 Z setting kernbuildjob=build-armhf-pvops
2013-12-18 02:23:41 Z setting kernkind=pvops
2013-12-18 02:23:41 Z setting toolstack=xl
2013-12-18 02:23:41 Z setting xenbuildjob=build-armhf
2013-12-18 02:23:41 Z setting xen_kernel_path=/boot/vmlinuz-3.12.0+
2013-12-18 02:23:41 Z setting xen_kernel_ver=3.12.0+
2013-12-18 02:23:41 Z serial method xenuse marilith-n5: 
2013-12-18 02:23:41 Z serial method http marilith-n5: 
http://conserver.uk.xensource.com/consoles/ marilith-n5.txt*
2013-12-18 02:23:41 Z task 216230 ownd [10.80.248.135]:58915: osstest@woking 
22457 test-armhf-armhf-xl
2013-12-18 02:23:41 Z host: selected marilith-n5 fc:2f:40:dd:a8:4c 10.80.229.109
2013-12-18 02:23:41 Z executing ssh ... [email protected] apt-get 
--no-install-recommends -y install lvm2 xen-tools
Reading package lists...
Building dependency tree...
Reading state information...
lvm2 is already the newest version.
The following extra packages will be installed:
  debootstrap libconfig-inifiles-perl libfile-slurp-perl
  liblist-moreutils-perl libtext-template-perl
Suggested packages:
  reiserfsprogs xfsprogs cfengine2 btrfs-tools
Recommended packages:
  xen-hypervisor-amd64 xen-hypervisor-i386 xen-hypervisor-i386-pae rinse
  libexpect-perl xen-utils
The following NEW packages will be installed:
  debootstrap libconfig-inifiles-perl libfile-slurp-perl
  liblist-moreutils-perl libtext-template-perl xen-tools
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 498 kB of archives.
After this operation, 1,424 kB of additional disk space will be used.
Get:1 http://10.80.16.196/debian/ wheezy/main libfile-slurp-perl all 9999.19-1 
[26.2 kB]
Get:2 http://10.80.16.196/debian/ wheezy/main liblist-moreutils-perl armhf 
0.33-1 [49.4 kB]
Get:3 http://10.80.16.196/debian/ wheezy/main debootstrap all 1.0.48+deb7u1 
[60.6 kB]
Get:4 http://10.80.16.196/debian/ wheezy/main libconfig-inifiles-perl all 
2.75-1 [54.8 kB]
Get:5 http://10.80.16.196/debian/ wheezy/main libtext-template-perl all 1.45-2 
[54.9 kB]
Get:6 http://10.80.16.196/debian/ wheezy/main xen-tools all 4.3.1-1 [252 kB]
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin: 
Fetched 498 kB in 2s (245 kB/s)
Selecting previously unselected package libfile-slurp-perl.
(Reading database ... 26610 files and directories currently installed.)
Unpacking libfile-slurp-perl (from .../libfile-slurp-perl_9999.19-1_all.deb) ...
Selecting previously unselected package liblist-moreutils-perl.
Unpacking liblist-moreutils-perl (from 
.../liblist-moreutils-perl_0.33-1_armhf.deb) ...
Selecting previously unselected package debootstrap.
Unpacking debootstrap (from .../debootstrap_1.0.48+deb7u1_all.deb) ...
Selecting previously unselected package libconfig-inifiles-perl.
Unpacking libconfig-inifiles-perl (from 
.../libconfig-inifiles-perl_2.75-1_all.deb) ...
Selecting previously unselected package libtext-template-perl.
Unpacking libtext-template-perl (from .../libtext-template-perl_1.45-2_all.deb) 
...
Selecting previously unselected package xen-tools.
Unpacking xen-tools (from .../xen-tools_4.3.1-1_all.deb) ...
Processing triggers for man-db ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
Setting up libfile-slurp-perl (9999.19-1) ...
Setting up liblist-moreutils-perl (0.33-1) ...
Setting up debootstrap (1.0.48+deb7u1) ...
Setting up libconfig-inifiles-perl (2.75-1) ...
Setting up libtext-template-perl (1.45-2) ...
Setting up xen-tools (4.3.1-1) ...
2013-12-18 02:23:55 Z select_ether 5a:36:0e:b9:... 5a:36:0e:b9:00:09 (previous 
5a:36:0e:b9:00:08)
2013-12-18 02:23:55 Z runvar store: debian_hostname=debian.guest.osstest
2013-12-18 02:23:55 Z runvar store: debian_disk_lv=debian.guest.osstest-disk
2013-12-18 02:23:55 Z runvar store: debian_tcpcheckport=22
2013-12-18 02:23:55 Z runvar store: debian_boot_timeout=40
2013-12-18 02:23:55 Z runvar store: debian_domname=debian.guest.osstest
2013-12-18 02:23:55 Z runvar store: debian_vg=
2013-12-18 02:23:55 Z executing ssh ... [email protected] vgdisplay --colon
2013-12-18 02:23:55 Z vg marilith-n5 476372992kb free - will use
2013-12-18 02:23:55 Z runvar store: debian_vg=marilith-n5
2013-12-18 02:23:55 Z executing ssh ... [email protected] umount 
/dev/marilith-n5/debian.guest.osstest-disk ||:
umount: /dev/marilith-n5/debian.guest.osstest-disk: not found
2013-12-18 02:23:56 Z executing ssh ... [email protected]         
xen-create-image \
            --dhcp --mac 5a:36:0e:b9:00:09 \
            --memory 512Mb --swap 1000Mb \
            --dist squeeze \
            --mirror http://10.80.16.196/debian \
            --hostname debian.guest.osstest \
            --lvm marilith-n5 --force \
            --kernel /boot/vmlinuz-3.12.0+ \
            --genpass 0 --password xenroot \
            --initrd /boot/initrd.img-3.12.0+ \
            --arch armhf

Failed to read /etc/xen/xend-config.sxp: No such file or directory2013-12-18 
02:23:57 Z runvar store: debian_cfgpath=/etc/xen/debian.guest.osstest.cfg
2013-12-18 02:23:57 Z runvar store: debian_swap_lv=debian.guest.osstest-swap
+ rc=0
+ date -u '+%Y-%m-%d %H:%M:%S Z exit status 0'
2013-12-18 02:23:57 Z exit status 0
+ exit 0

Reply via email to