juju snap: installed: 2.6-beta1+develop-e6c607e (6472) 71MB classic
Using localhost provider.
If I deploy a charm and immediately attach storage, I sometimes get into a state where the unit with storage attached is stuck 'agent initializing'. For example, I do something like:
juju deploy zookeeper zk && juju deploy ../charm_output/builds/kafka && juju relate zk kafka && juju add-storage kafka/0 logs=1G
The kafka unit sometimes gets stuck like this:
kafka/0* waiting allocating 1 10.130.222.52 agent initializing
and unit-kafka-0.log shows errors like:
2019-01-30 16:09:51 ERROR juju.worker.dependency engine.go:632 "uniter" manifold worker returned unexpected error: watching storage attachment: getting storage filesystem: filesystem for storage instance "logs/0"
not found
This is all in LXD, and I've confirmed the machine isn't in error like it was in LP:#1809478 due to cinder volume quota exceeded.
Use cs:~cmars/ xenial/ kafka-5 for storage attach to work.