Comment 6 for bug 1706207

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

Reviewed: https://review.openstack.org/486805
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=997ba03094062799349e8275026462c549d3989a
Submitter: Jenkins
Branch: master

commit 997ba03094062799349e8275026462c549d3989a
Author: Chris Dent <email address hidden>
Date: Tue Jul 25 01:59:52 2017 +0100

    [placement] Flush RC_CACHE after each gabbit sequence

    Each gabbi yaml file is supposed to be an isolated sequence. The
    fixtures were already making sure that the database was wiped, and the
    traits sync was reset, but not making sure the _RC_CACHE used to cache
    mappings between resource class strings and ids was flushed.

    This change clears the _RC_CACHE in the APIFixture stop_fixture method.

    For sake of information:
    Before fixing the issue it was confirmed by running the two gabbi files
    indicated in the bug report, in sequence, in a single process:

        .tox/functional/bin/python -m subunit.run discover \
            nova.tests.functional.api.openstack.placement \
            --load-list /tmp/runthese |subunit-trace

    Where runthese contains (with fully qualified package name prefixes):

    test_placement_api.allocation-bad-class_allocate_some_of_it_standard.test_request
    test_placement_api.resource-class-in-use_delete_resource_class.test_request

    Change-Id: Icb3beef7964887f29bf8cca95ac7dbae1511876d
    Closes-Bug: #1706207