VMware Cloud Foundation

 View Only
  • 1.  VRSLCM failed to fetch necessary information when creating environment integrated to SDDC

    Posted Nov 12, 2023 07:12 PM
      |   view attached

    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

    Attachment(s)

    log
    vmware_vrlcm.log   13.59 MB 1 version


  • 2.  RE: VRSLCM failed to fetch necessary information when creating environment integrated to SDDC

    Posted Jan 01, 2024 08:48 PM

    Hi Omar,

    did you try vRSLCM patch 1?

    which vIDM version imported?



  • 3.  RE: VRSLCM failed to fetch necessary information when creating environment integrated to SDDC

    Posted Jan 02, 2024 01:56 PM

    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)



  • 4.  RE: VRSLCM failed to fetch necessary information when creating environment integrated to SDDC

    Posted Jan 02, 2024 05:30 AM

    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 



  • 5.  RE: VRSLCM failed to fetch necessary information when creating environment integrated to SDDC

    Posted Jan 02, 2024 01:57 PM

    can you clarify which certificate do you mean ?

     



  • 6.  RE: VRSLCM failed to fetch necessary information when creating environment integrated to SDDC

    Posted Jan 02, 2024 03:09 PM


  • 7.  RE: VRSLCM failed to fetch necessary information when creating environment integrated to SDDC

    Posted Jan 16, 2024 08:02 PM

    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 



  • 8.  RE: VRSLCM failed to fetch necessary information when creating environment integrated to SDDC
    Best Answer

    Posted Jan 31, 2024 11:33 AM

    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=true", 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