when I try to create an environment inside VRSLCM that is integrated with SDDC manager , it fails to fetch products and show error " failed to fetch necessary information
I changed VRSLCM certificate with authorized one , uploaded support pack 17 and applied it but nothing changed
I investigated Logs in VRSLCM
in vmware_vrlcm.log file I found that the error occurs every time when trying to fetch "cloud proxy" products
example:
2023-11-11 00:22:30.674 INFO [every-boot-thread] c.v.v.l.c.c.ContentDownloadController - -- INSIDE isContentExists
2023-11-11 00:22:30.674 INFO [every-boot-thread] c.v.v.l.c.c.ContentDownloadController - -- URL :: /productSpecRepo/cloudproxy/1.0.0/sizingInfo.json
2023-11-11 00:22:30.705 WARN [every-boot-thread] c.v.v.l.c.s.ContentDownloadUrlServiceImpl - -- contentDownloadUrl is not present with given URL ::/productSpecRepo/cloudproxy/1.0.0/sizingInfo.json
2023-11-11 00:22:30.707 INFO [every-boot-thread] c.v.v.l.c.c.ContentDownloadController - -- URL :: /productSpecRepo/cloudproxy/1.0.0/sizingInfo.json not exists.
2023-11-11 00:22:30.708 ERROR [every-boot-thread] c.v.v.l.l.s.ProductPolicyServiceImpl - -- policy path does not exist: /productSpecRepo/cloudproxy/1.0.0/sizingInfo.json
2023-11-11 00:22:30.709 INFO [every-boot-thread] c.v.v.l.c.u.StringUtil - -- QUERYING CONTENT :: ProductPolicy::products->vropscloudproxy::productVersion
2023-11-11 00:22:30.710 INFO [every-boot-thread] c.v.v.l.d.i.u.InventorySchemaQueryUtil - -- GETTING ROOT NODE FOR :: ProductPolicy
Logs file is attached
versions of products are
VCF 5.0.0.0
VRSLCM 8.10
note : It's a nested lab with 4 ESXI hosts , consolidated domain
finally the problem is solved !!
first , I found that the step of fetching products taking much time before it releases the error " failed to fetch necessary information "
then I discovered the nginx error.log file in vrealize life cycle manager vm
ssh to vrlcm vm with root account hen run this code
tail -f /var/log/nginx/error.log
and I found this line repeated many times
2024/01/31 09:49:52 [error] 25657#0: *28 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 172.16.11.1, server: vrlcm.ssc.local, request: "GET /lcm/lcops/api/policy/products?includeAllProducts=true&vcfEnabledEnvironment=true HTTP/1.1", upstream: "http://127.0.0.1:8080/lcm/lcops/api/policy/products?includeAllProducts=true&vcfEnabledEnvironment=tr...", host: "vrlcm.ssc.local", referrer: "https://vrlcm.ssc.local/lcm/lcops/environment-workflow/globalenvironment"
that made me to check nginx.conf to figure proxy time out
vi /etc/nginx/nginx.conf
and I found this configuration in products policy
location /lcm/lcops/api/policy/products {
limit_req zone=mylimit burst=20 nodelay;
proxy_pass http://vrlcm-server;
proxy_read_timeout 2m;
proxy_send_timeout 2m;
}
so i edited them from 2m to 10m
location /lcm/lcops/api/policy/products {
limit_req zone=mylimit burst=20 nodelay;
proxy_pass http://vrlcm-server;
proxy_read_timeout 10m;
proxy_send_timeout 10m;
}
and now fetching products with option "Activate SDDC Manager Integration on the environment" works successfully
Hi Omar,
did you try vRSLCM patch 1?
which vIDM version imported?
Did you tried to create a certificate during installation?
If that
Try to create the certificate before the installation and then select these during installation
Hi mohammad
VRLCM is already on patch 1 and I upgraded it to to support pack 17 but did not make any change
I have not used vIDM yet , I just try to create environment without selecting option (install identity manager)
can you clarify which certificate do you mean ?
Look at this
May be it's not clear in the subject
If I create a non-integrated environment with vcf ( like the steps in the video ), it succeeds without any problem
But if i select the option " Activate SDDC manager integration on the environment " while creating the environmet, it fails and gives this error " failed to fetch necessary information " !
And this error before it asks me about any certificate
finally the problem is solved !!
first , I found that the step of fetching products taking much time before it releases the error " failed to fetch necessary information "
then I discovered the nginx error.log file in vrealize life cycle manager vm
ssh to vrlcm vm with root account hen run this code
tail -f /var/log/nginx/error.log
and I found this line repeated many times
2024/01/31 09:49:52 [error] 25657#0: *28 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 172.16.11.1, server: vrlcm.ssc.local, request: "GET /lcm/lcops/api/policy/products?includeAllProducts=true&vcfEnabledEnvironment=true HTTP/1.1", upstream: "http://127.0.0.1:8080/lcm/lcops/api/policy/products?includeAllProducts=true&vcfEnabledEnvironment=tr...", host: "vrlcm.ssc.local", referrer: "https://vrlcm.ssc.local/lcm/lcops/environment-workflow/globalenvironment"
that made me to check nginx.conf to figure proxy time out
vi /etc/nginx/nginx.conf
and I found this configuration in products policy
location /lcm/lcops/api/policy/products {
limit_req zone=mylimit burst=20 nodelay;
proxy_pass http://vrlcm-server;
proxy_read_timeout 2m;
proxy_send_timeout 2m;
}
so i edited them from 2m to 10m
location /lcm/lcops/api/policy/products {
limit_req zone=mylimit burst=20 nodelay;
proxy_pass http://vrlcm-server;
proxy_read_timeout 10m;
proxy_send_timeout 10m;
}
and now fetching products with option "Activate SDDC Manager Integration on the environment" works successfully