[openstack-dev] --allowed-address-pairs fails...
masoom alam
masoom.alam at wanclouds.net
Mon Jan 25 07:09:04 UTC 2016
*Hi every one, *
*When trying to execute this command:*
* neutron --debug port-update 51ae49c8-d360-488e-badb-7bee31585471
--allowed-address-pairs action=clear*
*I am getting the following error:*
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/neutronclient/shell.py", line 819,
in run_subcommand
return run_command(cmd, cmd_parser, sub_argv)
File "/usr/lib/python2.7/site-packages/neutronclient/shell.py", line 105,
in run_command
return cmd.run(known_args)
File
"/usr/lib/python2.7/site-packages/neutronclient/neutron/v2_0/__init__.py",
line 558, in run
obj_updater(_id, body)
File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py",
line 100, in with_params
ret = self.function(instance, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py",
line 530, in update_port
return self.put(self.port_path % (port), body=body)
File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py",
line 275, in put
headers=headers, params=params)
File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py",
line 243, in retry_request
headers=headers, params=params)
File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py",
line 206, in do_request
self._handle_fault_response(status_code, replybody)
File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py",
line 182, in _handle_fault_response
exception_handler_v20(status_code, des_error_body)
File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py",
line 75, in exception_handler_v20
message=error_dict)
NeutronClientException: Request Failed: internal server error while
processing your request.
*Within server.log, I am getting the following clue:*
2016-01-25 05:57:44.772 28288 INFO urllib3.connectionpool [-] Starting new
HTTP connection (1): 10.114.198.200
2016-01-25 05:57:44.784 28288 INFO keystoneclient.middleware.auth_token [-]
Auth Token confirmed use of v3.0 apis
2016-01-25 05:57:44.785 28288 INFO urllib3.connectionpool [-] Starting new
HTTP connection (1): 10.114.198.200
2016-01-25 05:57:44.900 28288 INFO urllib3.connectionpool [-] Starting new
HTTP connection (1): 10.114.198.200
2016-01-25 05:57:45.137 28288 INFO neutron.openstack.common.rpc.common
[req-7df54e06-b479-4d11-8504-cd77709785fb None] Connected to AMQP server on
svl9-csl-b-rabbitmq-001:5672
2016-01-25 05:57:45.148 28288 ERROR neutron.api.v2.resource
[req-7df54e06-b479-4d11-8504-cd77709785fb None] update failed
2016-01-25 05:57:45.148 28288 TRACE neutron.api.v2.resource Traceback (most
recent call last):
2016-01-25 05:57:45.148 28288 TRACE neutron.api.v2.resource File
"/usr/lib/python2.7/site-packages/neutron/api/v2/resource.py", line 87, in
resource
2016-01-25 05:57:45.148 28288 TRACE neutron.api.v2.resource result =
method(request=request, **args)
2016-01-25 05:57:45.148 28288 TRACE neutron.api.v2.resource File
"/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 508, in
update
2016-01-25 05:57:45.148 28288 TRACE neutron.api.v2.resource
allow_bulk=self._allow_bulk)
2016-01-25 05:57:45.148 28288 TRACE neutron.api.v2.resource File
"/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 647, in
prepare_request_body
2016-01-25 05:57:45.148 28288 TRACE neutron.api.v2.resource
attr_vals['validate'][rule])
2016-01-25 05:57:45.148 28288 TRACE neutron.api.v2.resource File
"/usr/lib/python2.7/site-packages/neutron/extensions/allowedaddresspairs.py",
line 55, in _validate_allowed_address_pairs
2016-01-25 05:57:45.148 28288 TRACE neutron.api.v2.resource if
len(address_pairs) > cfg.CONF.max_allowed_address_pair:
2016-01-25 05:57:45.148 28288 TRACE neutron.api.v2.resource TypeError:
object of type 'NoneType' has no len()
2016-01-25 05:57:45.148 28288 TRACE neutron.api.v2.resource
2016-01-25 05:57:45.163 28288 INFO neutron.wsgi
[req-7df54e06-b479-4d11-8504-cd77709785fb None] 10.114.196.9,10.114.198.235
- - [25/Jan/2016 05:57:45] "PUT
/v2.0/ports/51ae49c8-d360-488e-badb-7bee31585471.json HTTP/1.1" 500 315
0.400917
*There is a patch which deals with the situation mentioned here:*
https://review.openstack.org/#/c/218551/
*But our NeutronClient is already patched with the aforementioned
patch....any clue...*
*Thanks*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160124/f1d3c808/attachment.html>
More information about the OpenStack-dev
mailing list