MismatchError test_update_all_quota_resources_for_tenant

Bug #1291926 reported by Rossella Sblendido
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Cinder
Invalid
Undecided
Unassigned
neutron
Invalid
Undecided
Unassigned
tempest
Fix Released
Undecided
Sean Dague

Bug Description

Observed in the Neutron full job

2014-03-13 02:08:54.390 | Traceback (most recent call last):
2014-03-13 02:08:54.390 | File "tempest/api/volume/admin/test_volume_quotas.py", line 67, in test_update_all_quota_resources_for_tenant
2014-03-13 02:08:54.390 | self.assertEqual(new_quota_set, quota_set)
2014-03-13 02:08:54.391 | File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 321, in assertEqual
2014-03-13 02:08:54.391 | self.assertThat(observed, matcher, message)
2014-03-13 02:08:54.391 | File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 406, in assertThat
2014-03-13 02:08:54.392 | raise mismatch_error
2014-03-13 02:08:54.392 | MismatchError: !=:
2014-03-13 02:08:54.392 | reference = {'gigabytes': 1009, 'snapshots': 11, 'volumes': 11}
2014-03-13 02:08:54.393 | actual = {'gigabytes': 1009,
2014-03-13 02:08:54.393 | 'gigabytes_volume-type--928001277': -1,
2014-03-13 02:08:54.393 | 'snapshots': 11,
2014-03-13 02:08:54.394 | 'snapshots_volume-type--928001277': -1,
2014-03-13 02:08:54.394 | 'volumes': 11,
2014-03-13 02:08:54.394 | 'volumes_volume-type--928001277': -1}

Example here http://logs.openstack.org/82/67382/3/check/check-tempest-dsvm-neutron-full/8ffd266/console.html

Revision history for this message
Andrew Laski (alaski) wrote :
Revision history for this message
Joe Gordon (jogo) wrote :

this looks like a tempest failure and if not tempest its a cinder error.

tags: removed: neutron-full-job
Changed in neutron:
status: New → Invalid
Revision history for this message
Mike Perez (thingee) wrote :

Since Havana, if you create a volume in cinder that has a specified volume type, it will introduce new default quotas. Seeing that these tests were introduced in tempest 2014-02-20, I'm guessing some race condition is hit where if these tests are ran before volume creation tests, you would pass.

Changed in cinder:
status: New → Invalid
Mike Perez (thingee)
Changed in tempest:
status: New → Confirmed
assignee: nobody → Mike Perez (thingee)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tempest (master)

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

Changed in tempest:
assignee: Mike Perez (thingee) → Sean Dague (sdague)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tempest (master)

Reviewed: https://review.openstack.org/81503
Committed: https://git.openstack.org/cgit/openstack/tempest/commit/?id=27a8c5641d4d419e6e67ed22333a159527356760
Submitter: Jenkins
Branch: master

commit 27a8c5641d4d419e6e67ed22333a159527356760
Author: Sean Dague <email address hidden>
Date: Wed Mar 19 07:46:42 2014 -0400

    fix cinder quota equality

    The cinder quota test was of bad quality, and assumed that all
    the functions in the class ran in linear order to work. If they
    run in a different order the tenant could have additional quota
    values beyond the strict defaults.

    We can fix this by testing the returned quota contains the values
    we're attempting to update.

    Closes-Bug: #1291926

    Change-Id: I53a154aac61368b7c20ac5703f3877fcf42f9781

Changed in tempest:
status: In Progress → Fix Released
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.