Custom Search

Tuesday, October 13, 2015

openstack glance image-create error Unexpected EOF

Fix
===

https://review.openstack.org/#/c/142952/4/glanceclient/common/http.py

/usr/lib/python2.7/dist-packages/glanceclient/common/http.py


Error
=====

 $glance --debug image-create --progress --name cirros-0.3.3 --disk-format qcow2 --container-format bare --is-public True --file cirros-0.3.2-i386-disk.img
curl -i -X POST -H 'Accept-Encoding: gzip, deflate, compress' -H 'x-image-meta-container_format: bare' -H 'Accept: */*' -H 'X-Auth-Token: {SHA1}c18891d276885a33f8799b559148e8f8fd6ba27e' -H 'x-image-meta-size: 12336128' -H 'x-image-meta-is_public: True' -H 'User-Agent: python-glanceclient' -H 'Content-Type: application/octet-stream' -H 'x-image-meta-disk_format: qcow2' -H 'x-image-meta-name: cirros-0.3.3'  --cert None --key None https://image.jcloud.com:9292/v1/images
[=============================>] 100%
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/glanceclient/shell.py", line 637, in main
    args.func(client, args)
  File "/usr/lib/python2.7/dist-packages/glanceclient/v1/shell.py", line 232, in do_image_create
    image = gc.images.create(**fields)
  File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 288, in create
    data=image_data)
  File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 262, in post
    return self._request('POST', 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 353, in send
    low_conn.send(i)
  File "/usr/lib/python2.7/httplib.py", line 811, in send
    self.sock.sendall(data)
  File "/usr/lib/python2.7/dist-packages/urllib3/contrib/pyopenssl.py", line 291, in sendall
    return self.connection.sendall(data)
SysCallError: (-1, 'Unexpected EOF')
(-1, 'Unexpected EOF')
 

No comments:

Post a Comment