与 ODL 集成时启动 Openstack 实例失败

与 ODL 集成时启动 Openstack 实例失败

我尝试将 Openstack train 与 Opendaylight 镁集成,我的参考资料如下[1][2]但完成所有步骤后,实例仍无法启动。我将 ml2_conf.ini 文件中 [ml2_odl] 部分的 port_binding_controller 从 pseudo-agentdb-binding 更改为 legacy-port-binding,然后实例启动,但路由器接口的状态仍为关闭。

我有一个控制节点和一个计算节点。Opendaylight 在控制节点上运行。

nova-计算.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"

相关内容