Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-9518

CNI_NETNS should not be set for orphan containers that do not have network namespace.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.2, 1.5.1, 1.6.1, 1.7.0
    • Fix Version/s: 1.4.3, 1.5.3, 1.6.2, 1.7.1, 1.8.0
    • Component/s: cni
    • Labels:
      None

      Description

      We introduced a new agent flag in MESOS-9492 so that CNI configs can be persisted across reboot. This is for some CNI plugins to be able to cleanup IP allocated to the containers after a sudden reboot of the host (not all CNI plugins need this).

      It's important to unset `CNI_NETNS` environment variable after reboot when invoking CNI plugin "DEL" command so that it conforms to the spec:

      When CNI_NETNS and/or prevResult are not provided, the plugin should clean up as many resources as possible (e.g. releasing IPAM allocations) and return a successful response.
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jieyu Jie Yu
                Reporter:
                jieyu Jie Yu
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: