Bug 1133566
| Summary: | [vmware] Glance image-upload truncates the image. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Jaroslav Henner <jhenner> | ||||
| Component: | python-glance-store | Assignee: | RHOS Maint <rhos-maint> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Jaroslav Henner <jhenner> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 5.0 (RHEL 6) | CC: | apevec, eglynn, fpercoco, jhenner, lhh, nlevinki, scohen, sgordon, yeylon | ||||
| Target Milestone: | ga | Keywords: | Automation, Reopened, TestOnly | ||||
| Target Release: | 7.0 (Kilo) | Flags: | scohen:
needinfo+
|
||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| 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 13:13:30 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1055536 | ||||||
| Attachments: |
|
||||||
|
Description
Jaroslav Henner
2014-08-25 13:19:07 UTC
I think this may be the same issue as LP#1240355 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? Reopening. I see this in . Probably fixed in https://bugs.launchpad.net/glance/+bug/1402354 openstack-glance-2014.2.2-1.el7ost.noarch 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. It didn't reproduce when doing some short tests, I think this is fixed, though I am not 100% positive. 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) 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. 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 |