For `openstack` command instead of the direct glance command,  it switched the 
backend from the glanceclient to OpenStackSDK starting at Ussuri.
https://review.opendev.org/c/openstack/python-openstackclient/+/650374

Whenever `openstack image create --file` is used, it should report the
image size in the request properly and the glance-api server side should
switch to the multipart upload mode when the image is bigger than 100MB
(s3_store_large_object_size). That means the upload should be split into
100MB chunks so it shouldn't take exponential time but it should be
linear instead.

This is with a 2GB image.

$ time openstack image create \
    --file my-image.img \
    --disk-format raw --container-format bare \
    --progress \
    "my-image"

real    0m17.204s
user    0m3.859s
sys     0m2.388s

$ time glance image-create \
    --store s3 \
    --file my-image.img --name "my-image" \
    --disk-format raw --container-format bare \
    --progress

real    3m51.790s
user    0m1.962s
sys     0m1.393s

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1934849

Title:
  s3 backend takes time exponentially

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1934849/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to