TypeError: notify() argument after ** must be a mapping, not NoneType

Bug #1643747 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

needs an update after I93e4d847f96707b17c4a7dfdb3bbf81d062fe3fb

eg. http://logs.openstack.org/50/395450/6/check/gate-networking-midonet-python27-db-ubuntu-xenial/3643b7c/testr_results.html.gz

ft26.29: midonet.neutron.tests.unit.test_midonet_plugin_ml2.TestMidonetL3NatExtraRoute.test_floatingip_create_different_fixed_ip_same_port_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 neutron.plugins.ml2.plugin.Ml2Plugin
 WARNING [neutron.agent.securitygroups_rpc] Driver configuration doesn't match with enable_security_group
 WARNING [neutron.plugins.ml2.managers] Host filtering is disabled because at least one mechanism doesn't support it.
 WARNING [neutron.agent.securitygroups_rpc] Driver configuration doesn't match with enable_security_group
   ERROR [neutron.api.extensions] Extension path 'neutron/tests/unit/extensions' doesn't exist!
 WARNING [oslo_policy.policy] Policies ['update_rbac_policy:target_tenant'] are part of a cyclical reference.
 WARNING [neutron.scheduler.dhcp_agent_scheduler] No more DHCP agents
 WARNING [neutron.api.rpc.agentnotifiers.dhcp_rpc_agent_api] Unable to schedule network 198f32c0-c403-44ff-b911-3578325f7457: no agents available; will retry on subsequent port and subnet creation events.
 WARNING [neutron.scheduler.dhcp_agent_scheduler] No more DHCP agents
 WARNING [neutron.api.rpc.agentnotifiers.dhcp_rpc_agent_api] Unable to schedule network 198f32c0-c403-44ff-b911-3578325f7457: no agents available; will retry on subsequent port and subnet creation events.
 WARNING [neutron.scheduler.dhcp_agent_scheduler] No more DHCP agents
 WARNING [neutron.api.rpc.agentnotifiers.dhcp_rpc_agent_api] Unable to schedule network cd132516-f14f-4ef0-99d4-83a5a4235f23: no agents available; will retry on subsequent port and subnet creation events.
 WARNING [neutron.scheduler.dhcp_agent_scheduler] No more DHCP agents
 WARNING [neutron.api.rpc.agentnotifiers.dhcp_rpc_agent_api] Unable to schedule network cd132516-f14f-4ef0-99d4-83a5a4235f23: no agents available; will retry on subsequent port and subnet creation events.
 WARNING [neutron.scheduler.dhcp_agent_scheduler] No more DHCP agents
 WARNING [neutron.api.rpc.agentnotifiers.dhcp_rpc_agent_api] Unable to schedule network cd132516-f14f-4ef0-99d4-83a5a4235f23: no agents available; will retry on subsequent port and subnet creation events.
 WARNING [neutron.scheduler.dhcp_agent_scheduler] No more DHCP agents
 WARNING [neutron.api.rpc.agentnotifiers.dhcp_rpc_agent_api] Unable to schedule network cd132516-f14f-4ef0-99d4-83a5a4235f23: no agents available; will retry on subsequent port and subnet creation events.
 WARNING [neutron.scheduler.dhcp_agent_scheduler] No more DHCP agents
 WARNING [neutron.api.rpc.agentnotifiers.dhcp_rpc_agent_api] Unable to schedule network 198f32c0-c403-44ff-b911-3578325f7457: no agents available; will retry on subsequent port and subnet creation events.
   ERROR [neutron.api.v2.resource] create failed: No details.
Traceback (most recent call last):
  File "/tmp/openstack/neutron/neutron/api/v2/resource.py", line 79, in resource
    result = method(request=request, **args)
  File "/tmp/openstack/neutron/neutron/api/v2/base.py", line 430, in create
    return self._create(request, body, **kwargs)
  File "/tmp/openstack/neutron/neutron/db/api.py", line 91, in wrapped
    setattr(e, '_RETRY_EXCEEDED', True)
  File "/home/jenkins/workspace/gate-networking-midonet-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
    self.force_reraise()
  File "/home/jenkins/workspace/gate-networking-midonet-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
    six.reraise(self.type_, self.value, self.tb)
  File "/tmp/openstack/neutron/neutron/db/api.py", line 87, in wrapped
    return f(*args, **kwargs)
  File "/home/jenkins/workspace/gate-networking-midonet-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_db/api.py", line 151, in wrapper
    ectxt.value = e.inner_exc
  File "/home/jenkins/workspace/gate-networking-midonet-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
    self.force_reraise()
  File "/home/jenkins/workspace/gate-networking-midonet-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
    six.reraise(self.type_, self.value, self.tb)
  File "/home/jenkins/workspace/gate-networking-midonet-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_db/api.py", line 139, in wrapper
    return f(*args, **kwargs)
  File "/tmp/openstack/neutron/neutron/db/api.py", line 127, in wrapped
    traceback.format_exc())
  File "/home/jenkins/workspace/gate-networking-midonet-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
    self.force_reraise()
  File "/home/jenkins/workspace/gate-networking-midonet-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
    six.reraise(self.type_, self.value, self.tb)
  File "/tmp/openstack/neutron/neutron/db/api.py", line 122, in wrapped
    return f(*dup_args, **dup_kwargs)
  File "/tmp/openstack/neutron/neutron/api/v2/base.py", line 543, in _create
    obj = do_create(body)
  File "/tmp/openstack/neutron/neutron/api/v2/base.py", line 525, in do_create
    request.context, reservation.reservation_id)
  File "/home/jenkins/workspace/gate-networking-midonet-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
    self.force_reraise()
  File "/home/jenkins/workspace/gate-networking-midonet-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
    six.reraise(self.type_, self.value, self.tb)
  File "/tmp/openstack/neutron/neutron/api/v2/base.py", line 518, in do_create
    return obj_creator(request.context, **kwargs)
  File "/home/jenkins/workspace/gate-networking-midonet-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_log/helpers.py", line 48, in wrapper
    return method(*args, **kwargs)
  File "midonet/neutron/services/l3/l3_midonet.py", line 216, in create_floatingip
    context, floatingip)
  File "/tmp/openstack/neutron/neutron/db/l3_db.py", line 1792, in create_floatingip
    context, floatingip, initial_status)
  File "/tmp/openstack/neutron/neutron/db/api.py", line 162, in wrapped
    return method(*args, **kwargs)
  File "/tmp/openstack/neutron/neutron/db/l3_db.py", line 1266, in create_floatingip
    return self._create_floatingip(context, floatingip, initial_status)
  File "/tmp/openstack/neutron/neutron/db/l3_db.py", line 1253, in _create_floatingip
    **assoc_result)
TypeError: notify() argument after ** must be a mapping, not NoneType
}}}

Traceback (most recent call last):
  File "/tmp/openstack/neutron/neutron/tests/base.py", line 126, in func
    return f(self, *args, **kwargs)
  File "/tmp/openstack/neutron/neutron/tests/base.py", line 126, in func
    return f(self, *args, **kwargs)
  File "/tmp/openstack/neutron/neutron/tests/base.py", line 126, in func
    return f(self, *args, **kwargs)
  File "/tmp/openstack/neutron/neutron/tests/unit/extensions/test_l3.py", line 2132, in test_floatingip_create_different_fixed_ip_same_port
    fixed_ip=str(ip_range[-2]))
  File "/tmp/openstack/neutron/neutron/tests/unit/extensions/test_l3.py", line 454, in _make_floatingip
    self.assertEqual(http_status, res.status_int)
  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: 201 != 500

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

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

commit 3dfc497daf26f5b8ebce6569e72e40371138b0cc
Author: YAMAMOTO Takashi <email address hidden>
Date: Wed Nov 9 16:51:22 2016 +0900

    Use some definitions from neutron-lib

    The following two unrelated changes are combined
    into this single commit to pass the gate.

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

    Use some definitions from neutron-lib

    Including:
        - convert_to_boolean
        - PORT_STATUS_ACTIVE
        - TAP_DEVICE_PREFIX
        - db_api.get_engine

    Closes-Bug: #1640319
    Closes-Bug: #1641481
    Closes-Bug: #1641494
    Partial-Bug: #1581361

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

    l3_db_midonet: Update after the recent Neutron change. [1]

    [1] I93e4d847f96707b17c4a7dfdb3bbf81d062fe3fb

    Closes-Bug: #1643747
    Related-Bug: #1540844

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

    Change-Id: Ide96124c12c993a3ee0f2353c8201da9a6b5890c

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.