← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1549678] [NEW] chunked image upload fails when using glance-api behind wsgi server

 

Public bug reported:

The use of chunked uploading (of images) does not work under
apache/uwsgi.

The following are the errors I can see:

# openstack image create cirros < cirros-0.3.4-x86_64-disk.img
'ascii' codec can't decode byte 0xfb in position 3: ordinal not in range(128)

in logs:

...
 Wrote 0 bytes to /var/lib/glance/images/0a98b4c4-9397-45c5-a870-b1959a9fbfd4 with checksum d41d8cd98f00b204e9800998ecf8427e add /keystone/lib/python3.4/site-packages/glance_store/_drivers/filesystem.py:627


# openstack image create cirros --file cirros-0.3.4-x86_64-disk.img
Error finding address for http://localhost:9091/v2/images/f3552eff-e543-4cb8-8b85-ca88f768a9ff/file: [Errno 104] Connection reset by peer

in logs: the same

** Affects: glance
     Importance: Undecided
         Status: New


** Tags: apache glance-api wsgi

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1549678

Title:
  chunked image upload fails when using glance-api behind wsgi server

Status in Glance:
  New

Bug description:
  The use of chunked uploading (of images) does not work under
  apache/uwsgi.

  The following are the errors I can see:

  # openstack image create cirros < cirros-0.3.4-x86_64-disk.img
  'ascii' codec can't decode byte 0xfb in position 3: ordinal not in range(128)

  in logs:

  ...
   Wrote 0 bytes to /var/lib/glance/images/0a98b4c4-9397-45c5-a870-b1959a9fbfd4 with checksum d41d8cd98f00b204e9800998ecf8427e add /keystone/lib/python3.4/site-packages/glance_store/_drivers/filesystem.py:627

  
  # openstack image create cirros --file cirros-0.3.4-x86_64-disk.img
  Error finding address for http://localhost:9091/v2/images/f3552eff-e543-4cb8-8b85-ca88f768a9ff/file: [Errno 104] Connection reset by peer

  in logs: the same

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1549678/+subscriptions