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

2015-09-30 Thread masoom alam
This patch: https://review.openstack.org/#/c/218551/

On Tue, Sep 29, 2015 at 11:55 PM, masoom alam 
wrote:

> After I applied the patch set 4 manually, I am still getting the following
> exception:
>
> DEBUG: urllib3.util.retry Converted retries value: 0 -> Retry(total=0,
> connect=None, read=None, redirect=0)
> DEBUG: keystoneclient.session RESP:
> DEBUG: neutronclient.v2_0.client Error message: {"NeutronError":
> {"message": "Request Failed: internal server error while processing your
> request.", "type": "HTTPInternalServerError", "detail": ""}}
> ERROR: neutronclient.shell Request Failed: internal server error while
> processing your request.
> Traceback (most recent call last):
>   File "/usr/local/lib/python2.7/dist-packages/neutronclient/shell.py",
> line 766, in run_subcommand
> return run_command(cmd, cmd_parser, sub_argv)
>   File "/usr/local/lib/python2.7/dist-packages/neutronclient/shell.py",
> line 101, in run_command
> return cmd.run(known_args)
>   File
> "/usr/local/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py",
> line 535, in run
> obj_updater(_id, body)
>   File
> "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line
> 102, in with_params
> ret = self.function(instance, *args, **kwargs)
>   File
> "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line
> 549, in update_port
> return self.put(self.port_path % (port), body=body)
>   File
> "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line
> 302, in put
> headers=headers, params=params)
>   File
> "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line
> 270, in retry_request
> headers=headers, params=params)
>   File
> "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line
> 211, in do_request
> self._handle_fault_response(status_code, replybody)
>   File
> "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line
> 185, in _handle_fault_response
> exception_handler_v20(status_code, des_error_body)
>   File
> "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line
> 70, in exception_handler_v20
> status_code=status_code)
> InternalServerError: Request Failed: internal server error while
> processing your request.
>
>
> On Mon, Sep 28, 2015 at 9:09 AM, Akihiro Motoki  wrote:
>
>> Are you reading our reply comments?
>> At the moment, there is no way to set allowed-address-pairs to an empty
>> list by using neutron CLI.
>> When action=clear is passed, type=xxx, list=true and specified values are
>> ignored and None is sent to the server.
>> Thus you cannot set allowed-address-pairs to [] with neutron port-update
>> CLI command.
>>
>>
>> 2015-09-28 22:54 GMT+09:00 masoom alam :
>>
>>> This is even not working:
>>>
>>> root@openstack-latest-kilo-28-09-2015-masoom:/opt/stack/devstack/accrc/admin#
>>> neutron port-update e5b05961-e5d0-481b-bbd0-2ce4bbd9ea64
>>>  --allowed-address-pairs type=list [] action=clear
>>> AllowedAddressPair must contain ip_address
>>>
>>>
>>> root@openstack-latest-kilo-28-09-2015-masoom:/opt/stack/devstack/accrc/admin#
>>> neutron port-update e5b05961-e5d0-481b-bbd0-2ce4bbd9ea64
>>>  --allowed-address-pairs type=list {} action=clear
>>> AllowedAddressPair must contain ip_address
>>>
>>>
>>>
>>>
>>> On Mon, Sep 28, 2015 at 4:31 AM, masoom alam 
>>> wrote:
>>>
 Please help, its not working:

 root@openstack-latest-kilo-28-09-2015-masoom:/opt/stack/devstack#
 neutron port-show 2d1bfe12-7db6-4665-9c98-6b9b8a043af9

 +---+-+
 | Field | Value
   |

 +---+-+
 | admin_state_up| True
|
 | allowed_address_pairs | {"ip_address": "10.0.0.201", "mac_address":
 "fa:16:3e:69:e9:ef"}|
 | binding:host_id   | openstack-latest-kilo-28-09-2015-masoom
   |
 | binding:profile   | {}
|
 | binding:vif_details   | {"port_filter": true, "ovs_hybrid_plug":
 true}  |
 | binding:vif_type  | ovs
   |
 | binding:vnic_type | normal
|
 | device_id | d44b9025-f12b-4f85-8b7b-57cc1138acdd
|
 | device_owner  | compute:nova
|
 | extra_dhcp_opts   |
   |
 | fixed_ips | {"subnet_id":
 

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

2015-09-30 Thread masoom alam
After I applied the patch set 4 manually, I am still getting the following
exception:

DEBUG: urllib3.util.retry Converted retries value: 0 -> Retry(total=0,
connect=None, read=None, redirect=0)
DEBUG: keystoneclient.session RESP:
DEBUG: neutronclient.v2_0.client Error message: {"NeutronError":
{"message": "Request Failed: internal server error while processing your
request.", "type": "HTTPInternalServerError", "detail": ""}}
ERROR: neutronclient.shell Request Failed: internal server error while
processing your request.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/shell.py",
line 766, in run_subcommand
return run_command(cmd, cmd_parser, sub_argv)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/shell.py",
line 101, in run_command
return cmd.run(known_args)
  File
"/usr/local/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py",
line 535, in run
obj_updater(_id, body)
  File
"/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line
102, in with_params
ret = self.function(instance, *args, **kwargs)
  File
"/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line
549, in update_port
return self.put(self.port_path % (port), body=body)
  File
"/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line
302, in put
headers=headers, params=params)
  File
"/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line
270, in retry_request
headers=headers, params=params)
  File
"/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line
211, in do_request
self._handle_fault_response(status_code, replybody)
  File
"/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line
185, in _handle_fault_response
exception_handler_v20(status_code, des_error_body)
  File
"/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line
70, in exception_handler_v20
status_code=status_code)
InternalServerError: Request Failed: internal server error while processing
your request.


On Mon, Sep 28, 2015 at 9:09 AM, Akihiro Motoki  wrote:

> Are you reading our reply comments?
> At the moment, there is no way to set allowed-address-pairs to an empty
> list by using neutron CLI.
> When action=clear is passed, type=xxx, list=true and specified values are
> ignored and None is sent to the server.
> Thus you cannot set allowed-address-pairs to [] with neutron port-update
> CLI command.
>
>
> 2015-09-28 22:54 GMT+09:00 masoom alam :
>
>> This is even not working:
>>
>> root@openstack-latest-kilo-28-09-2015-masoom:/opt/stack/devstack/accrc/admin#
>> neutron port-update e5b05961-e5d0-481b-bbd0-2ce4bbd9ea64
>>  --allowed-address-pairs type=list [] action=clear
>> AllowedAddressPair must contain ip_address
>>
>>
>> root@openstack-latest-kilo-28-09-2015-masoom:/opt/stack/devstack/accrc/admin#
>> neutron port-update e5b05961-e5d0-481b-bbd0-2ce4bbd9ea64
>>  --allowed-address-pairs type=list {} action=clear
>> AllowedAddressPair must contain ip_address
>>
>>
>>
>>
>> On Mon, Sep 28, 2015 at 4:31 AM, masoom alam 
>> wrote:
>>
>>> Please help, its not working:
>>>
>>> root@openstack-latest-kilo-28-09-2015-masoom:/opt/stack/devstack#
>>> neutron port-show 2d1bfe12-7db6-4665-9c98-6b9b8a043af9
>>>
>>> +---+-+
>>> | Field | Value
>>>   |
>>>
>>> +---+-+
>>> | admin_state_up| True
>>>  |
>>> | allowed_address_pairs | {"ip_address": "10.0.0.201", "mac_address":
>>> "fa:16:3e:69:e9:ef"}|
>>> | binding:host_id   | openstack-latest-kilo-28-09-2015-masoom
>>>   |
>>> | binding:profile   | {}
>>>  |
>>> | binding:vif_details   | {"port_filter": true, "ovs_hybrid_plug": true}
>>>  |
>>> | binding:vif_type  | ovs
>>>   |
>>> | binding:vnic_type | normal
>>>  |
>>> | device_id | d44b9025-f12b-4f85-8b7b-57cc1138acdd
>>>  |
>>> | device_owner  | compute:nova
>>>  |
>>> | extra_dhcp_opts   |
>>>   |
>>> | fixed_ips | {"subnet_id":
>>> "bbb6726a-937f-4e0d-8ac2-f82f84272b1f", "ip_address": "10.0.0.3"} |
>>> | id| 2d1bfe12-7db6-4665-9c98-6b9b8a043af9
>>>  |
>>> | mac_address   | fa:16:3e:69:e9:ef
>>>   |
>>> | name  |
>>>   |
>>> | 

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

2015-09-28 Thread masoom alam
This is even not working:

root@openstack-latest-kilo-28-09-2015-masoom:/opt/stack/devstack/accrc/admin#
neutron port-update e5b05961-e5d0-481b-bbd0-2ce4bbd9ea64
 --allowed-address-pairs type=list [] action=clear
AllowedAddressPair must contain ip_address


root@openstack-latest-kilo-28-09-2015-masoom:/opt/stack/devstack/accrc/admin#
neutron port-update e5b05961-e5d0-481b-bbd0-2ce4bbd9ea64
 --allowed-address-pairs type=list {} action=clear
AllowedAddressPair must contain ip_address




On Mon, Sep 28, 2015 at 4:31 AM, masoom alam 
wrote:

> Please help, its not working:
>
> root@openstack-latest-kilo-28-09-2015-masoom:/opt/stack/devstack# neutron
> port-show 2d1bfe12-7db6-4665-9c98-6b9b8a043af9
>
> +---+-+
> | Field | Value
> |
>
> +---+-+
> | admin_state_up| True
>|
> | allowed_address_pairs | {"ip_address": "10.0.0.201", "mac_address":
> "fa:16:3e:69:e9:ef"}|
> | binding:host_id   | openstack-latest-kilo-28-09-2015-masoom
> |
> | binding:profile   | {}
>|
> | binding:vif_details   | {"port_filter": true, "ovs_hybrid_plug": true}
>|
> | binding:vif_type  | ovs
> |
> | binding:vnic_type | normal
>|
> | device_id | d44b9025-f12b-4f85-8b7b-57cc1138acdd
>|
> | device_owner  | compute:nova
>|
> | extra_dhcp_opts   |
> |
> | fixed_ips | {"subnet_id":
> "bbb6726a-937f-4e0d-8ac2-f82f84272b1f", "ip_address": "10.0.0.3"} |
> | id| 2d1bfe12-7db6-4665-9c98-6b9b8a043af9
>|
> | mac_address   | fa:16:3e:69:e9:ef
> |
> | name  |
> |
> | network_id| ae1b7e34-9f6c-4c8f-bf08-99a1e390034c
>|
> | security_groups   | 8adda6d7-1b3e-4047-a130-a57609a0bd68
>|
> | status| ACTIVE
>|
> | tenant_id | 09945e673b7a4ab183afb166735b4fa7
>|
>
> +---+-+
>
> root@openstack-latest-kilo-28-09-2015-masoom:/opt/stack/devstack# neutron
> port-update 2d1bfe12-7db6-4665-9c98-6b9b8a043af9  --allowed-address-pairs
> [] action=clear
> AllowedAddressPair must contain ip_address
>
>
> root@openstack-latest-kilo-28-09-2015-masoom:/opt/stack/devstack# neutron
> port-update 2d1bfe12-7db6-4665-9c98-6b9b8a043af9  --allowed-address-pairs
> [10.0.0.201] action=clear
> The number of allowed address pair exceeds the maximum 10.
>
> root@openstack-latest-kilo-28-09-2015-masoom:/opt/stack/devstack# neutron
> port-update 2d1bfe12-7db6-4665-9c98-6b9b8a043af9  --allowed-address-pairs
>  action=clear
> Request Failed: internal server error while processing your request.
>
>
>
>
> On Mon, Sep 28, 2015 at 1:57 AM, Akihiro Motoki  wrote:
>
>> As already mentioned, we need to pass [] (an empty list) rather than None
>> as allowed_address_pairs.
>>
>> At the moment it is not supported in Neutron CLI.
>> This review https://review.openstack.org/#/c/218551/ is trying to fix
>> this problem.
>>
>> Akihiro
>>
>>
>> 2015-09-28 15:51 GMT+09:00 shihanzhang :
>>
>>> I don't see any exception using bellow command
>>>
>>> root@szxbz:/opt/stack/neutron# neutron port-update
>>> 3748649e-243d-4408-a5f1-8122f1fbf501 --allowed-address-pairs action=clear
>>> Allowed address pairs must be a list.
>>>
>>>
>>>
>>> At 2015-09-28 14:36:44, "masoom alam"  wrote:
>>>
>>> stable KILO
>>>
>>> shall I checkout the latest code are you saying this...Also can you
>>> please confirm if you have tested this thing at your endand there was
>>> no problem...
>>>
>>>
>>> Thanks
>>>
>>> On Sun, Sep 27, 2015 at 11:29 PM, shihanzhang 
>>> wrote:
>>>
 which branch do you use?  there is not this problem in master branch.





 At 2015-09-28 13:43:05, "masoom alam" 
 wrote:

 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

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

2015-09-28 Thread Akihiro Motoki
Are you reading our reply comments?
At the moment, there is no way to set allowed-address-pairs to an empty
list by using neutron CLI.
When action=clear is passed, type=xxx, list=true and specified values are
ignored and None is sent to the server.
Thus you cannot set allowed-address-pairs to [] with neutron port-update
CLI command.


2015-09-28 22:54 GMT+09:00 masoom alam :

> This is even not working:
>
> root@openstack-latest-kilo-28-09-2015-masoom:/opt/stack/devstack/accrc/admin#
> neutron port-update e5b05961-e5d0-481b-bbd0-2ce4bbd9ea64
>  --allowed-address-pairs type=list [] action=clear
> AllowedAddressPair must contain ip_address
>
>
> root@openstack-latest-kilo-28-09-2015-masoom:/opt/stack/devstack/accrc/admin#
> neutron port-update e5b05961-e5d0-481b-bbd0-2ce4bbd9ea64
>  --allowed-address-pairs type=list {} action=clear
> AllowedAddressPair must contain ip_address
>
>
>
>
> On Mon, Sep 28, 2015 at 4:31 AM, masoom alam 
> wrote:
>
>> Please help, its not working:
>>
>> root@openstack-latest-kilo-28-09-2015-masoom:/opt/stack/devstack#
>> neutron port-show 2d1bfe12-7db6-4665-9c98-6b9b8a043af9
>>
>> +---+-+
>> | Field | Value
>> |
>>
>> +---+-+
>> | admin_state_up| True
>>  |
>> | allowed_address_pairs | {"ip_address": "10.0.0.201", "mac_address":
>> "fa:16:3e:69:e9:ef"}|
>> | binding:host_id   | openstack-latest-kilo-28-09-2015-masoom
>> |
>> | binding:profile   | {}
>>  |
>> | binding:vif_details   | {"port_filter": true, "ovs_hybrid_plug": true}
>>  |
>> | binding:vif_type  | ovs
>> |
>> | binding:vnic_type | normal
>>  |
>> | device_id | d44b9025-f12b-4f85-8b7b-57cc1138acdd
>>  |
>> | device_owner  | compute:nova
>>  |
>> | extra_dhcp_opts   |
>> |
>> | fixed_ips | {"subnet_id":
>> "bbb6726a-937f-4e0d-8ac2-f82f84272b1f", "ip_address": "10.0.0.3"} |
>> | id| 2d1bfe12-7db6-4665-9c98-6b9b8a043af9
>>  |
>> | mac_address   | fa:16:3e:69:e9:ef
>> |
>> | name  |
>> |
>> | network_id| ae1b7e34-9f6c-4c8f-bf08-99a1e390034c
>>  |
>> | security_groups   | 8adda6d7-1b3e-4047-a130-a57609a0bd68
>>  |
>> | status| ACTIVE
>>  |
>> | tenant_id | 09945e673b7a4ab183afb166735b4fa7
>>  |
>>
>> +---+-+
>>
>> root@openstack-latest-kilo-28-09-2015-masoom:/opt/stack/devstack#
>> neutron port-update 2d1bfe12-7db6-4665-9c98-6b9b8a043af9
>>  --allowed-address-pairs [] action=clear
>> AllowedAddressPair must contain ip_address
>>
>>
>> root@openstack-latest-kilo-28-09-2015-masoom:/opt/stack/devstack#
>> neutron port-update 2d1bfe12-7db6-4665-9c98-6b9b8a043af9
>>  --allowed-address-pairs [10.0.0.201] action=clear
>> The number of allowed address pair exceeds the maximum 10.
>>
>> root@openstack-latest-kilo-28-09-2015-masoom:/opt/stack/devstack#
>> neutron port-update 2d1bfe12-7db6-4665-9c98-6b9b8a043af9
>>  --allowed-address-pairs  action=clear
>> Request Failed: internal server error while processing your request.
>>
>>
>>
>>
>> On Mon, Sep 28, 2015 at 1:57 AM, Akihiro Motoki 
>> wrote:
>>
>>> As already mentioned, we need to pass [] (an empty list) rather than
>>> None as allowed_address_pairs.
>>>
>>> At the moment it is not supported in Neutron CLI.
>>> This review https://review.openstack.org/#/c/218551/ is trying to fix
>>> this problem.
>>>
>>> Akihiro
>>>
>>>
>>> 2015-09-28 15:51 GMT+09:00 shihanzhang :
>>>
 I don't see any exception using bellow command

 root@szxbz:/opt/stack/neutron# neutron port-update
 3748649e-243d-4408-a5f1-8122f1fbf501 --allowed-address-pairs action=clear
 Allowed address pairs must be a list.



 At 2015-09-28 14:36:44, "masoom alam" 
 wrote:

 stable KILO

 shall I checkout the latest code are you saying this...Also can you
 please confirm if you have tested this thing at your endand there was
 no problem...


 Thanks

 On Sun, Sep 27, 2015 at 11:29 PM, shihanzhang 

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

2015-09-28 Thread masoom alam
stable KILO

shall I checkout the latest code are you saying this...Also can you please
confirm if you have tested this thing at your endand there was no
problem...


Thanks

On Sun, Sep 27, 2015 at 11:29 PM, shihanzhang  wrote:

> which branch do you use?  there is not this problem in master branch.
>
>
>
>
>
> At 2015-09-28 13:43:05, "masoom alam"  wrote:
>
> 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 Icehouseany
> pointers...?
>
> Thanks
>
>
>
>
> 网易考拉iPhone6s玫瑰金5288元,现货不加价
> 
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2015-09-28 Thread shihanzhang
which branch do you use?  there is not this problem in master branch.





At 2015-09-28 13:43:05, "masoom alam"  wrote:

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 Icehouseany pointers...?


Thanks



__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2015-09-28 Thread shihanzhang
I don't see any exception using bellow command


root@szxbz:/opt/stack/neutron# neutron port-update 
3748649e-243d-4408-a5f1-8122f1fbf501 --allowed-address-pairs action=clear
Allowed address pairs must be a list.




At 2015-09-28 14:36:44, "masoom alam"  wrote:

stable KILO


shall I checkout the latest code are you saying this...Also can you please 
confirm if you have tested this thing at your endand there was no problem...




Thanks


On Sun, Sep 27, 2015 at 11:29 PM, shihanzhang  wrote:

which branch do you use?  there is not this problem in master branch.






At 2015-09-28 13:43:05, "masoom alam"  wrote:

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 Icehouseany pointers...?


Thanks








网易考拉iPhone6s玫瑰金5288元,现货不加价


__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2015-09-28 Thread masoom alam
Please help, its not working:

root@openstack-latest-kilo-28-09-2015-masoom:/opt/stack/devstack# neutron
port-show 2d1bfe12-7db6-4665-9c98-6b9b8a043af9
+---+-+
| Field | Value
  |
+---+-+
| admin_state_up| True
   |
| allowed_address_pairs | {"ip_address": "10.0.0.201", "mac_address":
"fa:16:3e:69:e9:ef"}|
| binding:host_id   | openstack-latest-kilo-28-09-2015-masoom
  |
| binding:profile   | {}
   |
| binding:vif_details   | {"port_filter": true, "ovs_hybrid_plug": true}
   |
| binding:vif_type  | ovs
  |
| binding:vnic_type | normal
   |
| device_id | d44b9025-f12b-4f85-8b7b-57cc1138acdd
   |
| device_owner  | compute:nova
   |
| extra_dhcp_opts   |
  |
| fixed_ips | {"subnet_id":
"bbb6726a-937f-4e0d-8ac2-f82f84272b1f", "ip_address": "10.0.0.3"} |
| id| 2d1bfe12-7db6-4665-9c98-6b9b8a043af9
   |
| mac_address   | fa:16:3e:69:e9:ef
  |
| name  |
  |
| network_id| ae1b7e34-9f6c-4c8f-bf08-99a1e390034c
   |
| security_groups   | 8adda6d7-1b3e-4047-a130-a57609a0bd68
   |
| status| ACTIVE
   |
| tenant_id | 09945e673b7a4ab183afb166735b4fa7
   |
+---+-+

root@openstack-latest-kilo-28-09-2015-masoom:/opt/stack/devstack# neutron
port-update 2d1bfe12-7db6-4665-9c98-6b9b8a043af9  --allowed-address-pairs
[] action=clear
AllowedAddressPair must contain ip_address


root@openstack-latest-kilo-28-09-2015-masoom:/opt/stack/devstack# neutron
port-update 2d1bfe12-7db6-4665-9c98-6b9b8a043af9  --allowed-address-pairs
[10.0.0.201] action=clear
The number of allowed address pair exceeds the maximum 10.

root@openstack-latest-kilo-28-09-2015-masoom:/opt/stack/devstack# neutron
port-update 2d1bfe12-7db6-4665-9c98-6b9b8a043af9  --allowed-address-pairs
 action=clear
Request Failed: internal server error while processing your request.




On Mon, Sep 28, 2015 at 1:57 AM, Akihiro Motoki  wrote:

> As already mentioned, we need to pass [] (an empty list) rather than None
> as allowed_address_pairs.
>
> At the moment it is not supported in Neutron CLI.
> This review https://review.openstack.org/#/c/218551/ is trying to fix
> this problem.
>
> Akihiro
>
>
> 2015-09-28 15:51 GMT+09:00 shihanzhang :
>
>> I don't see any exception using bellow command
>>
>> root@szxbz:/opt/stack/neutron# neutron port-update
>> 3748649e-243d-4408-a5f1-8122f1fbf501 --allowed-address-pairs action=clear
>> Allowed address pairs must be a list.
>>
>>
>>
>> At 2015-09-28 14:36:44, "masoom alam"  wrote:
>>
>> stable KILO
>>
>> shall I checkout the latest code are you saying this...Also can you
>> please confirm if you have tested this thing at your endand there was
>> no problem...
>>
>>
>> Thanks
>>
>> On Sun, Sep 27, 2015 at 11:29 PM, shihanzhang 
>> wrote:
>>
>>> which branch do you use?  there is not this problem in master branch.
>>>
>>>
>>>
>>>
>>>
>>> At 2015-09-28 13:43:05, "masoom alam"  wrote:
>>>
>>> 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 

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

2015-09-28 Thread Akihiro Motoki
As already mentioned, we need to pass [] (an empty list) rather than None
as allowed_address_pairs.

At the moment it is not supported in Neutron CLI.
This review https://review.openstack.org/#/c/218551/ is trying to fix this
problem.

Akihiro


2015-09-28 15:51 GMT+09:00 shihanzhang :

> I don't see any exception using bellow command
>
> root@szxbz:/opt/stack/neutron# neutron port-update
> 3748649e-243d-4408-a5f1-8122f1fbf501 --allowed-address-pairs action=clear
> Allowed address pairs must be a list.
>
>
>
> At 2015-09-28 14:36:44, "masoom alam"  wrote:
>
> stable KILO
>
> shall I checkout the latest code are you saying this...Also can you please
> confirm if you have tested this thing at your endand there was no
> problem...
>
>
> Thanks
>
> On Sun, Sep 27, 2015 at 11:29 PM, shihanzhang 
> wrote:
>
>> which branch do you use?  there is not this problem in master branch.
>>
>>
>>
>>
>>
>> At 2015-09-28 13:43:05, "masoom alam"  wrote:
>>
>> 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 Icehouseany
>> pointers...?
>>
>> Thanks
>>
>>
>>
>>
>> 网易考拉iPhone6s玫瑰金5288元,现货不加价
>> 
>>
>> __
>> OpenStack Development Mailing List (not for usage questions)
>> Unsubscribe:
>> openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>>
>
>
> 网易考拉iPhone6s玫瑰金5288元,现货不加价
> 
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2015-09-27 Thread masoom alam
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 Icehouseany
pointers...?

Thanks
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev