Issue
Description of problem:
[Machines] The "Insert" / "Eject" buttons of CDROM are not disabled for Paused vm
Version-Release number of selected components (if applicable):
cockpit-machines-291-1.el9.noarch
cockpit-292-1.el9.x86_64
libvirt-dbus-1.4.1-5.el9.x86_64
libvirt-client-9.3.0-2.el9.x86_64
How reproducible:
100%
Steps to Reproduce:
1. Prepare a shut off vm , like cirros. Prepare a iso:
touch /tmp/fake1.iso
2. Attach a CD-ROM disk by "Custom path" :
/tmp/fake1.iso
3. Run the vm
4. Pause the vm, the "Eject" button of the CD-ROM is not disabled.
Click "Eject" and confirm eject, the dialog closed but eject does not take effect.
5. Resume the vm
6. Click "Eject" and confirm eject, the CD-ROM disk is ejected successfully
7. Pause the vm, the "Insert" button of the CD-ROM disk is not disabled.
Click "Insert" and add the CD-ROM disk again, the dialog closed byt insert does not take effect.
Actual results:
See step4 & step7.
Expected results:
The "Insert" / "Eject" buttons should be disabled for Paused vm, but if we insist to enable them, we should at least make them effective.
Additional info: