Bug 1569500
Summary: | Guest shutoff after attaching same disk two times then detach the disk | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Xiaodai Wang <xiaodwan> | ||||
Component: | libvirt | Assignee: | Peter Krempa <pkrempa> | ||||
Status: | CLOSED DUPLICATE | QA Contact: | jiyan <jiyan> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 7.5 | CC: | dyuan, juzhou, lmen, mxie, mzhan, pkrempa, rbalakri, tzheng, xiaodwan, xuzhang | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 1584982 (view as bug list) | Environment: | |||||
Last Closed: | 2018-06-01 06:01:01 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: | 1584982 | ||||||
Attachments: |
|
Description
Xiaodai Wang
2018-04-19 12:12:48 UTC
Please attach the VM log file. The VM has crashed so if qemu exited with a core-dump, please include a backtrace too. Also this is most probably not a libvirt problem. Created attachment 1424042 [details]
vm log
So the problem most probably is that libvirt messes up labelling of the disk if the second attaching fails. This means that qemu will not have permission to access the file later. At any rate, this should not be a reason to abort. main_channel_handle_message: agent start Failed to get "write" lock Unexpected error in raw_apply_lock_bytes() at block/file-posix.c:642: 2018-04-19T12:05:47.871711Z qemu-kvm: Failed to lock byte 100 2018-04-19 12:05:52.848+0000: shutting down, reason=crashed Do you still need the backtrace? If yes, How and where to get the backtrace? Sorry, i didn't find any coredump file under the directory i ran the command. The main problem is that we mess up labelling of the image even when it's used. This is traced by bug 1524792. I've also cloned this as https://bugzilla.redhat.com/show_bug.cgi?id=1584982 so that qemu provides a saner behaviour when locking fails. *** This bug has been marked as a duplicate of bug 1524792 *** |