Bug 1996878 - opm does not print sqlite deprecation warnings
Summary: opm does not print sqlite deprecation warnings
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: OLM
Version: 4.9
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.9.0
Assignee: Joe Lanford
QA Contact: xzha
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-23 21:26 UTC by Joe Lanford
Modified: 2021-10-18 17:48 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-18 17:48:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift operator-framework-olm pull 177 0 None None None 2021-08-25 21:12:18 UTC
Red Hat Product Errata RHSA-2021:3759 0 None None None 2021-10-18 17:48:37 UTC

Comment 4 xzha 2021-08-26 09:30:02 UTC
verify

[root@preserve-olm-agent-test ~]# opm version
Version: version.Version{OpmVersion:"d4a3aa1c3", GitCommit:"d4a3aa1c32dd8d917e81a30a325184f8aaf4fa92", BuildDate:"2021-08-26T04:53:13Z", GoOs:"linux", GoArch:"amd64"}

[root@preserve-olm-agent-test ~]# opm render -h
Generate a declarative config blob from the provided index images, bundle images, and sqlite database files

DEPRECATION NOTICE:
Sqlite-based catalogs and their related subcommands are deprecated. Support for
them will be removed in a future release. Please migrate your catalog workflows
to the new file-based catalog format.

Usage:
  opm render [index-image | bundle-image | sqlite-file]... [flags]

Flags:
  -h, --help            help for render
  -o, --output string   Output format (json|yaml) (default "json")

Global Flags:
      --skip-tls   skip TLS certificate verification for container image registries while pulling bundles or index

[root@preserve-olm-agent-test ~]# opm index -h
generate operator index container images from preexisting operator bundles

DEPRECATION NOTICE:
Sqlite-based catalogs and their related subcommands are deprecated. Support for
them will be removed in a future release. Please migrate your catalog workflows
to the new file-based catalog format.

Usage:
  opm index [command]

Available Commands:
  add               Add operator bundles to an index.
  export            Export an operator from an index into the appregistry format
  prune             prune an index of all but specified packages
  prune-stranded    prune an index of stranded bundles
  rm                delete an entire operator from an index

Flags:
  -h, --help   help for index

Global Flags:
      --skip-tls   skip TLS certificate verification for container image registries while pulling bundles or index

Use "opm index [command] --help" for more information about a command.

[root@preserve-olm-agent-test ~]# opm index add
WARN[0000] DEPRECATION NOTICE:
Sqlite-based catalogs and their related subcommands are deprecated. Support for
them will be removed in a future release. Please migrate your catalog workflows
to the new file-based catalog format. 
Error: required flag(s) "bundles" not set
Usage:
  opm index add [flags]



[root@preserve-olm-agent-test ~]# opm registry -h
interact with operator-registry database building, modifying and/or serving the operator-registry database

DEPRECATION NOTICE:
Sqlite-based catalogs and their related subcommands are deprecated. Support for
them will be removed in a future release. Please migrate your catalog workflows
to the new file-based catalog format.

Usage:
  opm registry [command]

Available Commands:
  add            add operator bundle to operator registry DB
  prune          prune an operator registry DB of all but specified packages
  prune-stranded prune an operator registry DB of stranded bundles
  rm             remove operator from operator registry DB
  serve          serve an operator-registry database

Flags:
  -h, --help   help for registry

Global Flags:
      --skip-tls   skip TLS certificate verification for container image registries while pulling bundles or index

Use "opm registry [command] --help" for more information about a command.

LGTM, verified.

Comment 7 errata-xmlrpc 2021-10-18 17:48:10 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:3759


Note You need to log in before you can comment on or make changes to this bug.