RabbitMQ: RabbitMQ on Kubernetes, Helm Fails to Fetch Images
search cancel

RabbitMQ: RabbitMQ on Kubernetes, Helm Fails to Fetch Images

book

Article ID: 381251

calendar_today

Updated On:

Products

Pivotal RabbitMQ Support Only for OpenSource RabbitMQ VMware RabbitMQ VMware Tanzu RabbitMQ

Issue/Introduction

Typically the issue happens when user follows below documents: Install VMware Tanzu RabbitMQ for Kubernetes using Helm and helm would fail to fetch the image. 

The sample error message which is generated when helm tries to wrap a local image + chart bundle. This process would fetch the images from the registry defined in the Chart.yaml: 

***/home/***# helm dt wrap .
» Wrapping Helm chart "."
✘ Failed to generate lock: failed to load Helm chart: failed to process Helm chart "tanzu-rabbitmq-operators" images: failed to fetch image "rmq-audit-logger" digests: failed to get descriptor: GET https://rabbitmq.packages.broadcom.com/v2/rabbitmq-audit-logger/manifests/0.4.3-amd64: MANIFEST_UNKNOWN: The named manifest is not known to the registry.; map[manifest:rabbitmq-audit-logger/0.4.3-amd64/manifest.json]
failed to wrap Helm chart: Failed to generate lock: failed to load Helm chart: failed to process Helm chart "tanzu-rabbitmq-operators" images: failed to fetch image "rmq-audit-logger" digests: failed to get descriptor: GET https://rabbitmq.packages.broadcom.com/v2/rabbitmq-audit-logger/manifests/0.4.3-amd64: MANIFEST_UNKNOWN: The named manifest is not known to the registry.; map[manifest:rabbitmq-audit-logger/0.4.3-amd64/manifest.json]
Error: plugin "dt" exited with error

Environment

RabbitMQ on Kubernetes 4.0.2

Cause

It is due to mis-configuration of path to the rmq-audit-logger image

Resolution

Before applying the Resolution, please go through the Troubleshooting to identify if users are impacted by this issue described in this article. 

Troubleshooting: 

1. Please make sure you have helm registry login to all of the required Broadcom Registry successfully. 

    Not only the the helm registry, also the general broadcom registry that mentioned in the error message you see. 

    Please note that in the container world, wrong environment value settings(such as EXPORT valuename=value in Linux environment, set valuename=value in Windows) would return similar error messages MANIFEST UNKNOWN as well. Therefore, please always try to make sure the things are correct before trying anything else. 

2. Then open the Chart.yaml file and identify if the path to the rmq-audit-logger is incorrect.

   Correct one is: rabbitmq.packages.broadcom.com/audit-logger:0.4.3-amd64

Resolution:

Option 1: If users are sure that the Audit Logger is not being used in the cluster (Note: it is not being used by default.), you can remove the references to it from Chart.yaml file, and try again. In the file, the references would look like below, delete these 2 lines would do. 

- name: rmq-audit-logger
image: rabbitmq.packages.broadcom.com/rabbitmq-audit-logger:0.4.3-amd64

Option 2: Modify the path to correct one. 

- name: rmq-audit-logger
image: rabbitmq.packages.broadcom.com/rabbitmq-audit-logger:0.4.3-amd64 ->audit-logger:0.4.3-amd64
 

Long Term Fix: 

It will be fixed starting from next version of the tanzu-rabbitmq-operators packages. Thank you for understanding.