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

Cannot edit deployments - getting duplicate versions of applications

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Cannot Reproduce
    • Affects Version/s: Marathon 1.5.5, Marathon 1.5.6
    • Fix Version/s: None
    • Component/s: Deployments
    • Labels:

      Description

      hi. i'm seeing some strange behavior when using marathon 1.5.5 and 1.5.6. seems i’m unable to edit any deployments once they’ve been started. i get an error "Error fetching version 2018-02-28T17:55:12.189Z for /testapp". when i looked at the log i see a 404 coming back from the versions endpoint

      "GET //myserver:8080/v2/apps//testapp/versions/2018-02-28T17:55:12.189Z HTTP/1.1" 404 

      upon looking further, it seems like as soon as i deploy the application, i can see the version in the API - for example:

      # curl -s http://myserver:8080/v2/apps//testapp/versions | jq
      {
       "versions": [
       "2018-02-28T18:04:09.951Z"
       ]
      }

      however, as soon as i click on the application "configuration" screen in the marathon UI, it creates another version of the app with the same date/time. for example:

      # curl -s http://myserver:8080/v2/apps//testapp/versions | jq
      {
       "versions": [
       "2018-02-28T18:04:09.951Z",
       "2018-02-28T18:04:09.951Z"
       ]
      }

      i can also see in the UI it says "Current Version - 2/28/2018, 11:04:09 AM" and "Older Versions: 2/28/2018, 11:04:09 AM".

      i also see the duplicated version if i try to hit the version of the application with curl. for example:

      # curl -s http://myserver:8080/v2/apps//testapp/versions | jq
      {
       "versions": [
       "2018-02-28T18:29:37.609Z"
       ]
      }
      # curl -s http://myserver:8080/v2/apps//testapp/versions/2018-02-28T18:29:37.609Z | jq
      {
       "message": "App '/testapp' does not exist in version 2018-02-28T18:29:37.609Z"
      }
      # curl -s http://myserver:8080/v2/apps//testapp/versions | jq
      {
       "versions": [
       "2018-02-28T18:29:37.609Z",
       "2018-02-28T18:29:37.609Z"
       ]
      }

       

      i'm not sure if this is the cause of the issue, but it seems strange.  any ideas why i'm unable to edit app configurations?

       

        Attachments

          Activity

            People

            • Assignee:
              adukhovniy Aleksey Dukhovniy
              Reporter:
              cookandy cookandy
              Team:
              Orchestration Team
              Watchers:
              Aleksey Dukhovniy, Alena Varkockova, cookandy
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: