Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1896365

Summary: [Migration]The SDN migration cannot revert under some conditions
Product: OpenShift Container Platform Reporter: huirwang
Component: NetworkingAssignee: Peng Liu <pliu>
Networking sub component: openshift-sdn QA Contact: huirwang
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: anusaxen, dosmith, rbrattai, weliang
Version: 4.7   
Target Milestone: ---   
Target Release: 4.7.0   
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: 2021-02-24 15:32:32 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: 1898159    
Bug Blocks:    
Attachments:
Description Flags
cno.log none

Description huirwang 2020-11-10 11:23:03 UTC
Description of problem:
The sdn migration cannot revert under some conditions

Version-Release number of selected component (if applicable):
4.7.0-0.nightly-2020-11-09-190845 

How reproducible:


Steps to Reproduce:
1. Enable migration by  oc annotate Network.operator.openshift.io cluster "networkoperator.openshift.io/network-migration"=""

2.  Disable MCO

3. Patch SDN cluster to OVN
 oc patch Network.config.openshift.io cluster --type='merge' --patch '{"spec":{"networkType":"OVNKubernetes","clusterNetwork":[{"cidr":"10.132.0.0/14","hostPrefix":23}]}}'

4. Wait for multus pods recreated.

5. Rollback to SDN:
oc patch Network.config.openshift.io cluster --type='merge' --patch '{"spec":{"networkType":"OpenShiftSDN","clusterNetwork":[{"cidr":"10.128.0.0/14","hostPrefix":23}]}}'

Actual results:
After patch to SDN, multus pods never got recreated again (Wait more than 30 minutes). No pods generated in openshift-sdn as well.

Some other pods are in wrong status.
Warning  FailedCreatePodSandBox  57s (x10 over 8m41s)  kubelet, ip-10-0-173-148.us-east-2.compute.internal  (combined from similar events): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to create pod network sandbox k8s_installer-8-ip-10-0-173-148.us-east-2.compute.internal_openshift-kube-apiserver_990c458e-6910-4a0d-ba3b-62ae835c1761_0(09cb8e24cf96d3f304870664b5df434236b731cd1ae1c011f9924a6ca368b166): [openshift-kube-apiserver/installer-8-ip-10-0-173-148.us-east-2.compute.internal:ovn-kubernetes]: error adding container to network "ovn-kubernetes": CNI request failed with status 400: '[openshift-kube-apiserver/installer-8-ip-10-0-173-148.us-east-2.compute.internal] failed to get pod annotation: timed out waiting for the condition

After manually reboot the nodes. Still no openshift-sdn pods created.


Expected results:
Should rollback successfully.

Additional info:

Comment 1 huirwang 2020-11-10 11:25:45 UTC
Created attachment 1728040 [details]
cno.log

Comment 4 Anurag saxena 2020-11-11 21:41:50 UTC
@Huiran Yep, Just wanted platform clarifications. Yea seems like Azure works fine on latest 4.7 back and forth with SDN <-> OVNmigration (guess I was missing MCO enablement step post reboot). Thanks

Comment 6 Peng Liu 2020-12-09 11:10:34 UTC
This bug shall be fixed with BZ1898159.

Comment 11 errata-xmlrpc 2021-02-24 15:32:32 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 (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement 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-2020:5633