M2: Quota usage tracking needs tests

Bug #1499358 reported by Salvatore Orlando
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Salvatore Orlando

Bug Description

Functional tests are needed to avoid breaking the mechanisms that regulate quota usage tracking in ML2.

With proper tests in place these bugs could have been avoided:
https://bugs.launchpad.net/neutron/+bug/1499339
https://bugs.launchpad.net/neutron/+bug/1497459

Revision history for this message
Salvatore Orlando (salvatore-orlando) wrote :

Tentatively setting milestone to RC1. It is however not a priority merging it for RC1 or liberty at all.

Changed in neutron:
status: New → In Progress
Revision history for this message
Kyle Mestery (mestery) wrote :

I don't see a patch here, so moving out of Liberty unless a patch appears, lands in master, and can be cherry picked today. I'll add the liberty-backport-potential tag though.

tags: added: liberty-backport-potential
Changed in neutron:
milestone: liberty-rc1 → mitaka-1
Changed in neutron:
milestone: mitaka-1 → mitaka-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (master)

Change abandoned by Armando Migliaccio (<email address hidden>) on branch: master
Review: https://review.openstack.org/227282
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/227282
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=cdd049e4c4d7e6ba1ca377e50fc6e8c29c85ab3d
Submitter: Jenkins
Branch: master

commit cdd049e4c4d7e6ba1ca377e50fc6e8c29c85ab3d
Author: Salvatore Orlando <email address hidden>
Date: Mon Sep 21 16:40:55 2015 -0700

    ML2: Add tests to validate quota usage tracking

    Ensure that event handlers are invoked upon completion of
    ML2 operations which add or remove tracked resources.
    Also validate that the event handlers are called for the
    appropriate resources and that quota usage's dirty bit
    is set and unset as expected.

    These are not unit tests, but added in the unit test tree
    as they leverage code both from the DB unit test and the ML2
    unit test framework. This module has indeed been added to
    the 'exclusion list' in check_unit_test_structure.sh, and
    should be moved to the functional test tree together with
    the other modules.

    Closes-Bug: #1499358

    Change-Id: I78c432c35f3f3339607cd533019ae6d0fa2a5cd6

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/259575

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/liberty)

Reviewed: https://review.openstack.org/259575
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=f175cd751bc33af9f79f4c2ecbc8d53e7d5fce0c
Submitter: Jenkins
Branch: stable/liberty

commit f175cd751bc33af9f79f4c2ecbc8d53e7d5fce0c
Author: Salvatore Orlando <email address hidden>
Date: Mon Sep 21 16:40:55 2015 -0700

    ML2: Add tests to validate quota usage tracking

    Ensure that event handlers are invoked upon completion of
    ML2 operations which add or remove tracked resources.
    Also validate that the event handlers are called for the
    appropriate resources and that quota usage's dirty bit
    is set and unset as expected.

    These are not unit tests, but added in the unit test tree
    as they leverage code both from the DB unit test and the ML2
    unit test framework. This module has indeed been added to
    the 'exclusion list' in check_unit_test_structure.sh, and
    should be moved to the functional test tree together with
    the other modules.

    Conflicts:
     neutron/quota/resource.py

    Closes-Bug: #1499358

    Change-Id: I78c432c35f3f3339607cd533019ae6d0fa2a5cd6
    (cherry picked from commit cdd049e4c4d7e6ba1ca377e50fc6e8c29c85ab3d)

tags: added: in-stable-liberty
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/neutron 8.0.0.0b2

This issue was fixed in the openstack/neutron 8.0.0.0b2 development milestone.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/neutron 7.0.2

This issue was fixed in the openstack/neutron 7.0.2 release.

tags: removed: liberty-backport-potential
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.