There are two procedures that resolve the above noted outcomes. One or both should be run, depending on the action you took.
- If you replaced an appliance or a host, follow the Refresh SDDC Manager SSH Keys procedure.
- If you replaced a host, in addition, follow the the Refresh SDDC Manager Host Attributes procedure.
Note: These procedures are supported for VMware Cloud Foundation 3.8 and 4.x.
Refresh SDDC Manager SSH Keys
- Download the correct script zip file for the VMware Cloud Foundation version currently deployed. See Script Versions note below for more information.
- Copy the zip file into the SDDC Manager virtual appliance by using a secure file copy utility. Ensure to use the vcf account to authenticate and upload..
- SSH to the SDDC Manager VM as the vcf user and switch to root:
su -
- Create a temporary directory, such as /tmp/scripts, and unzip the files into it
- run the following command. It validates the all SSH Keys that are there in the SDDC Manager and, if there are any discrepancies, asks the user to approve updating SDDC Manager's store.
python refreshsshkeys.pyc
Refresh Host Attributes
- If not already completed, do steps 1 to 4 in the above section.
- Use one of the following command variants to update the attributes of specific hosts
- To refresh Host Attributes for all hosts in the system: python refreshhostattributes.pyc --all
- To refresh Host Attributes of hosts that are part of a give domain: python refreshhostattributes.pyc --domain=<domain-name>
- To refresh Host Attributes of a list of given hosts: python refreshhostattributes.pyc --hosts=<comma-seperated-host-FQDNs>
.
Note about Script VersionsThe zip files contain compiled python scripts. You must run the python script that is compatible with your VCF version.
- VMware Cloud Foundation versions 3.8.0 to 3.9.0 inclusive should use the zip file recovery_tools_python_2_7_15.zip.
-
VMware Cloud Foundation versions 3.9.1 to 5.0 inclusive should use the zip file recovery_tools_python_3_7_5.zip.
-
VMware Cloud Foundation versions 5.1 to latest should use the zip file recovery_tools_python_3_10_11.zip.