This procedure involves updating the vCenter credentials in various components:
- TCA Manager (TCA-M), Virtual Infrastructure Manager (VIM), and the Telco Cloud Automation Control Plane (TCA-CP) (for all versions of TCA 2.x)
- TCA Infrastructure Automation / Host Configuration / Hyperscale Cloud Provider (HCP) (seperate directions for 2.0 and 2.1.x+)
- Container-as-a-Service (CaaS) (only for TCA 2.1+)
Updating TCA-M, VIM, and TCA-CP Credentials
For all versions of TCA 2.x.
These steps need to be completed on all TCA Manager and TCA-CP appliances.
Update TCA-Manager
-
- Log into the TCA-M Appliance Management UI (VAMI).
e.g. https://<TCA-M_IP_address_or_FQDN>:9443
- Go to Configuration > vCenter.
- Click on Edit and update the vCenter credentials.
- Click Save.
- Go to Appliance Summary.
- Click the Restart button for the Application Service. Wait for the service to restart and get back to a running state.
- Click on the Restart button for the Web Service. Wait for the service to restart and get back to a running state.
Note: This step will log you out from the TCA Appliance Management UI.
Update VIM
The following steps need to be repeated for each VIM to update the credentials.
-
- Log into the TCA-M UI.
- Go to Infrastructure > Virtual Infrastructure.
- Click on the kebab (three-dots) menu next to the VIM and select Edit.
- Update the vCenter credentials.
- Click Update.
Update TCA-CP
-
- Log into the TCA-CP Appliance Management UI (VAMI).
e.g. https://<TCA-CP_IP_address_or_FQDN>:9443
- Go to Configuration > vCenter.
- Click on Edit and update the vCenter credentials.
- Click Save.
- (Optional) Update the vRealize Orchestrator (vRO) credentials.
- Click vRealize Orchestrator (vRO)
- Click Edit and update the vRO credentials.
- Click Save.
- Go to Appliance Summary.
- Click the Restart button for the Application Service. Wait for the service to restart and get back to a running state.
- Click on the Restart button for the Web Service. Wait for the service to restart and get back to a running state.
Note: This step will log you out from the TCA Appliance Management UI.
TCA Infrastructure Automation / Host Configuration
For TCA 2.0.
Note: Up to version 2.0 of TCA Infrastructure Automation, Host provisioning and deletion operations require the use of the administrator account.
These steps are to be followed if the domain attributes i.e., vSphere SSO domain-name & password, need to be updated.
Updating the Global vC Password
These are the same credentials used for TCA UI log in.
-
- Log into the TCA UI.
- Go to Infrastructure > Virtual Infrastructure.
- Go to Appliance Configuration > Configuration.
- Click on Edit.
- Expand vCenter and update the credentials.
- Click Save.
Updating the SSO domain-name
-
- Log into the TCA UI.
- Go to Infrastructure > Virtual Infrastructure.
- Go to Domains.
- Select the domain to be updated.
- Expand Appliance Overrides.
- Enable the override attribute for vSphere SSO Domain and specify the new vSphere SSO Domain under Override value.
- Click Save.
Updating the vC password
-
- Log into the TCA UI.
- Go to Infrastructure > Virtual Infrastructure.
- Go to Domains.
- Select the domain to be updated.
- Expand Appliance Overrides.
- Enable the override attribute for Virtual Center and specify the new root and admin passwords under Override value.
- Click Save.
Confirming Host Config Profile (HCP) Credentials
The following steps ensure that HCP operations use the correct credentials.
Note: HCP requires TCA SSO credentials.
-
- SSH into the TCA Manager using the admin account.
- Log into the TCF Manager docker container CLI.
docker exec –it tcf-manager /bin/bash
- Backup the
tca_web_rest_client.py
file.
cd /opt/vmware/tcf/rest_api;
cp tca_web_rest_client.py tca_web_rest_client.pyBAK
- Use a text editor open the
tca_web_rest_client.py
script and update the username and password.
- Locate the
method def __init__(self)
section.
- Update the user and password values:
user = "TCA SSO username"
password = "TCA SSO password"
Note: This need not always be the administrator account. Use the TCA SSO credential.
For all versions of TCA 2.1.x+
These are the steps to be followed if the domain attributes such as (vSphere SSO domain-name & password) need to be updated.
Updating Global vC Password
These are the same credentials used to log into the TCA UI.
-
- Log into the TCA UI.
- Go to Infrastructure > Virtual Infrastructure.
- Go to Appliance Configuration > Configuration.
- Click on Edit.
- Expand vCenter and update the credentials.
- Click Save.
Updating SSO domain-name
-
- Log into the TCA UI.
- Go to Infrastructure > Infrastructure Automation.
- Go to Domains.
- Select the domain to be updated.
- Expand Appliance Overrides.
- Enable the override attribute for vSphere SSO Domain name and specify the new vSphere SSO Domain name under Override value.
- Click Save.
Updating vSphere SSO Username
-
- Log into the TCA UI.
- Go to Infrastructure > Infrastructure Automation.
- Go to Domains.
- Select the domain to be updated.
- Expand Appliance Overrides.
- Enable the override attribute for vSphere SSO Username and specify the new vSphere SSO Username under Override value.
- Click Save.
Updating vC password
-
- Log into the TCA UI.
- Go to Infrastructure > Infrastructure Automation.
- Go to Domains.
- Select the domain to be updated.
- Expand Appliance Overrides.
- Enable the override attribute for Virtual Center and enter the new root and admin password under Override value.
- Click Save.
Confirming Host Config Profile (HCP) Credentials
The following steps ensure that HCP operation has the correct credentials.
Note: HCP requires TCA SSO credentials.
-
- SSH into the TCA Manager using the admin account.
- Change to root
- Log into the TCF Manager docker container CLI.
docker exec -it tcf-manager /bin/bash
- Backup the
tca_web_rest_client.py
file.
cd /opt/vmware/tcf/rest_api
cp tca_web_rest_client.py tca_web_rest_client.pyBAK
- Use a text editor to open the tca_web_rest_client.py script and update the username and password.
- Locate the
method def __init__(self)
section.
- Add the user and password configuration lines with the proper values:
user = "TCA SSO username"
Note: This should be the TCA SSO credentials, the same username that allows access to the TCA Manager UI.
password = "TCA SSO password"
Note: This is the password associated with the TCA SSO username.
- Comment out the four lines under the yellow lines for user and password with a hashtag (#) symbol as seen below:
- Exit docker
- Restart the tcf-manager container:
docker restart tcf-manager
Update CaaS Credentials
For all versions of TCA 2.1.x+
This section provides steps to update the vCenter credentials for the management and workload clusters controlled by TCA 2.0.x and TCA 2.1.x +.
- SSH into the TCA-CP that controls the management clusters using the admin credentials.
ssh admin@tca-cp-ip
- Change user to root.
su root
- Check connectivity to retrieve the update-vc-credentials script.
curl -kfsSL https://vmwaresaas.jfrog.io/artifactory/generic-registry/update-vc-credentials | bash -s -- -h
This script is used to update vC password for management clusters and workload clusters. It should only be run on TCA-CP within root user directly.
update-vc-credentials
Usage:
update-vc-credentials [option...]
Options:
-f, --config Config file for VC accounts. Should be JSON format.
-w, --workload-cluster Only run on specific workload cluster.
-v, --version Show current script version.
Note: For airgap environments, download and copy over the script from a location with Internet access to the TCA-CP.
- Prepare a JSON file to provide the management clusters list and the vC servers and accounts information.
Use the following template:
{
"tca_version": "2.0.0",
"managementclusters": [ # Management cluster
name list
"managementcluster_name1",# Optional
"managementcluster_name2"
],
"vcenters": [
{
"server": "vc-1-address", #vCenter server address
"accounts": [ # vC credentials. Multiple accounts are
supported. {
"username": "username-1",
"password": "password-1"
},# Optional
{
"username": "username-2",
"password": "password-2"
}
]
},# Optional
{
"server": "vc-2-address",
"accounts": [
{
"username": "username-1",
"password": "password-1"
}
]
}
]
}
Note: JSON does not support comments. As a pure data format, the final JSON file must only contain data.
- Run the script to update the vC credentials on the management clusters and across all or a specific workload cluster:
Note: Only run the script once at a time.
-
- Update management clusters and all the associated workload clusters
curl -kfsSL https://vmwaresaas.jfrog.io/artifactory/generic-registry/update-vc-credentials | bash -s -- -f input_json_file_path
- Update specific workload cluster
curl -kfsSL https://vmwaresaas.jfrog.io/artifactory/generic-registry/update-vc-credentials | bash -s -- -f input_json_file_path -w workload_cluster_name
- Once the script is done, it will dump a summary about failed and successful updated clusters, which are grouped by the management cluster name.
2022-05-11 04:37:23 [INFO] VC credentials update process is done.
2022-05-11 04:37:23 [INFO] VC passwords on these following clusters are updated successfully.
- <mgmt_name_1>: <mgmt_name_1> <wc1> <wc2>
2022-05-11 04:37:23 [ERROR] VC passwords on these following clusters are updated in failure.
- <mgmt_name_1>: <wc3>
- (Optional) Run a cluster diagnosis to review for any errors.
XNF LCM
- xNF Life Cycle Management functionality requires no additional change if all the steps listed in this document have been carried out.
- Failing to do so will impact vRO Workflows, node customizations functionalities.
- CNFs that depend only on Helm will have no impact due to vC credentials change.