I’ve recently deployed a juju local controller and postgresql container. Last week I was working with the postgres instance through the day and checked back later in the evening to find the service was unvailable. I first checked on the containers using juju show-status but the command hung indefinintely.
After digging around I spotted that snap had upgraded LXD in the evening and since then neither container is able to aquire an ip address. Coincidently I noted this behavior on a prior installation one or two weeks earlier but did not look further into it.
On this occasion I captured a few bit of logs but not sure now where to look next. I rather not recreate the containers like last time and understand why this setup has failed. Any advise would be appreciated,
Command run December 9th
root@lxdhost:~# snap changes
ID Status Spawn Ready Summary
71 Done yesterday at 19:35 UTC yesterday at 19:36 UTC Auto-refresh snaps "core20", "lxd"
root@lxdhost:~# snap list
Name Version Rev Tracking Publisher Notes
core20 20201027 875 latest/stable canonical✓ base
juju 2.8.7 14932 2.8/stable canonical✓ classic
lxd 4.8 18546 latest/stable canonical✓ -
Connected to the Postgres container via -> lxc exec juju-1d3465-1 bash
(same result on the juju container)
root@juju-1d3465-0:~# ip a
1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
14: eth0@if15: mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 00:16:3e:81:5a:1f brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet6 fe80::216:3eff:fe81:5a1f/64 scope link
valid_lft forever preferred_lft forever
root@juju-1d3465-0:~#
from the controller container
Dec 08 19:51:25 juju-ea203b-1 systemd-networkd[194]: eth0: DHCP lease lost
Dec 08 19:51:25 juju-ea203b-1 dbus-daemon[235]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.0' (uid=100 pid=194 comm="/lib/sys
Dec 08 19:51:25 juju-ea203b-1 systemd[1]: systemd-hostnamed.service: Failed to reset devices.list: Operation not permitted
Dec 08 19:51:25 juju-ea203b-1 systemd[1]: Failed to set devices.allow on /system.slice/systemd-hostnamed.service: Operation not permitted
Dec 08 19:51:25 juju-ea203b-1 systemd[1]: Failed to set devices.allow on /system.slice/systemd-hostnamed.service: Operation not permitted
Dec 08 19:51:25 juju-ea203b-1 systemd[1]: Failed to set devices.allow on /system.slice/systemd-hostnamed.service: Operation not permitted
Dec 08 19:51:25 juju-ea203b-1 systemd[1]: Failed to set devices.allow on /system.slice/systemd-hostnamed.service: Operation not permitted
Dec 08 19:51:25 juju-ea203b-1 systemd[1]: Failed to set devices.allow on /system.slice/systemd-hostnamed.service: Operation not permitted
Dec 08 19:51:25 juju-ea203b-1 systemd[1]: Failed to set devices.allow on /system.slice/systemd-hostnamed.service: Operation not permitted
Dec 08 19:51:25 juju-ea203b-1 systemd[1]: Failed to set devices.allow on /system.slice/systemd-hostnamed.service: Operation not permitted
Dec 08 19:51:25 juju-ea203b-1 systemd[1]: Failed to set devices.allow on /system.slice/systemd-hostnamed.service: Operation not permitted
Dec 08 19:51:25 juju-ea203b-1 systemd[1]: Starting Hostname Service...
Dec 08 19:51:25 juju-ea203b-1 dbus-daemon[235]: [system] Successfully activated service 'org.freedesktop.hostname1'
Dec 08 19:51:25 juju-ea203b-1 systemd[1]: Started Hostname Service.
Dec 14 23:01:02 lxdhost systemd-udevd[847]: lxdbr0: Could not generate persistent MAC: No data available
Dec 14 23:01:03 lxdhost systemd-networkd[831]: lxdbr0: Link UP
Dec 14 23:01:03 lxdhost kernel: [ 30.996283] lxdbr0: port 1(veth2f4404ae) entered blocking state
Dec 14 23:01:03 lxdhost kernel: [ 30.996285] lxdbr0: port 1(veth2f4404ae) entered disabled state
Dec 14 23:01:03 lxdhost kernel: [ 30.996376] lxdbr0: port 1(veth2f4404ae) entered blocking state
Dec 14 23:01:03 lxdhost kernel: [ 30.996377] lxdbr0: port 1(veth2f4404ae) entered forwarding state
Dec 14 23:01:03 lxdhost kernel: [ 31.000492] lxdbr0: port 1(veth2f4404ae) entered disabled state
Dec 14 23:01:03 lxdhost systemd-networkd[831]: lxdbr0: Gained carrier
Dec 14 23:01:03 lxdhost kernel: [ 31.191435] lxdbr0: port 1(veth2f4404ae) entered blocking state
Dec 14 23:01:03 lxdhost kernel: [ 31.191437] lxdbr0: port 1(veth2f4404ae) entered forwarding state
Dec 14 23:01:03 lxdhost kernel: [ 31.191514] IPv6: ADDRCONF(NETDEV_CHANGE): lxdbr0: link becomes ready
Dec 14 23:01:04 lxdhost kernel: [ 31.333026] lxdbr0: port 2(vethd34eabe7) entered blocking state
Dec 14 23:01:04 lxdhost kernel: [ 31.333027] lxdbr0: port 2(vethd34eabe7) entered disabled state
Dec 14 23:01:04 lxdhost kernel: [ 31.333109] lxdbr0: port 2(vethd34eabe7) entered blocking state
Dec 14 23:01:04 lxdhost kernel: [ 31.333109] lxdbr0: port 2(vethd34eabe7) entered forwarding state
Dec 14 23:01:04 lxdhost kernel: [ 31.335122] lxdbr0: port 2(vethd34eabe7) entered disabled state
Dec 14 23:01:04 lxdhost kernel: [ 31.603724] lxdbr0: port 2(vethd34eabe7) entered blocking state
Dec 14 23:01:04 lxdhost kernel: [ 31.603726] lxdbr0: port 2(vethd34eabe7) entered forwarding state
Dec 14 23:01:05 lxdhost systemd-networkd[831]: lxdbr0: Gained IPv6LLDec 14 23:01:02 lxdhost systemd-udevd[847]: lxdbr0: Could not generate persistent MAC: No data available
Dec 14 23:01:03 lxdhost systemd-networkd[831]: lxdbr0: Link UP
Dec 14 23:01:03 lxdhost kernel: [ 30.996283] lxdbr0: port 1(veth2f4404ae) entered blocking state
Dec 14 23:01:03 lxdhost kernel: [ 30.996285] lxdbr0: port 1(veth2f4404ae) entered disabled state
Dec 14 23:01:03 lxdhost kernel: [ 30.996376] lxdbr0: port 1(veth2f4404ae) entered blocking state
Dec 14 23:01:03 lxdhost kernel: [ 30.996377] lxdbr0: port 1(veth2f4404ae) entered forwarding state
Dec 14 23:01:03 lxdhost kernel: [ 31.000492] lxdbr0: port 1(veth2f4404ae) entered disabled state
Dec 14 23:01:03 lxdhost systemd-networkd[831]: lxdbr0: Gained carrier
Dec 14 23:01:03 lxdhost kernel: [ 31.191435] lxdbr0: port 1(veth2f4404ae) entered blocking state
Dec 14 23:01:03 lxdhost kernel: [ 31.191437] lxdbr0: port 1(veth2f4404ae) entered forwarding state
Dec 14 23:01:03 lxdhost kernel: [ 31.191514] IPv6: ADDRCONF(NETDEV_CHANGE): lxdbr0: link becomes ready
Dec 14 23:01:04 lxdhost kernel: [ 31.333026] lxdbr0: port 2(vethd34eabe7) entered blocking state
Dec 14 23:01:04 lxdhost kernel: [ 31.333027] lxdbr0: port 2(vethd34eabe7) entered disabled state
Dec 14 23:01:04 lxdhost kernel: [ 31.333109] lxdbr0: port 2(vethd34eabe7) entered blocking state
Dec 14 23:01:04 lxdhost kernel: [ 31.333109] lxdbr0: port 2(vethd34eabe7) entered forwarding state
Dec 14 23:01:04 lxdhost kernel: [ 31.335122] lxdbr0: port 2(vethd34eabe7) entered disabled state
Dec 14 23:01:04 lxdhost kernel: [ 31.603724] lxdbr0: port 2(vethd34eabe7) entered blocking state
Dec 14 23:01:04 lxdhost kernel: [ 31.603726] lxdbr0: port 2(vethd34eabe7) entered forwarding state
Dec 14 23:01:05 lxdhost systemd-networkd[831]: lxdbr0: Gained IPv6LL
lxc network set lxdbr0 bridge.mtu=1480
lxc network unset lxdbr0 bridge.mtu
Dec 15 00:29:47 lxdhost systemd-networkd[831]: lxdbr0-mtu: Link UP
Dec 15 00:29:47 lxdhost systemd-networkd[831]: lxdbr0-mtu: Gained carrier
Dec 15 00:29:47 lxdhost systemd-networkd[831]: lxdbr0-mtu: Gained IPv6LL
Dec 15 00:29:47 lxdhost systemd-udevd[80505]: lxdbr0-mtu: Could not generate persistent MAC: No data available
Dec 15 00:29:47 lxdhost kernel: [ 5354.909011] lxdbr0: port 3(lxdbr0-mtu) entered blocking state
Dec 15 00:29:47 lxdhost kernel: [ 5354.909013] lxdbr0: port 3(lxdbr0-mtu) entered disabled state
Dec 15 00:29:47 lxdhost kernel: [ 5354.909073] device lxdbr0-mtu entered promiscuous mode
Dec 15 00:29:47 lxdhost kernel: [ 5354.909091] lxdbr0: port 3(lxdbr0-mtu) entered blocking state
Dec 15 00:29:47 lxdhost kernel: [ 5354.909093] lxdbr0: port 3(lxdbr0-mtu) entered forwarding state
Dec 15 00:29:47 lxdhost kernel: [ 5354.946540] audit: type=1400 audit(1607992187.649:202): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="lxd_dnsmasq-lxdbr0_</var/snap/lxd/common/lxd>" pid=80535 comm="apparmor_parser"
Dec 15 00:29:48 lxdhost dnsmasq-dhcp[80536]: DHCP, sockets bound exclusively to interface lxdbr0
Dec 15 00:29:48 lxdhost dnsmasq-dhcp[80536]: read /var/snap/lxd/common/lxd/networks/lxdbr0/dnsmasq.hosts/juju-1d3465-0
Dec 15 00:29:48 lxdhost dnsmasq-dhcp[80536]: read /var/snap/lxd/common/lxd/networks/lxdbr0/dnsmasq.hosts/juju-ea203b-1
Dec 15 00:30:00 lxdhost systemd-networkd[831]: lxdbr0-mtu: Link DOWN
Dec 15 00:30:00 lxdhost systemd-networkd[831]: lxdbr0-mtu: Lost carrier
Dec 15 00:30:00 lxdhost kernel: [ 5367.600250] lxdbr0: port 3(lxdbr0-mtu) entered disabled state
Dec 15 00:30:00 lxdhost kernel: [ 5367.601176] device lxdbr0-mtu left promiscuous mode
Dec 15 00:30:00 lxdhost kernel: [ 5367.601178] lxdbr0: port 3(lxdbr0-mtu) entered disabled state
Dec 15 00:30:00 lxdhost kernel: [ 5367.718275] audit: type=1400 audit(1607992200.421:203): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="lxd_dnsmasq-lxdbr0_</var/snap/lxd/common/lxd>" pid=80598 comm="apparmor_parser"
Dec 15 00:30:00 lxdhost dnsmasq-dhcp[80599]: DHCP, sockets bound exclusively to interface lxdbr0
Dec 15 00:30:00 lxdhost dnsmasq-dhcp[80599]: read /var/snap/lxd/common/lxd/networks/lxdbr0/dnsmasq.hosts/juju-1d3465-0
Dec 15 00:30:00 lxdhost dnsmasq-dhcp[80599]: read /var/snap/lxd/common/lxd/networks/lxdbr0/dnsmasq.hosts/juju-ea203b-1