server.log:2020-04-07 13:15:10.689 88686 ERROR neutron.plugins.ml2.managers [req-66b12762-62d5-4f2f-b0f1-71d701c6de94 - - - - -] Port 41381ec3-0cf3-49dd-977c-7f4a9a7262c6 does not have an IP address assigned and there are no driver with 'connectivity' = 'l2'. The port cannot be bound.
查看下端口:

[root@openstack01 ~]# neutron port-show 41381ec3-0cf3-49dd-977c-7f4a9a7262c6
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+-----------------------+-----------------------------------------------------------------------------------+
| Field                 | Value                                                                             |
+-----------------------+-----------------------------------------------------------------------------------+
| admin_state_up        | True                                                                              |
| allowed_address_pairs |                                                                                   |
| binding:host_id       | openstack01                                                                       |
| binding:profile       | {}                                                                                |
| binding:vif_details   | {}                                                                                |
| binding:vif_type      | binding_failed                                                                    |
| binding:vnic_type     | normal                                                                            |
| created_at            | 2020-04-07T04:47:47Z                                                              |
| description           |                                                                                   |
| device_id             | dhcpfeb7894d-4d9e-521c-8ba2-c48aed7b6c97-0cb81536-0363-4f3b-8243-004e760df569     |
| device_owner          | network:dhcp                                                                      |
| extra_dhcp_opts       |                                                                                   |
| fixed_ips             | {"subnet_id": "c8cf4b62-e251-4dd7-8423-9e41c659a02e", "ip_address": "10.0.0.120"} |
| id                    | 41381ec3-0cf3-49dd-977c-7f4a9a7262c6                                              |
| mac_address           | fa:16:3e:f4:04:0b                                                                 |
| name                  |                                                                                   |
| network_id            | 0cb81536-0363-4f3b-8243-004e760df569                                              |
| port_security_enabled | False                                                                             |
| project_id            | d19433cec3044b61a0f1805e9d18357f                                                  |
| revision_number       | 4                                                                                 |
| security_groups       |                                                                                   |
| status                | DOWN                                                                              |
| tags                  |                                                                                   |
| tenant_id             | d19433cec3044b61a0f1805e9d18357f                                                  |
| updated_at            | 2020-04-07T05:15:11Z                                                              |
+-----------------------+-----------------------------------------------------------------------------------+
 

去官网查看配置,发现配置文件有些不同,/etc/nova/nova.conf中的

[neutron]
url = http://openstack01:9696
auth_url = http://openstack01:5000 
文件添加添加url后,网桥可以自动创建,删除。

Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐