I have read neutron source code and have found the reason: When assigning a fip to a VM, a callback for fip update event is invoked[1]. Then a fip agent port for the host bound to the fixed port is created as follows: [1]->[2]->[3] [1]https://github.com/openstack/neutron/blob/master/neutron/db/l3_dvr_db.py#L321 [2]https://github.com/openstack/neutron/blob/master/neutron/db/l3_dvr_db.py#L840 [3]https://github.com/openstack/neutron/blob/master/neutron/db/l3_dvr_db.py#L865
The details of the fip agent port is as follows: +-----------------------+---------------------------------------------------------------------------------+ | Field | Value | +-----------------------+---------------------------------------------------------------------------------+ | admin_state_up | True | | allowed_address_pairs | | | binding:host_id | shz-server87 | | binding:profile | {} | | binding:vif_details | {} | | binding:vif_type | binding_failed | | binding:vnic_type | normal | | created_at | 2017-10-17T02:09:27Z | | description | | | device_id | f83bc76a-917d-457b-a472-c34610621454 | | device_owner | network:floatingip_agent_gateway | | extra_dhcp_opts | | | fixed_ips | {"subnet_id": "5ba473f5-44e2-411c-80e6-c13d15b6b1cc", "ip_address": "9.9.9.15"} | | id | 46a91872-d25b-4ccc-9d04-0b8c894ace67 | | mac_address | fa:16:3e:93:36:28 | | name | | | network_id | af256bab-acbc-419c-bdcf-3ba6708da4af | | port_security_enabled | False | | project_id | | | qos_policy_id | | | revision_number | 4 | | security_groups | | | status | DOWN | | tags | | | tenant_id | | | updated_at | 2017-10-17T02:09:28Z | +-----------------------+---------------------------------------------------------------------------------+
I have read neutron source code and have found the reason: /github. com/openstack/ neutron/ blob/master/ neutron/ db/l3_dvr_ db.py#L321 /github. com/openstack/ neutron/ blob/master/ neutron/ db/l3_dvr_ db.py#L840 /github. com/openstack/ neutron/ blob/master/ neutron/ db/l3_dvr_ db.py#L865
When assigning a fip to a VM, a callback for fip update event is invoked[1].
Then a fip agent port for the host bound to the fixed port is created as follows:
[1]->[2]->[3]
[1]https:/
[2]https:/
[3]https:/
The details of the fip agent port is as follows: ------- ------- ---+--- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -+ ------- ------- ---+--- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -+ address_ pairs | | 17T02:09: 27Z | 917d-457b- a472-c346106214 54 | floatingip_ agent_gateway | 44e2-411c- 80e6-c13d15b6b1 cc", "ip_address": "9.9.9.15"} | d25b-4ccc- 9d04-0b8c894ace 67 | acbc-419c- bdcf-3ba6708da4 af | enabled | False | 17T02:09: 28Z | ------- ------- ---+--- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -+
+------
| Field | Value |
+------
| admin_state_up | True |
| allowed_
| binding:host_id | shz-server87 |
| binding:profile | {} |
| binding:vif_details | {} |
| binding:vif_type | binding_failed |
| binding:vnic_type | normal |
| created_at | 2017-10-
| description | |
| device_id | f83bc76a-
| device_owner | network:
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "5ba473f5-
| id | 46a91872-
| mac_address | fa:16:3e:93:36:28 |
| name | |
| network_id | af256bab-
| port_security_
| project_id | |
| qos_policy_id | |
| revision_number | 4 |
| security_groups | |
| status | DOWN |
| tags | |
| tenant_id | |
| updated_at | 2017-10-
+------