Skip to content

This is Karthik from Cisco IT and Not able to Claim the UCS 885A Device into Cisco Intersight using claim_target.py module. #75

@karthi81

Description

@karthi81

CLI Method:
(iaas_compute_pack) [karthik@etools1 iaas_compute_pack]$ python dc_infra_ansible/module_utils/claim_target.py -t '[{"device_type": "imc", "hostname": "10.101.xx.xx", "password": "XXXXX", "proxy_host": "proxy-wsa.esl.cisco.com", "proxy_port": 80, "username": "admin", "read_only": "false", "resource_groups": ["prod-it-ai-iaas-org"]}]' --url "https://intersight.com" --ignore-tls --api-key-id XXXXXXXXXXXXXXXXXXXXXXX --api-key-file "/tmp/intersight_priv_key.txt"
/apps/karthik_projects/virtualenvs/iaas_compute_pack/lib64/python3.11/site-packages/urllib3/connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host '10.101.208.122'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
warnings.warn(
{"changed": false, "msg": " Host: 10.101.208.122 Login error"}
(iaas_compute_pack) [kkarunam@etools1 iaas_compute_pack]$

Refer Log from our workflow,
(Just for refence)

{
"changed": false,
"stdout": "2025-11-06 14:22:17.019 UTC - INFO - C-Series Service Profile Deploy process started\n2025-11-06 14:22:17.019 UTC - INFO - Identifying the passcode for the CIMC host\n2025-11-06 14:22:17.019 UTC - INFO - Load Conjur credentials....\n2025-11-06 14:22:17.556 UTC - INFO - Conjur credentials loaded successfully\n2025-11-06 14:22:17.784 UTC - INFO - Load Conjur credentials Completed\n2025-11-06 14:22:17.784 UTC - INFO - Identifying the passcode for the CIMC host\n2025-11-06 14:22:17.875 UTC - INFO - HTTP Error 401: Unauthorized\n2025-11-06 14:22:17.955 UTC - INFO - HTTP Error 401: Unauthorized\n2025-11-06 14:22:18.025 UTC - INFO - HTTP Error 401: Unauthorized\n2025-11-06 14:22:18.099 UTC - INFO - HTTP Error 401: Unauthorized\n2025-11-06 14:22:18.179 UTC - INFO - HTTP Error 401: Unauthorized\n2025-11-06 14:22:18.257 UTC - INFO - HTTP Error 401: Unauthorized\n2025-11-06 14:22:18.370 UTC - INFO - HTTP Error 401: Unauthorized\n2025-11-06 14:22:18.438 UTC - INFO - HTTP Error 401: Unauthorized\n2025-11-06 14:22:18.535 UTC - INFO - HTTP Error 401: Unauthorized\n2025-11-06 14:22:18.608 UTC - INFO - HTTP Error 401: Unauthorized\n2025-11-06 14:22:18.608 UTC - INFO - Configuring the CIMC Name if required\n2025-11-06 14:22:18.608 UTC - INFO - Getting the Server Serial Number process started",
"stderr": "2025-11-06 14:22:17,873 - imc - DEBUG - WWW-Authenticate: Basic\nConnection: close\nStrict-Transport-Security: max-age=31536000; includeSubdomains; preload\nX-Frame-Options: DENY\nPragma: no-cache\nCache-Control: no-Store,no-Cache\nX-XSS-Protection: 1; mode=block\nX-Content-Type-Options: nosniff\nContent-Security-Policy: default-src 'none'; img-src 'self' data:; font-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'; connect-src 'self' wss:; form-action 'none'; frame-ancestors 'self'; object-src 'none'; base-uri 'none'; frame-src 'self'; manifest-src 'self'\nDate: Thu, 06 Nov 2025 14:22:17 GMT\nContent-Length: 12\n\n\n2025-11-06 14:22:17,954 - imc - DEBUG - WWW-Authenticate: Basic\nConnection: close\nStrict-Transport-Security: max-age=31536000; includeSubdomains; preload\nX-Frame-Options: DENY\nPragma: no-cache\nCache-Control: no-Store,no-Cache\nX-XSS-Protection: 1; mode=block\nX-Content-Type-Options: nosniff\nContent-Security-Policy: default-src 'none'; img-src 'self' data:; font-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'; connect-src 'self' wss:; form-action 'none'; frame-ancestors 'self'; object-src 'none'; base-uri 'none'; frame-src 'self'; manifest-src 'self'\nDate: Thu, 06 Nov 2025 14:22:17 GMT\nContent-Length: 12\n\n\n2025-11-06 14:22:18,025 - imc - DEBUG - WWW-Authenticate: Basic\nConnection: close\nStrict-Transport-Security: max-age=31536000; includeSubdomains; preload\nX-Frame-Options: DENY\nPragma: no-cache\nCache-Control: no-Store,no-Cache\nX-XSS-Protection: 1; mode=block\nX-Content-Type-Options: nosniff\nContent-Security-Policy: default-src 'none'; img-src 'self' data:; font-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'; connect-src 'self' wss:; form-action 'none'; frame-ancestors 'self'; object-src 'none'; base-uri 'none'; frame-src 'self'; manifest-src 'self'\nDate: Thu, 06 Nov 2025 14:22:17 GMT\nContent-Length: 12\n\n\n2025-11-06 14:22:18,098 - imc - DEBUG - WWW-Authenticate: Basic\nConnection: close\nStrict-Transport-Security: max-age=31536000; includeSubdomains; preload\nX-Frame-Options: DENY\nPragma: no-cache\nCache-Control: no-Store,no-Cache\nX-XSS-Protection: 1; mode=block\nX-Content-Type-Options: nosniff\nContent-Security-Policy: default-src 'none'; img-src 'self' data:; font-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'; connect-src 'self' wss:; form-action 'none'; frame-ancestors 'self'; object-src 'none'; base-uri 'none'; frame-src 'self'; manifest-src 'self'\nDate: Thu, 06 Nov 2025 14:22:17 GMT\nContent-Length: 12\n\n\n2025-11-06 14:22:18,178 - imc - DEBUG - WWW-Authenticate: Basic\nConnection: close\nStrict-Transport-Security: max-age=31536000; includeSubdomains; preload\nX-Frame-Options: DENY\nPragma: no-cache\nCache-Control: no-Store,no-Cache\nX-XSS-Protection: 1; mode=block\nX-Content-Type-Options: nosniff\nContent-Security-Policy: default-src 'none'; img-src 'self' data:; font-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'; connect-src 'self' wss:; form-action 'none'; frame-ancestors 'self'; object-src 'none'; base-uri 'none'; frame-src 'self'; manifest-src 'self'\nDate: Thu, 06 Nov 2025 14:22:17 GMT\nContent-Length: 12\n\n\n2025-11-06 14:22:18,256 - imc - DEBUG - WWW-Authenticate: Basic\nConnection: close\nStrict-Transport-Security: max-age=31536000; includeSubdomains; preload\nX-Frame-Options: DENY\nPragma: no-cache\nCache-Control: no-Store,no-Cache\nX-XSS-Protection: 1; mode=block\nX-Content-Type-Options: nosniff\nContent-Security-Policy: default-src 'none'; img-src 'self' data:; font-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'; connect-src 'self' wss:; form-action 'none'; frame-ancestors 'self'; object-src 'none'; base-uri 'none'; frame-src 'self'; manifest-src 'self'\nDate: Thu, 06 Nov 2025 14:22:17 GMT\nContent-Length: 12\n\n\n2025-11-06 14:22:18,369 - imc - DEBUG - WWW-Authenticate: Basic\nConnection: close\nStrict-Transport-Security: max-age=31536000; includeSubdomains; preload\nX-Frame-Options: DENY\nPragma: no-cache\nCache-Control: no-Store,no-Cache\nX-XSS-Protection: 1; mode=block\nX-Content-Type-Options: nosniff\nContent-Security-Policy: default-src 'none'; img-src 'self' data:; font-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'; connect-src 'self' wss:; form-action 'none'; frame-ancestors 'self'; object-src 'none'; base-uri 'none'; frame-src 'self'; manifest-src 'self'\nDate: Thu, 06 Nov 2025 14:22:17 GMT\nContent-Length: 12\n\n\n2025-11-06 14:22:18,438 - imc - DEBUG - WWW-Authenticate: Basic\nConnection: close\nStrict-Transport-Security: max-age=31536000; includeSubdomains; preload\nX-Frame-Options: DENY\nPragma: no-cache\nCache-Control: no-Store,no-Cache\nX-XSS-Protection: 1; mode=block\nX-Content-Type-Options: nosniff\nContent-Security-Policy: default-src 'none'; img-src 'self' data:; font-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'; connect-src 'self' wss:; form-action 'none'; frame-ancestors 'self'; object-src 'none'; base-uri 'none'; frame-src 'self'; manifest-src 'self'\nDate: Thu, 06 Nov 2025 14:22:17 GMT\nContent-Length: 12\n\n\n2025-11-06 14:22:18,534 - imc - DEBUG - WWW-Authenticate: Basic\nConnection: close\nStrict-Transport-Security: max-age=31536000; includeSubdomains; preload\nX-Frame-Options: DENY\nPragma: no-cache\nCache-Control: no-Store,no-Cache\nX-XSS-Protection: 1; mode=block\nX-Content-Type-Options: nosniff\nContent-Security-Policy: default-src 'none'; img-src 'self' data:; font-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'; connect-src 'self' wss:; form-action 'none'; frame-ancestors 'self'; object-src 'none'; base-uri 'none'; frame-src 'self'; manifest-src 'self'\nDate: Thu, 06 Nov 2025 14:22:17 GMT\nContent-Length: 12\n\n\n2025-11-06 14:22:18,607 - imc - DEBUG - WWW-Authenticate: Basic\nConnection: close\nStrict-Transport-Security: max-age=31536000; includeSubdomains; preload\nX-Frame-Options: DENY\nPragma: no-cache\nCache-Control: no-Store,no-Cache\nX-XSS-Protection: 1; mode=block\nX-Content-Type-Options: nosniff\nContent-Security-Policy: default-src 'none'; img-src 'self' data:; font-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'; connect-src 'self' wss:; form-action 'none'; frame-ancestors 'self'; object-src 'none'; base-uri 'none'; frame-src 'self'; manifest-src 'self'\nDate: Thu, 06 Nov 2025 14:22:17 GMT\nContent-Length: 12\n\n\n2025-11-06 14:22:18,676 - imc - DEBUG - WWW-Authenticate: Basic\nConnection: close\nStrict-Transport-Security: max-age=31536000; includeSubdomains; preload\nX-Frame-Options: DENY\nPragma: no-cache\nCache-Control: no-Store,no-Cache\nX-XSS-Protection: 1; mode=block\nX-Content-Type-Options: nosniff\nContent-Security-Policy: default-src 'none'; img-src 'self' data:; font-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'; connect-src 'self' wss:; form-action 'none'; frame-ancestors 'self'; object-src 'none'; base-uri 'none'; frame-src 'self'; manifest-src 'self'\nDate: Thu, 06 Nov 2025 14:22:17 GMT\nContent-Length: 12\n\n\nTraceback (most recent call last):\n File "/runner/project/dc_infra_ansible/module_utils/cseries_service_profile_deploy.py", line 124, in \n cseries_sp_deploy(cimc_name=args['cimc_name'], host_name=args['host_name'], org_name=args['org_name'])\n File "/runner/project/dc_infra_ansible/module_utils/cseries_service_profile_deploy.py", line 58, in cseries_sp_deploy\n cimc_serial_number = cimc_lib.get_server_serial_number(cimc_name, cimc_user, cimc_pass_code)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/runner/project/dc_infra_ansible/module_utils/cimc_lib.py", line 243, in get_server_serial_number\n handle.login()\n File "/usr/local/lib/python3.11/site-packages/imcsdk/imchandle.py", line 152, in login\n return self._login(auto_refresh=auto_refresh, force=force, timeout=timeout)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/local/lib/python3.11/site-packages/imcsdk/imcsession.py", line 600, in _login\n response = self.post_elem(elem, timeout=timeout)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/local/lib/python3.11/site-packages/imcsdk/imcsession.py", line 292, in post_elem\n response_str = self.post_xml(xml_str, timeout=timeout)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/local/lib/python3.11/site-packages/imcsdk/imcsession.py", line 236, in post_xml\n response_str = self.post(uri=imc_uri, data=xml_str, read=read, timeout=timeout)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/local/lib/python3.11/site-packages/imcsdk/imcsession.py", line 212, in post\n response = self.__driver.post(uri=uri, data=data, read=read, timeout=timeout)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/local/lib/python3.11/site-packages/imcsdk/imcdriver.py", line 263, in post\n response = opener.open(request, timeout=timeout)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib64/python3.11/urllib/request.py", line 525, in open\n response = meth(req, response)\n ^^^^^^^^^^^^^^^^^^^\n File "/usr/lib64/python3.11/urllib/request.py", line 634, in http_response\n response = self.parent.error(\n ^^^^^^^^^^^^^^^^^^\n File "/usr/lib64/python3.11/urllib/request.py", line 563, in error\n return self._call_chain(*args)\n ^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib64/python3.11/urllib/request.py", line 496, in _call_chain\n result = func(*args)\n ^^^^^^^^^^^\n File "/usr/lib64/python3.11/urllib/request.py", line 643, in http_error_default\n raise HTTPError(req.full_url, code, msg, hdrs, fp)\nurllib.error.HTTPError: HTTP Error 401: Unauthorized",
"rc": 1,
"cmd": "python /runner/project/dc_infra_ansible/module_utils/cseries_service_profile_deploy.py --cimc-name "alln01-hgx1-hgpu-012-r" --host-name "alln01-hgx1-hgpu-012" --org-name "PROD-IT-AI-IAAS-ORG"\n",
"start": "2025-11-06 14:22:16.792203",
"end": "2025-11-06 14:22:18.715438",
"delta": "0:00:01.923235",
"msg": "non-zero return code",
"invocation": {
"module_args": {
"_raw_params": "python /runner/project/dc_infra_ansible/module_utils/cseries_service_profile_deploy.py --cimc-name "alln01-hgx1-hgpu-012-r" --host-name "alln01-hgx1-hgpu-012" --org-name "PROD-IT-AI-IAAS-ORG"\n",
"_uses_shell": true,
"expand_argument_vars": true,
"stdin_add_newline": true,
"strip_empty_ends": true,
"argv": null,
"chdir": null,
"executable": null,
"creates": null,
"removes": null,
"stdin": null
}
},
"stdout_lines": [
"2025-11-06 14:22:17.019 UTC - INFO - C-Series Service Profile Deploy process started",
"2025-11-06 14:22:17.019 UTC - INFO - Identifying the passcode for the CIMC host",
"2025-11-06 14:22:17.019 UTC - INFO - Load Conjur credentials....",
"2025-11-06 14:22:17.556 UTC - INFO - Conjur credentials loaded successfully",
"2025-11-06 14:22:17.784 UTC - INFO - Load Conjur credentials Completed",
"2025-11-06 14:22:17.784 UTC - INFO - Identifying the passcode for the CIMC host",
"2025-11-06 14:22:17.875 UTC - INFO - HTTP Error 401: Unauthorized",
"2025-11-06 14:22:17.955 UTC - INFO - HTTP Error 401: Unauthorized",
"2025-11-06 14:22:18.025 UTC - INFO - HTTP Error 401: Unauthorized",
"2025-11-06 14:22:18.099 UTC - INFO - HTTP Error 401: Unauthorized",
"2025-11-06 14:22:18.179 UTC - INFO - HTTP Error 401: Unauthorized",
"2025-11-06 14:22:18.257 UTC - INFO - HTTP Error 401: Unauthorized",
"2025-11-06 14:22:18.370 UTC - INFO - HTTP Error 401: Unauthorized",
"2025-11-06 14:22:18.438 UTC - INFO - HTTP Error 401: Unauthorized",
"2025-11-06 14:22:18.535 UTC - INFO - HTTP Error 401: Unauthorized",
"2025-11-06 14:22:18.608 UTC - INFO - HTTP Error 401: Unauthorized",
"2025-11-06 14:22:18.608 UTC - INFO - Configuring the CIMC Name if required",
"2025-11-06 14:22:18.608 UTC - INFO - Getting the Server Serial Number process started"
],
"stderr_lines": [
"2025-11-06 14:22:17,873 - imc - DEBUG - WWW-Authenticate: Basic",
"Connection: close",
"Strict-Transport-Security: max-age=31536000; includeSubdomains; preload",
"X-Frame-Options: DENY",
"Pragma: no-cache",
"Cache-Control: no-Store,no-Cache",
"X-XSS-Protection: 1; mode=block",
"X-Content-Type-Options: nosniff",
"Content-Security-Policy: default-src 'none'; img-src 'self' data:; font-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'; connect-src 'self' wss:; form-action 'none'; frame-ancestors 'self'; object-src 'none'; base-uri 'none'; frame-src 'self'; manifest-src 'self'",
"Date: Thu, 06 Nov 2025 14:22:17 GMT",
"Content-Length: 12",
"",
"",
"2025-11-06 14:22:17,954 - imc - DEBUG - WWW-Authenticate: Basic",
"Connection: close",
"Strict-Transport-Security: max-age=31536000; includeSubdomains; preload",
"X-Frame-Options: DENY",
"Pragma: no-cache",
"Cache-Control: no-Store,no-Cache",
"X-XSS-Protection: 1; mode=block",
"X-Content-Type-Options: nosniff",
"Content-Security-Policy: default-src 'none'; img-src 'self' data:; font-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'; connect-src 'self' wss:; form-action 'none'; frame-ancestors 'self'; object-src 'none'; base-uri 'none'; frame-src 'self'; manifest-src 'self'",
"Date: Thu, 06 Nov 2025 14:22:17 GMT",
"Content-Length: 12",
"",
"",
"2025-11-06 14:22:18,025 - imc - DEBUG - WWW-Authenticate: Basic",
"Connection: close",
"Strict-Transport-Security: max-age=31536000; includeSubdomains; preload",
"X-Frame-Options: DENY",
"Pragma: no-cache",
"Cache-Control: no-Store,no-Cache",
"X-XSS-Protection: 1; mode=block",
"X-Content-Type-Options: nosniff",
"Content-Security-Policy: default-src 'none'; img-src 'self' data:; font-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'; connect-src 'self' wss:; form-action 'none'; frame-ancestors 'self'; object-src 'none'; base-uri 'none'; frame-src 'self'; manifest-src 'self'",
"Date: Thu, 06 Nov 2025 14:22:17 GMT",
"Content-Length: 12",
"",
"",
"2025-11-06 14:22:18,098 - imc - DEBUG - WWW-Authenticate: Basic",
"Connection: close",
"Strict-Transport-Security: max-age=31536000; includeSubdomains; preload",
"X-Frame-Options: DENY",
"Pragma: no-cache",
"Cache-Control: no-Store,no-Cache",
"X-XSS-Protection: 1; mode=block",
"X-Content-Type-Options: nosniff",
"Content-Security-Policy: default-src 'none'; img-src 'self' data:; font-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'; connect-src 'self' wss:; form-action 'none'; frame-ancestors 'self'; object-src 'none'; base-uri 'none'; frame-src 'self'; manifest-src 'self'",
"Date: Thu, 06 Nov 2025 14:22:17 GMT",
"Content-Length: 12",
"",
"",
"2025-11-06 14:22:18,178 - imc - DEBUG - WWW-Authenticate: Basic",
"Connection: close",
"Strict-Transport-Security: max-age=31536000; includeSubdomains; preload",
"X-Frame-Options: DENY",
"Pragma: no-cache",
"Cache-Control: no-Store,no-Cache",
"X-XSS-Protection: 1; mode=block",
"X-Content-Type-Options: nosniff",
"Content-Security-Policy: default-src 'none'; img-src 'self' data:; font-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'; connect-src 'self' wss:; form-action 'none'; frame-ancestors 'self'; object-src 'none'; base-uri 'none'; frame-src 'self'; manifest-src 'self'",
"Date: Thu, 06 Nov 2025 14:22:17 GMT",
"Content-Length: 12",
"",
"",
"2025-11-06 14:22:18,256 - imc - DEBUG - WWW-Authenticate: Basic",
"Connection: close",
"Strict-Transport-Security: max-age=31536000; includeSubdomains; preload",
"X-Frame-Options: DENY",
"Pragma: no-cache",
"Cache-Control: no-Store,no-Cache",
"X-XSS-Protection: 1; mode=block",
"X-Content-Type-Options: nosniff",
"Content-Security-Policy: default-src 'none'; img-src 'self' data:; font-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'; connect-src 'self' wss:; form-action 'none'; frame-ancestors 'self'; object-src 'none'; base-uri 'none'; frame-src 'self'; manifest-src 'self'",
"Date: Thu, 06 Nov 2025 14:22:17 GMT",
"Content-Length: 12",
"",
"",
"2025-11-06 14:22:18,369 - imc - DEBUG - WWW-Authenticate: Basic",
"Connection: close",
"Strict-Transport-Security: max-age=31536000; includeSubdomains; preload",
"X-Frame-Options: DENY",
"Pragma: no-cache",
"Cache-Control: no-Store,no-Cache",
"X-XSS-Protection: 1; mode=block",
"X-Content-Type-Options: nosniff",
"Content-Security-Policy: default-src 'none'; img-src 'self' data:; font-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'; connect-src 'self' wss:; form-action 'none'; frame-ancestors 'self'; object-src 'none'; base-uri 'none'; frame-src 'self'; manifest-src 'self'",
"Date: Thu, 06 Nov 2025 14:22:17 GMT",
"Content-Length: 12",
"",
"",
"2025-11-06 14:22:18,438 - imc - DEBUG - WWW-Authenticate: Basic",
"Connection: close",
"Strict-Transport-Security: max-age=31536000; includeSubdomains; preload",
"X-Frame-Options: DENY",
"Pragma: no-cache",
"Cache-Control: no-Store,no-Cache",
"X-XSS-Protection: 1; mode=block",
"X-Content-Type-Options: nosniff",
"Content-Security-Policy: default-src 'none'; img-src 'self' data:; font-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'; connect-src 'self' wss:; form-action 'none'; frame-ancestors 'self'; object-src 'none'; base-uri 'none'; frame-src 'self'; manifest-src 'self'",
"Date: Thu, 06 Nov 2025 14:22:17 GMT",
"Content-Length: 12",
"",
"",
"2025-11-06 14:22:18,534 - imc - DEBUG - WWW-Authenticate: Basic",
"Connection: close",
"Strict-Transport-Security: max-age=31536000; includeSubdomains; preload",
"X-Frame-Options: DENY",
"Pragma: no-cache",
"Cache-Control: no-Store,no-Cache",
"X-XSS-Protection: 1; mode=block",
"X-Content-Type-Options: nosniff",
"Content-Security-Policy: default-src 'none'; img-src 'self' data:; font-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'; connect-src 'self' wss:; form-action 'none'; frame-ancestors 'self'; object-src 'none'; base-uri 'none'; frame-src 'self'; manifest-src 'self'",
"Date: Thu, 06 Nov 2025 14:22:17 GMT",
"Content-Length: 12",
"",
"",
"2025-11-06 14:22:18,607 - imc - DEBUG - WWW-Authenticate: Basic",
"Connection: close",
"Strict-Transport-Security: max-age=31536000; includeSubdomains; preload",
"X-Frame-Options: DENY",
"Pragma: no-cache",
"Cache-Control: no-Store,no-Cache",
"X-XSS-Protection: 1; mode=block",
"X-Content-Type-Options: nosniff",
"Content-Security-Policy: default-src 'none'; img-src 'self' data:; font-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'; connect-src 'self' wss:; form-action 'none'; frame-ancestors 'self'; object-src 'none'; base-uri 'none'; frame-src 'self'; manifest-src 'self'",
"Date: Thu, 06 Nov 2025 14:22:17 GMT",
"Content-Length: 12",
"",
"",
"2025-11-06 14:22:18,676 - imc - DEBUG - WWW-Authenticate: Basic",
"Connection: close",
"Strict-Transport-Security: max-age=31536000; includeSubdomains; preload",
"X-Frame-Options: DENY",
"Pragma: no-cache",
"Cache-Control: no-Store,no-Cache",
"X-XSS-Protection: 1; mode=block",
"X-Content-Type-Options: nosniff",
"Content-Security-Policy: default-src 'none'; img-src 'self' data:; font-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'; connect-src 'self' wss:; form-action 'none'; frame-ancestors 'self'; object-src 'none'; base-uri 'none'; frame-src 'self'; manifest-src 'self'",
"Date: Thu, 06 Nov 2025 14:22:17 GMT",
"Content-Length: 12",
"",
"",
"Traceback (most recent call last):",
" File "/runner/project/dc_infra_ansible/module_utils/cseries_service_profile_deploy.py", line 124, in ",
" cseries_sp_deploy(cimc_name=args['cimc_name'], host_name=args['host_name'], org_name=args['org_name'])",
" File "/runner/project/dc_infra_ansible/module_utils/cseries_service_profile_deploy.py", line 58, in cseries_sp_deploy",
" cimc_serial_number = cimc_lib.get_server_serial_number(cimc_name, cimc_user, cimc_pass_code)",
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^",
" File "/runner/project/dc_infra_ansible/module_utils/cimc_lib.py", line 243, in get_server_serial_number",
" handle.login()",
" File "/usr/local/lib/python3.11/site-packages/imcsdk/imchandle.py", line 152, in login",
" return self._login(auto_refresh=auto_refresh, force=force, timeout=timeout)",
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^",
" File "/usr/local/lib/python3.11/site-packages/imcsdk/imcsession.py", line 600, in _login",
" response = self.post_elem(elem, timeout=timeout)",
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^",
" File "/usr/local/lib/python3.11/site-packages/imcsdk/imcsession.py", line 292, in post_elem",
" response_str = self.post_xml(xml_str, timeout=timeout)",
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^",
" File "/usr/local/lib/python3.11/site-packages/imcsdk/imcsession.py", line 236, in post_xml",
" response_str = self.post(uri=imc_uri, data=xml_str, read=read, timeout=timeout)",
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^",
" File "/usr/local/lib/python3.11/site-packages/imcsdk/imcsession.py", line 212, in post",
" response = self.__driver.post(uri=uri, data=data, read=read, timeout=timeout)",
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^",
" File "/usr/local/lib/python3.11/site-packages/imcsdk/imcdriver.py", line 263, in post",
" response = opener.open(request, timeout=timeout)",
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^",
" File "/usr/lib64/python3.11/urllib/request.py", line 525, in open",
" response = meth(req, response)",
" ^^^^^^^^^^^^^^^^^^^",
" File "/usr/lib64/python3.11/urllib/request.py", line 634, in http_response",
" response = self.parent.error(",
" ^^^^^^^^^^^^^^^^^^",
" File "/usr/lib64/python3.11/urllib/request.py", line 563, in error",
" return self._call_chain(*args)",
" ^^^^^^^^^^^^^^^^^^^^^^^",
" File "/usr/lib64/python3.11/urllib/request.py", line 496, in _call_chain",
" result = func(*args)",
" ^^^^^^^^^^^",
" File "/usr/lib64/python3.11/urllib/request.py", line 643, in http_error_default",
" raise HTTPError(req.full_url, code, msg, hdrs, fp)",
"urllib.error.HTTPError: HTTP Error 401: Unauthorized"
],
"_ansible_no_log": false,
"attempts": 3,
"_ansible_delegated_vars": {
"ansible_host": "localhost",
"ansible_port": null,
"ansible_user": "root",
"ansible_connection": "local"
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions