yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #57122
[Bug 1627976] Re: vlan-trunk: add_subports happen KeyError
This is not a trunk issue per se. Any malformed request to the API is
not tolerated well by Neutron. See [1] for more details.
[1] https://review.openstack.org/#/c/357500/1//COMMIT_MSG
** Changed in: neutron
Status: Confirmed => Won't Fix
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1627976
Title:
vlan-trunk: add_subports happen KeyError
Status in neutron:
Won't Fix
Bug description:
reproduce steps:
1. create a trunk
2. add a subport to this trunk with wrong body like
{
"sub_port":{
"name":"my-trunk",
"port_id":"4cd8f65c-f1b1-4186-a627-6a6fdefd916e"
}
}
the error log is below:
Traceback (most recent call last):
File "/opt/stack/neutron/neutron/api/v2/resource.py", line 79, in resource
result = method(request=request, **args)
File "/opt/stack/neutron/neutron/db/api.py", line 88, in wrapped
setattr(e, '_RETRY_EXCEEDED', True)
File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
self.force_reraise()
File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
six.reraise(self.type_, self.value, self.tb)
File "/opt/stack/neutron/neutron/db/api.py", line 84, in wrapped
return f(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 151, in wrapper
ectxt.value = e.inner_exc
File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
self.force_reraise()
File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
six.reraise(self.type_, self.value, self.tb)
File "/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 139, in wrapper
return f(*args, **kwargs)
File "/opt/stack/neutron/neutron/db/api.py", line 124, in wrapped
traceback.format_exc())
File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
self.force_reraise()
File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
six.reraise(self.type_, self.value, self.tb)
File "/opt/stack/neutron/neutron/db/api.py", line 119, in wrapped
return f(*dup_args, **dup_kwargs)
File "/opt/stack/neutron/neutron/api/v2/base.py", line 250, in _handle_action
ret_value = getattr(self._plugin, name)(*arg_list, **kwargs)
File "/opt/stack/neutron/neutron/db/db_base_plugin_common.py", line 40, in inner
result = f(*args, **kwargs)
File "/opt/stack/neutron/neutron/services/trunk/plugin.py", line 281, in add_subports
subports = subports['sub_ports']
KeyError: 'sub_ports'
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1627976/+subscriptions
References