Error: "Stopped installing matched version '2.37.0+vmware. 3-tkg.l' since last attempted version '2.45. 0+vmware. 1-tkg.2' is higher." while installing Prometheus package and reconciliation fails.
search cancel

Error: "Stopped installing matched version '2.37.0+vmware. 3-tkg.l' since last attempted version '2.45. 0+vmware. 1-tkg.2' is higher." while installing Prometheus package and reconciliation fails.

book

Article ID: 425819

calendar_today

Updated On:

Products

VMware Tanzu Kubernetes Grid Management

Issue/Introduction

Trying to install the latest version "2.45. 0+vmware. 1-tkg.2" of Prometheus package , however the reconciliation fails .

When we describe the package we see the following error.

 

Stopped installing matched version '2.37.0+vmware. 3-tkg.l' since last attempted version '2.45. 0+vmware. 1-tkg.2' is higher.
hint: Add annotation packaging. carvel.dev/downgradable: "" to PackageInstall to proceed with downgrade
Version: 2.37.0+vmware.3-tkg.1

 

Environment

TKGM 2.5.x

Cause

The package is missing from the available list.

 

Resolution

Option 1 :

If you have latest version of  Prometheus in harbor.

Update the packages on workload cluster using the command

"tanzu package repository add alternate-repo -n tkg-system --url <Harbor-repo-details> " , it will fetch latest version and Prometheus.

Once the package is part of available list , the Prometheus package installation will be successful.

Option 2:

If the Package is missing from Harbor you need to push the latest version to harbor.

If you have private harbor registry, from your jump server you need to push the new version of Prometheus to the harbor registry .

Use  any of the below commands to push the new image to the harbor.

Step 1:

If you have internet on the harbor you need to pull the Prometheus package and tag it to the harbor registry.

If you do not have internet on harbor log-in to the machine which has internet and docker installed and pull the package to the machine and then push the package harbor and tag it

https://projects.packages.broadcom.com/ui/packages/docker:%2F%2Fharbor-projects-registry%2Ftkg%2Fpackages%2Fstandard%2Fprometheus/v2.45.0_vmware.1-tkg.2?name=prometheus&type=packages  

To pull the image:

docker pull projects1-proxy.projects.packages.broadcom.com/harbor-projects-registry/tkg/packages/standard/prometheus:v2.45.0_vmware.1-tkg.2

To push the image:

imgpkg copy --tar ./packages-core-repo-v1.25.7_vmware.2-tkg.1.tar --to-repo harbor.lab.net/v2.2.0/packages/core/repo --registry-ca-cert-path /etc/docker/certs.d/harbor.lab.net/ca.crt


Step 2:

Once you have the image in Harbor repository , run the below command to add it to the workload cluster:

tanzu package repository add alternate-repo -n tkg-system --url <Harbor-repo-details>

Once the above two steps are followed, try installing the Prometheus again