Public bug reported: Dear All,
I am having issue uploading Cirros image in qcow2 format, from browser and CLI. I was setting up with Openstack Ansible Queens 17.1.0 to meet this error, and reinstalled into Queens 17.0.7 to find out it's not due to version. The error I found is from /var/log/horizon/horizon-error.log infra1-horizon-container-c37c0198, error shown as below. [Mon Sep 24 09:02:29.536694 2018] [wsgi:error] [pid 226:tid 140266283452160] Unhandled exception in thread started by <function upload at 0x7f924a05cf50> [Mon Sep 24 09:02:29.536767 2018] [wsgi:error] [pid 226:tid 140266283452160] Traceback (most recent call last): [Mon Sep 24 09:02:29.536782 2018] [wsgi:error] [pid 226:tid 140266283452160] File "/openstack/venvs/horizon-17.0.7/lib/python2.7/site-packages/openstack_dashboard/api/glance.py", line 544, in upload [Mon Sep 24 09:02:29.537058 2018] [wsgi:error] [pid 226:tid 140266283452160] return glanceclient(request).images.upload(image.id, data) [Mon Sep 24 09:02:29.537081 2018] [wsgi:error] [pid 226:tid 140266283452160] File "/openstack/venvs/horizon-17.0.7/lib/python2.7/site-packages/glanceclient/common/utils.py", line 545, in inner [Mon Sep 24 09:02:29.537288 2018] [wsgi:error] [pid 226:tid 140266283452160] return RequestIdProxy(wrapped(*args, **kwargs)) [Mon Sep 24 09:02:29.537303 2018] [wsgi:error] [pid 226:tid 140266283452160] File "/openstack/venvs/horizon-17.0.7/lib/python2.7/site-packages/glanceclient/v2/images.py", line 232, in upload [Mon Sep 24 09:02:29.537426 2018] [wsgi:error] [pid 226:tid 140266283452160] resp, body = self.http_client.put(url, headers=hdrs, data=body) [Mon Sep 24 09:02:29.537441 2018] [wsgi:error] [pid 226:tid 140266283452160] File "/openstack/venvs/horizon-17.0.7/lib/python2.7/site-packages/glanceclient/common/http.py", line 294, in put [Mon Sep 24 09:02:29.537578 2018] [wsgi:error] [pid 226:tid 140266283452160] return self._request('PUT', url, **kwargs) [Mon Sep 24 09:02:29.537594 2018] [wsgi:error] [pid 226:tid 140266283452160] File "/openstack/venvs/horizon-17.0.7/lib/python2.7/site-packages/glanceclient/common/http.py", line 255, in _request [Mon Sep 24 09:02:29.537712 2018] [wsgi:error] [pid 226:tid 140266283452160] raise exc.CommunicationError(message=message) [Mon Sep 24 09:02:29.537753 2018] [wsgi:error] [pid 226:tid 140266283452160] glanceclient.exc.CommunicationError: Error finding address for http://172.29.236.11:9292/v2/images/7a5baee7-2521-476d-9250-df61f1b88af0/file: [Errno 32] Broken pipe Aside from seeing ERROR in horizon container, I also saw a WARNING in glance container. It appeared when I was trying to upload image, therefore I assume some importance. The warning is from /var/log/glance/glance-api.log infra1-glance- container-c3519594, warning shown as below. 2018-09-24 17:01:39.461 239 WARNING glance_store._drivers.rbd [req- fadb4832-08e7-41da-b72b-54a7af1b8ead 585d6462f85f4588805c646d1f2395f5 710b4b32aa9541728fcc820142cb44dd - default default] since image size is zero we will be doing resize-before-write for each chunk which will be considerably slower than normal ** Affects: glance Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1794044 Title: Openstack Queens Ansible unable upload image Status in Glance: New Bug description: Dear All, I am having issue uploading Cirros image in qcow2 format, from browser and CLI. I was setting up with Openstack Ansible Queens 17.1.0 to meet this error, and reinstalled into Queens 17.0.7 to find out it's not due to version. The error I found is from /var/log/horizon/horizon-error.log infra1-horizon-container-c37c0198, error shown as below. [Mon Sep 24 09:02:29.536694 2018] [wsgi:error] [pid 226:tid 140266283452160] Unhandled exception in thread started by <function upload at 0x7f924a05cf50> [Mon Sep 24 09:02:29.536767 2018] [wsgi:error] [pid 226:tid 140266283452160] Traceback (most recent call last): [Mon Sep 24 09:02:29.536782 2018] [wsgi:error] [pid 226:tid 140266283452160] File "/openstack/venvs/horizon-17.0.7/lib/python2.7/site-packages/openstack_dashboard/api/glance.py", line 544, in upload [Mon Sep 24 09:02:29.537058 2018] [wsgi:error] [pid 226:tid 140266283452160] return glanceclient(request).images.upload(image.id, data) [Mon Sep 24 09:02:29.537081 2018] [wsgi:error] [pid 226:tid 140266283452160] File "/openstack/venvs/horizon-17.0.7/lib/python2.7/site-packages/glanceclient/common/utils.py", line 545, in inner [Mon Sep 24 09:02:29.537288 2018] [wsgi:error] [pid 226:tid 140266283452160] return RequestIdProxy(wrapped(*args, **kwargs)) [Mon Sep 24 09:02:29.537303 2018] [wsgi:error] [pid 226:tid 140266283452160] File "/openstack/venvs/horizon-17.0.7/lib/python2.7/site-packages/glanceclient/v2/images.py", line 232, in upload [Mon Sep 24 09:02:29.537426 2018] [wsgi:error] [pid 226:tid 140266283452160] resp, body = self.http_client.put(url, headers=hdrs, data=body) [Mon Sep 24 09:02:29.537441 2018] [wsgi:error] [pid 226:tid 140266283452160] File "/openstack/venvs/horizon-17.0.7/lib/python2.7/site-packages/glanceclient/common/http.py", line 294, in put [Mon Sep 24 09:02:29.537578 2018] [wsgi:error] [pid 226:tid 140266283452160] return self._request('PUT', url, **kwargs) [Mon Sep 24 09:02:29.537594 2018] [wsgi:error] [pid 226:tid 140266283452160] File "/openstack/venvs/horizon-17.0.7/lib/python2.7/site-packages/glanceclient/common/http.py", line 255, in _request [Mon Sep 24 09:02:29.537712 2018] [wsgi:error] [pid 226:tid 140266283452160] raise exc.CommunicationError(message=message) [Mon Sep 24 09:02:29.537753 2018] [wsgi:error] [pid 226:tid 140266283452160] glanceclient.exc.CommunicationError: Error finding address for http://172.29.236.11:9292/v2/images/7a5baee7-2521-476d-9250-df61f1b88af0/file: [Errno 32] Broken pipe Aside from seeing ERROR in horizon container, I also saw a WARNING in glance container. It appeared when I was trying to upload image, therefore I assume some importance. The warning is from /var/log/glance/glance-api.log infra1-glance- container-c3519594, warning shown as below. 2018-09-24 17:01:39.461 239 WARNING glance_store._drivers.rbd [req- fadb4832-08e7-41da-b72b-54a7af1b8ead 585d6462f85f4588805c646d1f2395f5 710b4b32aa9541728fcc820142cb44dd - default default] since image size is zero we will be doing resize-before-write for each chunk which will be considerably slower than normal To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1794044/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp