Uploaded image for project: 'OpenShift Storage'
  1. OpenShift Storage
  2. STOR-2125

Error - MountVolume.MountDevice failed for volume in 4.17 when macvlans are used to separate networks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • 1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This issue occurs on the new OCP/ODF 4.17 cluster and only when dedicated macvlans are used for the networking.

       

      Unable to complete the deployment on nooba due to error:

      MountVolume.MountDevice failed for volume "pvc-0f311807-9607-424a-969f-c10c8ec4d91d" : rpc error: code = Aborted desc = an operation with the given Volume ID 0001-0011-openshift-storage-000000000000000a-af7d26bb-9e3b-4d49-99a4-254c5cb167ba already exists

       

      Also unable to download OCPv images due to the same looking error.

       

      The problem does not occur when default OVN networking is used for deployment.

       

      The yaml used to create vlan networks:

       

      cjanisze@fedora-vm ~/D/p/vpc> cat odf-networking.yaml
      apiVersion: nmstate.io/v1
      kind: NodeNetworkConfigurationPolicy
      metadata:
        name: vlans-odf-public
      spec:
        desiredState:
          interfaces:
          - description: odf-public vlan interface
            ipv4:
              enabled: false
              dhcp: false
            ipv6:
              enabled: false
            mtu: 9000
            name: odfpublic
            state: up
            type: vlan
            vlan:
              base-iface: bond1
              id: 2100
              reorder-headers: true
      —
      apiVersion: nmstate.io/v1
      kind: NodeNetworkConfigurationPolicy
      metadata:
        name: vlans-odf-cluster
      spec:
        desiredState:
          interfaces:
          - description: odf-cluster vlan interface
            ipv4:
              enabled: false
              dhcp: false
            ipv6:
              enabled: false
            mtu: 9000
            name: odfcluster
            state: up
            type: vlan
            vlan:
              base-iface: bond1
              id: 2101
              reorder-headers: true
      —
      apiVersion: k8s.cni.cncf.io/v1
      kind: NetworkAttachmentDefinition
      metadata:
        name: odf-public
        namespace: openshift-storage
      spec:
        config: |
          {
            "cniVersion": "0.3.1",
            "name": "odfpublic",
            "type": "macvlan",
            "master": "odfpublic",
            "mode": "bridge",
            "ipam":
      {         "type": "whereabouts",         "range": "172.21.64.0/24",         "range_start": "172.21.64.10",         "range_end": "172.21.64.240"       }
          }
      —
      apiVersion: k8s.cni.cncf.io/v1
      kind: NetworkAttachmentDefinition
      metadata:
        name: odf-cluster
        namespace: openshift-storage
      spec:
        config: |
          {
            "cniVersion": "0.3.1",
            "name": "odfcluster",
            "type": "macvlan",
            "master": "odfcluster",
            "mode": "bridge",
            "ipam":
      {         "type": "whereabouts",         "range": "172.21.65.0/24",         "range_start": "172.21.65.10",         "range_end": "172.21.65.240"       }
          }
      

       

       

      Must-gather:

      https://drive.google.com/drive/folders/1fnD1aNafhLtpr4hYWEngiPxpG_Gj4qdF?usp=sharing

       

              Unassigned Unassigned
              cjanisze@redhat.com Chris Janiszewski
              None
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: