Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-26492

Operation cannot be fulfilled on networks.operator.openshift.io during OVN live migration

XMLWordPrintable

    • Important
    • No
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Operation cannot be fulfilled on networks.operator.openshift.io during OVN live migration
          

      Version-Release number of selected component (if applicable):

          

      How reproducible:

      Not always

      Steps to Reproduce:

      1. Enable features of egressfirewall, externalIP,multicast, multus, network-policy, service-idle.
      2. Start migrate SDN to OVN cluster
           

      Actual results:

      [weliang@weliang ~]$ oc delete validatingwebhookconfigurations.admissionregistration.k8s.io/sre-techpreviewnoupgrade-validation
      validatingwebhookconfiguration.admissionregistration.k8s.io "sre-techpreviewnoupgrade-validation" deleted
      [weliang@weliang ~]$ oc edit featuregate cluster
      featuregate.config.openshift.io/cluster edited
      [weliang@weliang ~]$ oc get node
      NAME                          STATUS   ROLES                  AGE   VERSION
      ip-10-0-20-154.ec2.internal   Ready    control-plane,master   86m   v1.28.5+9605db4
      ip-10-0-45-93.ec2.internal    Ready    worker                 80m   v1.28.5+9605db4
      ip-10-0-49-245.ec2.internal   Ready    worker                 74m   v1.28.5+9605db4
      ip-10-0-57-37.ec2.internal    Ready    infra,worker           60m   v1.28.5+9605db4
      ip-10-0-60-0.ec2.internal     Ready    infra,worker           60m   v1.28.5+9605db4
      ip-10-0-62-121.ec2.internal   Ready    control-plane,master   86m   v1.28.5+9605db4
      ip-10-0-62-56.ec2.internal    Ready    control-plane,master   86m   v1.28.5+9605db4
      [weliang@weliang ~]$ for f in $(oc get nodes -o jsonpath='{.items[*].metadata.name}') ; do oc debug node/"${f}" --  chroot /host cat /etc/kubernetes/kubelet.conf | grep NetworkLiveMigration ; done
      Starting pod/ip-10-0-20-154ec2internal-debug-9wvd8 ...
      To use host binaries, run `chroot /host`Removing debug pod ...
          "NetworkLiveMigration": true,
      Starting pod/ip-10-0-45-93ec2internal-debug-rwvls ...
      To use host binaries, run `chroot /host`
          "NetworkLiveMigration": true,Removing debug pod ...
      Starting pod/ip-10-0-49-245ec2internal-debug-rp9dt ...
      To use host binaries, run `chroot /host`Removing debug pod ...
          "NetworkLiveMigration": true,
      Starting pod/ip-10-0-57-37ec2internal-debug-q5thk ...
      To use host binaries, run `chroot /host`Removing debug pod ...
          "NetworkLiveMigration": true,
      Starting pod/ip-10-0-60-0ec2internal-debug-zp78h ...
      To use host binaries, run `chroot /host`Removing debug pod ...
          "NetworkLiveMigration": true,
      Starting pod/ip-10-0-62-121ec2internal-debug-42k2g ...
      To use host binaries, run `chroot /host`Removing debug pod ...
          "NetworkLiveMigration": true,
      Starting pod/ip-10-0-62-56ec2internal-debug-s99ls ...
      To use host binaries, run `chroot /host`Removing debug pod ...
          "NetworkLiveMigration": true,
      [weliang@weliang ~]$ oc patch Network.config.openshift.io cluster --type='merge' --patch '{"metadata":{"annotations":{"network.openshift.io/live-migration":""}},"spec":{"networkType":"OVNKubernetes"}}'
      network.config.openshift.io/cluster patched
      [weliang@weliang ~]$ 
      [weliang@weliang ~]$ oc get co network
      NAME      VERSION                              AVAILABLE   PROGRESSING   DEGRADED   SINCE   MESSAGE
      network   4.15.0-0.nightly-2024-01-06-062415   True        False         True       4h1m    Internal error while updating operator configuration: could not apply (/, Kind=) /cluster, err: failed to apply / update (operator.openshift.io/v1, Kind=Network) /cluster: Operation cannot be fulfilled on networks.operator.openshift.io "cluster": the object has been modified; please apply your changes to the latest version and try again
      [weliang@weliang ~]$ oc get node
      NAME                          STATUS   ROLES                  AGE     VERSION
      ip-10-0-2-52.ec2.internal     Ready    worker                 3h54m   v1.28.5+9605db4
      ip-10-0-26-16.ec2.internal    Ready    control-plane,master   4h2m    v1.28.5+9605db4
      ip-10-0-32-116.ec2.internal   Ready    worker                 3h54m   v1.28.5+9605db4
      ip-10-0-32-67.ec2.internal    Ready    infra,worker           3h38m   v1.28.5+9605db4
      ip-10-0-35-11.ec2.internal    Ready    infra,worker           3h39m   v1.28.5+9605db4
      ip-10-0-39-125.ec2.internal   Ready    control-plane,master   4h2m    v1.28.5+9605db4
      ip-10-0-6-117.ec2.internal    Ready    control-plane,master   4h2m    v1.28.5+9605db4
      [weliang@weliang ~]$ oc get Network.operator.openshift.io/cluster -o json
      {
          "apiVersion": "operator.openshift.io/v1",
          "kind": "Network",
          "metadata": {
              "creationTimestamp": "2024-01-08T13:28:07Z",
              "generation": 417,
              "name": "cluster",
              "resourceVersion": "236888",
              "uid": "37fb36f0-c13c-476d-aea1-6ebc1c87abe8"
          },
          "spec": {
              "clusterNetwork": [
                  {
                      "cidr": "10.128.0.0/14",
                      "hostPrefix": 23
                  }
              ],
              "defaultNetwork": {
                  "openshiftSDNConfig": {
                      "enableUnidling": true,
                      "mode": "NetworkPolicy",
                      "mtu": 8951,
                      "vxlanPort": 4789
                  },
                  "ovnKubernetesConfig": {
                      "egressIPConfig": {},
                      "gatewayConfig": {
                          "ipv4": {},
                          "ipv6": {},
                          "routingViaHost": false
                      },
                      "genevePort": 6081,
                      "mtu": 8901,
                      "policyAuditConfig": {
                          "destination": "null",
                          "maxFileSize": 50,
                          "maxLogFiles": 5,
                          "rateLimit": 20,
                          "syslogFacility": "local0"
                      }
                  },
                  "type": "OVNKubernetes"
              },
              "deployKubeProxy": false,
              "disableMultiNetwork": false,
              "disableNetworkDiagnostics": false,
              "kubeProxyConfig": {
                  "bindAddress": "0.0.0.0"
              },
              "logLevel": "Normal",
              "managementState": "Managed",
              "migration": {
                  "mode": "Live",
                  "networkType": "OVNKubernetes"
              },
              "observedConfig": null,
              "operatorLogLevel": "Normal",
              "serviceNetwork": [
                  "172.30.0.0/16"
              ],
              "unsupportedConfigOverrides": null,
              "useMultiNetworkPolicy": false
          },
          "status": {
              "conditions": [
                  {
                      "lastTransitionTime": "2024-01-08T13:28:07Z",
                      "status": "False",
                      "type": "ManagementStateDegraded"
                  },
                  {
                      "lastTransitionTime": "2024-01-08T17:29:52Z",
                      "status": "False",
                      "type": "Degraded"
                  },
                  {
                      "lastTransitionTime": "2024-01-08T13:28:07Z",
                      "status": "True",
                      "type": "Upgradeable"
                  },
                  {
                      "lastTransitionTime": "2024-01-08T17:26:38Z",
                      "status": "False",
                      "type": "Progressing"
                  },
                  {
                      "lastTransitionTime": "2024-01-08T13:28:20Z",
                      "status": "True",
                      "type": "Available"
                  }
              ],
              "readyReplicas": 0,
              "version": "4.15.0-0.nightly-2024-01-06-062415"
          }
      }
      [weliang@weliang ~]$ 
      

      Expected results:

      OVN live migration pass

      Additional info:

      must-gather: https://people.redhat.com/~weliang/must-gather1.tar.gz

            pliurh Peng Liu
            weliang1@redhat.com Weibin Liang
            Weibin Liang Weibin Liang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: