MISC_SHARES_VIA_AGGREGATE not found still show up in the functional test

Bug #1702304 reported by Alex Xu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Critical
Sylvain Bauza
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/480198

Changed in nova:
assignee: nobody → Alex Xu (xuhj)
status: New → In Progress
Alex Xu (xuhj)
description: updated
Revision history for this message
Sylvain Bauza (sylvain-bauza) wrote :

That's weird because the gate got os-traits==0.3.1 [1] which already provides that trait [2]

[1]http://logs.openstack.org/85/330285/83/check/gate-nova-tox-functional-py35-ubuntu-xenial/94a3627/console.html#_2017-07-04_11_25_02_155233

[2]https://github.com/openstack/os-traits/blob/0.3.1/os_traits/misc/__init__.py

Looks like a problem when synchronizing the os-traits lib, investigating.

Revision history for this message
Sylvain Bauza (sylvain-bauza) wrote :

I was able to reproduce locally the bug. After comparing 2 runs, one working and the other not, I think the problem is related to the traits functional tests being verified before that one.

http://paste.openstack.org/show/614397/

Revision history for this message
Sylvain Bauza (sylvain-bauza) wrote :

Confirmed, running the same list of tests without the nova.tests.functional.api.openstack.placement.test_placement_api.traits tests makes the run successful.

http://paste.openstack.org/show/614398/

Changed in nova:
importance: Undecided → High
Revision history for this message
Sylvain Bauza (sylvain-bauza) wrote :

Ha, think I found the problem. We fixed the problem for tests inheriting from TestCase [1], but given the SharedStorageFixture just uses the GabbiFixture, when cleaning up the DB we remove the traits as well.

[1]https://review.openstack.org/#/c/478564/2

Changed in nova:
assignee: Alex Xu (xuhj) → Sylvain Bauza (sylvain-bauza)
Revision history for this message
Sylvain Bauza (sylvain-bauza) wrote :
Changed in nova:
importance: High → Critical
tags: added: gate-failure placement
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/480198
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=07d82cf8ef47d249193b2cb16fd13a94a5678468
Submitter: Jenkins
Branch: master

commit 07d82cf8ef47d249193b2cb16fd13a94a5678468
Author: Sylvain Bauza <email address hidden>
Date: Tue Jul 4 18:40:39 2017 +0200

    Reset the traits sync flag in the placement fixtures

    We had a problem with tests running that were unable to find traits because a
    previous test cleaned up the DB without resetting the sync flag and we fixed
    that in I5dc0220310986c5b9fe5b71013c573c3d98cb9aa

    Unfortunately, fixtures we use in Placement functional tree don't inherit from
    general test cases (for obvious reasons) so we need to also reset the flag
    there.

    Co-Authored-By: Sylvain Bauza <email address hidden>

    Change-Id: Ib7019db36ce90bf6d762a6d37697c3a215e091b4
    Closes-Bug: #1702304

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

This issue was fixed in the openstack/nova 16.0.0.0b3 development milestone.

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.