-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Description
Hello
This is Tashiro of Sojitz-Tech-Innovation Japan.
*This is relating to the case 25
(#25)
I have confirmed a issue while I executed Nutanix ZTF pc-config.yml in order to modify configuration of Prism Central(PC).
The ERROR messages is the following
[13:59:41] [MainThread] [INFO] Calling the action 'get_input_data'...
[13:59:41] [MainThread] [INFO] Reading contents of the file: [/root/zerotouch-framework/config/global.yml]
[13:59:41] [MainThread] [INFO] Reading contents of the file: [/root/zerotouch-framework/config/pc-config.yml]
[13:59:41] [MainThread] [INFO] Calling the action 'get_creds_from_vault'...
[13:59:41] [MainThread] [INFO] Calling the action 'validate_input_data'...
[13:59:41] [MainThread] [INFO] Validated the schema successfully!
[13:59:41] [MainThread] [INFO] Calling the action 'create_pc_objects'...
[13:59:41] [MainThread] [INFO] Running the Workflow...
[13:59:41] [MainThread] [INFO] Calling the script 'PcConfig'...
[13:59:41] [MainThread] [INFO] Calling the script 'ChangeDefaultAdminPasswordPc'...
[13:59:41] [MainThread] [DEBUG] PUT request for the URL: https://10.1.3.61:9440/api/iam/authn/v1/users/password
[13:59:41] [MainThread] [DEBUG] PUT payload: {"old_password": "Nutanix/4u", "new_password": "H1mitsuP0C!@Ntnx", "username": "admin"}
[13:59:41] [MainThread] [DEBUG] Starting new HTTPS connection (1): 10.1.3.61:9440
[13:59:41] [MainThread] [DEBUG] https://10.1.3.61:9440/ "PUT /api/iam/authn/v1/users/password HTTP/1.1" 404 None
[13:59:41] [MainThread] [DEBUG] RESPONSE: {'message': 'The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.'}
[13:59:41] [MainThread] [DEBUG] Got traceback
Traceback (most recent call last):
File "/root/zerotouch-framework/framework/helpers/rest_utils.py", line 67, in make_call
r.raise_for_status()
File "/root/zerotouch-framework/venv/lib64/python3.12/site-packages/requests/models.py", line 960, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: NOT FOUND for url: https://10.1.3.61:9440/api/iam/authn/v1/users/password
[13:59:41] [MainThread] [ERROR] ChangeDefaultAdminPasswordPc: Change_default_password failed for the PC '10.1.3.61' with the error: Could not change the PC password '10.1.3.61'. Error: {'code': 404, 'error': {'message': 'The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.'}}
I have executed the script with Debug Option(--debug),
the output says, It calles "ChangeDefaultAdminPasswordPC" then It try executing API(https://:9440/api/iam/authn/v1/users/password)
However the URL is not existed that's why API call failed. so this is NOT seems to be the root cause is my parameter of Yaml file.
This is BUG in my understanding.
I'm afraid but Could you have someone please confirm this is the bug or not and when to fixed it ??
I attached the log which I executed in debug mode
My environment is the following
What Platform / OS are you running?
Linux
What version are you running?
PrismCentral: pc.2024.3.1.4/ AOS: 7.0.1.6 / AHV: 10.0.1.1)
Best Regards,
What Platform / OS are you running?
Linux
What version are you running?
PrismCentral: pc.2024.3.1.4/ AOS: 7.0.1.6 / AHV: 10.0.1.1)