- This issue is resolved VMware Cloud Foundation version 3.7.0.
Workaround:
Use the following steps to apply a patch in case an upgrade to VCF 3.7.0 is not an option and only if the current VCF deployment is on version 3.5.1.
- Download the operationsmanager_3.5.1-14878133.zip file attache to the KB.
- Use a file transfer utility to copy the operationsmanager_3.5.1-14878133.zip file to the /tmp directory on the SDDC Manager VM.
- SSH to the SDDC Manager Controller VM as the vcf user.
- Issue the following command to switch to the root user account:
# su
- Extract the contents of the operationsmanager_3.5.1-14878133.zip file by issuing the following command:
# unzip -d /tmp /tmp/operationsmanager_3.5.1-14878133.zip
- Issue the following command to stop the Operations Manager service:
# systemctl stop operationsmanager
- Make a copy of the /opt/vmware/vcf/operationsmanager/vcf-operations-manager.jar file by issuing the following command:
# cp -p /opt/vmware/vcf/operationsmanager/vcf-operations-manager.jar /opt/vmware/vcf/operationsmanager/vcf-operations-manager.jar.bak$(date +%Y%m%d)
- Replace the original /opt/vmware/vcf/operationsmanager/vcf-operations-manager.jar file with the version extracted in Step 4 by issuing the following command:
# cp /tmp/operationsmanager_3.5.1-14878133/vcf-operations-manager.jar /opt/vmware/vcf/operationsmanager/
- Change the ownership and permissions on the /opt/vmware/vcf/operationsmanager/vcf-operations-manager.jar file by issuing the following commands:
# chown vcf_operationsmanager:vcf /opt/vmware/vcf/operationsmanager/vcf-operations-manager.jar
# chmod 744 /opt/vmware/vcf/operationsmanager/vcf-operations-manager.jar
- Issue the following command to start the Operations Manager service:
# systemctl start operationsmanager
Note: It may take two to three minutes for the Operations Manager service to be functional after starting.
- Issue the following command to validate the state of the Operations Manager service. The Operations Manager status should be ACTIVE and the version is updated to "3.5.1-RELEASE-14878133":
{ "description" : "Operations Manager",
"version" : "3.5.1-RELEASE-14878133",
"status" : "ACTIVE",
"serviceUrl" : "http://127.0.0.1/operationsmanager",
"name" : "OPERATIONS_MANAGER",
"id" : "3654b774-9ba0-4bc2-970f-cfd94ed84c43"
}
After applying the patch, the following steps must be completed prior to upgrading to a new VMware Cloud Foundation version:
- Log in to the SDDC Manager VM as the vcf user and then switch to the root user by typing su -.
- Issue the following command to make a copy of the /opt/vmware/vcf/lcm/lcm-app/conf/VersionAlias.yml file:
# cp -fp /opt/vmware/vcf/lcm/lcm-app/conf/VersionAlias.yml /opt/vmware/vcf/lcm/lcm-app/conf/VersionAlias.yml.$(date +%Y%m%d)
- Open the /opt/vmware/vcf/lcm/lcm-app/conf/VersionAlias.yml file with a text editor and add the following to the end of the file.
OPERATIONS_MANAGER:
- base: 3.5.1-RELEASE-12050813
alias:
- 3.5.1-RELEASE-14878133
Note: Ensure that only spaces are used when editing VersionAlias.yml file as tab characters will break parsing and the LCM service may not start. Refer to commented examples in the file for a proper sample.
- Save and close the file.
- Issue the following command to restart the lcm service:
# systemctl restart lcm
- Run the following command from SDDC Manager VM and make a note of the 'id'.
# curl localhost/inventory/vcfservices | json_pp
Example:
{
"status" : "ACTIVE",
"description" : "Operations Manager",
"name" : "OPERATIONS_MANAGER",
"version" : "3.5.1-RELEASE-12050813",
"serviceUrl" : "http://127.0.0.1/operationsmanager",
"id" : "5eac87b3-c289-4dec-b1a7-d35a3bfe8e55"
},
- Run the following command to update the Operations Manager version value in the SDDC Manager inventory with the new version after applying the patch:
# cqlsh --cqlversion=3.4.4 -e "update inventory.vcfservice set version='<OPERATIONS_MANAGER_Version>' where id='<OPERATIONS_MANAGER_ID>';"
Notes:
- Replace this version with version value obtained from Step 6.
- Replace the 'id' with the 'id' value obtained step 6.
Example:
cqlsh --cqlversion=3.4.4 -e "update inventory.vcfservice set version='3.5.1-RELEASE-14878133' where id='5eac87b3-c289-4dec-b1a7-d35a3bfe8e55';"
- Verify the Operations Manager version was changed to “3.5.1-RELEASE-14878133" by running the command:
curl localhost/inventory/vcfservices | json_pp’
Example:
{
"id" : "5eac87b3-c289-4dec-b1a7-d35a3bfe8e55",
"status" : "ACTIVE",
"name" : "OPERATIONS_MANAGER",
"description" : "Operations Manager",
"version" : "3.5.1-RELEASE-14878133",
"serviceUrl" : "http://127.0.0.1/operationsmanager"
}