- /v1/upgrades
root@sddc-manager [ /home/vcf ]# mkdir backup
root@sddc-manager [ /home/vcf ]# cd backup/
cd /opt/vmware/vcf/lcm/lcm-app/lib
chown vcf_lcm:vcf caffeine-2.7.0.jar
chown vcf_lcm:vcf spring-context-support-5.2.3.RELEASE.jar
chmod 750 caffeine-2.7.0.jar
chmod 750 spring-context-support-5.2.3.RELEASE.jar
-rwxr-x--- 1 vcf_lcm vcf lcm-adapters-3.10.2-vcf31021RELEASE.jar
-rwxr-x--- 1 vcf_lcm vcf lcm-app-3.10.2-vcf31021RELEASE.jar
-rwxr-x--- 1 vcf_lcm vcf lcm-common-3.10.2-vcf31021RELEASE.jar
-rwxr-x--- 1 vcf_lcm vcf lcm-orch-3.10.2-vcf31021RELEASE.jar
-rwxr-x--- 1 vcf_lcm vcf lcm-rest-api-controller-3.10.2-vcf31021RELEASE.jar
-rwxr-x--- 1 vcf_lcm vcf lcm-services-3.10.2-vcf31021RELEASE.jar
-rwxr-x--- 1 vcf_lcm vcf lcm-sql-dal-client-3.10.2-vcf31021RELEASE.jar
-rwxr-x--- 1 vcf_lcm vcf lcm-vmware-primitive-impl-3.10.2-vcf31021RELEASE.jar
-rwxr-x--- 1 vcf_lcm vcf caffeine-2.7.0.jar
-rwxr-x--- 1 vcf_lcm vcf spring-context-support-5.2.3.RELEASE.jar
Example Commands :
# ls -ltr /opt/vmware/vcf/lcm/lcm-app/lib/lcm-adapters-3.10.2-vcf31021RELEASE.jar
-rwxr-x--- 1 vcf_lcm vcf 191004 Jul 2 10:00 /opt/vmware/vcf/lcm/lcm-app/lib/lcm-adapters-3.10.2-vcf31021RELEASE.jar
# ls -ltr /opt/vmware/vcf/lcm/lcm-app/lib/lcm-app-3.10.2-vcf31021RELEASE.jar
-rwxr-x--- 1 vcf_lcm vcf 85067 Jul 2 10:00 /opt/vmware/vcf/lcm/lcm-app/lib/lcm-app-3.10.2-vcf31021RELEASE.jar
# ls -ltr /opt/vmware/vcf/lcm/lcm-app/lib/lcm-common-3.10.2-vcf31021RELEASE.jar
-rwxr-x--- 1 vcf_lcm vcf 57424 Jul 2 10:00 /opt/vmware/vcf/lcm/lcm-app/lib/lcm-common-3.10.2-vcf31021RELEASE.jar
# ls -ltr /opt/vmware/vcf/lcm/lcm-app/lib/lcm-orch-3.10.2-vcf31021RELEASE.jar
-rwxr-x--- 1 vcf_lcm vcf 56967 Jul 2 10:00 /opt/vmware/vcf/lcm/lcm-app/lib/lcm-orch-3.10.2-vcf31021RELEASE.jar
# ls -ltr /opt/vmware/vcf/lcm/lcm-app/lib/lcm-rest-api-controller-3.10.2-vcf31021RELEASE.jar
-rwxr-x--- 1 vcf_lcm vcf 167907 Jul 2 10:00 /opt/vmware/vcf/lcm/lcm-app/lib/lcm-rest-api-controller-3.10.2-vcf31021RELEASE.jar
# ls -ltr /opt/vmware/vcf/lcm/lcm-app/lib/lcm-services-3.10.2-vcf31021RELEASE.jar
-rwxr-x--- 1 vcf_lcm vcf 352472 Jul 2 10:00 /opt/vmware/vcf/lcm/lcm-app/lib/lcm-services-3.10.2-vcf31021RELEASE.jar
# ls -ltr /opt/vmware/vcf/lcm/lcm-app/lib/lcm-sql-dal-client-3.10.2-vcf31021RELEASE.jar
-rwxr-x--- 1 vcf_lcm vcf 96078 Jul 2 10:00 /opt/vmware/vcf/lcm/lcm-app/lib/lcm-sql-dal-client-3.10.2-vcf31021RELEASE.jar
#ls -ltr /opt/vmware/vcf/lcm/lcm-app/lib/lcm-vmware-primitive-impl-3.10.2-vcf31021RELEASE.jar
-rwxr-x--- 1 vcf_lcm vcf 744570 Jul 2 10:00 /opt/vmware/vcf/lcm/lcm-app/lib/lcm-vmware-primitive-impl-3.10.2-vcf31021RELEASE.jar
# ls -ltr /opt/vmware/vcf/lcm/lcm-app/lib/caffeine-2.7.0.jar
-rwxr-x--- 1 vcf_lcm vcf 846706 Jul 2 10:34 /opt/vmware/vcf/lcm/lcm-app/lib/caffeine-2.7.0.jar
# ls -ltr /opt/vmware/vcf/lcm/lcm-app/lib/spring-context-support-5.2.3.RELEASE.jar
-rwxr-x--- 1 vcf_lcm vcf 182130 Jul 2 10:52 /opt/vmware/vcf/lcm/lcm-app/lib/spring-context-support-5.2.3.RELEASE.jar
cp -fp /opt/vmware/vcf/lcm/lcm-app/conf/application-prod.properties /home/vcf/backup/application-prod.properties.$(date +%Y%m%d)
cp -fp /opt/vmware/vcf/lcm/lcm-app/conf/jpa-prod.properties /home/vcf/backup/jpa-prod.properties.$(date +%Y%m%d)
lcm.inventory.upgrade.cache.initial.capacity=2
lcm.inventory.upgrade.cache.maxsize=4
lcm.inventory.upgrade.cache.expiry.seconds=300
You can check the status using
You can check the status using
$ curl localhost/sddc-manager-ui-app/about | json_pp
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 240 100 240 0 0 48000 0 --:--:-- --:--:-- --:--:-- 48000
{
"builtBy" : "mts",
"dbSchemaVersion" : 1,
"createdBy" : "Apache Maven 3.5.0",
"author" : "VMware",
"name" : "SDDC-MANAGER-UI-APP",
"version" : "3.10.2-vcf31021RELEASE-18290131",
"id" : "4a0a3a15-496f-4aa1-9040-d11c3eb8df43",
"buildDate" : "2021-07-08T12:48:46Z"
}
curl
'http://localhost/v1/system/settings/version-aliases/SDDC_MANAGER_UI/3.10.2-vcf31021RELEASE-18015030'
-X PUT -H
'Content-Type: application/json'
-H
'Accept: application/json'
-d
'{"aliases" : [ "
3.10
.2
-vcf31021RELEASE-18290131
" ], "forceUpdate" : true}'
Verify that the below content is added /opt/vmware/vcf/lcm/lcm-app/conf/VersionAlias.yml file.
SDDC_MANAGER_UI:
- base: 3.10.2-vcf31021RELEASE-18015030
alias:
-
3.10
.2
-vcf31021RELEASE-1829013
NOTE:
Take a backup of /etc/nginx/nginx.conf
Add/Modify the below routes in http section.
location ~ ^/v1/
(bundles|upgradables|upgrades|system)(.*) {
proxy_read_timeout 600;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_pass http:
//127
.0.0.1:7400
/v1/
$1$2$is_args$args;
}
location
/lcm/
{
proxy_read_timeout 600;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_pass http:
//127
.0.0.1:7400;
}
#adding timeout for lcm internal api after /lcm/ route
location ~ ^
/internal/lcm/
(.*) {
proxy_read_timeout 600;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_pass http:
//127
.0.0.1:7500;
}
# lcm v1 public APIs
location ~ ^/v1/(bundles|upgradables|upgrades|system)(.*) {
proxy_read_timeout 600;
proxy_connect_timeout 600;
proxy_send_timeout 600;
auth_basic "closed site";
auth_basic_user_file /etc/nginx/.htpasswd;
proxy_pass http://127.0.0.1:7400/v1/$1$2$is_args$args;
}
#Added this after sddc-manager-ui route
location ~ ^/internal/lcm/(.*) {
proxy_read_timeout 600;
proxy_connect_timeout 600;
proxy_send_timeout 600;
auth_basic "closed site";
auth_basic_user_file /etc/nginx/.htpasswd;
proxy_pass http://127.0.0.1:7500;