Created attachment 1702561 [details]
Description of problem:
Attempting an installation using idrac-virtualmedia on Dell systems and it errored with the following:
2020-07-27 16:10:30.740 1 ERROR ironic.drivers.modules.inspector [req-9a90de2f-bdd0-4755-8d56-5733b62979aa - - - - -] Unable to start managed inspection for node 6c25dd31-9b65-48f8-9dba-19d75321e4db: HTTP POST https://r640-c12u09-drac.cloud.lab.eng.bos.redhat.com/redfish/v1/Managers/iDRAC.Embedded.1/VirtualMedia/CD/Actions/VirtualMedia.InsertMedia returned code 500. Base.1.5.GeneralError: The Virtual Media image server is already connected.: sushy.exceptions.ServerSideError: HTTP POST https://r640-c12u09-drac.cloud.lab.eng.bos.redhat.com/redfish/v1/Managers/iDRAC.Embedded.1/VirtualMedia/CD/Actions/VirtualMedia.InsertMedia returned code 500. Base.1.5.GeneralError: The Virtual Media image server is already connected.
The reason for the error is because a virtual media image was already connected. Prior to ironic attempting to attach a virtual media image, it should attempt to disconnect any existing image.
NOTE: I suspect this probably true for redfish-virtualmedia as well if using HPE systems.
Version-Release number of selected component (if applicable): 4.6
Steps to Reproduce:
1. Have an existing Virtual Media attached
2. Attempt IPI on BM install using idrac-virtualmedia
Actual results: Fails with an error saying The Virtual Media image server is already connected.
Expected results: Would of attached the Virtual Media properly and installed.
FYI - I manually disconnected the Virtual Media, re-ran and got the same error.
(In reply to rlopez from comment #1)
> FYI - I manually disconnected the Virtual Media, re-ran and got the same
Does this suggest that can't get idrac-virtualmedia to work at all or is it only a problem on a specific environment? If you have it reproduced can you send me the details to have a look?
Just posting here that we synced on slack and to further troubleshoot the issue on there.
After trying various firmware versions on another host where this works and comparing the settings on a iDrac that works with this one
Configuration->Virtual Media->Attach Mode->AutoAttach your was set to "Detached",
When changed to AutoAttach and it now works (using curl to simulate what ironic does)
it looks like this was the problem and we can close this once its confirmed with a full run.
If it was the problem, we should document the requirement, I'll take a look upstream to see where is suitable.
The systems I'm using Dell PowerEdge R640, already have Virtual Media set to AutoAttach.
Unfortunately due to https://bugzilla.redhat.com/show_bug.cgi?id=1872787, this is difficult to test as it requires the provisioning network to be routable (which we declare as a non-routable network) since the BMC of the servers is not on the provisioning network but instead an external network.
From discussions outside of bugzilla I believe that ensuring that "Attach Mode" is set to AutoAttach fixes the problem,
@rlopez can you confirm if this is the case, if so we can update the docs to ensure its documented as a requirement.
Confirmed. With AutoAttach set, the installation works as expected. Requires 4.6.0-0.nightly-2020-09-28-061045 or higher to test.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (OpenShift Container Platform 4.6 GA Images), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.