<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Package: openstack-dashboard<br>
Version: 3:13.0.0-3<br>
<br>
Can't upload image over dashboard<br>
<br>
<span id="result_box" class="short_text" lang="en"><span class="">Reproduction:<br>
In dahsboard<br>
Admin -> Compute -> Images -> </span></span><span
id="result_box" class="short_text" lang="en"><span class=""><span
class="h4 modal-title ng-binding">Create Image<br>
Image name: cirros <br>
Source type: cirros-0.4.0-x86_64-disk.img<br>
Format: qcow2<br>
<br>
</span></span></span>Log:<br>
10.233.120.64 - - [24/May/2018:11:10:41 +0300] "POST
/horizon/api/policy/ HTTP/1.1" 200 293 <a
class="moz-txt-link-rfc2396E"
href="http://10.211.5.250/horizon/admin/images">"http://10.211.5.250/horizon/admin/images"</a>
"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 <a
class="moz-txt-link-rfc2396E"
href="http://10.211.5.250/horizon/admin/images">"http://10.211.5.250/horizon/admin/images"</a>
"Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101
Firefox/59.0"<br>
[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><br>
[Thu May 24 11:11:29.303145 2018] [wsgi:error] [pid 12:tid
140211979110144] Traceback (most recent call
last):
<br>
[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 <br>
[Thu May 24 11:11:29.303706 2018] [wsgi:error] [pid 12:tid
140211979110144] return
glanceclient(request).images.upload(image.id,
data)
<br>
[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
<br>
[Thu May 24 11:11:29.304187 2018] [wsgi:error] [pid 12:tid
140211979110144] return RequestIdProxy(wrapped(*args,
**kwargs))
<br>
[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 <br>
[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)
<br>
[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 <br>
[Thu May 24 11:11:29.304758 2018] [wsgi:error] [pid 12:tid
140211979110144] return self._request('PUT', url,
**kwargs)
<br>
[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
<br>
[Thu May 24 11:11:29.305055 2018] [wsgi:error] [pid 12:tid
140211979110144]
**kwargs)
<br>
[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 <br>
10.233.120.64 - - [24/May/2018:11:11:09 +0300] "POST
/horizon/api/glance/images/ HTTP/1.1" 201 753 <a
class="moz-txt-link-rfc2396E"
href="http://10.211.5.250/horizon/admin/images">"http://10.211.5.250/horizon/admin/images"</a>
"Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101
Firefox/59.0"<br>
[Thu May 24 11:11:29.377728 2018] [wsgi:error] [pid 12:tid
140211979110144] resp = self.send(prep,
**send_kwargs)
<br>
[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 <br>
[Thu May 24 11:11:29.379271 2018] [wsgi:error] [pid 12:tid
140211979110144] r = adapter.send(request,
**kwargs)
<br>
[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
<br>
[Thu May 24 11:11:29.379818 2018] [wsgi:error] [pid 12:tid
140211979110144] for i in
request.body:
<br>
[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 <br>
[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<br>
[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<br>
<br>
<br>
Load from console (like openstack image create "cirros"....) is
worked<br>
</body>
</html>