Upgrading NSX fails to start due to "End User License Agreement not accepted."
search cancel

Upgrading NSX fails to start due to "End User License Agreement not accepted."

book

Article ID: 368768

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • While attempting to upgrade NSX, of any version to any version, the upgrade fails to start at the Edge node upgrade stage with the error message popup: "End User License Agreement not accepted."

  • While NSX-T upgrade is initiated from SDDC the pre-check fails at NSX UPGRADE STAGE UPGRADE EDGE displaying 'Failed'.

  • Logs on SDDC Manager: /var/log/vmware/vcf/lcm/lcm-debug.log:

    <timestamp> ERROR [vcf_lcm,0000000000000000,0000,upgradeId=86a6a928-xxxx-xxxx-xxxx-xxxx,resourceType=NSX_T_PARALLEL_CLUSTER,resourceId=nsx.domain.com:_ParallelClusterUpgradeElement,bundleElementId=0ccfc8c3-xxxx-xxxx-xxxx-xxxxxxxxxxxx] [c.v.v.c.n.s.c.c.ComplexHelpers,Upgrade-19] Exception occurred during NSX API invocation
    java.util.concurrent.ExecutionException: com.vmware.vapi.std.errors.InvalidRequest: InvalidRequest (com.vmware.vapi.std.errors.invalid_request) => {
        messages = [],
        data = struct => {error_message=End User License Agreement not accepted., httpStatus=BAD_REQUEST, error_code=30092, module_name=upgrade-coordinator},
        errorType = INVALID_REQUEST
    }
            at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396)
            at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2073)
            at com.vmware.vapi.bindings.CompletionStageFuture.get(CompletionStageFuture.java:45)
            at com.vmware.vcf.common.nsxt.sdk.client.connection.ComplexHelpers.invoke(ComplexHelpers.java:188)
            at com.vmware.vcf.common.nsxt.sdk.client.connection.UpgradeCoordinatorOperations.startUpgrade(UpgradeCoordinatorOperations.java:88)
            at com.vmware.evo.sddc.lcm.primitive.impl.nsxt.service.NsxtEdgeClusterParallelUpgradeStageRunner.performUpgrade(NsxtEdgeClusterParallelUpgradeStageRunner.java:864)
            at com.vmware.evo.sddc.lcm.primitive.impl.nsxt.service.NsxtEdgeClusterParallelUpgradeStageRunner.performUpgradeForEdge(NsxtEdgeClusterParallelUpgradeStageRunner.java:504)
            at com.vmware.evo.sddc.lcm.primitive.impl.nsxt.service.NsxtEdgeClusterParallelUpgradeStageRunner.performUpgradeForEdgeTypeCluster(NsxtEdgeClusterParallelUpgradeStageRunner.java:407)
            at com.vmware.evo.sddc.lcm.primitive.impl.nsxt.service.NsxtEdgeClusterParallelUpgradeStageRunner.doUpgradeStage(NsxtEdgeClusterParallelUpgradeStageRunner.java:129)
            at com.vmware.evo.sddc.lcm.primitive.impl.nsxt.NsxtParallelClusterPrimitiveImpl.runUpgrade(NsxtParallelClusterPrimitiveImpl.java:571)
            at com.vmware.evo.sddc.lcm.primitive.impl.nsxt.NsxtParallelClusterPrimitiveImpl.postUpgrade(NsxtParallelClusterPrimitiveImpl.java:215)
            at com.vmware.evo.sddc.lcm.orch.PrimitiveServiceImpl.postUpgradeAsync(PrimitiveServiceImpl.java:313)
            at com.vmware.evo.sddc.lcm.orch.PrimitiveServiceImpl.lambda$postUpgrade$0(PrimitiveServiceImpl.java:165)
            at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
            at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
            at java.base/java.lang.Thread.run(Thread.java:840)

     

     <timestamp>  ERROR [vcf_lcm,0000000000000000,0000,upgradeId=86a6a928-xxxx-xxxx-xxxx-xxxx,resourceType=NSX_T_PARALLEL_CLUSTER,resourceId=nsx.domain.com:_ParallelClusterUpgradeElement,bundleElementId=0ccfc8c3-0ccfc8c3-xxxx-xxxx-xxxx-xxxxxxxxxxxx] [c.v.e.s.l.p.i.n.s.NsxtEdgeClusterParallelUpgradeStageRunner,Upgrade-19] Marking upgrade elements batch as NSXT_EDGE_CLUSTER_UPGRADE_FAILED_UPGRADE
    <timestamp>  ERROR [vcf_lcm,0000000000000000,0000,upgradeId=86a6a928-xxxx-xxxx-xxxx-xxxx,resourceType=NSX_T_PARALLEL_CLUSTER,resourceId=nsx.domain.com:_ParallelClusterUpgradeElement,bundleElementId=0ccfc8c3-0ccfc8c3-xxxx-xxxx-xxxx-xxxxxxxxxxxx] [c.v.v.i.b.i.TranslationMessage,Upgrade-19] Can't find resource for bundle java.util.PropertyResourceBundle, key NSXT_EDGE_CLUSTER_UPGRADE_FAILED_UPGRADE
    <timestamp>  DEBUG [vcf_lcm,0000000000000000,0000,upgradeId=86a6a928-xxxx-xxxx-xxxx-xxxx,resourceType=NSX_T_PARALLEL_CLUSTER,resourceId=nsx.domain.com:_ParallelClusterUpgradeElement,bundleElementId=0ccfc8c3-0ccfc8c3-xxxx-xxxx-xxxx-xxxxxxxxxxxx] [c.v.e.s.l.p.i.nsxt.NsxtUpgradeUtil,Upgrade-19] Fetch Error remediation message for com.vmware.vcf.error.runtime.nsxt.edge.cluster.upgrade.failed : NSX upgrade failed in upgrading edge cluster. Check for errors in the LCM log files at 127.0.0.1:/var/log/vmware/vcf/lcm, and address those errors. Please run the upgrade precheck and restart the upgrade.

     

Environment

VMware NSX-T Data Center
VMware NSX
VCF 5.2

Cause

This is caused by the EULA acceptance value being set to false.

To determine the current value of the EULA acceptance run the following GET API call:

GET https://<nsx-manager-ip>/api/v1/upgrade/eula/acceptance

If the EULA has not been properly accepted, the returned output will be:

{
"acceptance": false
}

 

Resolution

The EULA acceptance level can be set to true with the following API call:

POST https://<nsx-manager-ip>/api/v1/upgrade/eula/accept

If successful, this will return a 200 response code and a rerun of the GET API call will return:

{

"acceptance": true

}

 

Alternatively, you can run the below command from NSX-T manager root login to update the EULA acceptance level to true 

curl -X  POST  -k -u   admin:'Password'  "https://<nsx-manager-ip>/api/v1/upgrade/eula/accept"

Additional Information

NSX API guide can be found at the following location: https://developer.broadcom.com/xapis/nsx-t-data-center-rest-api/latest/