[Contrail 3.0.1] Can create port with precreated floatingip as fixed ip
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel Contrail plugin |
Won't Fix
|
High
|
Illia Polliul |
Bug Description
Scenario:
1. Create external network with floating ip
2. Create port with floating ip as fixed ip
Actual result:
(neutron) port-create test2 --fixed-ip ip_address=
An unknown exception occurred.
New port without ip addres:
(neutron) port-show 03c38c1c-
+------
| Field | Value |
+------
| admin_state_up | True |
| binding:vif_details | {"port_filter": true} |
| binding:vif_type | vrouter |
| binding:vnic_type | normal |
| device_id | |
| device_owner | |
| fixed_ips | |
| id | 03c38c1c-
| mac_address | 02:03:c3:8c:1c:41 |
| name | 03c38c1c-
| network_id | 00714e8d-
| security_groups | bcf5c3b4-
| status | DOWN |
| tenant_id | 0721708b1553443
Expected result:
Port can not be created
No reproduced with contrail packages 3.0.2.0-25:
root@node-34:~# neutron net-list ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- +------ ------- ------- ------- ------- ------- ------- ------- + ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- +------ ------- ------- ------- ------- ------- ------- ------- + 8d06-4e37- b2f2-5492d79731 c3 | net04 | 66c337fb- 0530-48aa- bd8d-256b1520b0 4a 192.168.111.0/24 | fc19-4db3- bed8-602198e72b a1 | default- virtual- network | | 9cb6-4efd- ab99-4740d20ecd ee | snat-si- left_snat_ 04ab879c- 90b1-4bd7- a226-5dd95b0eb7 98_baad098a- 09a4-4cc5- b41d-ecaff0ccc1 fb | ab5e6353- 0ecd-4482- 911e-1440794960 15 100.64.0.0/29 | 036c-4add- 8d8e-d39a3f2b9c ea | __link_local__ | | b2b5-4094- bad3-96f833edeb 6c | ip-fabric | | d221-4b95- af2d-47b083c14a 02 | net04_ext | c218b650- be40-484d- 9fec-822b1e3be1 ae 10.100.1.0/24 | ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- +------ ------- ------- ------- ------- ------- ------- ------- +
+------
| id | name | subnets |
+------
| dc6646f8-
| 34bba879-
| 66c4ce9c-
| 60f87810-
| ea3f0a3c-
| 2d60cc93-
+------
root@node-34:~# neutron port-create net04_ext --fixed-ip ip_address= 10.100. 1.10 ------- ------- -+----- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- --+ ------- ------- -+----- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- --+ be40-484d- 9fec-822b1e3be1 ae", "ip_address": "10.100.1.10"} |
Created a new port:
+------
| Field | Value |
+------
| admin_state_up | True |
| binding:vif_details | {"port_filter": true} |
| binding:vif_type | vrouter |
| binding:vnic_type | normal |
| device_id | |
| device_owner | |
| fixed_ips | {"subnet_id": "c218b650-
| id ...