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

PATCH call not proxied correctly to active node

    Details

    • Sprint:
      Marathon 2018-28
    • Story Points:
      2
    • Build artifact:
      Marathon-v1.7.174

      Description

      Hello,

       

      When doing PATCH call against inactive HA node I receive a 500 error:

      curl -H "Content-Type: application/json" -u root:password -X PATCH -d @/tmp/json http://inactive.domain.com:8080/v2/apps/maxics/tttzzzooo/new-instance
      <html>
      <head>
      <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
      <title>Error 500 </title>
      </head>
      <body>
      <h2>HTTP ERROR: 500</h2>
      <p>Problem accessing /v2/apps/maxics/tttzzzooo/new-instance. Reason:
      <pre> Server Error</pre></p>
      <hr /><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.3.z-SNAPSHOT</a><hr/>
      </body>
      </html>

      Doing the same call on the currently active node works:

      curl -H "Content-Type: application/json" -u root:password -X PATCH -d @/tmp/json http://active.domain.com:8080/v2/apps/maxics/tttzzzooo/new-instance
      {"version":"2018-02-20T13:04:19.065Z","deploymentId":"44bc4000-5849-4ea7-a5a3-4e2c2eda610f"}

      We never had any issue with other type of calls which are proxied successfully to the active node.

      Actually using PUT instead of PATCH in the curl example works falwlessly but according to official documentation there's some difference between the two methods.

       

      Best regards, Adam.

        Attachments

          Activity

            People

            • Assignee:
              nikitamelkozerov Nikita Melkozerov (Inactive)
              Reporter:
              eLvErDe Adam Cécile
              Team:
              Orchestration Team
              Watchers:
              Adam Cécile, DeciderWill, Freddy-B, Mergebot, Tim Harper
            • Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: