dell / redfish-ansible-module

Ansible modules for Out-Of-Band Controllers using Redfish APIs
GNU General Public License v3.0
197 stars 80 forks source link

Getting Authentication issues while running DELL Ansible playbooks from AWX #121

Open C5312525 opened 2 years ago

C5312525 commented 2 years ago

Playbooks were working fine as expected in Ansible Tower(AWX) for DELL R840 and R930 Models For the past couple of days when ever we use Username and Password fields in Playbook getting Authentication issues for all the playbooks.

Error Message: fatal: [hec10esx00052.wdf.hec.sap.biz]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/libexec/platform-python"}, "changed": false, "msg": "HTTP Error 401 on GET request to 'https://hec10esx00052r.wdf.hec.sap.biz/redfish/v1/Systems', extended message: 'The authentication credentials included with this request are missing or invalid.'"} Kindly help us in this regards.

C5312525 commented 2 years ago

@anupamaloke , tried GITHub issue which you mentioned earlier as well under master folder of below link: https://github.com/dell/redfish-ansible-module/blob/master/playbooks/power/power_graceful_restart.yml,

getting same issue described above for this playbook provided also.

C5312525 commented 2 years ago

Authentication Error in AWX

anupamaloke commented 2 years ago

@C5312525, one thing would be check whether you are able to login to the iDRACs WebUI using those credentials.

C5312525 commented 2 years ago

Capture

I have tried logging into same host using web interface. I am able to login without any issues, moreover i found one issue, when credentials are being passed along with IDRAC Environment it is not throwing any issues as defined below. Authentication Error in AWX

If I start passing credentials for reboot playbook it is creating issues as below.

Issueswhilepassing creds