neutron (mitaka) rejects port updates for allowed address pairs

Bug #1658636 reported by George Shuklin
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Won't Fix
Undecided
Unassigned

Bug Description

Neutron 8.3 (mitaka) rejects requests to update allowed_address_pairs.

Request:

neutron --debug port-update b59bc3bb-7d34-4fbb-8e55-a9f1c5c88411 --allowed-address-pairs type=dict list=true ip_address=10.254.15.4

curl:
curl -g -i -X PUT https://network.servers.example.com:9696/v2.0/ports/b59bc3bb-7d34-4fbb-8e55-a9f1c5c88411.json -H "User-Agent: python-neutronclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: ecd92222221f2753333333c7c271788e" -d '{"port": {"allowed_address_pairs": [{"ip_address": "10.254.15.4"}]}}'

Reply:

{"NeutronError": {"message": "Unrecognized attribute(s) 'allowed_address_pairs'", "type": "HTTPBadRequest", "detail": ""}}

Log entry:

2017-01-23 09:31:58.988 28914 INFO neutron.api.v2.resource [req-56088d19-9359-4360-98db-ea9776e9dd33 46d2f76c9d5a409293cdb88ac8dcdeca 6d8ae5f32b294b2684c77417eb3b21cb - - -] update failed (client error): Unrecognized attribute(s) 'allowed_address_pairs'

Revision history for this message
Miguel Angel Ajo (mangelajo) wrote :

Question to the bug reporter: which plugin and configurations where you using?, ML2? ?, are you using DVR?

I have checked this on a 8.1.2 neutron deployment I have with ML2, and it worked.

So, if the report is correct this must be due to any of the patches introduced between 8.1.2 and 8.3.0 [1]

Specifically related to address pairs I only see [2], but It looks unrelated to the issue.

[1] http://paste.openstack.org/show/596098/
[2] https://review.openstack.org/#/c/328570/

Changed in neutron:
status: New → Incomplete
Revision history for this message
Brian Haley (brian-haley) wrote :

Are you sure this isn't a typo? The argument to python-neutronclient is 'allowed-address-pair' without the 's' on the end.

Revision history for this message
lavanya (g.lavanya) wrote :

I had tried to reproduce the bug on 8.3.1 neutron(mitaka) with ML2 plugin, and it is working.

Revision history for this message
lavanya (g.lavanya) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for neutron because there has been no activity for 60 days.]

Changed in neutron:
status: Incomplete → Expired
MarginHu (margin2017)
Changed in neutron:
status: Expired → New
Revision history for this message
MarginHu (margin2017) wrote :

I met this issue on Ocata version,My openstack environment use provider network, openvswitch, vlan ,the issue appeared when I disable security group, and disappeared when I enable security group.

neutron --version
6.1.0

ml2_conf.ini

[securitygroup]
firewall_driver = neutron.agent.firewall.NoopFirewallDriver
enable_security_group = false

Revision history for this message
Rodolfo Alonso (rodolfo-alonso-hernandez) wrote :

Bug closed due to lack of activity, please feel free to reopen if needed.

Changed in neutron:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.