Tempest failure: tempest.api.image.v1.test_images.CreateRegisterImagesTest.test_register_then_upload

Bug #1292764 reported by Arnaud Legendre
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Medium
Arnaud Legendre

Bug Description

This failure happens with the vmware backend when the size provided to the store is zero but the actual data size is larger than zero.

2014-03-14 17:22:53 | [10.36.11.112] out: Traceback (most recent call last):
2014-03-14 17:22:53 | [10.36.11.112] out: File "tempest/api/image/v1/test_images.py", line 50, in test_register_then_upload
2014-03-14 17:22:53 | [10.36.11.112] out: self.assertEqual(1024, body.get('size'))
2014-03-14 17:22:53 | [10.36.11.112] out: File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 321, in assertEqual
2014-03-14 17:22:53 | [10.36.11.112] out: self.assertThat(observed, matcher, message)
2014-03-14 17:22:53 | [10.36.11.112] out: File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 406, in assertThat
2014-03-14 17:22:53 | [10.36.11.112] out: raise mismatch_error
2014-03-14 17:22:53 | [10.36.11.112] out: MismatchError: 1024 != 0

Changed in glance:
assignee: nobody → Arnaud Legendre (arnaudleg)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/80745

Changed in glance:
status: New → In Progress
Zhi Yan Liu (lzy-dev)
Changed in glance:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/80745
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=3bbdc70d4e1d0a8c960d7d0a7634f10b4b3163fe
Submitter: Jenkins
Branch: master

commit 3bbdc70d4e1d0a8c960d7d0a7634f10b4b3163fe
Author: Arnaud Legendre <email address hidden>
Date: Fri Mar 14 20:14:01 2014 -0700

    VMware store.add to return the image size uploaded

    This patch fixes a tempest test failing for the VMware datastore.
    When the size provided to add() is zero but the image size is actually
    larger than zero, add() should return the size of the image uploaded
    and not zero.

    Tempest failure:
    api.image.v1.test_images.CreateRegisterImagesTest.test_register_then_upload

    Change-Id: I16524c0f25aa4124c24ca25ac014819267dd72c3
    Closes-Bug: #1292764

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: none → icehouse-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: icehouse-rc1 → 2014.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.