etcd service not started when external storage is attached
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Etcd Charm |
Fix Released
|
High
|
Hemanth Nakkina |
Bug Description
etcd service is not started when charm-etcd is deployed with external storage.
Error message in snap.etcd.
error listing data dir: /media/etcd/data
Steps to reproduce:
juju create-storage-pool osfast cinder
juju add-machine -n 3 --constraints=
juju deploy etcd -n 3 --to 0,1,2 --storage data=osfast,1G
juju deploy cs:~containers/
juju add-relation etcd easyrsa
This will leave the etcd units in the following state:
etcd/0 waiting idle 0 10.5.1.106 Waiting to retry etcd registration
etcd/1* active idle 1 10.5.0.85 2379/tcp Errored with 0 known peers
etcd/2 waiting idle 2 10.5.0.111 Waiting to retry etcd registration
On investigation, found the following on dmesg
[ 1535.526364] audit: type=1400 audit(164439626
Seems the removable-media interface is not connected for etcd snap
$ sudo snap connections etcd
Interface Plug Slot Notes
home etcd:home :home -
network-bind etcd:network-bind :network-bind -
removable-media etcd:removable-
Manually connecting removable-media for etcd snap resolved the problem.
On each etcd unit, ran the following command
sudo snap connect etcd:removable-
Changed in charm-etcd: | |
assignee: | nobody → Hemanth Nakkina (hemanth-n) |
Changed in charm-etcd: | |
status: | In Progress → Fix Committed |
Changed in charm-etcd: | |
milestone: | none → 1.24 |
Changed in charm-etcd: | |
importance: | Undecided → High |
Changed in charm-etcd: | |
milestone: | 1.24 → 1.23+ck1 |
Changed in charm-etcd: | |
milestone: | 1.23+ck1 → 1.24 |
Changed in charm-etcd: | |
status: | Fix Committed → Fix Released |
Submitted PR https:/ /github. com/charmed- kubernetes/ layer-etcd/ pull/194