我嘗試將 Openstack 列車與 Opendaylight 鎂集成,我的參考文獻是[1]和[2]但完成所有步驟後,實例無法啟動。我將 ml2_conf.ini 檔案中的 [ml2_odl] 部分中的 port_binding_controller 從pseudo-agentdb-binding 變更為legacy-port-binding,然後啟動了實例,但路由器介面的狀態仍然處於關閉狀態。
我有一個控制器節點和一個運算節點。 Opendaylight運行在控制器節點上。
nova-compute.log:
INFO nova.virt.libvirt.driver [-] [instance: 975fa79e-6567-4385-be87-9d12a8eb3e94] Instance destroyed successfully.
2021-01-02 12:33:23.383 25919 ERROR vif_plug_ovs.ovsdb.impl_vsctl [req-a0a7ebf0-7e63-4c60-a8d2-07c05f1aa4f4 04c7685a2166481a9ace54eb5e71f6e5 ca28ee1038254649ad133d5f09f7a186 - default default] Unable to execute ['ovs-vsctl', '--timeout=120', '--oneline', '--format=json', '--db=tcp:127.0.0.1:6640', '--', '--if-exists', 'del-port', 'br-int', 'tap50eb0b68-a4']. Exception: Unexpected error while running command.
Command: ovs-vsctl --timeout=120 --oneline --format=json --db=tcp:127.0.0.1:6640 -- --if-exists del-port br-int tap50eb0b68-a4
Exit code: 1
Stdout: ''
Stderr: 'ovs-vsctl: tcp:127.0.0.1:6640: database connection failed (Connection refused)\n': oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.
控制器 ovs:
Manager "tcp:192.168.222.48:6640"
is_connected: true
Bridge br-int
Controller "tcp:192.168.222.48:6653"
is_connected: true
fail_mode: secure
Port tune52c5c73a50
Interface tune52c5c73a50
type: vxlan
options: {key=flow, local_ip="10.0.0.31", remote_ip="10.0.0.11"}
Port br-int
Interface br-int
type: internal
Bridge br-ex
Port br-ex
Interface br-ex
type: internal
Port ens160
Interface ens160
ovs_version: "2.13.1"
計算ovs:
Manager "tcp:192.168.222.48:6640"
is_connected: true
Bridge br-int
Controller "tcp:192.168.222.48:6653"
is_connected: true
fail_mode: secure
Port br-int
Interface br-int
type: internal
Port tun34b3712d975
Interface tun34b3712d975
type: vxlan
options: {key=flow, local_ip="10.0.0.11", remote_ip="10.0.0.11"}
Port tund5123ce5b8a
Interface tund5123ce5b8a
type: vxlan
options: {key=flow, local_ip="10.0.0.11", remote_ip="10.0.0.31"}
ovs_version: "2.13.1"