Bug 2092887 - oc-mirror list releases command uses filter-options flag instead of filter-by-os
Summary: oc-mirror list releases command uses filter-options flag instead of filter-by-os
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.11
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.11.0
Assignee: Arda Guclu
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-02 13:42 UTC by Jennifer Power
Modified: 2022-08-10 11:16 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-10 11:15:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift oc-mirror pull 482 0 None open Bug 2092887: Rename filter-options flag to filter-by-archs 2022-06-02 13:46:09 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 11:16:05 UTC

Description Jennifer Power 2022-06-02 13:42:11 UTC
Description of problem:
oc-mirror list releases command uses filter-options flag instead of filter-by-os. To allow oc-mirror to integrate with "oc adm release info" the flag should be filter-by-archs.

Version-Release number of selected component (if applicable):
Client Version: version.Info{Major:"", Minor:"", GitVersion:"v0.2.0-alpha.1-41-gf93ddac", GitCommit:"f93ddac6", GitTreeState:"clean", BuildDate:"2022-06-02T13:34:26Z", GoVersion:"go1.17.1", Compiler:"gc", Platform:"linux/amd64"}


How reproducible:
100%


Steps to Reproduce:
1. oc-mirror list releases -h


Actual results:

--filter-options strings   An architecture list to control the release image picked when multiple variants are available


Expected results:

--filter-by-archs to have a name compatible with oc flags.


Additional info:

Comment 2 zhou ying 2022-06-06 01:40:18 UTC
oc-mirror version 
Client Version: version.Info{Major:"", Minor:"", GitVersion:"4.11.0-202206030929.p0.gb22233e.assembly.stream-b22233e", GitCommit:"b22233e611ab4692748ffc992a235abd9c231ecf", GitTreeState:"clean", BuildDate:"2022-06-03T10:12:00Z", GoVersion:"go1.18", Compiler:"gc", Platform:"linux/amd64"}
[root@localhost ocmirrortest]# oc-mirror list releases -h
List available platform content and versions

Usage:
  oc-mirror list releases [flags]

Examples:
  # Output OpenShift release versions
  oc-mirror list releases
  
  # Output all OpenShift release channels list for a release
  oc-mirror list releases --version=4.8
  
  # List all OpenShift versions in a specified channel
  oc-mirror list releases --channel=stable-4.8
  
  # List all OpenShift channels for a specific version
  oc-mirror list releases --channels --version=4.8

Flags:
      --channel string            List information for a specified channel
      --channels                  List all channel information
      --filter-by-archs strings   An architecture list to control the release image picked when multiple variants are available

Comment 4 errata-xmlrpc 2022-08-10 11:15:49 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 (Important: OpenShift Container Platform 4.11.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-2022:5069


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