[Debian-ha-maintainers] Bug#743977: drbd8: Xen resource script fails when using the xl stack

Arno Töll arno at debian.org
Tue Apr 8 22:31:34 UTC 2014


Source: drbd8
Severity: important

The DRBD resource script for Xen (/etc/xen/scripts/block-drbd) does not work when
using the xl toolstack anymore, which is exclusively available in xen 4.2 and
later (i.e. the current Testing).

First of all, it needs the patch mentioned in [1] for basic support. However, when
using it in conjunction with pygrub, it fails to find its boot device, whereas
this worked fine earlier.


Consider this configuration domu.cfg:

bootloader = '/usr/lib/xen-4.3/bin/pygrub'
disk        = [
                  'drbd:web1,xvda1,w',
              ]

it fails with:

xl create -c /etc/xen/auto/matrix-web1.cfg 
Parsing config from /etc/xen/auto/matrix-web1.cfg
libxl: error: libxl_bootloader.c:628:bootloader_finished: bootloader failed - consult logfile /var/log/xen/bootloader.22.log
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: bootloader [20386] exited with error status 1
libxl: error: libxl_create.c:900:domcreate_rebuild_done: cannot (re-)build domain: -3
libxl: error: libxl_dom.c:35:libxl__domain_type: unable to get domain type for domid=22
Unable to attach console
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: console child [0] exited with error status 1


# cat /var/log/xen/bootloader.22.log
Traceback (most recent call last):
  File "/usr/lib/xen-4.3/bin/pygrub", line 799, in <module>
    part_offs = get_partition_offsets(file)
  File "/usr/lib/xen-4.3/bin/pygrub", line 106, in get_partition_offsets
    image_type = identify_disk_image(file)
  File "/usr/lib/xen-4.3/bin/pygrub", line 48, in identify_disk_image
    fd = os.open(file, os.O_RDONLY)
OSError: [Errno 2] No such file or directory: 'web1'

However, with the configuration:

kernel = "/boot/vmlinuz-3.2.0-4-amd64"
ramdisk = "/boot/initrd.img-3.2.0-4-amd64"
disk        = [
                  'drbd:web1,xvda1,w',
              ]


it works fine. I guess the resource script needs a few more tweaks to work with pygrub.



[1] http://lists.linbit.com/pipermail/drbd-user/2014-April/thread.html


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

Kernel: Linux 3.9-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



More information about the Debian-ha-maintainers mailing list