Bug 1956421 - Assisted Service ISO download URL format not compatible with Dell IDRAC virtual media feature
Summary: Assisted Service ISO download URL format not compatible with Dell IDRAC virtu...
Keywords:
Status: NEW
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: assisted-installer
Version: 4.8
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
: ---
Assignee: vemporop
QA Contact: Yuri Obshansky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-03 16:26 UTC by Ulrich Schlueter
Modified: 2021-05-17 15:17 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)
Issue loading image into iDrac (160.23 KB, image/png)
2021-05-17 10:37 UTC, Juan Manuel Parrilla Madrid
no flags Details

Description Ulrich Schlueter 2021-05-03 16:26:11 UTC
Description of problem:

I'm testing the Assisted Service with Dell PowerEdge R340 hardware and the IDrac Virtual Media feature (firmware version 4.40.00.00) and try to specify the ISO download URL from the infraenv resource as the "Image File Path" in the IDRAC Virtual Media UI.

An example for such a URL would be http://assisted-service-assisted-installer.apps.cluster-05.ocp.lab.eng.rdu2.redhat.com/api/assisted-install/v1/clusters/9d2d4aa8-8edd-4f79-97dc-219bafd7c6dc/downloads/image

IDrac refuses that URL with 
> RAC0720: Unable to locate the ISO/IMG image in the network share because the 
> file path provided or the user credentials provided may be incorrect. Ensure
> that you provide the correct file path and user credentials and retry the 
> operation

Downloading the ISO file to an webserver and renaming it <something>.iso works and the servers boot properly.

This prevents direct download of the ISO from the Assisted Server instance and causes an additional manual step in the installation process.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Install the Assisted Service
2. Create an Clusterdeployment and an InfraEnv resource
3. pick up the ISO download URl from the InfraEnv status 
4. Try and enter the URL in an IDRAC virtual media UI

Actual results:

ISO URL refused by IDRAC (error message see above)

Expected results:

IDRAC accepts the URL

Additional info:

It would appear that changing the IDRAC behaviour is a lost cause, the best way forward seems to be adapt the URL format to conform with Dell IDRAC requirements

Comment 1 Yolanda Robla 2021-05-15 07:48:23 UTC
Hitting the same issue, it's blocking the ZTP deployment efforts on Dell when disabling ironic caching. Disabling the Ironic cache is important for cases when the ips of the masters are not reachable by the redfish endpoint, while reaching the AI service is easier because it can just be exposed to the outside. So this bug is quite a high priority one.

Maybe an easy way to solve it is to implement some kind of url shortener, where AI generates some kind of http://<assisted_service_domain>/download/<random_id>.iso, that will translate to the real download endpoint.

Comment 2 Omer Tuchfeld 2021-05-15 08:21:41 UTC
Not sure literally shortening is ideal since it could potentially lower the entropy needed for authorization from the level currently set by the JWT signature to the length of the shortening token. Also requires implementing a shortener which is not trivial.

Maybe we could somehow add a new API endpoint for ISO download that accepts the JWT token as part of the path of the URL rather than the parameters of the URL.

Comment 3 Juan Manuel Parrilla Madrid 2021-05-17 10:35:58 UTC
Here hitting the same issue:

  image:
    format: live-iso
    url: https://assisted-service-assisted-installer.apps.mgmt-hub.e2e.bos.redhat.com/api/assisted-install/v1/clusters/d159a889-5677-4c55-bd04-74ca2e2e1942/downloads/image?api_key=eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbHVzdGVyX2lkIjoiZDE1OWE4ODktNTY3Ny00YzU1LWJkMDQtNzRjYTJlMmUxOTQyIn0.LLNuZN0bnf_sUdKcEIK7FQFRI0U_sNuTWtOhomwbSlOwWCsFG_uvMaA56ENxRZWSPuuBuiLx9R-wwk9DApyjuw
  online: true
status:
  errorCount: 1
  errorMessage: 'Image provisioning failed: Failed to deploy. Exception: HTTP POST
    https://[2620:52:0:1300::34]/redfish/v1/Managers/iDRAC.Embedded.1/VirtualMedia/CD/Actions/VirtualMedia.InsertMedia
    returned code 400. Base.1.2.GeneralError: Unable to perform the insert operation
    because the image file https://assisted-service-assisted-installer.apps.mgmt-hub.e2e.bos.redhat.com/api/assisted-install/v1/clusters/d159a889-5677-4c55-bd04-74ca2e2e1942/downloads/image?api_key=eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbHVzdGVyX2lkIjoiZDE1OWE4ODktNTY3Ny00YzU1LWJkMDQtNzRjYTJlMmUxOTQyIn0.LLNuZN0bnf_sUdKcEIK7FQFRI0U_sNuTWtOhomwbSlOwWCsFG_uvMaA56ENxRZWSPuuBuiLx9R-wwk9DApyjuw
    is of a different type than the insert operation supported by CD. Extended information:
    [{''Message'': ''Unable to perform the insert operation because the image file
    https://assisted-service-assisted-installer.apps.mgmt-hub.e2e.bos.redhat.com/api/assisted-install/v1/clusters/d159a889-5677-4c55-bd04-74ca2e2e1942/downloads/image?api_key=eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbHVzdGVyX2lkIjoiZDE1OWE4ODktNTY3Ny00YzU1LWJkMDQtNzRjYTJlMmUxOTQyIn0.LLNuZN0bnf_sUdKcEIK7FQFRI0U_sNuTWtOhomwbSlOwWCsFG_uvMaA56ENxRZWSPuuBuiLx9R-wwk9DApyjuw
    is of a different type than the insert operation supported by CD.'', ''MessageArgs'':
    [''https://assisted-service-assisted-installer.apps.mgmt-hub.e2e.bos.redhat.com/api/assisted-install/v1/clusters/d159a889-5677-4c55-bd04-74ca2e2e1942/downloads/image?api_key=eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbHVzdGVyX2lkIjoiZDE1OWE4ODktNTY3Ny00YzU1LWJkMDQtNzRjYTJlMmUxOTQyIn0.LLNuZN0bnf_sUdKcEIK7FQFRI0U_sNuTWtOhomwbSlOwWCsFG_uvMaA56ENxRZWSPuuBuiLx9R-wwk9DApyjuw'',
    ''CD''], ''MessageArgs@odata.count'': 2, ''MessageId'': ''IDRAC.1.6.SYS453'',
    ''RelatedProperties'': [''Image''], ''RelatedProperties@odata.count'': 1, ''Resolution'':
    ''Do the following the retry the operation: 1) Check if the image file is valid
    and of support type. iDRAC supports only the .ISO files for CD and .IMG file for
    removable drive. 2) Check if the action is performed on the correct device.'',

Comment 4 Juan Manuel Parrilla Madrid 2021-05-17 10:37:35 UTC
Created attachment 1784009 [details]
Issue loading image into iDrac


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