Bug 1211761 - change-media --eject fails the first time with 'drive-ide0-0-0' is locked', but succeeds next try
Summary: change-media --eject fails the first time with 'drive-ide0-0-0' is locked', b...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-14 19:57 UTC by Cole Robinson
Modified: 2016-04-11 23:24 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-11 23:24:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Cole Robinson 2015-04-14 19:57:21 UTC
$ sudo virsh change-media f22-beta-livecd hda /home/crobinso/Fedora-Server-DVD-x86_64-22_Beta.iso 
succeeded to complete action update on media

[crobinso@colepc ~]$ sudo virsh change-media f22-beta-livecd hda --eject
error: Failed to complete action eject on media
error: internal error: unable to execute QEMU command 'eject': Device 'drive-ide0-0-0' is locked

[crobinso@colepc ~]$ sudo virsh change-media f22-beta-livecd hda --eject
succeeded to complete action eject on media

Sounds like this is a know deficiency of qemu:

https://bugzilla.redhat.com/show_bug.cgi?id=1147471

Comment 1 Cole Robinson 2016-04-11 23:24:45 UTC
This was fixed by

commit 256496e1499fcc7b20a51919eb4471987a36dbab
Author: Pavel Hrdina <phrdina>
Date:   Mon Jun 29 16:18:53 2015 +0200

    monitor: detect that eject fails because the tray is locked

which is in f24+


Note You need to log in before you can comment on or make changes to this bug.