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

2nd.NIC: pod does not release DHCP lease when node is rebooting

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      Version-Release number of selected component:  OpenShift 4.14.33, 4.15.46

      How reproducible:
      every time

      Steps to Reproduce:

      1. configure node with additional network interface+net-attach-def+nncp

      2. add pods to this node and use the additional network with an external DHCP

      3. reboot node

      Actual results:
      The leased IP of the pod is not released and DHCP pool is filling-up.

      Expected results:
      a process should send a DHCP release packet.

      Additional info:
      I'm currently updating my lab to see the results on newer version

      Please fill in the following template while reporting a bug and provide as much relevant information as possible. Doing so will give us the best chance to find a prompt resolution.

      Affected Platforms:

      Is it an customer issue on-premise

      If it is a customer / SD issue: 04096514


      apiVersion: k8s.cni.cncf.io/v1
      kind: NetworkAttachmentDefinition
      metadata:
        name: dev2
        namespace: coucou
      spec:
        config: '{"cniVersion": "0.3.1", "name": "dev2", "plugins": [ {"type": "macvlan", "master": "enp8s0", "ipam":

      {"type": "dhcp"}

      } ] }'


      apiVersion: nmstate.io/v1
      kind: NodeNetworkConfigurationPolicy
      metadata:
        name: dev2
      spec:
        desiredState:
          interfaces:
          - ipv4:
              dhcp: false
              enabled: false
            name: enp8s0
            state: up
            type: ethernet
        nodeSelector:
          br2: "true"

      apiVersion: v1
      kind: Pod
      metadata:
        annotations:
          k8s.v1.cni.cncf.io/networks: |-
            [
             

      {           "name": "dev2",           "namespace": "coucou"         }

            ]
        name: example
        labels:
          app: httpd
        namespace: coucou
      spec:
        nodeSelector:
           br2: 'true'
        securityContext:
          runAsNonRoot: true
          seccompProfile:
            type: RuntimeDefault
        containers:
          - name: httpd
            image: 'image-registry.openshift-image-registry.svc:5000/openshift/httpd:latest'
            ports:
              - containerPort: 8080
            securityContext:
              allowPrivilegeEscalation: false
              capabilities:
                drop:
                  - ALL

      The pod should attempt to release its IP address back to the DHCP server to free up the IP pool, or at least reuse the same MAC address upon restart to avoid exhausting the DHCP pool

              sdn-team-bot sdn-team bot
              rh-ee-scaps Sebastien Caps
              None
              None
              Anurag Saxena Anurag Saxena
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: