Unsolved

833

January 2nd, 2022 22:00

Redfish API error "msg": "Status code was 405 and not [200]: HTTP Error 405: Method Not Allowed"

Hi,
Using Ansible playbook trying to run a diagnostic test against the Dell poweredge server using iDRAC.
However,on POST to initiate the diagnostic, encountered an error

"msg": "Status code was 405 and not [200]: HTTP Error 405: Method Not Allowed",
"odata_version": "4.0",
"redirected": false,
"server": "Apache",
"status": 405,
"strict_transport_security": "max-age=63072000; includeSubDomains; preload",
"url": "https://xxx.corp/redfish/v1/Managers/iDRAC.Embedded.1/DellLCService/Actions/DellLCService.RunePSADiagnostics",
"x_frame_options": "DENY"

 

 

If we use curl to test the Redfish API it does not through the error.

curl -k -u "XXXX:XXXX" -v -H "Content-Type: application/json" -d "{"RebootJobType": "GracefulRebootWithoutForcedShutdown", "RunMode": "Express"}" https://xxxx.corp/redfish/v1/Managers/iDRAC.Embedded.1/Oem/Dell/DellLCService/Actions/DellLCService.RunePSADiagnostics

Trying x.x.x.x...
TCP_NODELAY set
Connected to xxxx.corp (xx.xx.xx.xx) port 443 (#0)
schannel: SSL/TLS connection with xxxx.corp port 443 (step 1/3)
schannel: disabled server certificate revocation checks
schannel: verifyhost setting prevents Schannel from comparing the supplied target name with the subject names in server certificates. Also disables SNI.
schannel: sending initial handshake data: sending 168 bytes...
schannel: sent initial handshake data: sent 168 bytes
schannel: SSL/TLS connection with xxxx.corp port 443 (step 2/3)
{"@Message.ExtendedInfo":[{"Message":"The operation successfully completed.","MessageArgs":[],MessageArgs@odata.count:0,"MessageId":"IDRAC.2.4.SYS413","RelatedProperties":[],RelatedProperties@odata.count:0,"Resolution":"No response action is required.","Severity":"Informational"},{"Message":"Successfully Completed Request","MessageArgs":[],MessageArgs@odata.count:0,"MessageId":"Base.1.7.Success","RelatedProperties":[],RelatedProperties@odata.count:0,"Resolution":"None","Severity":"OK"}]}* Curl_http_done: called premature == 0

Connection #0 to host xxxx.corp left intact
iDRAC version: 5.00.10.20
iDRAC 9 servergen 14G

Would appreciate if anyone can help.

Moderator

 • 

3.9K Posts

January 3rd, 2022 07:00

Hello,

unfortunately we cannot directly support scripting, but let's see if other customer had a similar issue and they can help you.

Thanks
Marco

January 3rd, 2022 20:00

Thank you Marco for your response.

As per the document https://www.dell.com/support/manuals/en-us/idrac9-lifecycle-controller-v4.x-series/idrac9_4.00.00.00_redfishapiguide_pub/supported-action--runepsadiagnostics?guid=guid-adf45a5b-a8e1-4c04-ab2f-f05fb012bf50&lang=en-us it should work.

However,we will wait to know if similar issue faced by others.

 

Regards

Ashok Behera

Let us wait for similar issue.

 

No Events found!

Top