Workload cluster upgrade fails with the error:
Cluster Upgrade failed with Error:Error: unknown command "cluster" for "tanzu"
You also observe that some plugins are not present when you run tanzu plugin list as
the user 'root
' on the TCA-CP:
Standalone Plugins
NAME DESCRIPTION TARGET DISCOVERY VERSION STATUS
isolated-cluster isolated-cluster operations default v0.28.1 installed
login Login to the platform default v0.28.1 installed
pinniped-auth Pinniped authentication operations (usually not directly invoked) default v0.28.1 installed
management-cluster Kubernetes management-cluster operations kubernetes default v0.28.1 installed
package Tanzu package management kubernetes default v0.28.1 installed
secret Tanzu secret management kubernetes default v0.28.1 installed
telemetry Configure cluster-wide telemetry settings kubernetes default v0.28.1 installed
*** MISSING ***
Plugins from Context: <CONTEXT>
NAME DESCRIPTION TARGET VERSION STATUS
cluster Kubernetes cluster operations kubernetes v0.28.1 installed
feature Operate on features and featuregates kubernetes v0.28.1 installed
kubernetes-release Kubernetes release operations kubernetes v0.28.1 installed
Telco Cloud Automation
This issue can be caused by an incorrect endpoint being configured for the TKG_CUSTOM_IMAGE_REPOSITORY variable. The necessary components fail to download, leaving the solution in an inconsistent state.
su root
cat ~/.config/tanzu/config.yaml | grep TKG_CUSTOM_IMAGE_REPOSITORY
An example of a correct configuration:TKG_CUSTOM_IMAGE_REPOSITORY: registry.example.com/yourproject
An example of an incorrect configuration:TKG_CUSTOM_IMAGE_REPOSITORY: registry.example.com/yourproject/packages/management
export TKG_CUSTOM_IMAGE_REPOSITORY: harbor.registry.com/yourproject
export TKG_CUSTOM_IMAGE_REPOSITORY_CA_CERTIFICATE="<BASE64_CERTIFICATE>"
tanzu management-cluster upgrade
tanzu plugin clean
tanzu plugin sync
tanzu init
tanzu plugin list
It's possible other plugins are the cause of this error. These steps can also resolve the scenario where other plugins are missing.