Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-75600

Cannot modify a VM to use bridge binding in the default pod network

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • CNV v4.20.3
    • CNV Network
    • Quality / Stability / Reliability
    • 0.42
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • Low
    • None

      Description of problem:

      If I modify an exisiting VM to use bridge binding in the default pod network, network connectivity for the VM is broken.
      
      This is because the macAddress of the interface is always persisted, however when using the bridge binding the MAC address has to be assigned by OVN-K.
      
      This works when the VM is created from scratch with bridge binding and no macAddress.

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

      OpenShift 4.20.8
      kubevirt-hyperconverged-operator.v4.20.3

      How reproducible:

      Always

      Steps to Reproduce:

      1. Create VM using the default pod network and masquerade binding.
      2. Try to edit the VM to use bridge binding and remove the macAddress:
      
      oc patch vm my-vm --type=json  -p='[{"op":"remove","path":"/spec/template/spec/domain/devices/interfaces/0"},{"op":"remove","path":"/spec/template/spec/networks/0"}]'
      
      oc patch vm my-vm --type=json  -p='[{"op":"add","path":"/spec/template/spec/domain/devices/interfaces","value":[{"bridge":{},"name":"default"}]},{"op":"add","path":"/spec/template/spec/networks","value":[{"name":"default","pod":{}}]}]'

      Actual results:

      - A macAddress is always assigned.
      - The VM doesn't have network connectivity.
      
      ~~~
                interfaces:
                  - bridge: {}
                    macAddress: '02:3f:76:22:c1:01'
                    name: default
      
            networks:
              - name: default
                pod: {}
      ~~~
      
      

      Expected results:

      - No macAddress in the VM yaml
      - VM has network connectivity

      Additional info:

       

              phoracek@redhat.com Petr Horacek
              rhn-support-jortialc Juan Orti
              Yoss Segev Yoss Segev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: