Make sure we eject media from DVD when CD is requested
It's possible to use virtual media based provisioning on
servers that only support DVD MediaTypes and do not support CD
MediaTypes. The problem in this scenario is that Ironic will keep
the media attached since it will only eject the ones matching the
CD device, now we check if there is any DVD device with media inserted
when looking for CD devices.
Reviewed: https:/ /review. opendev. org/c/openstack /ironic/ +/897989 /opendev. org/openstack/ ironic/ commit/ 766d2804a1743e2 38a37762c946dec 0984721167
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 766d2804a1743e2 38a37762c946dec 0984721167
Author: Iury Gregory Melo Ferreira <email address hidden>
Date: Wed Oct 11 13:51:02 2023 -0300
Make sure we eject media from DVD when CD is requested
It's possible to use virtual media based provisioning on
servers that only support DVD MediaTypes and do not support CD
MediaTypes. The problem in this scenario is that Ironic will keep
the media attached since it will only eject the ones matching the
CD device, now we check if there is any DVD device with media inserted
when looking for CD devices.
Closes-Bug: 2039042 ea8a77ad5bfd9a0 b045c24c201
Change-Id: I7a5e871133300f