missing label operators.operatorframework.io.index.database.v1 Usage

Solution Verified - Updated -

Issue

  • While pruning index:v4.11 or index:v4.12 getting below error:
$ opm index prune -f registry.redhat.io/redhat/redhat-operator-index:v4.11 -p redhat-oadp-operator -t private_registry/ocp4-operators/operators-index:v4.11  INFO[0000] pruning the index                             packages="[redhat-oadp-operator]"
INFO[0000] Pulling previous image registry.redhat.io/redhat/redhat-operator-index:v4.11 to get metadata  packages="[redhat-oadp-operator]"
INFO[0000] running /usr/bin/podman pull registry.redhat.io/redhat/redhat-operator-index:v4.11  packages="[redhat-oadp-operator]"
INFO[0006] running /usr/bin/podman pull registry.redhat.io/redhat/redhat-operator-index:v4.11  packages="[redhat-oadp-operator]"
INFO[0011] Getting label data from previous image        packages="[redhat-oadp-operator]"
INFO[0011] running podman inspect                        packages="[redhat-oadp-operator]"
Error: index image registry.redhat.io/redhat/redhat-operator-index:v4.11 missing label operators.operatorframework.io.index.database.v1
Usage:
  opm index prune [flags]

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • ≥ 4.11

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content