Etcd fails to mount snap rootfs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Expired
|
Undecided
|
Unassigned |
Bug Description
Etcd fails to mount snap rootfs after a power outage in the host machine.
Env:
cs:etcd-546
Ubuntu 20.04
(OpenStack deployment - focal)
Logs:
2021-03-03 17:58:49 DEBUG leader-
2021-03-03 17:58:49 ERROR juju-log ['/snap/
2021-03-03 17:58:49 ERROR juju-log {'ETCDCTL_API': '2', 'ETCDCTL_CA_FILE': '/var/snap/
2021-03-03 17:58:49 ERROR juju-log b''
2021-03-03 17:58:49 ERROR juju-log None
2021-03-03 17:58:49 WARNING juju-log Notice: Unit failed cluster-health check
2021-03-03 17:58:49 DEBUG leader-
2021-03-03 17:58:49 ERROR juju-log ['/snap/
2021-03-03 17:58:49 ERROR juju-log {'ETCDCTL_API': '2', 'ETCDCTL_CA_FILE': '/var/snap/
2021-03-03 17:58:49 ERROR juju-log b''
2021-03-03 17:58:50 ERROR juju-log None
2021-03-03 17:58:50 INFO juju-log Invoking reactive handler: reactive/
2021-03-03 17:58:50 DEBUG leader-
2021-03-03 17:58:50 ERROR juju-log Failed to get etcd version:
Traceback (most recent call last):
File "/var/lib/
raw_output = check_output(
File "/usr/lib/
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/
raise CalledProcessEr
subprocess.
Workaround:
reboot the etcd unit.
Crashdump can be found here:
https:/
summary: |
- Etcd fails to mount file system + Etcd fails to mount snap rootfs |
Thanks for the report. Yep, I can definitely see in the crashdump that unit etcd/0, located on machine 0/lxd/9, started logging those errors immediately after machine 0 rebooted.