test_list_firewalls_with_filtering failure

Bug #1644500 reported by YAMAMOTO Takashi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-midonet
Fix Released
Critical
YAMAMOTO Takashi

Bug Description

newly added test_list_firewalls_with_filtering test is failing.

eg.
http://logs.openstack.org/62/398562/8/check/gate-networking-midonet-python27-db-ubuntu-xenial/91d1571/testr_results.html.gz

ft11.3: midonet.neutron.tests.unit.test_extension_fwaas.FirewallTestCase.test_list_firewalls_with_filtering_StringException: Empty attachments:
  stderr
  stdout

pythonlogging:'': {{{
WARNING [oslo_policy.policy] Policies ['update_rbac_policy:target_tenant'] are part of a cyclical reference.
 WARNING [stevedore.named] Could not load midonet.neutron.plugin_v2.MidonetPluginV2
 WARNING [oslo_policy.policy] Policies ['update_rbac_policy:target_tenant'] are part of a cyclical reference.
}}}

Traceback (most recent call last):
  File "/tmp/openstack/neutron/neutron/tests/base.py", line 127, in func
    return f(self, *args, **kwargs)
  File "/tmp/openstack/neutron/neutron/tests/base.py", line 127, in func
    return f(self, *args, **kwargs)
  File "/tmp/openstack/neutron-fwaas/neutron_fwaas/tests/unit/services/firewall/test_fwaas_plugin.py", line 604, in test_list_firewalls_with_filtering
    query_params=query_params)
  File "/tmp/openstack/neutron-fwaas/neutron_fwaas/tests/unit/db/firewall/test_firewall_db.py", line 123, in _test_list_resources
    sorted([i for i in res[resource_plural]]))
  File "/home/jenkins/workspace/gate-networking-midonet-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 411, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/home/jenkins/workspace/gate-networking-midonet-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: [{u'status': u'PENDING_CREATE'}] != [{u'status': u'ACTIVE'}]

Tags: gate-failure
Changed in networking-midonet:
assignee: nobody → YAMAMOTO Takashi (yamamoto)
importance: Undecided → Critical
milestone: none → 3.0.0
status: New → In Progress
tags: added: gate-failure
Revision history for this message
YAMAMOTO Takashi (yamamoto) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-midonet (master)

Reviewed: https://review.openstack.org/398562
Committed: https://git.openstack.org/cgit/openstack/networking-midonet/commit/?id=b905f315e497f1ad3460e0d6dd2d32ce1451a699
Submitter: Jenkins
Branch: master

commit b905f315e497f1ad3460e0d6dd2d32ce1451a699
Author: Armando Migliaccio <email address hidden>
Date: Wed Nov 16 11:56:18 2016 -0800

    Switch to using plugins directory in lieu of neutron manager

    The following changes were merged into this single commit
    to pass the gate.

    -------------------------------------

    Switch to using plugins directory in lieu of neutron manager

    Partially-implements: blueprint neutron-lib

    -------------------------------------

    L3: Add another GUARD_TRANSACTION

    Recently neutron removed GUARD_TRANSACTION for create_floaingip. [1]
    As we still have a surronding transaction, we need to tweak
    GUARD_TRANSACTION by ourselves.

    [1] Ia4c34c6654a5bfb64fbf06b11b0a29b018c6854f

    Closes-Bug: #1644236

    -------------------------------------

    update_port: Don't update N/A status

    update_port for floating-ip port is introduced by recent
    Neutron change. [2] Our automatic update of status field
    is not appropriate for floating-ip ports, where it's supposed
    to be N/A.

    [2] Ia4c34c6654a5bfb64fbf06b11b0a29b018c6854f

    Closes-Bug: #1644261

    -------------------------------------

    Skip test_list_firewalls_with_filtering

    This test has been merged recently. [3]
    It fails because it expects a newly created firewall is
    PENDING_CREATE, while our plugin set it to ACTIVE
    synchronously. Skip the test for now to unbreak the gate.
    REVISIT(yamamoto): Probably it's better to tweak the test,
    and/or mock our plugin to make it pass.

    [3] I5bcd148de524af802f01e4e5444a6e605318954f

    Closes-Bug: #1644500

    -------------------------------------

    Co-Authored-By: YAMAMOTO Takashi <email address hidden>
    Change-Id: I418a777463eb896ee6e19fe4d662943cc9772bf0

Changed in networking-midonet:
status: In Progress → Fix Released
Changed in networking-midonet:
milestone: 3.0.0 → 4.0.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/networking-midonet 4.0.0

This issue was fixed in the openstack/networking-midonet 4.0.0 release.

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.