Hardware requires more mandatory properties to Insert Virtual Media

Bug #2072805 reported by Iury Gregory Melo Ferreira
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sushy
In Progress
High
Iury Gregory Melo Ferreira

Bug Description

While trying to insert virtual media ironic will fail becuase we don't some some properties that the hardware is considering mandatory.

{
  "error":{
    "message":"Some of the properties which are mandatory to complete the action are missing in the request body.Please provide values for mandatory properties.Mandatory properties are: Image, TransferProtocolType, Inserted, TransferMethod and WriteProtected. Missing properties are: Inserted,WriteProtected,TransferProtocolType,TransferMethod,",
    "code":"BadRequest"
  }
}

Before https://review.opendev.org/c/openstack/sushy/+/802690 we used to pass WriteProtected and Insert in the payload, but this is not the case anymore.

I've asked the reporter to test different scenarios to see if the message stays the same, and what is the reponse in case o EjectMedia also, so we can figure out an approach to fix this issue.

Changed in sushy:
assignee: nobody → Iury Gregory Melo Ferreira (iurygregory)
importance: Undecided → High
status: New → In Progress
Revision history for this message
Iury Gregory Melo Ferreira (iurygregory) wrote :

Currently seems like the problem is just in InsertMedia

This is the doc they shared with me https://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/c/sw/api/4_1/b_Cisco_IMC_REST_API_guide_4_1/b_Cisco_IMC_api_3x60_chapter_010.html#Cisco_Reference.dita_527bb182-81ca-46b5-a96c-ca2da2762fab

InsertMedia calls when is missing the property changes the last part of the message "Missing properties are: Inserted" for example. So we will consider the part of the message that tell us the mandatory properties

"Mandatory properties are: Image, TransferProtocolType, Inserted, TransferMethod and WriteProtected."

summary: - Hardware requires more mandatory properties for Virtual Media
+ Hardware requires more mandatory properties to Insert Virtual Media
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.