Uploaded image for project: 'DC/OS'
  1. DC/OS
  2. DCOS_OSS-4395

dcos-net ignores some tcp/udp discovery ports for tasks on host network

    Details

    • Sprint:
      Networking: RI-7 Sprint 33, Networking: RI-7 Sprint 32
    • Story Points:
      3

      Description

      dcos-net forgets one of the discovery ports If task is on host network and has udp and tcp discovery ports with same port number. In that case dcos-net merges udp and tcp to one port. It affects only tasks on host network.

      Workaround:

      1. use only tcp port or only udp port
      2. switch to bridge or overlay network

      Example:

      {
        "id": "/app",
        "instances": 1,
        "portDefinitions": [
          {
            "name": "http",
            "protocol": "udp,tcp",
            "port": 0
          }
        ],
        "container": {
          "type": "DOCKER",
          "volumes": [],
          "docker": {
            "image": "python:3-alpine"
          }
        },
        "cpus": 0.1,
        "mem": 128,
        "requirePorts": false,
        "networks": [],
        "healthChecks": [],
        "fetch": [],
        "constraints": [],
        "cmd": "python3 -m http.server $PORT0"
      }
      

      Expected:

          #{
                  name => <<"app">>,
                  framework => <<"marathon">>,
                  agent_ip => IP,
                  task_ip => [IP],
                  ports => [
                      #{name => <<"http">>, protocol => tcp,
                        port => Port},
                      #{name => <<"http">>, protocol => udp,
                        port => Port}
                  ],
                  state => {running, true}
              }
      

      Actual:

          #{
                  name => <<"app">>,
                  framework => <<"marathon">>,
                  agent_ip => IP,
                  task_ip => [IP],
                  ports => [
                      #{name => <<"http">>, protocol => udp,
                        port => Port}
                  ],
                  state => {running, true}
              }
      

        Attachments

          Activity

            People

            • Assignee:
              sergeyurbanovich Sergey Urbanovich
              Reporter:
              sergeyurbanovich Sergey Urbanovich
              Team:
              Networking Team
              Watchers:
              Deepak Goel, Edgar Lanting, Lisa Gunn (Inactive), Mergebot, Sergey Urbanovich
            • Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: