Error: Failed to start device "eth0": Failed setting up OVN port: Failed getting existing DHCP settings for internal switch

Hi,
I have a small cluster with ovn network, I have configured containers and working as expected when I have stopped the container, cant start again and replied that error. Can anyone assist me for the error? Regards.

indiana@pinehost1:~$ lxc start haproxy
Error: Failed to start device "eth0": Failed setting up OVN port: Failed getting existing DHCP settings for internal switch: Failed to run: ovn-nbctl --timeout=10 --db tcp:192.168.1.20:6641,tcp:192.168.1.21:6641,tcp:192.168.1.22:6641 --wait=sb --format=csv --no-headings --data=bare --colum=_uuid,cidr find dhcp_options external_ids:lxd_switch=lxd-net4-ls-int: exit status 1 (ovn-nbctl: tcp:192.168.1.20:6641,tcp:192.168.1.21:6641,tcp:192.168.1.22:6641: database connection failed (Connection refused))
Try `lxc info --show-log haproxy` for more info
indiana@pinehost1:~$ lxc info --show-log haproxy
Name: haproxy
Status: STOPPED
Type: container
Architecture: aarch64
Location: pinehost1
Created: 2022/10/02 17:10 +03
Last Used: 2022/10/02 17:12 +03

Log:

Looks like your OVN northbound database is down.

Thanks for the tip @tomp, for further reference I restarted sudo systemctl status ovn-ovsdb-server-nb.service and sudo systemctl status ovn-ovsdb-server-sb.service
Regards.

1 Like