Bug 473882
Summary: | [RHEL5.3]: xm block-detach no longer works | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Chris Lalancette <clalance> | ||||||
Component: | xen | Assignee: | Chris Lalancette <clalance> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Gurhan Ozen <gozen> | ||||||
Severity: | high | Docs Contact: | |||||||
Priority: | high | ||||||||
Version: | 5.3 | CC: | berrange, cward, ddutile, gozen, jburke, syeghiay, tao, xen-maint | ||||||
Target Milestone: | rc | Keywords: | Regression | ||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2009-01-20 21:13:11 UTC | Type: | --- | ||||||
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: | 465937, 465938, 475588 | ||||||||
Attachments: |
|
Description
Chris Lalancette
2008-12-01 10:12:09 UTC
OK, I think I got it. The patch to fix up a CVE caused this breakage by moving some stuff around in xenstore. Luckily, I think it is pretty easy to fix; the attached patch seems to fix it for me. I'll post this upstream as well, since I think the same problem probably exists there. Chris Lalancette Created attachment 325364 [details]
Fix up block detach
Built into xen-3.0.3-78.el5 This patch caused a regression in guest reboots for bz 471588 Created attachment 326512 [details]
Correct fix for block-detach
There are two core problems with block detach
- virsh & xm both pass 'type=vbd' even for TAP devices. This causes the wrong device controller to be used. This is the cause of the detach failure. This patch checks for the bogus type=vbd and fixes it
- The /vm/$UUID/device/{vbd,tap}/$DEVID path is not removed from xenstore, preventing a later re-attachment. This patch removes that path upon detach
*** Bug 475588 has been marked as a duplicate of this bug. *** An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2009-0118.html |