CiscoUcs / ucsmsdk

Python SDK for Cisco UCSM
Other
80 stars 60 forks source link

Authentication Failed when using Ansible modules on UCSM versions >= 4.2 #239

Open underqualifieditguy opened 10 months ago

underqualifieditguy commented 10 months ago

We seem to be facing "Authentication Failed" messages when querying data from UCSM versions >= 4.2, namely on 64xx FI hardware.

This is the output from an Ansible playbook run against UCSM version 4.2(2e). This happens regardless of if we're using local or LDAP authentication.

All of the below servers are connected to the same UCSM domain & server hostnames have been scrubbed in the below output.

fatal: [Server -> localhost]: FAILED! => {"changed": false, "msg": "[ErrorCode]: 551[ErrorDescription]: Authentication failed"}
fatal: [Server -> localhost]: FAILED! => {"changed": false, "msg": "[ErrorCode]: 551[ErrorDescription]: Authentication failed"}
ok: [Server -> localhost] => {"changed": false, "objects": {"sys/rack-unit-9/fw-status": {"back_up_holder_oper_state": "ready", "back_up_holder_pack_version": "", "child_action": null, "cimc_version": "", "dn": "sys/rack-unit-9/fw-status", "firmware_state": "", "oper_state": "ready", "package_version": "4.2(3g)C,4.2(2e)C", "pld_version": "", "rn": "fw-status", "sacl": null, "service_pack_oper_state": "ready", "service_pack_version": "", "status": null}}}
ok: [Server -> localhost] => {"changed": false, "objects": {"sys/rack-unit-1/fw-status": {"back_up_holder_oper_state": "ready", "back_up_holder_pack_version": "", "child_action": null, "cimc_version": "", "dn": "sys/rack-unit-1/fw-status", "firmware_state": "", "oper_state": "ready", "package_version": "4.2(3g)C,4.2(2e)C", "pld_version": "", "rn": "fw-status", "sacl": null, "service_pack_oper_state": "ready", "service_pack_version": "", "status": null}}}
ok: [Server -> localhost] => {"changed": false, "objects": {"sys/rack-unit-6/fw-status": {"back_up_holder_oper_state": "ready", "back_up_holder_pack_version": "", "child_action": null, "cimc_version": "", "dn": "sys/rack-unit-6/fw-status", "firmware_state": "", "oper_state": "ready", "package_version": "4.2(3g)C,4.2(2e)C", "pld_version": "", "rn": "fw-status", "sacl": null, "service_pack_oper_state": "ready", "service_pack_version": "", "status": null}}}
ok: [Server -> localhost] => {"changed": false, "objects": {"sys/rack-unit-14/fw-status": {"back_up_holder_oper_state": "ready", "back_up_holder_pack_version": "", "child_action": null, "cimc_version": "", "dn": "sys/rack-unit-14/fw-status", "firmware_state": "", "oper_state": "ready", "package_version": "4.2(3g)C,4.2(2e)C", "pld_version": "", "rn": "fw-status", "sacl": null, "service_pack_oper_state": "ready", "service_pack_version": "", "status": null}}}
ok: [Server -> localhost] => {"changed": false, "objects": {"sys/rack-unit-1/fw-status": {"back_up_holder_oper_state": "ready", "back_up_holder_pack_version": "", "child_action": null, "cimc_version": "", "dn": "sys/rack-unit-1/fw-status", "firmware_state": "", "oper_state": "ready", "package_version": "4.2(3g)C,4.2(2e)C", "pld_version": "", "rn": "fw-status", "sacl": null, "service_pack_oper_state": "ready", "service_pack_version": "", "status": null}}}
ok: [Server -> localhost] => {"changed": false, "objects": {"sys/rack-unit-5/fw-status": {"back_up_holder_oper_state": "ready", "back_up_holder_pack_version": "", "child_action": null, "cimc_version": "", "dn": "sys/rack-unit-5/fw-status", "firmware_state": "", "oper_state": "ready", "package_version": "4.2(3g)C,4.2(2e)C", "pld_version": "", "rn": "fw-status", "sacl": null, "service_pack_oper_state": "ready", "service_pack_version": "", "status": null}}}
ok: [Server -> localhost] => {"changed": false, "objects": {"sys/rack-unit-7/fw-status": {"back_up_holder_oper_state": "ready", "back_up_holder_pack_version": "", "child_action": null, "cimc_version": "", "dn": "sys/rack-unit-7/fw-status", "firmware_state": "", "oper_state": "ready", "package_version": "4.2(3g)C,4.2(2e)C", "pld_version": "", "rn": "fw-status", "sacl": null, "service_pack_oper_state": "ready", "service_pack_version": "", "status": null}}}
ok: [Server -> localhost] => {"changed": false, "objects": {"sys/rack-unit-6/fw-status": {"back_up_holder_oper_state": "ready", "back_up_holder_pack_version": "", "child_action": null, "cimc_version": "", "dn": "sys/rack-unit-6/fw-status", "firmware_state": "", "oper_state": "ready", "package_version": "4.2(3g)C,4.2(2e)C", "pld_version": "", "rn": "fw-status", "sacl": null, "service_pack_oper_state": "ready", "service_pack_version": "", "status": null}}}
fatal: [Server -> localhost]: FAILED! => {"changed": false, "msg": "[ErrorCode]: 551[ErrorDescription]: Authentication failed"}
fatal: [Server -> localhost]: FAILED! => {"changed": false, "msg": "[ErrorCode]: 551[ErrorDescription]: Authentication failed"}
fatal: [Server -> localhost]: FAILED! => {"changed": false, "msg": "[ErrorCode]: 551[ErrorDescription]: Authentication failed"}
fatal: [Server -> localhost]: FAILED! => {"changed": false, "msg": "[ErrorCode]: 551[ErrorDescription]: Authentication failed"}
fatal: [Server -> localhost]: FAILED! => {"changed": false, "msg": "[ErrorCode]: 551[ErrorDescription]: Authentication failed"}
ok: [Server -> localhost] => {"changed": false, "objects": {"sys/rack-unit-2/fw-status": {"back_up_holder_oper_state": "ready", "back_up_holder_pack_version": "", "child_action": null, "cimc_version": "", "dn": "sys/rack-unit-2/fw-status", "firmware_state": "", "oper_state": "ready", "package_version": "4.2(3g)C,4.2(2e)C", "pld_version": "", "rn": "fw-status", "sacl": null, "service_pack_oper_state": "ready", "service_pack_version": "", "status": null}}}
ok: [Server -> localhost] => {"changed": false, "objects": {"sys/rack-unit-2/fw-status": {"back_up_holder_oper_state": "ready", "back_up_holder_pack_version": "", "child_action": null, "cimc_version": "", "dn": "sys/rack-unit-2/fw-status", "firmware_state": "", "oper_state": "ready", "package_version": "4.2(3g)C,4.2(2e)C", "pld_version": "", "rn": "fw-status", "sacl": null, "service_pack_oper_state": "ready", "service_pack_version": "", "status": null}}}
ok: [Server -> localhost] => {"changed": false, "objects": {"sys/rack-unit-7/fw-status": {"back_up_holder_oper_state": "ready", "back_up_holder_pack_version": "", "child_action": null, "cimc_version": "", "dn": "sys/rack-unit-7/fw-status", "firmware_state": "", "oper_state": "ready", "package_version": "4.2(3g)C,4.2(2e)C", "pld_version": "", "rn": "fw-status", "sacl": null, "service_pack_oper_state": "ready", "service_pack_version": "", "status": null}}}
ok: [Server -> localhost] => {"changed": false, "objects": {"sys/rack-unit-13/fw-status": {"back_up_holder_oper_state": "ready", "back_up_holder_pack_version": "", "child_action": null, "cimc_version": "", "dn": "sys/rack-unit-13/fw-status", "firmware_state": "", "oper_state": "ready", "package_version": "4.2(3g)C,4.2(2e)C", "pld_version": "", "rn": "fw-status", "sacl": null, "service_pack_oper_state": "ready", "service_pack_version": "", "status": null}}}
fatal: [Server -> localhost]: FAILED! => {"changed": false, "msg": "[ErrorCode]: 551[ErrorDescription]: Authentication failed"}
fatal: [Server -> localhost]: FAILED! => {"changed": false, "msg": "[ErrorCode]: 551[ErrorDescription]: Authentication failed"}
fatal: [Server -> localhost]: FAILED! => {"changed": false, "msg": "[ErrorCode]: 551[ErrorDescription]: Authentication failed"}
ok: [Server -> localhost] => {"changed": false, "objects": {"sys/rack-unit-4/fw-status": {"back_up_holder_oper_state": "ready", "back_up_holder_pack_version": "", "child_action": null, "cimc_version": "", "dn": "sys/rack-unit-4/fw-status", "firmware_state": "", "oper_state": "ready", "package_version": "4.2(3g)C,4.2(2e)C", "pld_version": "", "rn": "fw-status", "sacl": null, "service_pack_oper_state": "ready", "service_pack_version": "", "status": null}}}
fatal: [Server -> localhost]: FAILED! => {"changed": false, "msg": "[ErrorCode]: 551[ErrorDescription]: Authentication failed"}
fatal: [Server -> localhost]: FAILED! => {"changed": false, "msg": "[ErrorCode]: 551[ErrorDescription]: Authentication failed"}
fatal: [Server -> localhost]: FAILED! => {"changed": false, "msg": "[ErrorCode]: 551[ErrorDescription]: Authentication failed"}
fatal: [Server -> localhost]: FAILED! => {"changed": false, "msg": "[ErrorCode]: 551[ErrorDescription]: Authentication failed"}
fatal: [Server -> localhost]: FAILED! => {"changed": false, "msg": "[ErrorCode]: 551[ErrorDescription]: Authentication failed"}
ok: [Server -> localhost] => {"changed": false, "objects": {"sys/rack-unit-8/fw-status": {"back_up_holder_oper_state": "ready", "back_up_holder_pack_version": "", "child_action": null, "cimc_version": "", "dn": "sys/rack-unit-8/fw-status", "firmware_state": "", "oper_state": "ready", "package_version": "4.2(3g)C,4.2(2e)C", "pld_version": "", "rn": "fw-status", "sacl": null, "service_pack_oper_state": "ready", "service_pack_version": "", "status": null}}}
fatal: [Server -> localhost]: FAILED! => {"changed": false, "msg": "[ErrorCode]: 551[ErrorDescription]: Authentication failed"}
ok: [Server -> localhost] => {"changed": false, "objects": {"sys/rack-unit-3/fw-status": {"back_up_holder_oper_state": "ready", "back_up_holder_pack_version": "", "child_action": null, "cimc_version": "", "dn": "sys/rack-unit-3/fw-status", "firmware_state": "", "oper_state": "ready", "package_version": "4.2(3g)C,4.2(2e)C", "pld_version": "", "rn": "fw-status", "sacl": null, "service_pack_oper_state": "ready", "service_pack_version": "", "status": null}}}
underqualifieditguy commented 10 months ago

Any update?

github-actions[bot] commented 8 months ago

This issue is stale because it has been open for 60 days with no activity.

dsoper2 commented 8 months ago

Adding a comment to keep open. Issue is tracked internally.

saripurigopi commented 7 months ago

Please check if Info Policy is enabled. May need to upgrade UCSM to one of 4.1(3m) / 4.2(3h) / 4.3(2b) versions that has fix for this issue.