TCA 2.3.0 to 3.1.1 is failed with error "Failed to update migration status 401 Client Error: Unauthorized for url" on TCA-CP
search cancel

TCA 2.3.0 to 3.1.1 is failed with error "Failed to update migration status 401 Client Error: Unauthorized for url" on TCA-CP

book

Article ID: 398015

calendar_today

Updated On:

Products

VMware Telco Cloud Automation

Issue/Introduction

  • TCA 2.3.0 to 3.1.1 is failed with error "Failed to update migration status 401 Client Error: Unauthorized for url" on TCA-CP
  • User has already validated the KB article 370977
  • Below error messages can be seen on migration logs:

    During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/migration/util/tca_api_utils.py", line 407, in update_migration_status
    response = self.execute_post_request(uri, self.headers(), data=data, verify=verify)
  File "/migration/util/tca_api_utils.py", line 31, in execute_post_request
    return self.process_response(raw_response)
  File "/migration/util/tca_api_utils.py", line 46, in process_response
    log.debug("Server returned error: " + raw_response.raise_for_status())
  File "/usr/lib/python3.10/site-packages/requests/models.py", line 1024, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url:

Environment

2.3

Cause

The FTP password wasn't updated after a new encryption key was generated.
Such issues occur if the system was still using the old encryption logic from TCA 1.x and the FTP credentials hadn't been updated since that time.

Resolution

Update the FTP credentials on the TCA 2.3 VMs and attempt the migration again.