placement functional tests can variably fail because of conf

Bug #1788176 reported by Chris Dent
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Chris Dent
Rocky
Confirmed
Medium
Unassigned

Bug Description

When running just the placement functional tests with `tox -efunctional placement` on a host with sufficient cpus (16 in this case, on a host with only 4 it wasn't happening) some tests can fail because of conf not being properly set with "oslo_config.cfg.NoSuchOptError: no such option oslo_policy in group [DEFAULT]". Example traceback at http://paste.openstack.org/show/728513/

This appears to because in some cases registering the policy opts is happening elsewhere in the processing before running the gabbi tests but only sometimes. This is a symptom of long term global conf leakage that we may wish to consider fixing, but the short term fix is to register the opts in the gabbi fixture. Patch forthcoming.

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

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

Changed in nova:
assignee: nobody → Chris Dent (cdent)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

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

Reviewed: https://review.openstack.org/594172
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=2b46354d5ab6d59790e69c44bc36a17074155774
Submitter: Zuul
Branch: master

commit 2b46354d5ab6d59790e69c44bc36a17074155774
Author: Chris Dent <email address hidden>
Date: Tue Aug 21 14:23:41 2018 +0100

    Set policy_opt defaults in placement gabbi fixture

    Without this change, tests can intermittently fail with NoSuchOptError
    when a single process does not have other tests running prior to
    gabbi tests. This change ensure the opts are registered and defaulted.

    Change-Id: I1c7e347b6e788928bef96e32c3365d0fdc5ba00f
    Related-Bug: #1786498
    Closes-Bug: #1788176

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/594334
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=f7c5aca3b2b57547c9f95b8432da60b59d66fadf
Submitter: Zuul
Branch: master

commit f7c5aca3b2b57547c9f95b8432da60b59d66fadf
Author: Chris Dent <email address hidden>
Date: Tue Aug 21 16:56:43 2018 +0100

    Set policy_opt defaults in placement deploy unit test

    Without this change, tests can intermittently fail with NoSuchOptError
    when a single process does not have the ConfigFixture running before
    this test. This change ensure the opts are registered and defaulted.

    Change-Id: I6a4873726e3e7fe0d4db3d1dea61309702b8f24b
    Closes-Bug: #1788176

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 19.0.0.0rc1

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