Bug 1540872
Summary: | Hotplug disk failing due to cgroups | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Daniel Erez <derez> |
Component: | libvirt | Assignee: | Michal Privoznik <mprivozn> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 27 | CC: | agedosier, berrange, clalancette, crobinso, itamar, jforbes, laine, libvirt-maint, mprivozn, nsoffer, pkrempa, veillard |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-06-26 14:42:42 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: | 1469235 |
Description
Daniel Erez
2018-02-01 08:53:34 UTC
The following commit should fix the issue: commit db98e7f67ea0d7699410f514f01947cef5128a6c Author: Michal Privoznik <mprivozn> AuthorDate: Thu Jan 4 11:11:53 2018 +0100 Commit: Michal Privoznik <mprivozn> CommitDate: Mon Jan 8 09:53:48 2018 +0100 qemuDomainAttachDeviceMknodHelper: Remove symlink before creating it https://bugzilla.redhat.com/show_bug.cgi?id=1528502 So imagine you have /dev/blah symlink which points to /dev/sda. You attach /dev/blah as disk to your domain. Libvirt correctly creates the /dev/blah -> /dev/sda symlink in the qemu namespace. However, then you detach the disk, change the symlink so that it points to /dev/sdb and tries to attach the disk again. This time, however, the attach fails (well, qemu attaches wrong disk) because the code assumes that symlinks don't change. Well they do. This is inspired by test fix written by Eduardo Habkost. Signed-off-by: Michal Privoznik <mprivozn> Reviewed-by: Andrea Bolognani <abologna> v3.10.0-132-gdb98e7f67 Michal, should this be MERGED? (In reply to Nir Soffer from comment #2) > Michal, should this be MERGED? I guess Nir meant MODIFIED :) Also, which version of libvirt-python should we require now? For libvirt-daemon-kvm it's >= 3.10.0-132, right? I think this bug is only waiting for new Fedora build. Cole? libvirt-3.7.0-4.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-b22d46eabb libvirt-3.7.0-4.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-b22d46eabb Build pushed now, sorry for the delay Michal, is this fix available in libvirt-3.7.0-4.fc27? (In reply to Nir Soffer from comment #8) > Michal, is this fix available in libvirt-3.7.0-4.fc27? Yes, it is. libvirt-3.7.0-4.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report. |