VMware Cloud Community
omar_study74
Contributor
Contributor
Jump to solution

VRSLCM failed to fetch necessary information when creating environment integrated to SDDC

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

omar_study74_0-1699815808190.png

 

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

Labels (2)
Tags (3)
0 Kudos
1 Solution

Accepted Solutions
omar_study74
Contributor
Contributor
Jump to solution

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

omar_study74_1-1706700673611.pngomar_study74_2-1706700734122.png

 

 

 

View solution in original post

Tags (1)
0 Kudos
7 Replies
toffaha1
Enthusiast
Enthusiast
Jump to solution

Hi Omar,

did you try vRSLCM patch 1?

which vIDM version imported?

Best Regards,
Muhammad Toffaha
Technical Consultant
0 Kudos
mhb4ever
Enthusiast
Enthusiast
Jump to solution

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 

0 Kudos
omar_study74
Contributor
Contributor
Jump to solution

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)

0 Kudos
omar_study74
Contributor
Contributor
Jump to solution

can you clarify which certificate do you mean ?

 

0 Kudos
mhb4ever
Enthusiast
Enthusiast
Jump to solution

0 Kudos
omar_study74
Contributor
Contributor
Jump to solution

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 

0 Kudos
omar_study74
Contributor
Contributor
Jump to solution

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

omar_study74_1-1706700673611.pngomar_study74_2-1706700734122.png

 

 

 

Tags (1)
0 Kudos