← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1451429] Re: Kilo: I/O error uploading image

 

** Changed in: horizon/kilo
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1451429

Title:
  Kilo: I/O error uploading image

Status in OpenStack Dashboard (Horizon):
  Fix Released
Status in OpenStack Dashboard (Horizon) kilo series:
  Fix Released

Bug description:
  Using a Ceph backend. Same configuration works just fine on Juno.

  Glance image creation from file using the API works. Horizon image
  creation from URL works too, but using file upload does not.

  Apache error.log:

  Unhandled exception in thread started by <function image_update at 0x7fc97aeed320>
  Traceback (most recent call last):
    File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/glance.py", line 112, in image_update
      exceptions.handle(request, ignore=True)
    File "/usr/lib/python2.7/dist-packages/horizon/exceptions.py", line 364, in handle
      six.reraise(exc_type, exc_value, exc_traceback)
    File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/glance.py", line 110, in image_update
      image = glanceclient(request).images.update(image_id, **kwargs)
    File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 329, in update
      resp, body = self.client.put(url, headers=hdrs, data=image_data)
    File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 265, in put
      return self._request('PUT', url, **kwargs)
    File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 206, in _request
      **kwargs)
    File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 455, in request
      resp = self.send(prep, **send_kwargs)
    File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 558, in send
      r = adapter.send(request, **kwargs)
    File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 350, in send
      for i in request.body:
    File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 170, in chunk_body
      chunk = body.read(CHUNKSIZE)
  ValueError: I/O operation on closed file

  
  Horizon log:

  [req-0e69bfd9-c6ab-4131-b445-aa57c1a455f7 87d1da7fba6f4f5a9d4e7f78da344e91 ba35660ba55b4a5283c691a4c6d99f23 - - -] Failed to upload image 90a30bfb-946c-489d-9a04-5f601af0f821
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/glance/api/v1/upload_utils.py", line 113, in upload_data_to_store
      context=req.context)
    File "/usr/lib/python2.7/dist-packages/glance_store/backend.py", line 339, in store_add_to_backend
      context=context)
    File "/usr/lib/python2.7/dist-packages/glance_store/capabilities.py", line 226, in op_checker
      return store_op_fun(store, *args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/glance_store/_drivers/rbd.py", line 384, in add
      self._delete_image(loc.image, loc.snapshot)
    File "/usr/lib/python2.7/dist-packages/glance_store/_drivers/rbd.py", line 290, in _delete_image
      with conn.open_ioctx(target_pool) as ioctx:
    File "/usr/lib/python2.7/dist-packages/rados.py", line 667, in open_ioctx
      raise make_ex(ret, "error opening pool '%s'" % ioctx_name)
  ObjectNotFound: error opening pool '90a30bfb-946c-489d-9a04-5f601af0f821'

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


References