Uploaded image for project: 'Marathon'
  1. Marathon
  2. MARATHON-7050

Task stores no ipAddess in NetworkInfo if using persistent volume

    Details

      Description

      When configuring an app with persistent volumes, marathon does not store the NetworkInfo for the running task. Additional negative effect: marathon health checks are not working.

      In the shown examples below, the resident task will never get healthy because an

      UnsupportedOperationException: Health check failed: unable to get the task's effective IP address

      is thrown.

      Configuration with persistent volume:

      {
        "id": "/overlay/resident",
        "instances": 1,
        "cpus": 0.1,
        "mem": 128,
        "disk": 100,
        "gpus": 0,
        "container": {
          "type": "DOCKER",
          "volumes": [
            {
              "containerPath": "data",
              "mode": "RW",
              "persistent": {
                "size": 100,
                "type": "root"
              }
            }
          ],
          "docker": {
            "image": "nginx",
            "network": "USER",
            "privileged": false,
            "forcePullImage": false
          }
        },
        "ipAddress": {
          "networkName": "dcos"
        },
        "residency": {
          "relaunchEscalationTimeoutSeconds": 3600,
          "taskLostBehavior": "WAIT_FOREVER"
        },
        "healthChecks": [
          {
            "gracePeriodSeconds": 240,
            "intervalSeconds": 10,
            "timeoutSeconds": 10,
            "maxConsecutiveFailures": 10,
            "port": 80,
            "path": "/",
            "protocol": "HTTP",
            "ignoreHttp1xx": false
          }
        ]
      }
      

      Configuration without persistent volume:

      {
        "id": "/overlay/ephemeral",
        "instances": 1,
        "cpus": 0.1,
        "mem": 128,
        "disk": 100,
        "gpus": 0,
        "container": {
          "type": "DOCKER",
          "docker": {
            "image": "nginx",
            "network": "USER",
            "privileged": false,
            "forcePullImage": false
          }
        },
        "ipAddress": {
          "networkName": "dcos"
        },
        "healthChecks": [
          {
            "gracePeriodSeconds": 240,
            "intervalSeconds": 10,
            "timeoutSeconds": 10,
            "maxConsecutiveFailures": 10,
            "port": 80,
            "path": "/",
            "protocol": "HTTP",
            "ignoreHttp1xx": false
          }
        ]
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tharper Tim Harper
                Reporter:
                junterstein Johannes Unterstein
                Team:
                Orchestration Team
                Watchers:
                Albert Strasheim (Inactive), Joel Hamill (Inactive), Johannes Unterstein
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: