Network Profile on TKGi 1.x Cannot Be Deleted
search cancel

Network Profile on TKGi 1.x Cannot Be Deleted

book

Article ID: 313134

calendar_today

Updated On:

Products

VMware

Issue/Introduction

Symptoms:
When network profile is created and attached to an existing tkgi cluster, It cannot be deleted with error "The network profile <network profile> is still used by clusters"

Environment

VMware Tanzu Kubernetes Grid Integrated Edition 1.9.6x
VMware Tanzu Kubernetes Grid Integrated Edition 1.x

Cause

Network Profiles can be updated by a new network profile to a running TKGi cluster.
Network profiles cannot be deleted when they are attached to existing cluster unless new profile is added to the cluster and old profile is not in use any more

Resolution

Steps to Resolve:
  • Check the clusters running with this network profile created by running command as an example below
ubuntu@opsmgr-02-slot-21-pez-vmware-com:~$ pks cluster boc1 --details
PKS Version:              1.9.5-build.7
Name:                     boc1
K8s Version:              1.18.16
Plan Name:                small
UUID:                     cd1c66ed-1b98-49bb-89da-601ab57e87e5
Last Action:              UPGRADE
Last Action State:        succeeded
Last Action Description:  Instance upgrade completed
Kubernetes Master Host:   boc1.pks-02.slot-21.pez.vmware.com
Kubernetes Master Port:   8443
Worker Nodes:             1
Kubernetes Master IP(s):  10.123.38.211
Network Profile Name:    
Kubernetes Profile Name:
  • Create a new network profile and assign the network profile to the cluster 
  • Document for how to update network profiles on existing Clusters below : https://docs.pivotal.io/tkgi/1-9/network-profiles.html#assign-profile
  • Once the new profile has been assigned to the cluster, the old profile can be deleted as long as it is no longer used by any clusters
Note: Update only network profile properties that support being updated.

Additional Information

Restrictions on updating Network Profiles in below document
https://docs.pivotal.io/tkgi/1-9/network-profiles-define.html#update-restrictions