Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2092887

Summary: oc-mirror list releases command uses filter-options flag instead of filter-by-os
Product: OpenShift Container Platform Reporter: Jennifer Power <jpower>
Component: ocAssignee: Arda Guclu <aguclu>
oc sub component: oc-mirror QA Contact: zhou ying <yinzhou>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: aguclu, jpower, vdinh
Version: 4.11   
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-10 11:15:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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