Network Issue: lxdbr0 and no dnsmasq. IP Address not getting assigned to containers

I just upgraded from Bionic to Cosmic. LXD and content migrated correctly. Trouble started when I tried to clean up and start again as a clean state.

Seems like LXD network is not working correctly.

  1. No IP assigned to containers.

    image

  2. IPv4 CIDR assigned during LXD init without any error. Dnsmasq for lxdbr0 not running.

  3. No content in lxdbr0 folder.

Any thoughts what I may be missing? I have added and removed LXD (3.0.2, 3.6) and re-created init/configuration quite a few times. Sure thing, I am missing something very small.

a@cloud:~$ sudo ls -al /var/snap/lxd/common/lxd/networks/lxdbr0
total 16
drwx--x--x 3 root root 4096 Oct 23 21:39 .
drwx--x--x 3 root root 4096 Oct 23 21:13 ..
drwxr-xr-x 2 root root 4096 Oct 23 21:13 dnsmasq.hosts
-rw-r--r-- 1 root root    0 Oct 24 00:57 dnsmasq.leases
-rw-r--r-- 1 root root    1 Oct 24 01:00 dnsmasq.raw


a@cloud:~$ sudo ls -al /var/snap/lxd/common/lxd/networks/lxdbr0/dnsmasq.hosts
total 8
drwxr-xr-x 2 root root 4096 Oct 23 21:13 .
drwx--x--x 3 root root 4096 Oct 23 21:39 ..

a@cloud:~$ sudo cat /var/snap/lxd/common/lxd/networks/lxdbr0/dnsmasq.leases`

a@cloud:~$ sudo cat /var/snap/lxd/common/lxd/networks/lxdbr0/dnsmasq.raw`

a@cloud:~$ ps ax | grep lxdbr0
3864 pts/0    S+     0:00 grep --color=auto lxdbr0

a@cloud:~$ ps ax | grep dnsmasq
 2995 ?        S      0:00 dnsmasq -u lxc-dnsmasq --strict-order --bind-interfaces --pid-file=/run/lxc/dnsmasq.pid --listen-address 10.0.3.1 --dhcp-range 10.0.3.2,10.0.3.254 --dhcp-lease-max=253 --dhcp-no-override --except-interface=lo --interface=lxcbr0 --dhcp-leasefile=/var/lib/misc/dnsmasq.lxcbr0.leases --dhcp-authoritative
3772 ?        S      0:00 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
3773 ?        S      0:00 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
3871 pts/0    S+     0:00 grep --color=auto dnsmasq


a@cloud:~$ lxc network show lxdbr0
config:
  ipv4.address: 10.100.100.1/24
  ipv4.nat: "true"
  ipv6.address: none
description: ""
name: lxdbr0
type: bridge
used_by:
- /1.0/containers/test
managed: true
status: Created
locations:
- none

After LXD re-install and during init, I am getting following error:

Would you like a YAML "lxd init" preseed to be printed? (yes/no) [default=no]: no
Error: Failed to create storage pool 'default': could not activate volume group "default":   /dev/mapper/default-LXDThinPool_tmeta: open failed: No such file or directory
  /dev/mapper/default-LXDThinPool_tmeta: open failed: No such file or directory
  /dev/mapper/default-LXDThinPool_tmeta: open failed: No such file or directory
  0 logical volume(s) in volume group "default" now active

NM. It is resolved.