nasm
2011-Oct-29 15:28 UTC
[Pkg-xen-devel] Bug#644100: Boot loader didn't return any data! if reboot domU with disk DRBD
Package: xen-utils-4.0 Version: 4.0.1-2 If you reboot with the DomU disk DRBD domain destroy. pygrub error when trying to run a image on DRBD device My config DomU ------------------------------------------------------ bootloader = '/usr/lib/xen-default/bin/pygrub' vcpus = '1' memory = '256' cpus="8-15" root = '/dev/xvda2 ro' #disk = [ # 'phy:/dev/vg/abook-disk,xvda2,w', # 'phy:/dev/vg/abook-swap,xvda1,w', # ] disk = [ 'drbd:abook-disk,xvda2,w', 'drbd:abook-swap,xvda1,w', ] # # Hostname # name = 'abook' # # Networking # vif = [ 'ip=192.168.1.29,mac=00:16:3E:8A:E6:D8' ] # # Behaviour # on_poweroff = 'destroy' on_reboot = 'restart' on_crash = 'restart' -------------------------------------------------------------- My Log -------------------------------------------------------------- [2011-10-29 21:03:48 26862] DEBUG (XendDomainInfo:101) XendDomainInfo.create(['vm', ['name', 'abook'], ['memory', '256'], ['on_poweroff', 'destroy'], ['on_reboot', 'restart'], ['on_crash', 'restart'], ['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['vcpus', '1'], ['cpus', '8-15'], ['oos' , 1], ['bootloader', '/usr/lib/xen-default/bin/pygrub'], ['bootloader_args', '-q'], ['image', ['linux', ['root', '/dev/xvda2 ro'], ['videoram', 4], [ 'tsc_mode', 0], ['nomigrate', 0]]], ['s3_integrity', 1], ['device', ['vbd', ['uname', 'drbd:abook-disk'], ['dev', 'xvda2'], ['mode', 'w']]], ['device ', ['vbd', ['uname', 'drbd:abook-swap'], ['dev', 'xvda1'], ['mode', 'w']]], ['device', ['vif', ['ip', '192.168.1.29'], ['mac', '00:16:3E:8A:E6:D8']]] ]) [2011-10-29 21:03:48 26862] DEBUG (XendDomainInfo:2508) XendDomainInfo.constructDomain [2011-10-29 21:03:48 26862] DEBUG (balloon:220) Balloon: 42503852 KiB free; need 16384; done. [2011-10-29 21:03:48 26862] DEBUG (XendDomain:464) Adding Domain: 42 [2011-10-29 21:03:48 26862] DEBUG (XendDomainInfo:2818) XendDomainInfo.initDomain: 42 256 [2011-10-29 21:03:48 27141] DEBUG (XendBootloader:113) Launching bootloader as ['/usr/lib/xen-default/bin/pygrub', '--args=root=/dev/xvda2 ro ', '--o utput=/var/run/xend/boot/xenbl.19733', '-q', '/dev/drbd0']. [2011-10-29 21:03:48 26862] DEBUG (XendDomainInfo:2845) _initDomain:shadow_memory=0x0, memory_static_max=0x10000000, memory_static_min=0x0. [2011-10-29 21:03:48 26862] INFO (image:182) buildDomain os=linux dom=42 vcpus=1 [2011-10-29 21:03:48 26862] DEBUG (image:721) domid = 42 [2011-10-29 21:03:48 26862] DEBUG (image:722) memsize = 256 [2011-10-29 21:03:48 26862] DEBUG (image:723) image = /var/run/xend/boot/boot_kernel.yYQMIn [2011-10-29 21:03:48 26862] DEBUG (image:724) store_evtchn = 1 [2011-10-29 21:03:48 26862] DEBUG (image:725) console_evtchn = 2 [2011-10-29 21:03:48 26862] DEBUG (image:726) cmdline = root=/dev/xvda2 ro root=/dev/xvda2 ro [2011-10-29 21:03:48 26862] DEBUG (image:727) ramdisk = /var/run/xend/boot/boot_ramdisk.cU5HRl [2011-10-29 21:03:48 26862] DEBUG (image:728) vcpus = 1 [2011-10-29 21:03:48 26862] DEBUG (image:729) features [2011-10-29 21:03:48 26862] DEBUG (image:730) flags = 0 [2011-10-29 21:03:48 26862] DEBUG (image:731) superpages = 0 [2011-10-29 21:03:49 26862] INFO (XendDomainInfo:2367) createDevice: vbd : {'uuid': '9fabbd7b-d23e-a24b-34f5-0af402bfeb98', 'bootable': 1, 'driver': 'paravirtualised', 'dev': 'xvda2', 'uname': 'drbd:abook-disk', 'mode': 'w'} [2011-10-29 21:03:49 26862] DEBUG (DevController:95) DevController: writing {'virtual-device': '51714', 'device-type': 'disk', 'protocol': 'x86_64-ab i', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vbd/42/51714'} to /local/domain/42/device/vbd/51714. [2011-10-29 21:03:49 26862] DEBUG (DevController:97) DevController: writing {'domain': 'abook', 'frontend': '/local/domain/42/device/vbd/51714', 'uui d': '9fabbd7b-d23e-a24b-34f5-0af402bfeb98', 'bootable': '1', 'dev': 'xvda2', 'state': '1', 'params': 'abook-disk', 'mode': 'w', 'online': '1', 'front end-id': '42', 'type': 'drbd'} to /local/domain/0/backend/vbd/42/51714. [2011-10-29 21:03:49 26862] INFO (XendDomainInfo:2367) createDevice: vbd : {'uuid': 'f0f319f9-ce6e-798e-205d-ef667d325d42', 'bootable': 0, 'driver': 'paravirtualised', 'dev': 'xvda1', 'uname': 'drbd:abook-swap', 'mode': 'w'} [2011-10-29 21:03:49 26862] DEBUG (DevController:95) DevController: writing {'virtual-device': '51713', 'device-type': 'disk', 'protocol': 'x86_64-ab i', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vbd/42/51713'} to /local/domain/42/device/vbd/51713. [2011-10-29 21:03:49 26862] DEBUG (DevController:97) DevController: writing {'domain': 'abook', 'frontend': '/local/domain/42/device/vbd/51713', 'uui d': 'f0f319f9-ce6e-798e-205d-ef667d325d42', 'bootable': '0', 'dev': 'xvda1', 'state': '1', 'params': 'abook-swap', 'mode': 'w', 'online': '1', 'front end-id': '42', 'type': 'drbd'} to /local/domain/0/backend/vbd/42/51713. [2011-10-29 21:03:49 26862] INFO (XendDomainInfo:2367) createDevice: vif : {'ip': '192.168.1.29', 'mac': '00:16:3E:8A:E6:D8', 'uuid': '0a2a5b6a-e18e- 748a-aa66-fdd8261d933b'} [2011-10-29 21:03:49 26862] DEBUG (DevController:95) DevController: writing {'mac': '00:16:3E:8A:E6:D8', 'handle': '0', 'protocol': 'x86_64-abi', 'ba ckend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/42/0'} to /local/domain/42/device/vif/0. [2011-10-29 21:03:49 26862] DEBUG (DevController:97) DevController: writing {'domain': 'abook', 'handle': '0', 'uuid': '0a2a5b6a-e18e-748a-aa66-fdd82 61d933b', 'script': '/etc/xen/scripts/vif-bridge', 'ip': '192.168.1.29', 'mac': '00:16:3E:8A:E6:D8', 'frontend-id': '42', 'state': '1', 'online': '1' , 'frontend': '/local/domain/42/device/vif/0'} to /local/domain/0/backend/vif/42/0. [2011-10-29 21:03:49 26862] DEBUG (XendDomainInfo:3400) Storing VM details: {'on_xend_stop': 'ignore', 'shadow_memory': '0', 'uuid': '6c50c3e2-9ba3-8 987-eb60-c3c23a2a1331', 'on_reboot': 'restart', 'start_time': '1319900629.5', 'on_poweroff': 'destroy', 'bootloader_args': '-q', 'on_xend_start': 'ig nore', 'on_crash': 'restart', 'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail': '1', 'bootloader': '/usr/lib/xen-default/bin/pygrub', 'image': " (linux (kernel ) (args 'root=/dev/xvda2 ro ') (superpages 0) (tsc_mode 0) (videoram 4) (pci ()) (nomigrate 0) (notes (HV_START_LOW 184466033362211962 88) (FEATURES '!writable_page_tables|pae_pgdir_above_4gb') (VIRT_BASE 18446744071562067968) (GUEST_VERSION 2.6) (PADDR_OFFSET 0) (GUEST_OS linux) (HY PERCALL_PAGE 18446744071578882048) (LOADER generic) (SUSPEND_CANCEL 1) (PAE_MODE yes) (ENTRY 18446744071584121344) (XEN_VERSION xen-3.0)))", 'name': 'abook'} [2011-10-29 21:03:49 26862] DEBUG (XendDomainInfo:1804) Storing domain details: {'console/ring-ref': '10597440', 'image/entry': '18446744071584121344 ', 'console/port': '2', 'store/ring-ref': '10597441', 'image/loader': 'generic', 'vm': '/vm/6c50c3e2-9ba3-8987-eb60-c3c23a2a1331', 'control/platform- feature-multiprocessor-suspend': '1', 'image/hv-start-low': '18446603336221196288', 'image/guest-os': 'linux', 'image/virt-base': '184467440715620679 68', 'memory/target': '262144', 'image/guest-version': '2.6', 'image/pae-mode': 'yes', 'description': '', 'console/limit': '1048576', 'image/paddr-of fset': '0', 'image/hypercall-page': '18446744071578882048', 'image/suspend-cancel': '1', 'cpu/0/availability': 'online', 'image/features/pae-pgdir-ab ove-4gb': '1', 'image/features/writable-page-tables': '0', 'console/type': 'xenconsoled', 'name': 'abook', 'domid': '42', 'image/xen-version': 'xen-3 .0', 'store/port': '1'} [2011-10-29 21:03:49 26862] DEBUG (DevController:95) DevController: writing {'protocol': 'x86_64-abi', 'state': '1', 'backend-id': '0', 'backend': '/ local/domain/0/backend/console/42/0'} to /local/domain/42/device/console/0. [2011-10-29 21:03:49 26862] DEBUG (DevController:97) DevController: writing {'domain': 'abook', 'frontend': '/local/domain/42/device/console/0', 'uui d': 'c2e70d3c-4d93-1214-939e-a96c965a5a08', 'frontend-id': '42', 'state': '1', 'location': '2', 'online': '1', 'protocol': 'vt100'} to /local/domain/ 0/backend/console/42/0. [2011-10-29 21:03:49 26862] DEBUG (XendDomainInfo:1891) XendDomainInfo.handleShutdownWatch [2011-10-29 21:03:49 26862] DEBUG (DevController:139) Waiting for devices vif2. [2011-10-29 21:03:49 26862] DEBUG (DevController:139) Waiting for devices vif. [2011-10-29 21:03:49 26862] DEBUG (DevController:144) Waiting for 0. [2011-10-29 21:03:49 26862] DEBUG (DevController:628) hotplugStatusCallback /local/domain/0/backend/vif/42/0/hotplug-status. [2011-10-29 21:03:49 26862] DEBUG (DevController:642) hotplugStatusCallback 1. [2011-10-29 21:03:49 26862] DEBUG (DevController:139) Waiting for devices vscsi. [2011-10-29 21:03:49 26862] DEBUG (DevController:139) Waiting for devices vbd. [2011-10-29 21:03:49 26862] DEBUG (DevController:144) Waiting for 51714. [2011-10-29 21:03:49 26862] DEBUG (DevController:628) hotplugStatusCallback /local/domain/0/backend/vbd/42/51714/hotplug-status. [2011-10-29 21:03:49 26862] DEBUG (DevController:628) hotplugStatusCallback /local/domain/0/backend/vbd/42/51714/hotplug-status. [2011-10-29 21:03:49 26862] DEBUG (DevController:642) hotplugStatusCallback 1. [2011-10-29 21:03:49 26862] DEBUG (DevController:144) Waiting for 51713. [2011-10-29 21:03:49 26862] DEBUG (DevController:628) hotplugStatusCallback /local/domain/0/backend/vbd/42/51713/hotplug-status. [2011-10-29 21:03:50 26862] DEBUG (DevController:628) hotplugStatusCallback /local/domain/0/backend/vbd/42/51713/hotplug-status. [2011-10-29 21:03:50 26862] DEBUG (DevController:642) hotplugStatusCallback 1. [2011-10-29 21:03:51 26862] DEBUG (DevController:139) Waiting for devices ioports. [2011-10-29 21:03:51 26862] DEBUG (DevController:139) Waiting for devices irq. [2011-10-29 21:03:51 26862] DEBUG (DevController:139) Waiting for devices vkbd. [2011-10-29 21:03:51 26862] DEBUG (DevController:139) Waiting for devices vfb. [2011-10-29 21:03:51 26862] DEBUG (DevController:139) Waiting for devices console. [2011-10-29 21:03:51 26862] DEBUG (DevController:144) Waiting for 0. [2011-10-29 21:03:51 26862] DEBUG (DevController:139) Waiting for devices pci. [2011-10-29 21:03:51 26862] DEBUG (DevController:139) Waiting for devices tap2. [2011-10-29 21:03:51 26862] DEBUG (DevController:139) Waiting for devices tap. [2011-10-29 21:03:51 26862] DEBUG (DevController:139) Waiting for devices vusb. [2011-10-29 21:03:51 26862] DEBUG (DevController:139) Waiting for devices vtpm. [2011-10-29 21:03:51 26862] INFO (XendDomain:1206) Domain abook (42) unpaused. [2011-10-29 21:07:41 26862] INFO (XendDomainInfo:2088) Domain has shutdown: name=abook id=42 reason=reboot. [2011-10-29 21:07:41 26862] DEBUG (XendDomainInfo:3053) XendDomainInfo.destroy: domid=42 [2011-10-29 21:07:41 26862] DEBUG (XendDomainInfo:2411) Destroying device model [2011-10-29 21:07:41 26862] DEBUG (XendDomainInfo:2418) Releasing devices [2011-10-29 21:07:41 26862] DEBUG (XendDomainInfo:2424) Removing vif/0 [2011-10-29 21:07:41 26862] DEBUG (XendDomainInfo:1286) XendDomainInfo.destroyDevice: deviceClass = vif, device = vif/0 [2011-10-29 21:07:41 26862] DEBUG (XendDomainInfo:2424) Removing vbd/51714 [2011-10-29 21:07:41 26862] DEBUG (XendDomainInfo:1286) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/51714 [2011-10-29 21:07:41 26862] DEBUG (XendDomainInfo:2424) Removing vbd/51713 [2011-10-29 21:07:41 26862] DEBUG (XendDomainInfo:1286) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/51713 [2011-10-29 21:07:41 26862] DEBUG (XendDomainInfo:2424) Removing console/0 [2011-10-29 21:07:41 26862] DEBUG (XendDomainInfo:1286) XendDomainInfo.destroyDevice: deviceClass = console, device = console/0 [2011-10-29 21:07:41 26862] DEBUG (XendDomainInfo:123) XendDomainInfo.create_from_dict({'vcpus_params': {'cap': 0, 'weight': 256}, 'PV_args': 'root=/ dev/xvda2 ro ', 'other_config': {}, 'features': '', 'cpus': [[8, 9, 10, 11, 12, 13, 14, 15]], 'paused': 0, 'use_tmp_kernel': True, 'domid': 42, 'memo ry_sharing': 0, 'superpages': 0, 'VCPUs_live': 1, 'PV_bootloader': '/usr/lib/xen-default/bin/pygrub', 'actions_after_crash': 'restart', 'vbd_refs': [ '9fabbd7b-d23e-a24b-34f5-0af402bfeb98', 'f0f319f9-ce6e-798e-205d-ef667d325d42'], 'PV_ramdisk': '', 'memory_dynamic_min': 268435456, '_temp_ramdisk': '/var/run/xend/boot/boot_ramdisk.cU5HRl', 'name_label': 'abook', 'VCPUs_at_startup': 1, 'HVM_boot_params': {}, 'platform': {'tsc_mode': 0, 'videoram' : 4, 'pci': [], 'nomigrate': 0}, 'PV_kernel': '', 'console_refs': ['c2e70d3c-4d93-1214-939e-a96c965a5a08'], 'online_vcpus': 1, 'vif_refs': ['0a2a5b6a -e18e-748a-aa66-fdd8261d933b'], 'blocked': 0, 'on_xend_stop': 'ignore', 'shutdown': 0, 'HVM_boot_policy': '', 'description': '', 'shutdown_reason': 1 , 'VCPUs_max': 1, 'start_time': 1319900629.4997361, 'memory_static_max': 268435456, 'actions_after_shutdown': 'destroy', 'use_tmp_ramdisk': True, 'on _xend_start': 'ignore', 'crashed': 0, 'memory_dynamic_max': 268435456, 'actions_after_suspend': '', 'is_a_template': False, 'PV_bootloader_args': '-q ', 'is_control_domain': False, '_temp_args': 'root=/dev/xvda2 ro root=/dev/xvda2 ro ', 'cpu_time': 2.5453097370000002, 'shadow_memory': 0, 'memory_st atic_min': 0, 'dying': 0, 'vcpu_avail': 1, 'notes': {'HV_START_LOW': 18446603336221196288L, 'FEATURES': '!writable_page_tables|pae_pgdir_above_4gb', 'VIRT_BASE': 18446744071562067968L, 'GUEST_VERSION': '2.6', 'PADDR_OFFSET': 0, 'GUEST_OS': 'linux', 'HYPERCALL_PAGE': 18446744071578882048L, 'LOADER' : 'generic', 'SUSPEND_CANCEL': 1, 'PAE_MODE': 'yes', 'ENTRY': 18446744071584121344L, 'XEN_VERSION': 'xen-3.0'}, '_temp_kernel': '/var/run/xend/boot/b oot_kernel.yYQMIn', 'auto_power_on': False, 'uuid': '6c50c3e2-9ba3-8987-eb60-c3c23a2a1331', 'actions_after_reboot': 'restart', 'Description': '', '_t emp_using_bootloader': '1', 'target': 0, 'running': 0, 'vtpm_refs': [], 's3_integrity': 1, 'devices': {'9fabbd7b-d23e-a24b-34f5-0af402bfeb98': ('vbd' , {'uuid': '9fabbd7b-d23e-a24b-34f5-0af402bfeb98', 'bootable': 1, 'devid': 51714, 'driver': 'paravirtualised', 'dev': 'xvda2', 'uname': 'drbd:abook-d isk', 'mode': 'w'}), 'f0f319f9-ce6e-798e-205d-ef667d325d42': ('vbd', {'uuid': 'f0f319f9-ce6e-798e-205d-ef667d325d42', 'bootable': 0, 'devid': 51713, 'driver': 'paravirtualised', 'dev': 'xvda1', 'uname': 'drbd:abook-swap', 'mode': 'w'}), '0a2a5b6a-e18e-748a-aa66-fdd8261d933b': ('vif', {'ip': '192.1 68.1.29', 'mac': '00:16:3E:8A:E6:D8', 'devid': 0, 'uuid': '0a2a5b6a-e18e-748a-aa66-fdd8261d933b'}), 'c2e70d3c-4d93-1214-939e-a96c965a5a08': ('console ', {'other_config': {}, 'protocol': 'vt100', 'uuid': 'c2e70d3c-4d93-1214-939e-a96c965a5a08', 'location': '2'})}}) [2011-10-29 21:07:41 26862] DEBUG (XendDomainInfo:2508) XendDomainInfo.constructDomain [2011-10-29 21:07:41 26862] DEBUG (XendDomain:464) Adding Domain: 43 [2011-10-29 21:07:41 26862] DEBUG (XendDomainInfo:2818) XendDomainInfo.initDomain: 43 256 [2011-10-29 21:07:41 27780] DEBUG (XendBootloader:113) Launching bootloader as ['/usr/lib/xen-default/bin/pygrub', '--args=root=/dev/xvda2 ro ', '--o utput=/var/run/xend/boot/xenbl.23192', '-q', '/dev/drbd0']. [2011-10-29 21:07:41 26862] ERROR (XendBootloader:214) Boot loader didn't return any data! [2011-10-29 21:07:41 26862] ERROR (XendDomainInfo:483) VM start failed Traceback (most recent call last): File "/usr/lib/xen-4.0/bin/../lib/python/xen/xend/XendDomainInfo.py", line 469, in start XendTask.log_progress(31, 60, self._initDomain) File "/usr/lib/xen-4.0/lib/python/xen/xend/XendTask.py", line 209, in log_progress retval = func(*args, **kwds) File "/usr/lib/xen-4.0/bin/../lib/python/xen/xend/XendDomainInfo.py", line 2820, in _initDomain self._configureBootloader() File "/usr/lib/xen-4.0/bin/../lib/python/xen/xend/XendDomainInfo.py", line 3266, in _configureBootloader bootloader_args, kernel, ramdisk, args) File "/usr/lib/xen-4.0/lib/python/xen/xend/XendBootloader.py", line 215, in bootloader raise VmError, msg VmError: Boot loader didn't return any data! [2011-10-29 21:07:41 26862] DEBUG (XendDomainInfo:3053) XendDomainInfo.destroy: domid=43 [2011-10-29 21:07:41 26862] DEBUG (XendDomainInfo:2416) No device model [2011-10-29 21:07:41 26862] DEBUG (XendDomainInfo:2418) Releasing devices [2011-10-29 21:07:41 26862] ERROR (XendDomainInfo:128) Domain construction failed Traceback (most recent call last): File "/usr/lib/xen-4.0/bin/../lib/python/xen/xend/XendDomainInfo.py", line 126, in create_from_dict vm.start() File "/usr/lib/xen-4.0/bin/../lib/python/xen/xend/XendDomainInfo.py", line 469, in start XendTask.log_progress(31, 60, self._initDomain) File "/usr/lib/xen-4.0/lib/python/xen/xend/XendTask.py", line 209, in log_progress retval = func(*args, **kwds) File "/usr/lib/xen-4.0/bin/../lib/python/xen/xend/XendDomainInfo.py", line 2820, in _initDomain self._configureBootloader() File "/usr/lib/xen-4.0/bin/../lib/python/xen/xend/XendDomainInfo.py", line 3266, in _configureBootloader bootloader_args, kernel, ramdisk, args) File "/usr/lib/xen-4.0/lib/python/xen/xend/XendBootloader.py", line 215, in bootloader raise VmError, msg VmError: Boot loader didn't return any data! [2011-10-29 21:07:41 26862] ERROR (XendDomainInfo:2244) Failed to restart domain 42. Traceback (most recent call last): File "/usr/lib/xen-4.0/bin/../lib/python/xen/xend/XendDomainInfo.py", line 2227, in _restart new_dom_info) File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomain.py", line 998, in domain_create_from_dict dominfo = XendDomainInfo.create_from_dict(config_dict) File "/usr/lib/xen-4.0/bin/../lib/python/xen/xend/XendDomainInfo.py", line 126, in create_from_dict vm.start() File "/usr/lib/xen-4.0/bin/../lib/python/xen/xend/XendDomainInfo.py", line 469, in start XendTask.log_progress(31, 60, self._initDomain) File "/usr/lib/xen-4.0/lib/python/xen/xend/XendTask.py", line 209, in log_progress retval = func(*args, **kwds) File "/usr/lib/xen-4.0/bin/../lib/python/xen/xend/XendDomainInfo.py", line 2820, in _initDomain self._configureBootloader() File "/usr/lib/xen-4.0/bin/../lib/python/xen/xend/XendDomainInfo.py", line 3266, in _configureBootloader bootloader_args, kernel, ramdisk, args) File "/usr/lib/xen-4.0/lib/python/xen/xend/XendBootloader.py", line 215, in bootloader raise VmError, msg VmError: Boot loader didn't return any data! ----------------------------------------------------------------------------------- -- nasm <nasm at v-as.net>