Bug 817243
Summary: | Guest failed to resume from S4 after migration with kvmclock | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Qunfang Zhang <qzhang> | ||||
Component: | kernel | Assignee: | Red Hat Kernel Manager <kernel-mgr> | ||||
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 6.3 | CC: | amit.shah, areis, flang, juzhang, knoel, michen, mtosatti, shu, tburke | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | kernel-2.6.32-301.el6 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2013-02-21 06:10:07 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 720669, 761491, 798682 | ||||||
Attachments: |
|
Description
Qunfang Zhang
2012-04-28 09:13:54 UTC
Created attachment 580949 [details]
isa serial log during guest do s4 and resume
This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux. This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development. This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4. This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release. Hi, Marcelo I can still reproduce this issue on 2.6.32-279.el6.x86_64 & qemu-kvm-0.12.1.2-2.295.el6.x86_64 & seabios-0.6.1.2-19.el6.x86_64. Do you use the same command line in the bug description? And I tried local migration, can not reproduce. So need to test on two hosts to migrate guest. (In reply to comment #11) > Hi, Marcelo > I can still reproduce this issue on 2.6.32-279.el6.x86_64 & > qemu-kvm-0.12.1.2-2.295.el6.x86_64 & seabios-0.6.1.2-19.el6.x86_64. > > Do you use the same command line in the bug description? > And I tried local migration, can not reproduce. So need to test on two hosts > to migrate guest. No, i will try similar options now. Yes, i am using different machines for migration. In the meantime, please enable serial console output in the guest (add console=ttyS0,115200 to relevant entry in /boot/grub/menu.lst) and log the entire suspend/resume crash please. Also, when the guest crashes, record the output of 5 calls to QEMU monitor command: info registers with 1 second or more space between the 5 commands. Thanks *** Bug 846479 has been marked as a duplicate of this bug. *** Patch(es) available on kernel-2.6.32-301.el6 Reproduce this bug as follow version: Host: [root@localhost home]# uname -r 2.6.32-262.el6.x86_64 [root@localhost home]# rpm -q qemu-kvm qemu-kvm-0.12.1.2-2.295.el6.x86_64 Guest: [root@localhost home]# uname -r 2.6.32-262.el6.x86_64 Steps: 1.Boot guest(use kvmclok) on the src host #cat /sys/devices/system/clocksource/clocksource0/current_clocksource kvm-clock 2.Boot guest on the dst host with "-incoming tcp:0:5999" 3.Migrate guest from src host to dst host: (qemu)migrate -d tcp:$dst_host_ip:5999 4.After finish migration, do s4 inside guest: #pm-hibernate 5.After guest process quit, boot it again on the dst host without "-incoming..." to resume guest. Resutls: Guest failed to resume from s4 after migration. ACPI: Waking up from system sleep state S4 virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11 virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10 ------------[ cut here ]------------ WARNING: at fs/sysfs/dir.c:512 sysfs_add_one+0xc9/0x130() (Not tainted) Hardware name: KVM sysfs: cannot create duplicate filename '/devices/pci0000:00/0000:00:04.0/virtio1/virtio-ports/vport0p1/name' Modules linked in: fuse sunrpc ipt_REJECT nf_conntrack_ipv4 nf_defrag_ipv4 iptable_filter ip_tables ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 xt_state nf_conntrack ip6table_filter ip6_tables ipv6 uinput ppdev parport_pc parport microcode sg 8139too 8139cp mii virtio_console virtio_balloon i2c_piix4 i2c_core ext4 mbcache jbd2 sr_mod cdrom virtio_blk pata_acpi ata_generic ata_piix virtio_pci virtio_ring virtio dm_mirror dm_region_hash dm_log dm_mod [last unloaded: speedstep_lib] Pid: 11, comm: events/0 Not tainted 2.6.32-262.el6.x86_64 #1 Call Trace: [<ffffffff8106b607>] ? warn_slowpath_common+0x87/0xc0 [<ffffffff8106b6f6>] ? warn_slowpath_fmt+0x46/0x50 [<ffffffff811f2319>] ? sysfs_add_one+0xc9/0x130 [<ffffffff811f0602>] ? sysfs_add_file_mode+0x62/0xb0 [<ffffffff811f38f1>] ? internal_create_group+0xc1/0x1a0 [<ffffffff811f3a03>] ? sysfs_create_group+0x13/0x20 [<ffffffffa01524c3>] ? control_work_handler+0x1a3/0x480 [virtio_console] [<ffffffffa0152320>] ? control_work_handler+0x0/0x480 [virtio_console] [<ffffffff8108c620>] ? worker_thread+0x170/0x2a0 [<ffffffff81091f90>] ? autoremove_wake_function+0x0/0x40 [<ffffffff8108c4b0>] ? worker_thread+0x0/0x2a0 [<ffffffff81091c26>] ? kthread+0x96/0xa0 [<ffffffff8100c14a>] ? child_rip+0xa/0x20 [<ffffffff81091b90>] ? kthread+0x0/0xa0 [<ffffffff8100c140>] ? child_rip+0x0/0x20 ---[ end trace b0e298390c2136e2 ]--- virtio-ports vport0p1: Error -17 creating sysfs device attributes ------------[ cut here ]------------ WARNING: at fs/sysfs/dir.c:512 sysfs_add_one+0xc9/0x130() (Tainted: G W --------------- ) Hardware name: KVM sysfs: cannot create duplicate filename '/devices/pci0000:00/0000:00:04.0/virtio1/virtio-ports/vport0p2/name' Modules linked in: fuse sunrpc ipt_REJECT nf_conntrack_ipv4 nf_defrag_ipv4 iptable_filter ip_tables ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 xt_state nf_conntrack ip6table_filter ip6_tables ipv6 uinput ppdev parport_pc parport microcode sg 8139too 8139cp mii virtio_console virtio_balloon i2c_piix4 i2c_core ext4 mbcache jbd2 sr_mod cdrom virtio_blk pata_acpi ata_generic ata_piix virtio_pci virtio_ring virtio dm_mirror dm_region_hash dm_log dm_mod [last unloaded: speedstep_lib] Pid: 11, comm: events/0 Tainted: G W --------------- 2.6.32-262.el6.x86_64 #1 Call Trace: [<ffffffff8106b607>] ? warn_slowpath_common+0x87/0xc0 [<ffffffff8106b6f6>] ? warn_slowpath_fmt+0x46/0x50 [<ffffffff811f2319>] ? sysfs_add_one+0xc9/0x130 [<ffffffff811f0602>] ? sysfs_add_file_mode+0x62/0xb0 [<ffffffff811f38f1>] ? internal_create_group+0xc1/0x1a0 [<ffffffff811f3a03>] ? sysfs_create_group+0x13/0x20 [<ffffffffa01524c3>] ? control_work_handler+0x1a3/0x480 [virtio_console] [<ffffffffa0152320>] ? control_work_handler+0x0/0x480 [virtio_console] [<ffffffff8108c620>] ? worker_thread+0x170/0x2a0 [<ffffffff81091f90>] ? autoremove_wake_function+0x0/0x40 [<ffffffff8108c4b0>] ? worker_thread+0x0/0x2a0 [<ffffffff81091c26>] ? kthread+0x96/0xa0 [<ffffffff8100c14a>] ? child_rip+0xa/0x20 [<ffffffff81091b90>] ? kthread+0x0/0xa0 [<ffffffff8100c140>] ? child_rip+0x0/0x20 ---[ end trace b0e298390c2136e3 ]--- virtio-ports vport0p2: Error -17 creating sysfs device attributes virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10 ata2.00: configured for MWDMA2 PM: Saving image data pages (128931 pages) ... done PM: Wrote 515724 kbytes in 222.83 seconds (2.31 MB/s) PM: S| Suspending console(s) (use no_console_suspend to debug) Verify this bug as follow version: Host [root@amd-4450b-4-2 ~]# uname -r 2.6.32-348.el6.x86_64 [root@amd-4450b-4-2 ~]# rpm -q qemu-kvm-rhev qemu-kvm-rhev-0.12.1.2-2.348.el6.x86_64 Guest: 2.6.32-351.el6.x86_64 The steps as same as reproduce Results: Form log ,can see resume S4 successfully. .... ACPI: Waking up from system sleep state S4 virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11 virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10 Restarting tasks ... done. eth1: link up, 100Mbps, full-duplex, lpa 0x05E1 Verify CLI: /usr/libexec/qemu-kvm -cpu Opteron_G3 -M rhel6.4.0 -enable-kvm -m 8G -smp 4,sockets=2,cores=2,threads=1 -name rhel6.4-64 -uuid 231481d8-5fca-4b8f-a035-dd314cd5306b -nodefconfig -nodefaults -monitor stdio -rtc base=utc -drive file=/mnt/RHEL-Server-6.3-64-virtio.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,cache=none,aio=native,media=disk,werror=stop,rerror=stop -device virtio-scsi-pci,id=bus1 -device scsi-hd,bus=bus1.0,drive=drive-virtio-disk0,id=virtio-scsi-pci0 -netdev tap,id=hostnet0,vhost=on,script=/etc/qemu-ifup -device rtl8139,netdev=hostnet0,id=net0,mac=14:37:E6:97:58:89 -spice port=5840,disable-ticketing -vga qxl -device virtio-balloon-pci,id=balloon0,bus=pci.0 -chardev socket,path=/tmp/qzhang-test,server,nowait,id=isa1 -device isa-serial,chardev=isa1,id=isa-serial1 -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0 Addtional info: 1)Tried this tests about 10 times ,not hit any problem,guest work well. According to above test ,this bug fixed. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-0496.html |