VCF CLI Plugins are not getting installed after updating Supervisor Kubernetes Service in VCF 9.1
search cancel

VCF CLI Plugins are not getting installed after updating Supervisor Kubernetes Service in VCF 9.1

book

Article ID: 456268

calendar_today

Updated On:

Products

VMware vSphere Kubernetes Service VMware Cloud Foundation

Issue/Introduction

  • Supervisor Kubernetes Service updated to latest version in a VCF 9.1 environment
  • Latest VCF Consumption CLI OCI plugin bundle from the Broadcom support site has been installed in harbor 
  • Attempting to activate or switch to the Supervisor context via the VCF CLI fails during the automatic plugin synchronization phase:
    [i] Using image repository hosts for context <ip>/vcf/vcf-cli-plugins/ga/plugin-inventory/v9-rel/plugin-inventory:latest
    [i] Fetching recommended plugins for active context '<context>'...
    [i] Installing the following plugins recommended by context '<context>':
      NAME                INSTALLING
      addon               v3.7.1
      cluster             v3.7.1
      kubernetes-release  v3.7.1
      package             v3.7.1
      registry-secret     v3.7.1
    [x] unable to automatically sync the plugins recommended by the active context. Please run 'vcf plugin sync' to sync plugins manually, error: [unable to find plugin 'addon' matching version 'v3.7.1', unable to find plugin 'cluster' matching version 'v3.7.1', unable to find plugin 'kubernetes-release' matching version 'v3.7.1', unable to find plugin 'package' matching version 'v3.7.1', unable to find plugin 'registry-secret' matching version 'v3.7.1']
    [i] Fetching recommended plugins for active context '<context>'...
    [i] Installing the following plugins recommended by context '<context>':
      NAME                INSTALLING
      addon               v3.7.1
      cluster             v3.7.1
      kubernetes-release  v3.7.1
      package             v3.7.1
      registry-secret     v3.7.1
    [x] : [unable to find plugin 'addon' matching version 'v3.7.1', unable to find plugin 'cluster' matching version 'v3.7.1', unable to find plugin 'kubernetes-release' matching version 'v3.7.1', unable to find plugin 'package' matching version 'v3.7.1', unable to find plugin 'registry-secret' matching version 'v3.7.1']

Environment

  • VMware Cloud Foundation (VCF) 9.1
  • VCF CLI

Cause

  • FDS cache is not getting refreshed correctly 
  • Therefore VCF CLI is not able to download the latest plugins from harbor 

Resolution

Will be resolved in a future release of VCF 

Workaround: 

  1. Ensure the VCF Consumption CLI OCI plugin bundle is uploaded to Harbor
  2. Delete the plugin inventory local cache
    • rm -rf ~/.cache/vcf/plugin_inventory/default/ 
  3. Disable plugin discovery
    • vcf config set features.global.disable-plugin-source-discovery true
  4. Reconfigure VCF CLI to pull the plugins 
    • vcf plugin source update default —uri <ip>/vcf/vcf-cli-plugins/ga/plugin-inventory/v9-rel/plugin-inventory:v9.1.1.0