Bug 2057526
Summary: | cloud provider config change breaks the cluster | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | rlobillo |
Component: | Networking | Assignee: | Andreas Karis <akaris> |
Networking sub component: | ovn-kubernetes | QA Contact: | rlobillo |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | high | ||
Priority: | medium | CC: | anusaxen, ffernand, jechen, juriarte, scuppett |
Version: | 4.7 | Keywords: | TestBlocker |
Target Milestone: | --- | Flags: | jechen:
needinfo-
|
Target Release: | 4.7.z | ||
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-05-25 12:03:03 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: | |||
Bug Depends On: | 2059330 | ||
Bug Blocks: |
Description
rlobillo
2022-02-23 15:11:19 UTC
Looks like we'll have to backport https://github.com/openshift/machine-config-operator/commit/e6a673db9a2931906cf00832684f5d132ca333ee all the way to 4.7 I'll hold this until 2057160 merges as I believe that those changes are important here. Verified on OCP4.7.51 on top of RHOS-16.2-RHEL-8-20220311.n.1 Given a cluster under below conditions: $ oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.7.51 True False 14h Cluster version is 4.7.51 $ oc get nodes NAME STATUS ROLES AGE VERSION ostest-8dfs4-master-0 Ready master 14h v1.20.15+98b2293 ostest-8dfs4-master-1 Ready master 14h v1.20.15+98b2293 ostest-8dfs4-master-2 Ready master 14h v1.20.15+98b2293 ostest-8dfs4-worker-0-5nlz5 Ready worker 14h v1.20.15+98b2293 ostest-8dfs4-worker-0-h2rsq Ready worker 14h v1.20.15+98b2293 ostest-8dfs4-worker-0-s622c Ready worker 14h v1.20.15+98b2293 $ oc get network/cluster -o json | jq .spec.networkType "OVNKubernetes" $ openstack server list -c Name -c Networks +-----------------------------+------------------------------------------------------------+ | Name | Networks | +-----------------------------+------------------------------------------------------------+ | ostest-8dfs4-worker-0-5nlz5 | StorageNFS=10.0.0.228; ostest-8dfs4-openshift=10.196.0.179 | | ostest-8dfs4-worker-0-s622c | StorageNFS=10.0.0.126; ostest-8dfs4-openshift=10.196.1.205 | | ostest-8dfs4-worker-0-h2rsq | StorageNFS=10.0.0.253; ostest-8dfs4-openshift=10.196.3.206 | | ostest-8dfs4-master-2 | ostest-8dfs4-openshift=10.196.1.196 | | ostest-8dfs4-master-1 | ostest-8dfs4-openshift=10.196.2.112 | | ostest-8dfs4-master-0 | ostest-8dfs4-openshift=10.196.2.192 | +-----------------------------+------------------------------------------------------------+ $ for i in $(openstack server list -f json | jq -r .[].Name); do echo "# $i"; ssh -J core.shiftstack.com core@$i ip r show default; echo ; done # ostest-8dfs4-worker-0-5nlz5 Warning: Permanently added 'api.ostest.shiftstack.com,10.46.23.46' (ECDSA) to the list of known hosts. Warning: Permanently added 'ostest-8dfs4-worker-0-5nlz5' (ECDSA) to the list of known hosts. default via 10.196.0.1 dev br-ex proto dhcp metric 49 default via 10.0.0.1 dev ens4 proto dhcp metric 101 # ostest-8dfs4-worker-0-s622c Warning: Permanently added 'api.ostest.shiftstack.com,10.46.23.46' (ECDSA) to the list of known hosts. Warning: Permanently added 'ostest-8dfs4-worker-0-s622c' (ECDSA) to the list of known hosts. default via 10.196.0.1 dev br-ex proto dhcp metric 49 default via 10.0.0.1 dev ens4 proto dhcp metric 101 # ostest-8dfs4-worker-0-h2rsq Warning: Permanently added 'api.ostest.shiftstack.com,10.46.23.46' (ECDSA) to the list of known hosts. Warning: Permanently added 'ostest-8dfs4-worker-0-h2rsq' (ECDSA) to the list of known hosts. default via 10.196.0.1 dev br-ex proto dhcp metric 49 default via 10.0.0.1 dev ens4 proto dhcp metric 101 # ostest-8dfs4-master-2 Warning: Permanently added 'api.ostest.shiftstack.com,10.46.23.46' (ECDSA) to the list of known hosts. Warning: Permanently added 'ostest-8dfs4-master-2' (ECDSA) to the list of known hosts. default via 10.196.0.1 dev br-ex proto dhcp metric 49 # ostest-8dfs4-master-1 Warning: Permanently added 'api.ostest.shiftstack.com,10.46.23.46' (ECDSA) to the list of known hosts. Warning: Permanently added 'ostest-8dfs4-master-1' (ECDSA) to the list of known hosts. default via 10.196.0.1 dev br-ex proto dhcp metric 49 # ostest-8dfs4-master-0 Warning: Permanently added 'api.ostest.shiftstack.com,10.46.23.46' (ECDSA) to the list of known hosts. Warning: Permanently added 'ostest-8dfs4-master-0' (ECDSA) to the list of known hosts. default via 10.196.0.1 dev br-ex proto dhcp metric 49 ################################### changing the cloud-provider-config ($ oc edit cm cloud-provider-config -n openshift-config) from: config: | [Global] secret-name = openstack-credentials secret-namespace = kube-system region = regionOne ca-file = /etc/kubernetes/static-pod-resources/configmaps/cloud-config/ca-bundle.pem to: config: | [Global] secret-name = openstack-credentials secret-namespace = kube-system region = regionOne ca-file = /etc/kubernetes/static-pod-resources/configmaps/cloud-config/ca-bundle.pem [LoadBalancer] use-octavia = True $ oc get nodes -w NAME STATUS ROLES AGE VERSION ostest-8dfs4-master-0 Ready master 14h v1.20.15+98b2293 ostest-8dfs4-master-1 Ready master 14h v1.20.15+98b2293 ostest-8dfs4-master-2 Ready master 14h v1.20.15+98b2293 ostest-8dfs4-worker-0-5nlz5 Ready worker 14h v1.20.15+98b2293 ostest-8dfs4-worker-0-h2rsq Ready worker 14h v1.20.15+98b2293 ostest-8dfs4-worker-0-s622c Ready worker 14h v1.20.15+98b2293 ostest-8dfs4-master-0 Ready master 14h v1.20.15+98b2293 ostest-8dfs4-worker-0-s622c Ready worker 14h v1.20.15+98b2293 ostest-8dfs4-master-0 Ready master 14h v1.20.15+98b2293 ostest-8dfs4-worker-0-s622c Ready worker 14h v1.20.15+98b2293 ostest-8dfs4-worker-0-s622c Ready,SchedulingDisabled worker 14h v1.20.15+98b2293 ostest-8dfs4-worker-0-s622c Ready,SchedulingDisabled worker 14h v1.20.15+98b2293 ostest-8dfs4-master-0 Ready,SchedulingDisabled master 14h v1.20.15+98b2293 ostest-8dfs4-master-0 Ready,SchedulingDisabled master 14h v1.20.15+98b2293 ostest-8dfs4-master-1 Ready master 14h v1.20.15+98b2293 ostest-8dfs4-worker-0-h2rsq Ready worker 14h v1.20.15+98b2293 ostest-8dfs4-master-1 Ready master 14h v1.20.15+98b2293 ostest-8dfs4-worker-0-s622c NotReady,SchedulingDisabled worker 14h v1.20.15+98b2293 ostest-8dfs4-worker-0-s622c NotReady,SchedulingDisabled worker 14h v1.20.15+98b2293 ostest-8dfs4-master-0 Ready,SchedulingDisabled master 14h v1.20.15+98b2293 ostest-8dfs4-worker-0-s622c NotReady,SchedulingDisabled worker 14h v1.20.15+98b2293 ostest-8dfs4-worker-0-h2rsq Ready worker 14h v1.20.15+98b2293 ostest-8dfs4-master-1 Ready master 14h v1.20.15+98b2293 ostest-8dfs4-worker-0-s622c NotReady,SchedulingDisabled worker 14h v1.20.15+98b2293 ostest-8dfs4-worker-0-s622c NotReady,SchedulingDisabled worker 14h v1.20.15+98b2293 ostest-8dfs4-worker-0-s622c Ready,SchedulingDisabled worker 14h v1.20.15+98b2293 ostest-8dfs4-worker-0-s622c Ready,SchedulingDisabled worker 14h v1.20.15+98b2293 [...] $ oc get nodes NAME STATUS ROLES AGE VERSION ostest-8dfs4-master-0 Ready master 15h v1.20.15+98b2293 ostest-8dfs4-master-1 Ready master 15h v1.20.15+98b2293 ostest-8dfs4-master-2 Ready master 15h v1.20.15+98b2293 ostest-8dfs4-worker-0-5nlz5 Ready worker 14h v1.20.15+98b2293 ostest-8dfs4-worker-0-h2rsq Ready worker 14h v1.20.15+98b2293 ostest-8dfs4-worker-0-s622c Ready worker 14h v1.20.15+98b2293 ################################### Routes are set correctly: $ for i in $(openstack server list -f json | jq -r .[].Name); do echo "# $i"; ssh -J core.shiftstack.com core@$i ip r show default; echo ; done # ostest-8dfs4-worker-0-5nlz5 Warning: Permanently added 'api.ostest.shiftstack.com,10.46.23.46' (ECDSA) to the list of known hosts. Warning: Permanently added 'ostest-8dfs4-worker-0-5nlz5' (ECDSA) to the list of known hosts. default via 10.196.0.1 dev br-ex proto dhcp metric 49 default via 10.0.0.1 dev ens4 proto dhcp metric 100 # ostest-8dfs4-worker-0-s622c Warning: Permanently added 'api.ostest.shiftstack.com,10.46.23.46' (ECDSA) to the list of known hosts. Warning: Permanently added 'ostest-8dfs4-worker-0-s622c' (ECDSA) to the list of known hosts. default via 10.196.0.1 dev br-ex proto dhcp metric 49 default via 10.0.0.1 dev ens4 proto dhcp metric 100 # ostest-8dfs4-worker-0-h2rsq Warning: Permanently added 'api.ostest.shiftstack.com,10.46.23.46' (ECDSA) to the list of known hosts. Warning: Permanently added 'ostest-8dfs4-worker-0-h2rsq' (ECDSA) to the list of known hosts. default via 10.196.0.1 dev br-ex proto dhcp metric 49 default via 10.0.0.1 dev ens4 proto dhcp metric 100 # ostest-8dfs4-master-2 Warning: Permanently added 'api.ostest.shiftstack.com,10.46.23.46' (ECDSA) to the list of known hosts. Warning: Permanently added 'ostest-8dfs4-master-2' (ECDSA) to the list of known hosts. default via 10.196.0.1 dev br-ex proto dhcp metric 49 # ostest-8dfs4-master-1 Warning: Permanently added 'api.ostest.shiftstack.com,10.46.23.46' (ECDSA) to the list of known hosts. Warning: Permanently added 'ostest-8dfs4-master-1' (ECDSA) to the list of known hosts. default via 10.196.0.1 dev br-ex proto dhcp metric 49 # ostest-8dfs4-master-0 Warning: Permanently added 'api.ostest.shiftstack.com,10.46.23.46' (ECDSA) to the list of known hosts. Warning: Permanently added 'ostest-8dfs4-master-0' (ECDSA) to the list of known hosts. default via 10.196.0.1 dev br-ex proto dhcp metric 49 Cluster is operative: $ oc apply -f demo.yaml deployment.apps/demo created service/demo created $ oc get pods -n demo -o wide NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES demo-7897db69cc-cfhkj 1/1 Running 0 4m5s 10.131.0.7 ostest-8dfs4-worker-0-5nlz5 <none> <none> demo-7897db69cc-fmnlw 1/1 Running 0 4m5s 10.128.2.7 ostest-8dfs4-worker-0-s622c <none> <none> demo-7897db69cc-sgxr2 1/1 Running 0 4m6s 10.129.2.12 ostest-8dfs4-worker-0-h2rsq <none> <none> 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.51 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:2268 |