neutron port-update allocates double fixed ip
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-neutronclient |
Expired
|
Medium
|
Unassigned |
Bug Description
1.create a new port
707BE8C6:/home # neutron port-create 23d588e1-
Created a new port:
+------
| Field | Value |
+------
| admin_state_up | True |
| allowed_
| binding:
| binding:host_id | |
| binding:profile | {} |
| binding:vif_details | {} |
| binding:vif_type | unbound |
| binding:vnic_type | normal |
| device_id | |
| device_owner | |
| fixed_ips | {"subnet_id": "7f5ae8f6-
| id | d91892d0-
| mac_address | fa:16:3e:0e:ac:b6 |
| mac_range_id | |
| name | why_port |
| network_id | 23d588e1-
| status | DOWN |
| tenant_id | 4015230803414ea
+------
2.update the port
707BE8C6:/home # neutron port-update d91892d0-
Updated port: d91892d0-
3. show the port
707BE8C6:/home # neutron port-show d91892d0-
+------
| Field | Value |
+------
| admin_state_up | True |
| allowed_
| binding:
| binding:host_id | |
| binding:profile | {} |
| binding:vif_details | {} |
| binding:vif_type | unbound |
| binding:vnic_type | normal |
| device_id | |
| device_owner | |
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "7f5ae8f6-
| | {"subnet_id": "7f5ae8f6-
| id | d91892d0-
| mac_address | fa:16:3e:0e:ac:b6 |
| name | why_port |
| network_id | 23d588e1-
| status | DOWN |
| tenant_id | 4015230803414ea
+------
we can see, the port allocates two fixed ip "ip_address": "200.1.1.8" and "ip_address": "200.1.1.5"
summary: |
- neutron port-update allocate double fix ip + neutron port-update allocates double fixed ip |
Changed in neutron: | |
assignee: | nobody → Xurong Yang (idopra) |
Changed in python-neutronclient: | |
assignee: | nobody → Kahou Lei (kahou82) |
Changed in python-neutronclient: | |
importance: | Undecided → Medium |
Changed in python-neutronclient: | |
status: | In Progress → Incomplete |
assignee: | yalei wang (yalei-wang) → nobody |
It is weird. 2c8b-4ada- b071-9e41b87454 cd --fixed-ips type=dict list=true subnet_ id=c256df04- 550d-4ad2- 87ec-3ec725799a 07,ip_address= 192.168. 0.15
the correct command is:
neutron port-update 55b72fe9-
and the corresponding API is: l7.0.ymy. ustack. in:9696/ v2.0/ports/ 55b72fe9- 2c8b-4ada- b071-9e41b87454 cd.json' -X PUT -H "X-Auth-Token: 9206b92e6c5e49c a9472c60878e225 8a" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python- neutronclient" -d '{"port": {"fixed_ips": [{"subnet_id": "c256df04- 550d-4ad2- 87ec-3ec725799a 07", "ip_address": "192.168.0.15"}]}}'
REQ: curl -i 'http://