Bug 1860035
| Summary: | spec.config.nodeSelector on the subscription is not propagated to pods | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Simone Tiraboschi <stirabos> |
| Component: | OLM | Assignee: | Alexander Greene <agreene> |
| OLM sub component: | OLM | QA Contact: | yhui |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | high | ||
| Priority: | high | CC: | fdeutsch, jiazha, krizza, nhale, ocohen |
| Version: | 4.5 | ||
| Target Milestone: | --- | ||
| Target Release: | 4.6.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause: OLM exposed the subscription.spec.config.nodeSelector field in the subscription CRD but did not apply nodeSelectors to the deployments defined in the CSV.
Consequence: Users could not set nodeSelectors on their CSV deployments.
Fix: Update OLM so it will propagate nodeSelector labels defined in the subscription.spec.config.nodeSelector field to deployments in the CSV.
Result: The subscription.spec.config.nodeSelector field now works as expected.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-10-27 16:16:44 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
Simone Tiraboschi
2020-07-23 15:25:07 UTC
Version:
[root@preserve-olm-env daily-test]# oc get clusterversion
NAME VERSION AVAILABLE PROGRESSING SINCE STATUS
version 4.6.0-0.nightly-2020-08-12-155346 True False 89m Cluster version is 4.6.0-0.nightly-2020-08-12-155346
[root@preserve-olm-env daily-test]# oc exec catalog-operator-69976d7cf6-pwxqc -n openshift-operator-lifecycle-manager -- olm --version
OLM version: 0.16.0
git commit: 63a809b03d27e5e00ec14249d629ecd65e53b7aa
Steps to Reproduce:
1. create a subscription with nodeSelector:
[root@preserve-olm-env daily-test]# cat sub-new.yaml
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: etcd-etcdoperator.v0.9.2
spec:
channel: alpha
installPlanApproval: Automatic
name: etcd-update
source: installed-community-global-operators
sourceNamespace: openshift-marketplace
startingCSV: etcdoperator.v0.9.2
config:
nodeSelector:
kubernetes.io/os: linux
[root@preserve-olm-env daily-test]# oc create -f sub-new.yaml
subscription.operators.coreos.com/etcd-etcdoperator.v0.9.2 created
[root@preserve-olm-env daily-test]# oc get sub
NAME PACKAGE SOURCE CHANNEL
etcd-etcdoperator.v0.9.2 etcd-update installed-community-global-operators alpha
2. check the operator pod for nodeSelector
[root@preserve-olm-env daily-test]# oc get csv
NAME DISPLAY VERSION REPLACES PHASE
etcdoperator.v0.9.2 etcd 0.9.2 Succeeded
[root@preserve-olm-env daily-test]# oc get pods
NAME READY STATUS RESTARTS AGE
etcd-operator-6d8c556957-7b5hd 3/3 Running 0 10s
[root@preserve-olm-env daily-test]# oc get pods -o yaml
apiVersion: v1
...
nodeSelector:
kubernetes.io/os: linux
...
spec.config.nodeSelector got propagated from the subscription to operator pod.
Verify the bug.
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 (OpenShift Container Platform 4.6 GA Images), 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:4196 |