Bug 1937375
| Summary: | [release-4.7] When deploying the operator via OLM (after creating the respective catalogsource), the deployment "lost" the `resources` section. | |||
|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Joe Lanford <jlanford> | |
| Component: | OLM | Assignee: | Joe Lanford <jlanford> | |
| OLM sub component: | OLM | QA Contact: | xzha | |
| Status: | CLOSED ERRATA | Docs Contact: | ||
| Severity: | medium | |||
| Priority: | high | CC: | anbhatta, jlanford, kuiwang, mjaros, vdinh, vkochuku, xzha | |
| Version: | 4.6 | Keywords: | Triaged | |
| Target Milestone: | --- | |||
| Target Release: | 4.7.z | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | 1926893 | |||
| : | 1945149 (view as bug list) | Environment: | ||
| Last Closed: | 2021-04-05 13:56:14 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: | 1926893 | |||
| Bug Blocks: | 1945149 | |||
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.7.5 security and bug fix 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:1005 |
verify: 1. install cluster with this PR zhaoxia@xia-MacBook-Pro 1926893 % oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.7.0-0.nightly-2021-03-25-225737 True False 42m Cluster version is 4.7.0-0.nightly-2021-03-25-225737 2) create catalogsource zhaoxia@xia-MacBook-Pro 1926893 % cat catsrc.yaml apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource metadata: labels: olm-visibility: hidden opsrc-datastore: "true" opsrc-provider: reproducer name: reproducer-operators namespace: openshift-marketplace spec: displayName: Reproducer Operators icon: base64data: "" mediatype: "" image: quay.io/jaeichle/reproducer-hello-world-index:0.0.1 priority: -400 publisher: jaeichle sourceType: grpc updateStrategy: registryPoll: interval: 100m0s zhaoxia@xia-MacBook-Pro 1926893 % oc apply -f catsrc.yaml catalogsource.operators.coreos.com/reproducer-operators created zhaoxia@xia-MacBook-Pro 1926893 % oc get catsrc -A NAMESPACE NAME DISPLAY TYPE PUBLISHER AGE openshift-marketplace certified-operators Certified Operators grpc Red Hat 56m openshift-marketplace community-operators Community Operators grpc Red Hat 56m openshift-marketplace qe-app-registry Production Operators grpc OpenShift QE 33m openshift-marketplace redhat-marketplace Red Hat Marketplace grpc Red Hat 56m openshift-marketplace redhat-operators Red Hat Operators grpc Red Hat 56m openshift-marketplace reproducer-operators Reproducer Operators grpc jaeichle 9s zhaoxia@xia-MacBook-Pro 1926893 % oc get packagemanifest -A | grep Reproducer openshift-marketplace helloworld-operator Reproducer Operators 41s 3) install operator zhaoxia@xia-MacBook-Pro 1926893 % oc get sub NAME PACKAGE SOURCE CHANNEL helloworld-operator helloworld-operator reproducer-operators alpha zhaoxia@xia-MacBook-Pro 1926893 % oc get csv helloworld-operator.v0.0.1 -o yaml | grep limit -A 5 limits: cpu: 500m memory: 500Mi requests: cpu: 100m memory: 100Mi zhaoxia@xia-MacBook-Pro 1926893 % oc get deployment helloworld-operator -o yaml | grep resources -A 6 resources: limits: cpu: 500m memory: 500Mi requests: cpu: 100m memory: 100Mi zhaoxia@xia-MacBook-Pro 1926893 % oc get pod NAME READY STATUS RESTARTS AGE helloworld-operator-658c5f6787-46bmc 1/1 Running 0 83s zhaoxia@xia-MacBook-Pro 1926893 % oc get pod helloworld-operator-658c5f6787-46bmc -o yaml | grep resources -A 6 resources: limits: cpu: 500m memory: 500Mi requests: cpu: 100m memory: 100Mi LGTM. verified