Bug 1541702
Summary: | Failed to update cdrom device with rbd disk | ||
---|---|---|---|
Product: | [Community] Virtualization Tools | Reporter: | chao.zhou |
Component: | libvirt | Assignee: | Peter Krempa <pkrempa> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | unspecified | CC: | fjin, hhan, libvirt-maint, pkrempa |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-11-27 09:35:56 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: | 760547 | ||
Bug Blocks: |
Description
chao.zhou
2018-02-04 08:19:50 UTC
The cdrom code does not setup authentication so this will not work properly currently. I hope to address this together with the change to use -blockdev in libvirt. I'll assign it to myself for the time being. (In reply to Peter Krempa from comment #1) > The cdrom code does not setup authentication so this will not work properly > currently. I hope to address this together with the change to use -blockdev > in libvirt. I'll assign it to myself for the time being. Thanks for the reply, so it doesn't support update cdrom using rbd protocol with authentication in the current version? and is there any plan to fix this or will it be the default behavior? Thanks. (In reply to chao.zhou from comment #2) > (In reply to Peter Krempa from comment #1) > > The cdrom code does not setup authentication so this will not work properly > > currently. I hope to address this together with the change to use -blockdev > > in libvirt. I'll assign it to myself for the time being. > > Thanks for the reply, so it doesn't support update cdrom using rbd protocol > with authentication in the current version? No as I've said in the comment above, the code does not work with authenticated images. > and is there any plan to fix > this or will it be the default behavior? Thanks. Yes, as I've said above, my work on using qemu's -blockdev infrastructure instead of -drive should result into fixing that. (In reply to Peter Krempa from comment #3) > (In reply to chao.zhou from comment #2) > > (In reply to Peter Krempa from comment #1) > > > The cdrom code does not setup authentication so this will not work properly > > > currently. I hope to address this together with the change to use -blockdev > > > in libvirt. I'll assign it to myself for the time being. > > > > Thanks for the reply, so it doesn't support update cdrom using rbd protocol > > with authentication in the current version? > > No as I've said in the comment above, the code does not work with > authenticated images. > > > and is there any plan to fix > > this or will it be the default behavior? Thanks. > > Yes, as I've said above, my work on using qemu's -blockdev infrastructure > instead of -drive should result into fixing that. got it, thanks for the explanation. Hi Peter, do we have any update on this issue? I'm still working on integrating block jobs with blockdev. That blocks enablement of use of -blockdev. The only way to test the new disk change code is to make code change to libvirt to enable -blockdev use and obviously block jobs will break everything. commit da7123a686f6d0d65dc14263d35f8ecd66f89fd1 Author: Peter Krempa <pkrempa> Date: Fri Jul 13 18:06:09 2018 +0200 qemu: hotplug: Implement removable media change for -blockdev Use the new APIs which allow to manipulate the tray and media separately and also allow using a nodename to refer to a media to implement media changing. With the new approach we don't have to call eject twice as the media is removed by calling qemuMonitorBlockdevMediumRemove. The blockdev feature was enabled since: commit c6a9e54ce3252196f1fc6aa9e57537a659646d18 Author: Peter Krempa <pkrempa> Date: Mon Jan 7 11:45:19 2019 +0100 qemu: enable blockdev support Now that all pieces are in place (hopefully) let's enable -blockdev. We base the capability on presence of the fix for 'auto-read-only' on files so that blockdev works properly, mandate that qemu supports explicit SCSI id strings to avoid ABI regression and that the fix for 'savevm' is present so that internal snapshots work. v5.9.0-390-gc6a9e54ce3 (note this corresponds to the upcomming 5.10 upstream release) and requires upstream qemu-4.2 or appropriate downstream. |