CinderUnicodeTest tempest test fails due to not providing volume size

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

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/", line 274, in setUpClass
        six.reraise(etype, value, trace)
      File "tempest/", line 267, in setUpClass
      File "/opt/stack/new/cinder/cinder/tests/tempest/api/volume/", 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/", line 41, in create_volume_with_args
        volume = cls.volumes_client.create_volume(**kwargs)['volume']
      File "tempest/services/volume/base/", line 98, in create_volume
        resp, body ='volumes', post_body)
      File "tempest/lib/common/", line 276, in post
        return self.request('POST', url, extra_headers, headers, body, chunked)
      File "tempest/lib/common/", line 665, in request
        resp, resp_body)
      File "tempest/lib/common/", 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

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

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

This issue was fixed in the openstack/cinder 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.