Restarting juju machine unit process causes fan-network lxcs to lose IPs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
High
|
Unassigned |
Bug Description
Hi,
Using Juju 2.8.5. After upgrading to 2.8.6 (both controller and models), I've realized all my LXCs lost their IPs. Those are fan-networking LXCs.
Looking into this issue, I've realized that fan-networking addresses are set using a dhcp server.
I've realized that, after upgrading; that dhcp server will disappear and containers will fail with lost leases:
Nov 6 15:43:45 juju-cf278f-0-lxd-2 systemd-
I've noticed that also happens after restarting machine's service.
The reason is that, although dnsmasq-dhcp process PPID is 1, on systemd, it shows as subordinate to jujud-machine:
│ ├─10808 bash /etc/systemd/
│ ├─10819 /var/lib/
│ └─11573 dnsmasq -u dnsmasq --strict-order --bind-interfaces --pid-file=
I can see on juju logs that it does run "fanctl up -a" after service restart:
/var/log/
The only way I can see now to bring the dhcp up is to manually run the same dhcp command.
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → High |
Experienced the same when upgrading from juju 2.6.10 -> 2.7.8 -> 2.8.7
after running `fanctl up -a` we saw the dnsmasq service start
to restore lxd containers we had to do this:
lxc stop <all-containers>
fanctl down -a
fanctl up -a
lxc start <all-containers>