yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #91191
[Bug 2003553] Re: Some port attributes are ignored in bulk port create: allowed_address_pairs, extra_dhcp_opts
Reviewed: https://review.opendev.org/c/openstack/neutron/+/871294
Committed: https://opendev.org/openstack/neutron/commit/ed68ba4a4cb622a67a4b28065da7f1ef7777e0dd
Submitter: "Zuul (22348)"
Branch: master
commit ed68ba4a4cb622a67a4b28065da7f1ef7777e0dd
Author: Bence Romsics <bence.romsics@xxxxxxxxx>
Date: Fri Jan 20 16:26:21 2023 +0100
Do not ignore attributes in bulk port create
With unit tests that would have caught the bug.
Change-Id: Ia4a68bdccecfbcb9d1aa49e2b14e06d139891c0f
Closes-Bug: #2003553
** Changed in: neutron
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/2003553
Title:
Some port attributes are ignored in bulk port create:
allowed_address_pairs, extra_dhcp_opts
Status in neutron:
Fix Released
Bug description:
It seems the bulk port create API ignores some of the port attributes
it receives:
export TOKEN="$( openstack token issue -f value -c id )"
# bulk equivalent of
# openstack --debug port create port0 --network private --allowed-address ip-address=10.0.0.1,mac-address=01:23:45:67:89:ab
curl -s -H "Content-Type: application/json" -H "X-Auth-Token: $TOKEN" -d "{\"ports\":[{\"name\":\"port0\",\"network_id\":\"$( openstack net show private -f value -c id )\",\"allowed_address_pairs\":[{\"ip_address\":\"10.0.0.1\",\"mac_address\":\"01:23:45:67:89:ab\"}]}]}" -X POST http://127.0.0.1:9696/networking/v2.0/ports | json_pp
...
"allowed_address_pairs" : [],
...
# bulk equivalent of
# openstack --debug port create port0 --network private --extra-dhcp-option name=domain-name-servers,value=10.0.0.1,ip-version=4
curl -s -H "Content-Type: application/json" -H "X-Auth-Token: $TOKEN" -d "{\"ports\":[{\"name\":\"port0\",\"network_id\":\"$( openstack net show private -f value -c id )\",\"extra_dhcp_opts\":[{\"opt_name\":\"domain-name-servers\",\"opt_value\":\"10.0.0.1\",\"ip_version\":\"4\"}]}]}" -X POST http://127.0.0.1:9696/networking/v2.0/ports | json_pp
...
"extra_dhcp_opts" : [],
...
neutron b71b25820be6d61ed9f249eddf32bfa49ac76524
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/2003553/+subscriptions
References