Juju forbids storage API to have nested mounts
Bug #2061371 reported by
Pedro Guimarães
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Juju forbids to have nested mount points, e.g.:
volume 1: /var/lib/
volume 2: /var/lib/
This will fail in the check [1].
However, this setup would allow us to have more careful storage separations in our charms.
tags: | added: canonical-data-platform-eng |
To post a comment you must log in.
I think it is true that we forbid it. I'm not 100% sure that we would have to (we'd have to be careful about ordering and when we're doing the mkdir), and it gets far more complex if we have multiple applications on the same machine that also end up trying to go on top of each other.
However, its also a little unclear as to why you actually need to have nested, vs just sibling directories.
In general, the actual recommendation is to avoid forcing a `location` at all and configure the application to use the directory that juju supplies rather than having juju place the storage where the application needs. (most applications have that configuration, and it scales much better if you have multiple applications)