<div dir="ltr">Please help, its not working....:<div><br></div><div><div>root@openstack-latest-kilo-28-09-2015-masoom:/opt/stack/devstack# neutron port-show 2d1bfe12-7db6-4665-9c98-6b9b8a043af9</div><div>+-----------------------+---------------------------------------------------------------------------------+</div><div>| Field | Value |</div><div>+-----------------------+---------------------------------------------------------------------------------+</div><div>| admin_state_up | True |</div><div>| allowed_address_pairs | {"ip_address": "10.0.0.201", "mac_address": "fa:16:3e:69:e9:ef"} |</div><div>| binding:host_id | openstack-latest-kilo-28-09-2015-masoom |</div><div>| binding:profile | {} |</div><div>| binding:vif_details | {"port_filter": true, "ovs_hybrid_plug": true} |</div><div>| binding:vif_type | ovs |</div><div>| binding:vnic_type | normal |</div><div>| device_id | d44b9025-f12b-4f85-8b7b-57cc1138acdd |</div><div>| device_owner | compute:nova |</div><div>| extra_dhcp_opts | |</div><div>| fixed_ips | {"subnet_id": "bbb6726a-937f-4e0d-8ac2-f82f84272b1f", "ip_address": "10.0.0.3"} |</div><div>| id | 2d1bfe12-7db6-4665-9c98-6b9b8a043af9 |</div><div>| mac_address | fa:16:3e:69:e9:ef |</div><div>| name | |</div><div>| network_id | ae1b7e34-9f6c-4c8f-bf08-99a1e390034c |</div><div>| security_groups | 8adda6d7-1b3e-4047-a130-a57609a0bd68 |</div><div>| status | ACTIVE |</div><div>| tenant_id | 09945e673b7a4ab183afb166735b4fa7 |</div><div>+-----------------------+---------------------------------------------------------------------------------+</div><div><br></div><div>root@openstack-latest-kilo-28-09-2015-masoom:/opt/stack/devstack# neutron port-update 2d1bfe12-7db6-4665-9c98-6b9b8a043af9 --allowed-address-pairs [] action=clear</div><div>AllowedAddressPair must contain ip_address</div><div><br></div><div><br></div><div>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</div><div>The number of allowed address pair exceeds the maximum 10.</div><div><br></div><div>root@openstack-latest-kilo-28-09-2015-masoom:/opt/stack/devstack# neutron port-update 2d1bfe12-7db6-4665-9c98-6b9b8a043af9 --allowed-address-pairs action=clear</div><div>Request Failed: internal server error while processing your request.</div><div><br></div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 28, 2015 at 1:57 AM, Akihiro Motoki <span dir="ltr"><<a href="mailto:amotoki@gmail.com" target="_blank">amotoki@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>As already mentioned, we need to pass [] (an empty list) rather than None as allowed_address_pairs.</div><div><br></div><div>At the moment it is not supported in Neutron CLI.</div><div>This review <a href="https://review.openstack.org/#/c/218551/" target="_blank">https://review.openstack.org/#/c/218551/</a> is trying to fix this problem.<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Akihiro</div><div><br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2015-09-28 15:51 GMT+09:00 shihanzhang <span dir="ltr"><<a href="mailto:ayshihanzhang@126.com" target="_blank">ayshihanzhang@126.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>I don't see any <span style="line-height:21.6363620758057px">exception using bellow command</span></div><div><span style="line-height:21.6363620758057px"><br></span></div><div>root@szxbz:/opt/stack/neutron# neutron port-update 3748649e-243d-4408-a5f1-8122f1fbf501 --allowed-address-pairs action=clear</div><div>Allowed address pairs must be a list.</div><div><div><br><br><div style="zoom:1"></div><div></div><br>At 2015-09-28 14:36:44, "masoom alam" <<a href="mailto:masoom.alam@wanclouds.net" target="_blank">masoom.alam@wanclouds.net</a>> wrote:<br> <blockquote style="PADDING-LEFT:1ex;MARGIN:0px 0px 0px 0.8ex;BORDER-LEFT:#ccc 1px solid"><div dir="ltr">stable KILO<div><br></div><div>shall I checkout the latest code are you saying this...Also can you please confirm if you have tested this thing at your end....and there was no problem...</div><div><br></div><div><br></div><div>Thanks</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Sep 27, 2015 at 11:29 PM, shihanzhang <span dir="ltr"><<a href="mailto:ayshihanzhang@126.com" target="_blank">ayshihanzhang@126.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial">which branch do you use? there is not this problem in master branch.<div><div><br><br><br><br><div style="zoom:1"></div><div></div><br>At 2015-09-28 13:43:05, "masoom alam" <<a href="mailto:masoom.alam@wanclouds.net" target="_blank">masoom.alam@wanclouds.net</a>> wrote:<br> <blockquote style="PADDING-LEFT:1ex;MARGIN:0px 0px 0px 0.8ex;BORDER-LEFT:#ccc 1px solid"><div dir="ltr">Can anybody highlight why the following command is throwing an exception:<div><br></div><div><b>Command#</b> neutron port-update db3113df-14a3-4d6d-a3c5-d0517a134fc3 --allowed-address-pairs action=clear</div><div><br></div><div><b>Error: </b> 2015-09-27 21:44:32.144 ERROR neutron.api.v2.resource [req-b1cbe1f2-ba21-4337-a714-f337c54ee9fc admin None] update failed</div><div>2015-09-27 21:44:32.144 TRACE neutron.api.v2.resource Traceback (most recent call last):</div><div>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</div><div>2015-09-27 21:44:32.144 TRACE neutron.api.v2.resource result = method(request=request, **args)</div><div>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</div><div>2015-09-27 21:44:32.144 TRACE neutron.api.v2.resource allow_bulk=self._allow_bulk)</div><div>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</div><div>2015-09-27 21:44:32.144 TRACE neutron.api.v2.resource attr_vals['validate'][rule])</div><div>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</div><div>2015-09-27 21:44:32.144 TRACE neutron.api.v2.resource if len(address_pairs) > cfg.CONF.max_allowed_address_pair:</div><div>2015-09-27 21:44:32.144 TRACE neutron.api.v2.resource TypeError: object of type 'NoneType' has no len()</div><div>2015-09-27 21:44:32.144 TRACE neutron.api.v2.resource</div><div><br></div><div><br></div><div><br><div>There is a similar bug filed at Lauchpad for Havana <a href="https://bugs.launchpad.net/juniperopenstack/+bug/1351979" target="_blank">https://bugs.launchpad.net/juniperopenstack/+bug/1351979</a> .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...?</div><div><br></div><div>Thanks</div><div><br></div><div><br></div></div></div>
</blockquote></div></div></div><br><br><span title="neteasefooter"><p><span style="color:#000011;font-family:simsun,serif;font-size:12px"><a href="http://rd.da.netease.com/redirect?t=ORBmhG&p=y7fo42&proId=1024&target=http%3A%2F%2Fwww.kaola.com%2Factivity%2Fdetail%2F4650.html%3Ftag%3Dea467f1dcce6ada85b1ae151610748b5" target="_blank">网易考拉iPhone6s玫瑰金5288元,现货不加价</a></span></p></span><br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>
</blockquote></div></div></div><br><br><span title="neteasefooter"><p><span style="color:#000011;font-family:simsun,serif;font-size:12px"><a href="http://rd.da.netease.com/redirect?t=ORBmhG&p=y7fo42&proId=1024&target=http%3A%2F%2Fwww.kaola.com%2Factivity%2Fdetail%2F4650.html%3Ftag%3Dea467f1dcce6ada85b1ae151610748b5" target="_blank">网易考拉iPhone6s玫瑰金5288元,现货不加价</a></span></p></span><br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>