qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Re: qemu-img convert gets 403 from s3 presigned urls
       [not found] <20230713020302.c5sxc5ad4s5e3s3f@vanvanmojo.kallisti.us>
@ 2023-07-13  9:56 ` Philippe Mathieu-Daudé
  0 siblings, 0 replies; only message in thread
From: Philippe Mathieu-Daudé @ 2023-07-13  9:56 UTC (permalink / raw)
  To: Ross Vandegrift, qemu-block; +Cc: QEMU Developers, qemu-discuss

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!
> 



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-07-13  9:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20230713020302.c5sxc5ad4s5e3s3f@vanvanmojo.kallisti.us>
2023-07-13  9:56 ` qemu-img convert gets 403 from s3 presigned urls Philippe Mathieu-Daudé

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).