← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1327154] Re: Can't create image with "default_store = vsphere"

 

*** This bug is a duplicate of bug 1402354 ***
    https://bugs.launchpad.net/bugs/1402354

** This bug is no longer a duplicate of bug 1240355
   Broken pipe error when copying image from glance to vSphere
** This bug has been marked a duplicate of bug 1402354
   Broken Pipe in vsphere store due to inactive session

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

Title:
  Can't create image with "default_store = vsphere"

Status in Glance:
  New

Bug description:
  -=======================================================================================================
  Can't create image with "default_store = vsphere"

  I have tried to create image using the vsphere as the default store in
  below 2 ways: both don't work.

  1) touch /tmp/m.vmdk
  glance image-create --name test_template  --is-public=True --container-format=bare --disk-format=vmdk --property vmware_disktype=thin --property template_name=<your template name in vCenter> < /tmp/m.vmdk

  This is failing with

  Request returned failure status.
  500 Internal Server Error
  GL-F9EE247 Failed to upload image ea14f049-1172-4167-bcb4-31e9bdcfc0bc
      (HTTP 500)

  Below is the error stack:
  2014-06-04 18:32:35.181 11151 ERROR glance.store.vmware_datastore [2e6bb6a1-e25e-4e74-811b-38ba14ee7b2e ed37da8c71184ac1a28da5e30e0a82c9 ad9aba13a40e473abfcbb69d2eda313d - - -] GL-6FC93E4 Failed to upload content of image 5011db19-04fc-4699-b850-6f6efe9439d7
  2014-06-04 18:32:35.183 11151 ERROR glance.api.v1.upload_utils [2e6bb6a1-e25e-4e74-811b-38ba14ee7b2e ed37da8c71184ac1a28da5e30e0a82c9 ad9aba13a40e473abfcbb69d2eda313d - - -] GL-F9EE247 Failed to upload image 5011db19-04fc-4699-b850-6f6efe9439d7
  2014-06-04 18:32:35.183 11151 TRACE glance.api.v1.upload_utils Traceback (most recent call last):
  2014-06-04 18:32:35.183 11151 TRACE glance.api.v1.upload_utils   File "/usr/lib/python2.6/site-packages/glance/api/v1/upload_utils.py", line 99, in upload_data_to_store
  2014-06-04 18:32:35.183 11151 TRACE glance.api.v1.upload_utils     store)
  2014-06-04 18:32:35.183 11151 TRACE glance.api.v1.upload_utils   File "/usr/lib/python2.6/site-packages/glance/store/__init__.py", line 382, in store_add_to_backend
  2014-06-04 18:32:35.183 11151 TRACE glance.api.v1.upload_utils     (location, size, checksum, metadata) = store.add(image_id, data, size)
  2014-06-04 18:32:35.183 11151 TRACE glance.api.v1.upload_utils   File "/usr/lib/python2.6/site-packages/glance/store/vmware_datastore.py", line 292, in add
  2014-06-04 18:32:35.183 11151 TRACE glance.api.v1.upload_utils     body=res.read())
  2014-06-04 18:32:35.183 11151 TRACE glance.api.v1.upload_utils UnexpectedStatus: GL-ECBEA55 The request returned an unexpected status: 404.
  2014-06-04 18:32:35.183 11151 TRACE glance.api.v1.upload_utils 
  2014-06-04 18:32:35.183 11151 TRACE glance.api.v1.upload_utils The response body:
  2014-06-04 18:32:35.183 11151 TRACE glance.api.v1.upload_utils 
  2014-06-04 18:32:35.183 11151 TRACE glance.api.v1.upload_utils 

  2) glance image-create --name debian-2.6.32 --disk-format vmdk
  --container-format bare --is-public true --property
  vmware_adaptertype="lsiLogic" --property
  vmware_disktype="preallocated" --property hypervisor_type="vmware"
  --property vmware_ostype="ubuntu64Guest" <
  /images/debian-2.6.32-i686.vmdk

  This is failing with

  Request returned failure status.
  400 Bad Request
  GL-4314F1B Client disconnected before sending all data to backend
      (HTTP 400) 
  Below is the error stack:
  2014-06-04 18:33:05.594 11151 ERROR glance.store.vmware_datastore [74fe0f17-92e8-421c-b573-97876cda64ad ed37da8c71184ac1a28da5e30e0a82c9 ad9aba13a40e473abfcbb69d2eda313d - - -] GL-6FC93E4 Failed to upload content of image 4b35fc6a-e60d-4194-8974-c37a9bec370b
  2014-06-04 18:33:05.594 11151 TRACE glance.store.vmware_datastore Traceback (most recent call last):
  2014-06-04 18:33:05.594 11151 TRACE glance.store.vmware_datastore   File "/usr/lib/python2.6/site-packages/glance/store/vmware_datastore.py", line 276, in add
  2014-06-04 18:33:05.594 11151 TRACE glance.store.vmware_datastore     content=image_file)
  2014-06-04 18:33:05.594 11151 TRACE glance.store.vmware_datastore   File "/usr/lib/python2.6/site-packages/glance/store/vmware_datastore.py", line 408, in _get_http_conn
  2014-06-04 18:33:05.594 11151 TRACE glance.store.vmware_datastore     conn.request(method, url, content, headers)
  2014-06-04 18:33:05.594 11151 TRACE glance.store.vmware_datastore   File "/usr/lib64/python2.6/httplib.py", line 920, in request
  2014-06-04 18:33:05.594 11151 TRACE glance.store.vmware_datastore     self._send_request(method, url, body, headers)
  2014-06-04 18:33:05.594 11151 TRACE glance.store.vmware_datastore   File "/usr/lib64/python2.6/httplib.py", line 954, in _send_request
  2014-06-04 18:33:05.594 11151 TRACE glance.store.vmware_datastore     self.send(body)
  2014-06-04 18:33:05.594 11151 TRACE glance.store.vmware_datastore   File "/usr/lib64/python2.6/httplib.py", line 756, in send
  2014-06-04 18:33:05.594 11151 TRACE glance.store.vmware_datastore     self.sock.sendall(data)
  2014-06-04 18:33:05.594 11151 TRACE glance.store.vmware_datastore   File "/usr/lib/python2.6/site-packages/eventlet/green/ssl.py", line 131, in sendall
  2014-06-04 18:33:05.594 11151 TRACE glance.store.vmware_datastore     v = self.send(data[count:])
  2014-06-04 18:33:05.594 11151 TRACE glance.store.vmware_datastore   File "/usr/lib/python2.6/site-packages/eventlet/green/ssl.py", line 107, in send
  2014-06-04 18:33:05.594 11151 TRACE glance.store.vmware_datastore     super(GreenSSLSocket, self).send, data, flags)
  2014-06-04 18:33:05.594 11151 TRACE glance.store.vmware_datastore   File "/usr/lib/python2.6/site-packages/eventlet/green/ssl.py", line 77, in _call_trampolining
  2014-06-04 18:33:05.594 11151 TRACE glance.store.vmware_datastore     return func(*a, **kw)
  2014-06-04 18:33:05.594 11151 TRACE glance.store.vmware_datastore   File "/usr/lib64/python2.6/ssl.py", line 174, in send
  2014-06-04 18:33:05.594 11151 TRACE glance.store.vmware_datastore     v = self._sslobj.write(data)
  2014-06-04 18:33:05.594 11151 TRACE glance.store.vmware_datastore error: [Errno 32] Broken pipe
  2014-06-04 18:33:05.594 11151 TRACE glance.store.vmware_datastore

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


References