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

Document omitEmpty on app JSON in Release Notes

    Details

      Description

      The json returned from `/v2/apps` has changed.   At a min it breaks our SI tests.

      We need to determine if this is an expected / desired change (and then fix our SI tests `test_default_user`) .  or if this change is unexpected resulting in a need to fix Marathon 1.5.

       

      APP DEF

       

      {
      "id": "unique-sleep",
      "cmd": "sleep 42000",
      "cpus": 0.5,
      "mem": 128,
      "disk": 0,
      "instances": 1
      }
      

       

       

      Results from Marathon 1.5.0-SNAPSHOT-557-gab275cc

       

      {"apps":[{"id":"/unique-sleep","backoffFactor":1.15,"backoffSeconds":1,"cmd":"sleep 42000","cpus":0.5,"disk":0,"executor":"","instances":1,"labels":{},"maxLaunchDelaySeconds":3600,"mem":128,"gpus":0,"networks":[{"mode":"host"}],"portDefinitions":[{"port":10000,"name":"default","protocol":"tcp"}],"requirePorts":false,"upgradeStrategy":{"maximumOverCapacity":1,"minimumHealthCapacity":1},"version":"2017-06-14T18:53:48.99Z","versionInfo":{"lastScalingAt":"2017-06-14T18:53:48.99Z","lastConfigChangeAt":"2017-06-14T18:53:48.99Z"},"killSelection":"YOUNGEST_FIRST","unreachableStrategy":{"inactiveAfterSeconds":300,"expungeAfterSeconds":600},"tasksStaged":0,"tasksRunning":1,"tasksHealthy":0,"tasksUnhealthy":0,"deployments":[]}]}

       

       

      Results from Marathon 1.4.2

      {"apps":[{"id":"/unique-sleep","cmd":"sleep 42000","args":null,"user":null,"env":{},"instances":1,"cpus":0.5,"mem":128,"disk":0,"gpus":0,"executor":"","constraints":[],"uris":[],"fetch":[],"storeUrls":[],"backoffSeconds":1,"backoffFactor":1.15,"maxLaunchDelaySeconds":3600,"container":null,"healthChecks":[],"readinessChecks":[],"dependencies":[],"upgradeStrategy":{"minimumHealthCapacity":1,"maximumOverCapacity":1},"labels":{},"ipAddress":null,"version":"2017-06-14T19:06:07.416Z","residency":null,"secrets":{},"taskKillGracePeriodSeconds":null,"unreachableStrategy":{"inactiveAfterSeconds":300,"expungeAfterSeconds":600},"killSelection":"YOUNGEST_FIRST","ports":[10000],"portDefinitions":[{"port":10000,"protocol":"tcp","name":"default","labels":{}}],"requirePorts":false,"versionInfo":{"lastScalingAt":"2017-06-14T19:06:07.416Z","lastConfigChangeAt":"2017-06-14T19:06:07.416Z"},"tasksStaged":0,"tasksRunning":1,"tasksHealthy":0,"tasksUnhealthy":0,"deployments":[]}]}

      notice 1.4.2 has a "user" : null

       

      It appears that all null elements are missing which includes:  args, container, residency, taskKillGracePeriodSeconds, ipAddress

        Attachments

          Activity

            People

            • Assignee:
              nikitamelkozerov Nikita Melkozerov (Inactive)
              Reporter:
              ken Ken Sipe
              Team:
              Orchestration Team
              Watchers:
              Ken Sipe, Nikita Melkozerov (Inactive)
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: