[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] RE: [PATCH] blktap2 - human readable output for tapdisk2 creation problems.
hi, with this patch. i can not see extra info in xend.log it still show the error: Error: Device 768 (tap) could not be connected. Setting up the backend failed. See the log files in /var/log/xen/ for details. i have take a look at this issue. seems the tap 768 hotplug-status return error. Before cs 19647. it always is connected. here is xend.log: [2009-06-08 11:05:26 12131] INFO (SrvDaemon:332) Xend Daemon started [2009-06-08 11:05:26 12131] INFO (SrvDaemon:336) Xend changeset: Tue May 19 23:44:28 2009 +0100 19626:145e49b8574c. [2009-06-08 11:05:26 12131] DEBUG (XendDomainInfo:142) XendDomainInfo.recreate({'max_vcpu_id': 7, 'cpu_time': 1127231157532L, 'ssidref': 0, 'hvm': 0, 'shutdown_reason': 0, 'dying': 0, 'online_vcpus': 8, 'domid': 0, 'paused': 0, 'crashed': 0, 'running': 1, 'maxmem_kb': 17179869180L, 'shutdown': 0, 'mem_kb': 524288L, 'handle': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'blocked': 0, 'name': 'Domain-0'}) [2009-06-08 11:05:26 12131] INFO (XendDomainInfo:159) Recreating domain 0, UUID 00000000-0000-0000-0000-000000000000. at /local/domain/0 [2009-06-08 11:05:26 12131] DEBUG (XendDomain:452) Adding Domain: 0 [2009-06-08 11:05:26 12131] DEBUG (XendDomain:386) number of vcpus to use is 0 [2009-06-08 11:05:26 12131] DEBUG (XendDomainInfo:1766) XendDomainInfo.handleShutdownWatch [2009-06-08 11:05:26 12131] WARNING (XendAPI:701) API call: VBD.set_device not found [2009-06-08 11:05:26 12131] WARNING (XendAPI:701) API call: VBD.set_type not found [2009-06-08 11:05:26 12131] WARNING (XendAPI:701) API call: session.get_all_records not found [2009-06-08 11:05:26 12131] WARNING (XendAPI:701) API call: event.get_record not found [2009-06-08 11:05:26 12131] WARNING (XendAPI:701) API call: event.get_all not found [2009-06-08 11:05:26 12131] WARNING (XendAPI:701) API call: VIF.get_network not found [2009-06-08 11:05:26 12131] WARNING (XendAPI:701) API call: VIF.set_device not found [2009-06-08 11:05:26 12131] WARNING (XendAPI:701) API call: VIF.set_MAC not found [2009-06-08 11:05:26 12131] WARNING (XendAPI:701) API call: VIF.set_MTU not found [2009-06-08 11:05:26 12131] WARNING (XendAPI:701) API call: debug.get_all not found [2009-06-08 11:05:26 12131] INFO (XMLRPCServer:156) Opening Unix domain socket XML-RPC server on /var/run/xend/xen-api.sock; authentication has been disabled for this server. [2009-06-08 11:05:26 12131] INFO (XMLRPCServer:156) Opening Unix domain socket XML-RPC server on /var/run/xend/xmlrpc.sock. [2009-06-08 11:05:28 12131] DEBUG (XendDomainInfo:94) XendDomainInfo.create(['vm', ['name', 'ExampleHVMDomain'], ['memory', 512], ['vcpus', 1], ['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['image', ['hvm', ['kernel', '/usr/lib/xen/boot/hvmloader'], ['videoram', 4], ['device_model', '/usr/lib64/xen/bin/qemu-dm'], ['pae', 1], ['vcpus', 1], ['boot', 'c'], ['fda', ''], ['fdb', ''], ['timer_mode', 1], ['localtime', 0], ['serial', 'pty'], ['stdvga', 0], ['isa', 0], ['nographic', 0], ['soundhw', ''], ['vnc', 1], ['vncunused', 1], ['sdl', 0], ['display', 'localhost:1.0'], ['xauthority', '/root/.Xauthority'], ['rtc_timeoffset', 0], ['monitor', 0], ['acpi', 1], ['apic', 1], ['usb', 0], ['usbdevice', ''], ['keymap', ''], ['pci', []], ['hpet', 0], ['guest_os_type', 'default'], ['hap', 1], ['opengl', 1], ['cpuid', []], ['cpuid_check', []], ['viridian', 0], ['pci_msitranslate', 1], ['vpt_align', 1], ['pci_power_mgmt', 0], ['xen_platform_pci', 1], ['vncpasswd', 'XXXXXXXX']]], ['s3_integrity', 1], ['device', ['tap', ['uname', 'tap:tapdisk:qcow2:/root/yang/1.qcow2'], ['dev', 'hda'], ['mode', 'w']]], ['device', ['vif', ['bridge', 'xenbr0'], ['type', 'ioemu']]]]) [2009-06-08 11:05:28 12131] DEBUG (XendDomainInfo:2353) XendDomainInfo.constructDomain [2009-06-08 11:05:28 12131] DEBUG (balloon:181) Balloon: 7757788 KiB free; need 4096; done. [2009-06-08 11:05:28 12131] DEBUG (XendDomain:452) Adding Domain: 17 [2009-06-08 11:05:28 12131] DEBUG (XendDomainInfo:2555) XendDomainInfo.initDomain: 17 256 [2009-06-08 11:05:28 12131] DEBUG (image:322) No VNC passwd configured for vfb access [2009-06-08 11:05:28 12131] DEBUG (image:828) args: boot, val: c [2009-06-08 11:05:28 12131] DEBUG (image:828) args: fda, val: None [2009-06-08 11:05:28 12131] DEBUG (image:828) args: fdb, val: None [2009-06-08 11:05:28 12131] DEBUG (image:828) args: soundhw, val: None [2009-06-08 11:05:28 12131] DEBUG (image:828) args: localtime, val: 0 [2009-06-08 11:05:28 12131] DEBUG (image:828) args: serial, val: ['pty'] [2009-06-08 11:05:28 12131] DEBUG (image:828) args: std-vga, val: 0 [2009-06-08 11:05:28 12131] DEBUG (image:828) args: isa, val: 0 [2009-06-08 11:05:28 12131] DEBUG (image:828) args: acpi, val: 1 [2009-06-08 11:05:28 12131] DEBUG (image:828) args: usb, val: 0 [2009-06-08 11:05:28 12131] DEBUG (image:828) args: usbdevice, val: None [2009-06-08 11:05:28 12131] INFO (image:764) Need to create platform device.[domid:17] [2009-06-08 11:05:28 12131] DEBUG (XendDomainInfo:2579) _initDomain:shadow_memory=0x0, memory_static_max=0x20000000, memory_static_min=0x0. [2009-06-08 11:05:28 12131] DEBUG (balloon:181) Balloon: 7756376 KiB free; need 535552; done. [2009-06-08 11:05:28 12131] INFO (image:173) buildDomain os=hvm dom=17 vcpus=1 [2009-06-08 11:05:28 12131] DEBUG (image:881) domid = 17 [2009-06-08 11:05:28 12131] DEBUG (image:882) image = /usr/lib/xen/boot/hvmloader [2009-06-08 11:05:28 12131] DEBUG (image:883) store_evtchn = 2 [2009-06-08 11:05:28 12131] DEBUG (image:884) memsize = 512 [2009-06-08 11:05:28 12131] DEBUG (image:885) target = 512 [2009-06-08 11:05:28 12131] DEBUG (image:886) vcpus = 1 [2009-06-08 11:05:28 12131] DEBUG (image:887) acpi = 1 [2009-06-08 11:05:28 12131] DEBUG (image:888) apic = 1 [2009-06-08 11:05:28 12131] INFO (XendDomainInfo:2217) createDevice: vfb : {'vncunused': 1, 'other_config': {'vncunused': 1, 'vnc': '1'}, 'vnc': '1', 'uuid': '87ec48ff-89d9-a37d-8f09-13918ff05ae9'} [2009-06-08 11:05:28 12131] DEBUG (DevController:95) DevController: writing {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/vfb/17/0'} to /local/domain/17/device/vfb/0. [2009-06-08 11:05:28 12131] DEBUG (DevController:97) DevController: writing {'vncunused': '1', 'domain': 'ExampleHVMDomain', 'frontend': '/local/domain/17/device/vfb/0', 'uuid': '87ec48ff-89d9-a37d-8f09-13918ff05ae9', 'frontend-id': '17', 'state': '1', 'online': '1', 'vnc': '1'} to /local/domain/0/backend/vfb/17/0. [2009-06-08 11:05:28 12131] INFO (XendDomainInfo:2217) createDevice: tap : {'bootable': 1, 'uname': 'tap:tapdisk:qcow2:/root/yang/1.qcow2', 'mode': 'w', 'dev': 'hda', 'uuid': 'ee73c5c6-0506-5675-0db2-f71b87c8e100'} [2009-06-08 11:05:28 12131] WARNING (BlktapController:128) WARNING: using deprecated blktap module [2009-06-08 11:05:28 12131] DEBUG (DevController:95) DevController: writing {'backend-id': '0', 'virtual-device': '768', 'device-type': 'disk', 'state': '1', 'backend': '/local/domain/0/backend/tap/17/768'} to /local/domain/17/device/vbd/768. [2009-06-08 11:05:28 12131] DEBUG (DevController:97) DevController: writing {'domain': 'ExampleHVMDomain', 'frontend': '/local/domain/17/device/vbd/768', 'uuid': 'ee73c5c6-0506-5675-0db2-f71b87c8e100', 'bootable': '1', 'dev': 'hda', 'state': '1', 'params': 'tapdisk:qcow2:/root/yang/1.qcow2', 'mode': 'w', 'online': '1', 'frontend-id': '17', 'type': 'tap'} to /local/domain/0/backend/tap/17/768. [2009-06-08 11:05:28 12131] INFO (XendDomainInfo:2217) createDevice: vif : {'bridge': 'xenbr0', 'mac': '00:16:3e:67:0c:5d', 'type': 'ioemu', 'uuid': '02c76dd5-959a-9226-c775-1a97c45c0c3d'} [2009-06-08 11:05:28 12131] DEBUG (DevController:95) DevController: writing {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/vif/17/0'} to /local/domain/17/device/vif/0. [2009-06-08 11:05:28 12131] DEBUG (DevController:97) DevController: writing {'bridge': 'xenbr0', 'domain': 'ExampleHVMDomain', 'handle': '0', 'uuid': '02c76dd5-959a-9226-c775-1a97c45c0c3d', 'script': '/etc/xen/scripts/vif-bridge', 'mac': '00:16:3e:67:0c:5d', 'frontend-id': '17', 'state': '1', 'online': '1', 'frontend': '/local/domain/17/device/vif/0', 'type': 'ioemu'} to /local/domain/0/backend/vif/17/0. [2009-06-08 11:05:28 12131] INFO (image:394) spawning device models: /usr/lib64/xen/bin/qemu-dm ['/usr/lib64/xen/bin/qemu-dm', '-d', '17', '-domain-name', 'ExampleHVMDomain', '-videoram', '4', '-vnc', '127.0.0.1:0', '-vncunused', '-vcpus', '1', '-boot', 'c', '-serial', 'pty', '-acpi', '-net', 'nic,vlan=1,macaddr=00:16:3e:67:0c:5d,model=rtl8139', '-net', 'tap,vlan=1,ifname=tap17.0,bridge=xenbr0', '-M', 'xenfv'] [2009-06-08 11:05:28 12131] INFO (image:445) device model pid: 12188 [2009-06-08 11:05:28 12131] DEBUG (XendDomainInfo:3110) Storing VM details: {'on_xend_stop': 'ignore', 'shadow_memory': '5', 'uuid': '7c6cac34-bf69-488c-8793-602fc45ac1c9', 'on_reboot': 'restart', 'start_time': '1244430328.7', 'on_poweroff': 'destroy', 'bootloader_args': '', 'on_xend_start': 'ignore', 'on_crash': 'restart', 'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail': '1', 'bootloader': '', 'image': '(hvm (kernel ) (superpages 0) (videoram 4) (hpet 0) (stdvga 0) (loader /usr/lib/xen/boot/hvmloader) (serial pty) (vncunused 1) (xen_platform_pci 1) (opengl 1) (boot c) (rtc_timeoffset 0) (pci ()) (pae 1) (vpt_align 1) (hap 1) (viridian 0) (acpi 1) (localtime 0) (timer_mode 1) (vnc 1) (nographic 0) (guest_os_type default) (pci_msitranslate 1) (apic 1) (sdl 0) (monitor 0) (device_model /usr/lib64/xen/bin/qemu-dm) (pci_power_mgmt 0) (usb 0) (xauthority /root/.Xauthority) (isa 0) (display localhost:1.0) (notes (SUSPEND_CANCEL 1)))', 'name': 'ExampleHVMDomain'} [2009-06-08 11:05:28 12131] INFO (image:547) waiting for sentinel_fifo [2009-06-08 11:05:28 12131] DEBUG (XendDomainInfo:1679) Storing domain details: {'console/port': '3', 'name': 'ExampleHVMDomain', 'console/limit': '1048576', 'store/port': '2', 'vm': '/vm/7c6cac34-bf69-488c-8793-602fc45ac1c9', 'domid': '17', 'image/suspend-cancel': '1', 'cpu/0/availability': 'online', 'memory/target': '524288', 'control/platform-feature-multiprocessor-suspend': '1', 'store/ring-ref': '1044476', 'console/type': 'ioemu'} [2009-06-08 11:05:28 12131] DEBUG (DevController:95) DevController: writing {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/console/17/0'} to /local/domain/17/device/console/0. [2009-06-08 11:05:28 12131] DEBUG (DevController:97) DevController: writing {'domain': 'ExampleHVMDomain', 'frontend': '/local/domain/17/device/console/0', 'uuid': '5630f6a4-ae44-c4a0-673c-cd387c565ebc', 'frontend-id': '17', 'state': '1', 'location': '3', 'online': '1', 'protocol': 'vt100'} to /local/domain/0/backend/console/17/0. [2009-06-08 11:05:28 12131] DEBUG (XendDomainInfo:1766) XendDomainInfo.handleShutdownWatch [2009-06-08 11:05:28 12131] DEBUG (DevController:139) Waiting for devices vif. [2009-06-08 11:05:28 12131] DEBUG (DevController:144) Waiting for 0. [2009-06-08 11:05:28 12131] DEBUG (DevController:657) hotplugStatusCallback /local/domain/0/backend/vif/17/0/hotplug-status. [2009-06-08 11:05:28 12131] DEBUG (DevController:671) hotplugStatusCallback 1. [2009-06-08 11:05:28 12131] DEBUG (DevController:139) Waiting for devices vscsi. [2009-06-08 11:05:28 12131] DEBUG (DevController:139) Waiting for devices vbd. [2009-06-08 11:05:28 12131] DEBUG (DevController:139) Waiting for devices irq. [2009-06-08 11:05:28 12131] DEBUG (DevController:139) Waiting for devices vkbd. [2009-06-08 11:05:28 12131] DEBUG (DevController:139) Waiting for devices vfb. [2009-06-08 11:05:28 12131] DEBUG (DevController:139) Waiting for devices console. [2009-06-08 11:05:28 12131] DEBUG (DevController:144) Waiting for 0. [2009-06-08 11:05:28 12131] DEBUG (DevController:139) Waiting for devices pci. [2009-06-08 11:05:28 12131] DEBUG (DevController:139) Waiting for devices ioports. [2009-06-08 11:05:28 12131] DEBUG (DevController:139) Waiting for devices tap. [2009-06-08 11:05:28 12131] DEBUG (DevController:144) Waiting for 768. [2009-06-08 11:05:28 12131] DEBUG (DevController:657) hotplugStatusCallback /local/domain/0/backend/tap/17/768/hotplug-status. [2009-06-08 11:05:38 12131] DEBUG (DevController:657) hotplugStatusCallback /local/domain/0/backend/tap/17/768/hotplug-status. [2009-06-08 11:05:38 12131] DEBUG (DevController:671) hotplugStatusCallback 2. [2009-06-08 11:05:38 12131] DEBUG (XendDomainInfo:2782) XendDomainInfo.destroy: domid=17 [2009-06-08 11:05:38 12131] DEBUG (XendDomainInfo:2256) Destroying device model [2009-06-08 11:05:39 12131] INFO (image:572) ExampleHVMDomain device model terminated [2009-06-08 11:05:39 12131] DEBUG (XendDomainInfo:2263) Releasing devices [2009-06-08 11:05:39 12131] DEBUG (XendDomainInfo:2276) Removing vif/0 [2009-06-08 11:05:39 12131] DEBUG (XendDomainInfo:1183) XendDomainInfo.destroyDevice: deviceClass = vif, device = vif/0 [2009-06-08 11:05:39 12131] DEBUG (XendDomainInfo:2276) Removing vbd/768 [2009-06-08 11:05:39 12131] DEBUG (XendDomainInfo:1183) XendDomainInfo.destroyDevice: deviceClass = tap, device = vbd/768 [2009-06-08 11:05:39 12131] DEBUG (XendDomainInfo:2276) Removing vfb/0 [2009-06-08 11:05:39 12131] DEBUG (XendDomainInfo:1183) XendDomainInfo.destroyDevice: deviceClass = vfb, device = vfb/0 [2009-06-08 11:05:39 12131] DEBUG (XendDomainInfo:2276) Removing console/0 [2009-06-08 11:05:39 12131] DEBUG (XendDomainInfo:1183) XendDomainInfo.destroyDevice: deviceClass = console, device = console/0 [2009-06-08 11:05:39 12131] DEBUG (XendDomainInfo:2261) No device model [2009-06-08 11:05:39 12131] DEBUG (XendDomainInfo:2263) Releasing devices Best Regards --yang Dutch Meyer wrote: > This patch fixes the "file object has no attribute find" failure we've > been seeing when starting blktap2 devices and adds more meaningful > error output to conditions where the tapdisk2 process is unable to > create a blktap2 device. > > Signed-off-by: Dutch Meyer <dmeyer@xxxxxxxxx> > > --Dutch _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |