Bug 1779675

Summary: oc adm catalog image build `--manifest-dir` option ignored
Product: OpenShift Container Platform Reporter: Nick Hale <nhale>
Component: ocAssignee: Nick Hale <nhale>
Status: CLOSED ERRATA QA Contact: Jian Zhang <jiazha>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.3.zCC: aos-bugs, ernelson, jiazha, jokerman, mfojtik, yinzhou
Target Milestone: ---   
Target Release: 4.3.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1772942 Environment:
Last Closed: 2020-04-08 07:39:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1772942    
Bug Blocks:    

Comment 9 Jian Zhang 2020-03-25 02:11:28 UTC
The `oc` version:
[jzhang@dhcp-140-36 ~]$ ./oc version -o yaml
clientVersion:
  buildDate: "2020-03-23T05:58:49Z"
  compiler: gc
  gitCommit: 62c8ccacf15e6e26b428c818b1a319384ad0b57e
  gitTreeState: clean
  gitVersion: openshift-clients-4.3.9-202003230116
  goVersion: go1.12.12
  major: ""
  minor: ""
  platform: linux/amd64
releaseClientVersion: 4.3.0-0.nightly-2020-03-24-160927

1, Make a new folder:
[jzhang@dhcp-140-36 ~]$ ls zz_cache/
[jzhang@dhcp-140-36 ~]$ 

2, Store the manifest to this folder:
[jzhang@dhcp-140-36 ~]$ ./oc adm catalog build --appregistry-endpoint https://quay.io/cnr --appregistry-org redhat-operators  --manifest-dir zz_cache
INFO[0025] loading Bundles                               dir=zz_cache/manifests-984572146
INFO[0025] directory                                     dir=zz_cache/manifests-984572146 file=manifests-984572146 load=bundles
INFO[0025] directory                                     dir=zz_cache/manifests-984572146 file=3scale-operator load=bundles
INFO[0025] found csv, loading bundle                     dir=zz_cache/manifests-984572146 file=3scale-operator.v0.3.0.clusterserviceversion.yaml load=bundles
INFO[0025] loading bundle file                           dir=zz_cache/manifests-984572146/3scale-operator file=3scale-operator.package.yaml load=bundle
INFO[0025] loading bundle file                           dir=zz_cache/manifests-984572146/3scale-operator file=3scale-operator.v0.3.0.clusterserviceversion.yaml load=bundle
INFO[0025] loading bundle file                           dir=zz_cache/manifests-984572146/3scale-operator file=3scale-operator.v0.4.0.clusterserviceversion.yaml load=bundle
INFO[0025] loading bundle file                           dir=zz_cache/manifests-984572146/3scale-operator file=3scale-operator.v0.4.1.clusterserviceversion.yaml load=bundle
...

3, Check if the manifest in it:
[jzhang@dhcp-140-36 ~]$ tree zz_cache/
zz_cache/
├── manifests-115686336
└── manifests-984572146
    ├── 3scale-operator
    │   ├── 3scale-operator.package.yaml
    │   ├── 3scale-operator.v0.3.0.clusterserviceversion.yaml
    │   ├── 3scale-operator.v0.4.0.clusterserviceversion.yaml
    │   ├── 3scale-operator.v0.4.1.clusterserviceversion.yaml
    │   ├── 3scale-operator.v0.4.2.clusterserviceversion.yaml
    │   ├── APIManager-v1alpha1.crd.yaml
    │   ├── API-v1alpha1.crd.yaml
    │   ├── Binding-v1alpha1.crd.yaml
    │   ├── Limit-v1alpha1.crd.yaml
    │   ├── MappingRule-v1alpha1.crd.yaml
    │   ├── Metric-v1alpha1.crd.yaml
    │   ├── Plan-v1alpha1.crd.yaml
    │   └── Tenant-v1alpha1.crd.yaml
    ├── amq7-cert-manager
    │   ├── amq7-cert-manager.package.yaml
    │   ├── amq7-cert-manager.v1.0.0.clusterserviceversion.yaml
    │   ├── Certificate-v1alpha1.crd.yaml
...

LGTM, verify it.

Comment 12 errata-xmlrpc 2020-04-08 07:39:51 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, 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/RHBA-2020:1262