test_update_provider_net_unsupported failure

Bug #1823294 reported by YAMAMOTO Takashi on 2019-04-05
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-midonet
Critical
YAMAMOTO Takashi
neutron
Critical
YAMAMOTO Takashi

Bug Description

eg. http://logs.openstack.org/09/649309/5/check/openstack-tox-py35/1ccf308/job-output.txt.gz#_2019-04-05_05_17_36_105547

2019-04-05 05:17:36.099606 | ubuntu-xenial | Traceback (most recent call last):
2019-04-05 05:17:36.099710 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/pecan/core.py", line 683, in __call__
2019-04-05 05:17:36.099766 | ubuntu-xenial | self.invoke_controller(controller, args, kwargs, state)
2019-04-05 05:17:36.099887 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/pecan/core.py", line 574, in invoke_controller
2019-04-05 05:17:36.099939 | ubuntu-xenial | result = controller(*args, **kwargs)
2019-04-05 05:17:36.100049 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/neutron_lib/db/api.py", line 139, in wrapped
2019-04-05 05:17:36.100092 | ubuntu-xenial | setattr(e, '_RETRY_EXCEEDED', True)
2019-04-05 05:17:36.100200 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2019-04-05 05:17:36.100234 | ubuntu-xenial | self.force_reraise()
2019-04-05 05:17:36.100347 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2019-04-05 05:17:36.100394 | ubuntu-xenial | six.reraise(self.type_, self.value, self.tb)
2019-04-05 05:17:36.100493 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/six.py", line 693, in reraise
2019-04-05 05:17:36.100523 | ubuntu-xenial | raise value
2019-04-05 05:17:36.100629 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/neutron_lib/db/api.py", line 135, in wrapped
2019-04-05 05:17:36.100666 | ubuntu-xenial | return f(*args, **kwargs)
2019-04-05 05:17:36.100769 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/oslo_db/api.py", line 154, in wrapper
2019-04-05 05:17:36.100806 | ubuntu-xenial | ectxt.value = e.inner_exc
2019-04-05 05:17:36.100926 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2019-04-05 05:17:36.100968 | ubuntu-xenial | self.force_reraise()
2019-04-05 05:17:36.101081 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2019-04-05 05:17:36.101129 | ubuntu-xenial | six.reraise(self.type_, self.value, self.tb)
2019-04-05 05:17:36.101227 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/six.py", line 693, in reraise
2019-04-05 05:17:36.101256 | ubuntu-xenial | raise value
2019-04-05 05:17:36.101374 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/oslo_db/api.py", line 142, in wrapper
2019-04-05 05:17:36.101417 | ubuntu-xenial | return f(*args, **kwargs)
2019-04-05 05:17:36.101535 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/neutron_lib/db/api.py", line 183, in wrapped
2019-04-05 05:17:36.101594 | ubuntu-xenial | LOG.debug("Retry wrapper got retriable exception: %s", e)
2019-04-05 05:17:36.101704 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2019-04-05 05:17:36.101738 | ubuntu-xenial | self.force_reraise()
2019-04-05 05:17:36.101855 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2019-04-05 05:17:36.101935 | ubuntu-xenial | six.reraise(self.type_, self.value, self.tb)
2019-04-05 05:17:36.102041 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/six.py", line 693, in reraise
2019-04-05 05:17:36.102078 | ubuntu-xenial | raise value
2019-04-05 05:17:36.102188 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/neutron_lib/db/api.py", line 179, in wrapped
2019-04-05 05:17:36.102230 | ubuntu-xenial | return f(*dup_args, **dup_kwargs)
2019-04-05 05:17:36.102348 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/neutron/pecan_wsgi/controllers/utils.py", line 76, in wrapped
2019-04-05 05:17:36.102397 | ubuntu-xenial | return f(*args, **kwargs)
2019-04-05 05:17:36.102517 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/neutron/pecan_wsgi/controllers/resource.py", line 70, in put
2019-04-05 05:17:36.102574 | ubuntu-xenial | return {self.resource: self.plugin_updater(*updater_args)}
2019-04-05 05:17:36.102682 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/neutron/common/utils.py", line 668, in inner
2019-04-05 05:17:36.102727 | ubuntu-xenial | return f(self, context, *args, **kwargs)
2019-04-05 05:17:36.102835 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/neutron_lib/db/api.py", line 233, in wrapped
2019-04-05 05:17:36.102879 | ubuntu-xenial | return method(*args, **kwargs)
2019-04-05 05:17:36.103006 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/neutron_lib/db/api.py", line 139, in wrapped
2019-04-05 05:17:36.103054 | ubuntu-xenial | setattr(e, '_RETRY_EXCEEDED', True)
2019-04-05 05:17:36.103181 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2019-04-05 05:17:36.103221 | ubuntu-xenial | self.force_reraise()
2019-04-05 05:17:36.103334 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2019-04-05 05:17:36.103382 | ubuntu-xenial | six.reraise(self.type_, self.value, self.tb)
2019-04-05 05:17:36.103481 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/six.py", line 693, in reraise
2019-04-05 05:17:36.103510 | ubuntu-xenial | raise value
2019-04-05 05:17:36.103618 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/neutron_lib/db/api.py", line 135, in wrapped
2019-04-05 05:17:36.103655 | ubuntu-xenial | return f(*args, **kwargs)
2019-04-05 05:17:36.103760 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/oslo_db/api.py", line 154, in wrapper
2019-04-05 05:17:36.103797 | ubuntu-xenial | ectxt.value = e.inner_exc
2019-04-05 05:17:36.103915 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2019-04-05 05:17:36.103962 | ubuntu-xenial | self.force_reraise()
2019-04-05 05:17:36.104075 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2019-04-05 05:17:36.104124 | ubuntu-xenial | six.reraise(self.type_, self.value, self.tb)
2019-04-05 05:17:36.104223 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/six.py", line 693, in reraise
2019-04-05 05:17:36.104252 | ubuntu-xenial | raise value
2019-04-05 05:17:36.104356 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/oslo_db/api.py", line 142, in wrapper
2019-04-05 05:17:36.104393 | ubuntu-xenial | return f(*args, **kwargs)
2019-04-05 05:17:36.104500 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/neutron_lib/db/api.py", line 183, in wrapped
2019-04-05 05:17:36.104555 | ubuntu-xenial | LOG.debug("Retry wrapper got retriable exception: %s", e)
2019-04-05 05:17:36.104664 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2019-04-05 05:17:36.104705 | ubuntu-xenial | self.force_reraise()
2019-04-05 05:17:36.104819 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2019-04-05 05:17:36.104867 | ubuntu-xenial | six.reraise(self.type_, self.value, self.tb)
2019-04-05 05:17:36.104981 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/six.py", line 693, in reraise
2019-04-05 05:17:36.105019 | ubuntu-xenial | raise value
2019-04-05 05:17:36.105128 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/neutron_lib/db/api.py", line 179, in wrapped
2019-04-05 05:17:36.105170 | ubuntu-xenial | return f(*dup_args, **dup_kwargs)
2019-04-05 05:17:36.105287 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/neutron/plugins/ml2/plugin.py", line 1052, in update_network
2019-04-05 05:17:36.105331 | ubuntu-xenial | context, original_network, net_data)
2019-04-05 05:17:36.105480 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/networking-midonet/.tox/py35/lib/python3.5/site-packages/neutron/plugins/ml2/plugin.py", line 850, in _update_provider_network_attributes
2019-04-05 05:17:36.105547 | ubuntu-xenial | net_data.get(attr) != network[attr]):
2019-04-05 05:17:36.105592 | ubuntu-xenial | KeyError: 'provider:network_type'

tags: added: gate-failure
Changed in networking-midonet:
importance: Undecided → Critical
YAMAMOTO Takashi (yamamoto) wrote :
Changed in neutron:
status: New → Confirmed
importance: Undecided → Critical

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

Changed in neutron:
assignee: nobody → YAMAMOTO Takashi (yamamoto)
status: Confirmed → In Progress
Changed in networking-midonet:
assignee: nobody → YAMAMOTO Takashi (yamamoto)
status: New → In Progress

Reviewed: https://review.openstack.org/650599
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=c760a83a5d9111e48333e1aff5f6dd043cb9e68f
Submitter: Zuul
Branch: master

commit c760a83a5d9111e48333e1aff5f6dd043cb9e68f
Author: YAMAMOTO Takashi <email address hidden>
Date: Mon Apr 8 09:35:43 2019 +0900

    Fix a KeyError

    Fix a KeyError introduced by the recent change. [1]
    The unit tests are taken from the PS1 of the original patch. [2]

    Note that super's get_network doesn't fill in provider network
    attributes. The ml2 version does it by explicitly calling
    self.type_manager.extend_network_dict_provider.

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

    Closes-Bug: #1823294
    Co-Authored-By: Harald Jensås <email address hidden>
    Change-Id: I17b4df558cc7fa370a5f930746030cead6a895d9

Changed in neutron:
status: In Progress → Fix Released

Reviewed: https://review.openstack.org/651021
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=0ce7f6e1b625f50756b821c7067940f2aee0930d
Submitter: Zuul
Branch: stable/stein

commit 0ce7f6e1b625f50756b821c7067940f2aee0930d
Author: YAMAMOTO Takashi <email address hidden>
Date: Mon Apr 8 09:35:43 2019 +0900

    Fix a KeyError

    Fix a KeyError introduced by the recent change. [1]
    The unit tests are taken from the PS1 of the original patch. [2]

    Note that super's get_network doesn't fill in provider network
    attributes. The ml2 version does it by explicitly calling
    self.type_manager.extend_network_dict_provider.

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

    Closes-Bug: #1823294
    Co-Authored-By: Harald Jensås <email address hidden>
    Change-Id: I17b4df558cc7fa370a5f930746030cead6a895d9
    (cherry picked from commit c760a83a5d9111e48333e1aff5f6dd043cb9e68f)

tags: added: in-stable-stein

This issue was fixed in the openstack/neutron 14.0.1 release.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers