Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1133566 - [vmware] Glance image-upload truncates the image.
[vmware] Glance image-upload truncates the image.
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-glance-store (Show other bugs)
5.0 (RHEL 6)
x86_64 Linux
unspecified Severity high
: ga
: 7.0 (Kilo)
Assigned To: RHOS Maint
Jaroslav Henner
: Automation, Reopened, TestOnly
Depends On:
Blocks: 1055536
  Show dependency treegraph
 
Reported: 2014-08-25 09:19 EDT by Jaroslav Henner
Modified: 2016-04-26 11:27 EDT (History)
10 users (show)

See Also:
Fixed In Version: python-glance-store-0.4.0-1.el7ost
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-08-05 09:13:30 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
scohen: needinfo+


Attachments (Terms of Use)
log (8.06 KB, text/plain)
2015-07-31 13:30 EDT, Jaroslav Henner
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Launchpad 1240355 None None None Never
Launchpad 1361197 None None None Never
Launchpad 1402354 None None None Never
Red Hat Product Errata RHEA-2015:1548 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform Enhancement Advisory 2015-08-05 13:07:06 EDT

  None (edit)
Description Jaroslav Henner 2014-08-25 09:19:07 EDT
Description of problem:
Please see the LP

Version-Release number of selected component (if applicable):
openstack-glance-2014.1.2-1.el7ost.noarch
python-glanceclient-0.13.1-1.el7ost.noarch


How reproducible:
seems like always, but might be dependent on vmware deployment state/type

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Comment 2 Jaroslav Henner 2014-08-25 09:38:28 EDT
I think this may be the same issue as LP#1240355
Comment 4 Flavio Percoco 2014-08-27 04:07:23 EDT
I've tagged this bug as vmware since it seems to be specific to that driver. Have you been able to replicate this issue with other stores? How big is the image you're uploading?
Comment 10 Jaroslav Henner 2015-03-23 14:29:12 EDT
Reopening. I see this in . Probably fixed in https://bugs.launchpad.net/glance/+bug/1402354

openstack-glance-2014.2.2-1.el7ost.noarch
Comment 13 Jaroslav Henner 2015-07-23 05:36:30 EDT
I can see some of the tests affected by this are passing. Some of them are still not, but that may be because of other issues.

I still need to test this more as it looked this bug shows up after some time of inactivity on the OpenStack controller.
Comment 14 Jaroslav Henner 2015-07-28 04:18:52 EDT
It didn't reproduce when doing some short tests, I think this is fixed, though I am not 100% positive.
Comment 15 Jaroslav Henner 2015-07-31 13:30:34 EDT
Created attachment 1058103 [details]
log

Sorry, I have had selected wrong datastore. It is still not fixed. See the logs.

 glance -d image-create --file fff --name cirros --container-format bare --disk-format vmdk
curl -g -i -X POST -H 'Accept-Encoding: gzip, deflate' -H 'x-image-meta-container_format: bare' -H 'Accept: */*' -H 'X-Auth-Token: {SHA1}1153b9c3585fd8c2140d9c2446240dde356a1a7c' -H 'x-image-meta-size: 16777216' -H 'Connection: keep-alive' -H 'x-image-meta-is_public: None' -H 'User-Agent: python-glanceclient' -H 'Content-Type: application/octet-stream' -H 'x-image-meta-disk_format: vmdk' -H 'x-image-meta-name: cirros' http://10.34.69.130:9292/v1/images
Request returned failure status 500.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/glanceclient/shell.py", line 644, in main
    args.func(client, args)
  File "/usr/lib/python2.7/site-packages/glanceclient/v1/shell.py", line 245, in do_image_create
    image = gc.images.create(**fields)
  File "/usr/lib/python2.7/site-packages/glanceclient/v1/images.py", line 319, in create
    data=image_data)
  File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 265, in post
    return self._request('POST', url, **kwargs)
  File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 230, in _request
    raise exc.from_response(resp, resp.text)
HTTPInternalServerError: 500 Internal Server Error: Failed to upload image 26ee3973-40c3-4f85-b7c1-b34a8f596ba0 (HTTP 500)
500 Internal Server Error: Failed to upload image 26ee3973-40c3-4f85-b7c1-b34a8f596ba0 (HTTP 500)
[root@cloudimg ~(keystone_admin)]# ^C
[root@cloudimg ~(keystone_admin)]# ^Cance -d image-create --file fff --name cirros --container-format bare --disk-format vmdk
[root@cloudimg ~(keystone_admin)]#  echo 123456 | glance -d image-create --name foo --disk-format raw --container-format bare
curl -g -i -X POST -H 'Accept-Encoding: gzip, deflate' -H 'x-image-meta-container_format: bare' -H 'Accept: */*' -H 'X-Auth-Token: {SHA1}8535820c8d3ae6999de1784f6da87270e86ddcd5' -H 'Connection: keep-alive' -H 'x-image-meta-is_public: None' -H 'User-Agent: python-glanceclient' -H 'Content-Type: application/octet-stream' -H 'x-image-meta-disk_format: raw' -H 'x-image-meta-name: foo' http://10.34.69.130:9292/v1/images
Request returned failure status 500.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/glanceclient/shell.py", line 644, in main
    args.func(client, args)
  File "/usr/lib/python2.7/site-packages/glanceclient/v1/shell.py", line 245, in do_image_create
    image = gc.images.create(**fields)
  File "/usr/lib/python2.7/site-packages/glanceclient/v1/images.py", line 319, in create
    data=image_data)
  File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 265, in post
    return self._request('POST', url, **kwargs)
  File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 230, in _request
    raise exc.from_response(resp, resp.text)
HTTPInternalServerError: 500 Internal Server Error: Failed to upload image a0c60b73-bc3b-4370-be32-71f1a5168905 (HTTP 500)
500 Internal Server Error: Failed to upload image a0c60b73-bc3b-4370-be32-71f1a5168905 (HTTP 500)
Comment 16 Jaroslav Henner 2015-07-31 14:18:09 EDT
It seems like the problem I had just above was a problem with my datastore or problem with the config file. After changing the config from

vmware_datacenter_path=New Datacenter
vmware_datastore_name=shared

to

vmware_datacenter_path=New Datacenter
vmware_datastores=New Datacenter:datastore1 (4):1

the reproducer in LP 1361197 dind't reproduce the error. Works fine, however the BZ 1249164   still reproduces.
Comment 18 errata-xmlrpc 2015-08-05 09:13:30 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2015:1548

Note You need to log in before you can comment on or make changes to this bug.