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

Marathon backup endpoint with S3 uri not taking parameters

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Medium
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: API

      Description

      Hello,

      I can't seem to make the leader backup endpoint work with S3 URI while giving the region parameter:

      curl -s -XDELETE 'http://mesos.domain:8080/v2/leader?backup=s3://some-bucket/marathon/marathon_backup.tar&region=eu-west-1'
      {"message":"Leadership abdicated"}

      Marathon logs complains about the region being set to default (us-east-1 instead of eu-west-1):

      Sep 19 14:01:48 host docker[14130]: [2017-09-19 14:01:48,113] ERROR Fatal error while starting leadership of Some(MarathonSchedulerService [RUNNING]). Exiting now (mesosphere.marathon.core.election.impl.CuratorElectionService:pool-3-thread-1)
      Sep 19 14:01:48 host docker[14130]: java.lang.Exception: Can't initiate upload: <?xml version="1.0" encoding="UTF-8"?>
      Sep 19 14:01:48 host docker[14130]: <Error><Code>AuthorizationHeaderMalformed</Code><Message>The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'eu-west-1'</Message><Region>eu-west-1</Region><RequestId>D379259F1E8A4708</RequestId><HostId>yXaNVaNrhYjt0Ns8REhW0cfc/hcOXDmKybyE7MCgonQRzuxaYFMK30tEBQTj7qioS0NzSjivsZA=</HostId></Error>
      

      Using the official marathon v1.5.0 docker container (https://hub.docker.com/r/mesosphere/marathon/tags/).

      Any help would be greatly appreciated!

      Cheers,
      G.

        Attachments

          Activity

            People

            • Assignee:
              junterstein Johannes Unterstein
              Reporter:
              geez geez
              Team:
              Orchestration Team
              Watchers:
              geez, kaarolch, Mao Geng, Matthias Eichstedt, Tim Harper
            • Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: