[PKG-Openstack-devel] Bug#899975: Can't upload image over dashboard

Kolobaev Pavel kolobaev.p at vingrid.ru
Thu May 24 09:53:09 BST 2018


Package: openstack-dashboard
Version: 3:13.0.0-3

Can't upload image over dashboard

Reproduction:
In dahsboard
     Admin -> Compute -> Images -> Create Image
Image name: cirros
Source type: cirros-0.4.0-x86_64-disk.img
Format: qcow2

Log:
10.233.120.64 - - [24/May/2018:11:10:41 +0300] "POST 
/horizon/api/policy/ HTTP/1.1" 200 293 
"http://10.211.5.250/horizon/admin/images" "Mozilla/5.0 (X11; Linux 
x86_64; rv:59.0) Gecko/20100101 
Firefox/59.0"                                  10.233.120.64 - - 
[24/May/2018:11:10:41 +0300] "GET 
/horizon/api/glance/images/?paginate=false HTTP/1.1" 200 3857 
"http://10.211.5.250/horizon/admin/images" "Mozilla/5.0 (X11; Linux 
x86_64; rv:59.0) Gecko/20100101 Firefox/59.0"
[Thu May 24 11:11:29.303047 2018] [wsgi:error] [pid 12:tid 
140211979110144] Failed to remove temporary image file 
/var/tmp/tmpxz8z2q9j.upload ([Errno 2] No such file or directory: 
'/var/tmp/tmpxz8z2q9j.upload')                             [Thu May 24 
11:11:29.303127 2018] [wsgi:error] [pid 12:tid 140211979110144] 
Unhandled exception in thread started by <function 
image_create.<locals>.upload at 0x7f861c06f158>
[Thu May 24 11:11:29.303145 2018] [wsgi:error] [pid 12:tid 
140211979110144] Traceback (most recent call last):
[Thu May 24 11:11:29.303157 2018] [wsgi:error] [pid 12:tid 
140211979110144]   File 
"/usr/share/openstack-dashboard/openstack_dashboard/api/glance.py", line 
465, in upload
[Thu May 24 11:11:29.303706 2018] [wsgi:error] [pid 12:tid 
140211979110144]     return 
glanceclient(request).images.upload(image.id, data)
[Thu May 24 11:11:29.303725 2018] [wsgi:error] [pid 12:tid 
140211979110144]   File 
"/usr/lib/python3/dist-packages/glanceclient/common/utils.py", line 545, 
in inner
[Thu May 24 11:11:29.304187 2018] [wsgi:error] [pid 12:tid 
140211979110144]     return RequestIdProxy(wrapped(*args, **kwargs))
[Thu May 24 11:11:29.304204 2018] [wsgi:error] [pid 12:tid 
140211979110144]   File 
"/usr/lib/python3/dist-packages/glanceclient/v2/images.py", line 232, in 
upload
[Thu May 24 11:11:29.304472 2018] [wsgi:error] [pid 12:tid 
140211979110144]     resp, body = self.http_client.put(url, 
headers=hdrs, data=body)
[Thu May 24 11:11:29.304488 2018] [wsgi:error] [pid 12:tid 
140211979110144]   File 
"/usr/lib/python3/dist-packages/glanceclient/common/http.py", line 292, 
in put
[Thu May 24 11:11:29.304758 2018] [wsgi:error] [pid 12:tid 
140211979110144]     return self._request('PUT', url, **kwargs)
[Thu May 24 11:11:29.304772 2018] [wsgi:error] [pid 12:tid 
140211979110144]   File 
"/usr/lib/python3/dist-packages/glanceclient/common/http.py", line 245, 
in _request
[Thu May 24 11:11:29.305055 2018] [wsgi:error] [pid 12:tid 
140211979110144] **kwargs)
[Thu May 24 11:11:29.305070 2018] [wsgi:error] [pid 12:tid 
140211979110144]   File 
"/usr/lib/python3/dist-packages/requests/sessions.py", line 508, in request
10.233.120.64 - - [24/May/2018:11:11:09 +0300] "POST 
/horizon/api/glance/images/ HTTP/1.1" 201 753 
"http://10.211.5.250/horizon/admin/images" "Mozilla/5.0 (X11; Linux 
x86_64; rv:59.0) Gecko/20100101 Firefox/59.0"
[Thu May 24 11:11:29.377728 2018] [wsgi:error] [pid 12:tid 
140211979110144]     resp = self.send(prep, **send_kwargs)
[Thu May 24 11:11:29.377759 2018] [wsgi:error] [pid 12:tid 
140211979110144]   File 
"/usr/lib/python3/dist-packages/requests/sessions.py", line 618, in send
[Thu May 24 11:11:29.379271 2018] [wsgi:error] [pid 12:tid 
140211979110144]     r = adapter.send(request, **kwargs)
[Thu May 24 11:11:29.379290 2018] [wsgi:error] [pid 12:tid 
140211979110144]   File 
"/usr/lib/python3/dist-packages/requests/adapters.py", line 460, in send
[Thu May 24 11:11:29.379818 2018] [wsgi:error] [pid 12:tid 
140211979110144]     for i in request.body:
[Thu May 24 11:11:29.379837 2018] [wsgi:error] [pid 12:tid 
140211979110144]   File 
"/usr/lib/python3/dist-packages/glanceclient/common/http.py", line 66, 
in _chunk_body
[Thu May 24 11:11:29.380058 2018] [wsgi:error] [pid 12:tid 
140211979110144]     chunk = body.read(CHUNKSIZE) [Thu May 24 
11:11:29.380077 2018] [wsgi:error] [pid 12:tid 140211979110144]   File 
"/usr/lib/python3.6/tempfile.py", line 622, in func_wrapper
[Thu May 24 11:11:29.380526 2018] [wsgi:error] [pid 12:tid 
140211979110144]     return func(*args, **kwargs) [Thu May 24 
11:11:29.380553 2018] [wsgi:error] [pid 12:tid 140211979110144] 
ValueError: read of closed file


Load from console (like openstack image create "cirros"....) is worked
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/openstack-devel/attachments/20180524/61f5c093/attachment.html>


More information about the Openstack-devel mailing list