Upgrade of NSX Manager through SDDC manager fails on precheck with error "Failed to access the NSX LCP file"
search cancel

Upgrade of NSX Manager through SDDC manager fails on precheck with error "Failed to access the NSX LCP file"

book

Article ID: 392990

calendar_today

Updated On:

Products

VMware SDDC Manager VMware NSX

Issue/Introduction

  • Upgrade of NSX Manager through SDDC manager fails on precheck with the following error:

    Message: Failed to access the NSX LCP file.
    Remediation Message: Check if the NSX manager is reachable and the NSX audit is green. Verify the NSX host and manager version in inventory ins in sync with the current running version

    Reference Token: <TOKEN>




  • Operation manager logs indicates that the SDDC manager is able to connect to NSX manager but LCP file cannot be found in the NSX manager repository:

    yyyy-mm-ddThh:mm:ss.Z+0000 INFO  [vcf_om,67ed3b3cd367ee63e5785b7fbca77d2e,7f8e] [c.v.v.b.e.v.EsxiNsxLcpVibsValidator,precheck-validation6] Fetching NSX LCP component URI as part of prechecks ...
    yyyy-mm-ddThh:mm:ss.Z+0000 DEBUG [vcf_om,67ed3b3b47f096e07595fadb96642893,31b9] [c.v.v.c.c.i.v.r.client.VvsApiFilter,precheck-validation7] Aliasing any potential interop releases for releaseId 18331
    yyyy-mm-ddThh:mm:ss.Z+0000 DEBUG [vcf_om,67ed3b3b47f096e07595fadb96642893,31b9] [c.v.v.c.c.i.v.r.c.VvsOfflineClient,precheck-validation7] Returning result from offline cache.
    yyyy-mm-ddThh:mm:ss.Z+0000 DEBUG [vcf_om,67ed3b3cd367ee63e5785b7fbca77d2e,7f8e] [c.v.v.b.e.v.EsxiNsxLcpVibsValidator,precheck-validation6] Product: LCP_COMPONENT, scope: DOMAIN, nsxtId: NSX_MNG_FQDN and path: https://NSX_MNG_FQDN:443//repository/4.2.1.0.0.24304122/HostComponents/esx70/nsx-lcp-4.2.1.0.0.24302014-esx70.zip
    yyyy-mm-ddThh:mm:ss.Z+0000 DEBUG [vcf_om,67ed3b3cd367ee63e5785b7fbca77d2e,7f8e] [c.v.v.b.e.v.EsxiNsxLcpVibsValidator,precheck-validation6] NSX LCP component name : https://NSX_MNG_FQDN:443//repository/4.2.1.0.0.24304122/HostComponents/esx70/nsx-lcp-4.2.1.0.0.24302014-esx70.zip
    ..
    yyyy-mm-ddThh:mm:ss.Z+0000 ERROR [vcf_lcm,0000000000000000,0000,upgradeId=b67cba93-5d22-41f8-b65d-9771b863e24c,resourceType=ESX_HOST,resourceId=23f5378e-f13b-4e45-9efd-e069459d6cc4,bundleElementId=c556240c-6b88-4376-8b7b-a0653ea0f567] [c.v.e.s.l.p.i.e.EsxVumUpdateStageRunnerImpl,Upgrade-2] 
    Failed to download lcp file: 404 : "<html><EOL><EOL><head><title>404 Not Found</title></head><EOL><EOL><body><EOL><EOL><center><h1>404 Not Found</h1></center><EOL><EOL><hr><center>nginx/1.20.1</center><EOL><EOL></body><EOL><EOL></html><EOL><EOL>"

  • Testing to manually download the file using wget command gives the same error:

     [ - ]$ wget  -k --no-check-certificate https://NSX_MNG_FQDN: 443/repository/4.2.1.0.0.24304122/HostComponents/esx70/nsx-lcp-4.2.1.0.0.24302014-esx70.zip

    Connecting to <NSX_MNG_FQDN> | xx.xx.xx.xx|:443... connected.
    ..
    HTTP request sent, awaiting response... 404 xxxx-xx-xx xx:xx:xx ERROR 404: (no description).

  • Connecting to NSX manager as root and navigating to the NSX repository shows that the specific LCP file is missing:

    ssh root@<NSX_MNG_ACTIVE_NODE_FQDN>

    cd /repository/

    ls

    looking at the above example the directory 4.2.1.0.0.24304122 should be missing.

Environment

VMware SDDC Manager 5.x

VMware NSX 4.x

Resolution

As a workaround follow the steps below:

  • Download the missing LCP version through the Broadcom portal:

  • On products select NSX and the missing version and download the mub file: VMware-NSX-upgrade-bundle-x.x.x.x.x.xxxxxxxx.mub

  • Connect to NSX Manager UI under System/Upgrade click on Upgrade and upload the downloaded file to NSX.

    Note: Once the file is uploaded do not proceed with the upgrade through the NSX UI.

  • Check the NSX repository to confirm that the version is now present

  • Return to SDDC manager and retry the prechecks