The issue is if the host is part of a cluster and doesn’t have corrum then there nothing that you can do to control LXD. Snap wont disable it or remove it or stop it, and none of the LXC or LXD commands work !
Rebooting server does not change anything.
starting LXD in debug give this:
root@de-db02:~# lxd --debug --group lxd
DBUG[01-30|09:30:22] Connecting to a local LXD over a Unix socket
DBUG[01-30|09:30:22] Sending request to LXD method=GET url=http://unix.socket/1.0 etag=
and waits for ever and logs created in cat /var/snap/lxd/common/lxd/logs/lxd.log
t=2019-01-30T09:25:04+0000 lvl=info msg=“Initializing global database”
t=2019-01-30T09:25:08+0000 lvl=warn msg=“Raft: not part of stable configuration, aborting election”
t=2019-01-30T09:26:27+0000 lvl=warn msg=“Failed connecting to global database (attempt 6): failed to create dqlite connection: no available dqlite leader server found”
So how do i get out of this hole? How do tell this host its not a member of a cluster anymore? I don’t have any data or containers etc that i need so i can even go with removing the lot and re setting up!
ps. I got in this mess because i used a laptop as the other member that had a dhcp assigned ip address which changed over the weekend. Don’t know what the ip address would have been. But that one is now fixed LXD removed and reinstalled (don’t know what i did differently)