Description of problem: Config file for operator ansible-automation-platform-operator appears to be defined correctly, only lacking a maxVersion, throws an ansible fatal error preventing a manifest from being generated.
TASK [mirror : Create image mapping for operators (1.5.4 +)] ******************************************************************************************
fatal: [localhost]: FAILED! =>
PLAY RECAP ********************************************************************************************************************************************
localhost : ok=46 changed=9 unreachable=0 failed=1 skipped=92 rescued=0 ignored=0
Version-Release number of selected component (if applicable): NAME DISPLAY NAME DEFAULT CHANNEL ansible-automation-platform-operator Ansible Automation Platform stable-2.4-cluster-scoped PACKAGE CHANNEL HEAD ansible-automation-platform-operator stable-2.4 aap-operator.v2.4.0-0.1708974895 ansible-automation-platform-operator stable-2.4-cluster-scoped aap-operator.v2.4.0-0.1708975279 Openshift 4.14 How reproducible: Easy
Steps to Reproduce:
1. Install ansible-automation-operator 2. Define imagesetconfig.yaml $ cat run_cache/imagesetconfig.yaml kind: ImageSetConfiguration apiVersion: mirror.openshift.io/v1alpha2 storageConfig: local: path: ./ mirror: operators: - catalog: wsartifactory.ws.vici.verizon.com/ws_platform_docker/catalogs/webscale-operator-index:1.6.2-0 packages: - name: sriov-network-operator minVersion: '4.14.0' - name: numaresources-operator minVersion: '4.14.1' - name: kubevirt-hyperconverged minVersion: '4.14.0' - name: elasticsearch-operator minVersion: '5.8.3' - name: cluster-logging minVersion: '5.8.3' - name: file-integrity-operator minVersion: '1.3.3' - name: nfd minVersion: '4.14.0' - name: ansible-automation-platform-operator minVersion: '2.4.0' - name: redhat-oadp-operator minVersion: '1.3.0' - name: kubernetes-nmstate-operator minVersion: '4.14.0' - name: compliance-operator minVersion: '1.4.0' - name: openshift-custom-metrics-autoscaler-operator minVersion: '2.11.2' - name: openshift-pipelines-operator-rh minVersion: '1.12.2' - name: power-monitoring-operator minVersion: '0.1.0' - name: tawon-operator minVersion: '2.32.0' --------------- ----------------------------------------------------------------------------------------------------------------- [corona@ws-production-tools ws-image-mirror]$ ./run_cache/bin/4.14/opm render wsartifactory.ws.vici.verizon.com/ws_platform_docker/catalogs/webscale-operator-index:1.6.2-0 > versions.json ----------------------------------------------------------------------------------------------------------------- "name": "ansible-automation-platform-operator", "defaultChannel": "stable-2.4-cluster-scoped", - "schema": "olm.channel", "name": "stable-2.4-cluster-scoped", "package": "ansible-automation-platform-operator", "entries": [ { "name": "aap-operator.v2.4.0-0.1702352614", "skipRange": ">=2.0.1-0.1635283332 <2.4.1" }, { "name": "aap-operator.v2.4.0-0.1707507304", "replaces": "aap-operator.v2.4.0-0.1702352614", "skipRange": ">=2.0.1-0.1635283332 <2.4.1" }, { "name": "aap-operator.v2.4.0-0.1708975279", "replaces": "aap-operator.v2.4.0-0.1707507304", "skipRange": ">=2.0.1-0.1635283332 <2.4.1" } ] } 3. Run ansible playbook
Actual results: Playbook fails with the following fatal error;
TASK [mirror : Create image mapping for operators (1.5.4 +)] ******************************************************************************************
fatal: [localhost]: FAILED! =>
PLAY RECAP ********************************************************************************************************************************************
localhost : ok=46 changed=9 unreachable=0 failed=1 skipped=92 rescued=0 ignored=0
Expected results: Manifest generated, ansible playbook completes successfully.
Additional info: maxVersion is not explicity defined, minVersion is
- depends on
-
OCPBUGS-37227 oc-mirror tool ignores minVersion and maxVersion for ansible-automation-platform-operator
- New
-
OCPBUGS-37269 oc mirror obtains a different than expected digest for the nmstate operator.
- Closed