[openstack-dev] KILO: neutron port-update --allowed-address-pairs action=clear throws an exception

masoom alam masoom.alam at wanclouds.net
Mon Sep 28 05:43:05 UTC 2015


Can anybody highlight why the following command is throwing an exception:

*Command#* neutron port-update db3113df-14a3-4d6d-a3c5-d0517a134fc3
--allowed-address-pairs action=clear

*Error: * 2015-09-27 21:44:32.144 ERROR neutron.api.v2.resource
[req-b1cbe1f2-ba21-4337-a714-f337c54ee9fc admin None] update failed
2015-09-27 21:44:32.144 TRACE neutron.api.v2.resource Traceback (most
recent call last):
2015-09-27 21:44:32.144 TRACE neutron.api.v2.resource   File
"/opt/stack/neutron/neutron/api/v2/resource.py", line 83, in resource
2015-09-27 21:44:32.144 TRACE neutron.api.v2.resource     result =
method(request=request, **args)
2015-09-27 21:44:32.144 TRACE neutron.api.v2.resource   File
"/opt/stack/neutron/neutron/api/v2/base.py", line 515, in update
2015-09-27 21:44:32.144 TRACE neutron.api.v2.resource
allow_bulk=self._allow_bulk)
2015-09-27 21:44:32.144 TRACE neutron.api.v2.resource   File
"/opt/stack/neutron/neutron/api/v2/base.py", line 652, in
prepare_request_body
2015-09-27 21:44:32.144 TRACE neutron.api.v2.resource
attr_vals['validate'][rule])
2015-09-27 21:44:32.144 TRACE neutron.api.v2.resource   File
"/opt/stack/neutron/neutron/extensions/allowedaddresspairs.py", line 51, in
_validate_allowed_address_pairs
2015-09-27 21:44:32.144 TRACE neutron.api.v2.resource     if
len(address_pairs) > cfg.CONF.max_allowed_address_pair:
2015-09-27 21:44:32.144 TRACE neutron.api.v2.resource TypeError: object of
type 'NoneType' has no len()
2015-09-27 21:44:32.144 TRACE neutron.api.v2.resource



There is a similar bug filed at Lauchpad for Havana
https://bugs.launchpad.net/juniperopenstack/+bug/1351979 .However there is
no fix and the work around  - using curl, mentioned on the bug is also not
working for KILO...it was working for havana and Icehouse....any
pointers...?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150927/846e9b3b/attachment.html>


More information about the OpenStack-dev mailing list