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

HTTP 422 when creating a group with a sub-group

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: DC/OS 1.12.0
    • Component/s: None
    • Story Points:
      1
    • Build artifact:
      Marathon-v1.7.174

      Description

      When adding the following marathon group definition :

       

      {
        "groups": [
          {
            "apps": [
              {
                "id": "goodnight",
                "cmd": "sleep 1",
                "instances": 0
              }
            ],
            "id": "sleep"
          }
        ],
        "id": "/test-group"
      }
      

      The following error is returned :

      STDERR: Error while fetching [https://52.24.228.67/service/marathon/v2/groups]: HTTP 422: "{"message":"Object is not valid","details":[{"path":"/groups(0)/apps(0)/id","errors":["Identifier is not child of /test-group/sleep. Hint: use relative paths."]}]}".

      This was caught in last night's CLI integration tests : 

      https://jenkins.mesosphere.com/service/jenkins/job/public-dcos-cluster-ops/job/mesosphere-dcos-cli/job/core/job/integration-tests-linux/148/console

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tharper Tim Harper
                Reporter:
                bilalamarni Bilal Amarni
                Team:
                Orchestration Team
                Watchers:
                Bilal Amarni, Tim Harper
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: