From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Ross Vandegrift <ross@kallisti.us>, qemu-block <qemu-block@nongnu.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>, qemu-discuss@nongnu.org
Subject: Re: qemu-img convert gets 403 from s3 presigned urls
Date: Thu, 13 Jul 2023 11:56:54 +0200 [thread overview]
Message-ID: <7b37cc65-1314-29f4-006f-70836bdfb4b4@linaro.org> (raw)
In-Reply-To: <20230713020302.c5sxc5ad4s5e3s3f@vanvanmojo.kallisti.us>
Cc'ing the qemu-block@ list.
On 13/7/23 04:03, Ross Vandegrift wrote:
> Hi folks,
>
> I'm trying to qemu-img convert a source that's hoted on s3, via a
> presigned url. When qemu-img hits it, s3 returns a 403. But curl works
> fine with the same url.
>
> I didn't see any debugging or verbose output options in the man page.
> Is there a way to get more info on the requests as they're made?
>
> Assuming that awscli is installed and setup with credentials, the issue
> looks like:
>
> $ disk_url=$(aws s3 presign s3://bucket/path/to/image.qcow2)
> $ qemu-img convert -f qcow2 -O raw "$disk_url" image.raw
> qemu-img: Could not open 'https://bucket.s3.us-east-2.amazonaws.com/path/to/image.qcow2?X-Amz-Algorithm=AWS4-HMAC-SHA256...[redacted]': CURL: Error opening file: The requested URL returned error: 403
> $ curl -o image.qcow2 "$disk_url"
> % Total % Received % Xferd Average Speed Time Time Time Current
> Dload Upload Total Spent Left Speed
> 4 3322M 4 160M 0 0 13.5M 0 0:04:04 0:00:11 0:03:53 15.2M
>
> Thanks for any pointers,
> Ross
>
> PS - please CC me, as I'm not subscribed. Thanks!
>
parent reply other threads:[~2023-07-13 9:57 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20230713020302.c5sxc5ad4s5e3s3f@vanvanmojo.kallisti.us>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7b37cc65-1314-29f4-006f-70836bdfb4b4@linaro.org \
--to=philmd@linaro.org \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-discuss@nongnu.org \
--cc=ross@kallisti.us \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).