During deployment, the NSX Application Platform Automation Appliance does not recreate an existing namespace and VM Classes association resulting in a failure.

Problem

During the guest cluster creation, the Tanzu Kubernetes Grid deployment might fail with the following error message.
"could not find VMClass "napp-class-advanced-guaranteed"

Cause

The NSX Application Platform Automation Appliance generates VM Classes before creating a namespace and associates those VM Classes during namespace creation.

The error might occur if the namespace was already established in a previous deployment. NSX Application Platform Automation Appliance does not recreate an existing namespace, resulting in the VM Classes not being associated.

Solution

  1. To resolve the problem, manually associate the missing VM Classes to a namespace in VMware vCenter.
  2. In the NSX Application Platform Automation Appliance deployment wizard, navigate to the Deploy TKG tab and click Update & Redeploy.

    The Tanzu Kubernetes Grid deployment completes successfully.