dell / iDRAC-Redfish-Scripting

Python and PowerShell scripting for Dell EMC PowerEdge iDRAC REST API with DMTF Redfish
GNU General Public License v2.0
600 stars 278 forks source link

About the credentials of http image server for redfish simple update #165

Closed Kdy77k closed 3 years ago

Kdy77k commented 3 years ago

I use the following post command to update firmware and get command to track the progress of provisioning:

post https://192.168.1.1/redfish/v1/UpdateService/Actions/UpdateService.SimpleUpdate { "ImageURI":"http://abc:123@192.168.100.100/firmware/idrac8/iDRAC-with-Lifecycle-Controller_Firmware_DPV0R_WN64_2.75.100.75_A00.EXE", "TransferProtocol":"HTTP" } or { "ImageURI":"http://192.168.100.100/firmware/Dell/iDRAC-with-Lifecycle-Controller_Firmware_DPV0R_WN64_2.75.100.75_A00.EXE", "TransferProtocol":"HTTP", "UserName":"abc", "Password":"123" }

get https://192.168.1.1/redfish/v1/TaskService/Tasks/JID_171396510696

{ "@odata.context": "/redfish/v1/$metadata#Task.Task", "@odata.id": "/redfish/v1/TaskService/Tasks/JID_171396510696", "@odata.type": "#Task.v1_1_1.Task", "Description": "Server Configuration and other Tasks running on iDRAC are listed here", "EndTime": "2021-03-30T16:27:47-05:00", "Id": "JID_171396510696", "Messages": [ { "Message": "The specified user credentials necessary for downloading an update package were not correct.", "MessageArgs": [], "MessageArgs@odata.count": 0, "MessageId": "RED050" } ], "Messages@odata.count": 1, "Name": "Firmware Update: Generic", "Oem": { "Dell": { "@odata.type": "#DellJob.v1_0_1.DellJob", "CompletionTime": "2021-03-30T16:27:47", "Description": "Job Instance", "EndTime": null, "Id": "JID_171396510696", "JobState": "Completed", "JobType": "FirmwareUpdate", "Message": "The specified user credentials necessary for downloading an update package were not correct.", "MessageArgs": [], "MessageId": "RED050", "Name": "Firmware Update: Generic", "PercentComplete": 0, "StartTime": "TIME_NOW", "TargetSettingsURI": null } }, "StartTime": "", "TaskState": "Completed", "TaskStatus": "Critical" } The credentials for image http server (192.168.1.1) are correct. But why the Idrac server always returns error code "RED050"

Kdy77k commented 3 years ago

@texroemer

texroemer commented 3 years ago

Hi @Kdy77k

Sorry about the late reply, was waiting for responses from internal teams at Dell. On iDRAC 7/8 using SimpleUpdate with TransferProtocol, auth(basic and digest) is not supported when using HTTP, reason for the RED050 error. iDRAC9 does support HTTP with digest auth but if using iDRAC 7/8, you can only use HTTP with no auth. I'm still working with internal teams to see if HTTP auth support will get added to a future iDRAC 7/8 release, will let you know once i find out.

Thanks

texroemer commented 3 years ago

Hi @Kdy77k

Found out there are no future plans to add HTTP auth support to iDRAC 7/8. If you're unable to use HTTP with no auth as a workaround, you'll need to escalate this concern to Dell tech support team which this will go through the issue escalation process.

Thanks

Kdy77k commented 3 years ago

@texroemer Thank you for your reply.

  1. I want to know whether Idrac9 also don't support Http authentication?
  2. If there is a plan to support Https in the future on Idrac8 and Idrac9 platform?
texroemer commented 3 years ago

Hi @Kdy77k

Latest iDRAC9 (4.40) does support HTTP / HTTPS with digest auth (basic auth is blocked and not supported due to not being secured).

As of now, there are no future plans to add HTTPS support to iDRAC8.

Thanks

Kdy77k commented 3 years ago

Thank you so much. :)

texroemer commented 3 years ago

No problem, glad to help.