CinderUnicodeTest tempest test fails due to not providing volume size

Bug #1620613 reported by Sean McGinnis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Unassigned

Bug Description

No size is given when creating a volume for the CinderUnicodeTest in-tree tempest test, resulting in the following error:

setUpClass (cinder.tests.tempest.api.volume.test_volume_unicode.CinderUnicodeTest)
----------------------------------------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "tempest/test.py", line 274, in setUpClass
        six.reraise(etype, value, trace)
      File "tempest/test.py", line 267, in setUpClass
        cls.resource_setup()
      File "/opt/stack/new/cinder/cinder/tests/tempest/api/volume/test_volume_unicode.py", line 32, in resource_setup
        cls.volume = cls.create_volume_with_args(name=cls.volume_name)
      File "/opt/stack/new/cinder/cinder/tests/tempest/api/volume/test_volume_unicode.py", line 41, in create_volume_with_args
        volume = cls.volumes_client.create_volume(**kwargs)['volume']
      File "tempest/services/volume/base/base_volumes_client.py", line 98, in create_volume
        resp, body = self.post('volumes', post_body)
      File "tempest/lib/common/rest_client.py", line 276, in post
        return self.request('POST', url, extra_headers, headers, body, chunked)
      File "tempest/lib/common/rest_client.py", line 665, in request
        resp, resp_body)
      File "tempest/lib/common/rest_client.py", line 768, in _error_checker
        raise exceptions.BadRequest(resp_body, resp=resp)
    tempest.lib.exceptions.BadRequest: Bad request
    Details: {u'message': u"Invalid input received: Volume size 'None' must be an integer and greater than 0", u'code': 400}

Tags: tempest
tags: added: tempest
Revision history for this message
Sean McGinnis (sean-mcginnis) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

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

Changed in cinder:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/366114
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=bdb2ccaac68108549b065d94860cf03f5d457785
Submitter: Jenkins
Branch: master

commit bdb2ccaac68108549b065d94860cf03f5d457785
Author: Sean McGinnis <email address hidden>
Date: Tue Sep 6 08:05:51 2016 -0500

    Provide volume size for tempest volume creation

    The tempest volume client used to provide a default volume size. This
    was changed in I2a0f5841fe82ab003562749a63bc4894225699c5. Tempest tests
    now need to provide a size when creating a volume using this client.

    Change-Id: Id1a646cfbd11803a796205af8baa0ac783e9ec3a
    Closes-bug: #1620613

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 9.0.0.0rc1

This issue was fixed in the openstack/cinder 9.0.0.0rc1 release candidate.

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.