A unit has no way of knowing that there will ever be storage attached. To fix a), we need to change this and add a configuration option that blocks at the cloning step until storage is available. Using required Juju native storage would fix the problem too, but we can't use that until Bug #1504658 is addressed.
b) is normal behavior, as /var/lib/postgresql/9.3/main is replaced with a symlink. I don't trust every tool to understand that $PGDATA is relocatable.
This issue also affects optional Juju native storage, which will be landed as soon as I have fixed Juju stability issues in my testing environment.
A unit has no way of knowing that there will ever be storage attached. To fix a), we need to change this and add a configuration option that blocks at the cloning step until storage is available. Using required Juju native storage would fix the problem too, but we can't use that until Bug #1504658 is addressed.
b) is normal behavior, as /var/lib/ postgresql/ 9.3/main is replaced with a symlink. I don't trust every tool to understand that $PGDATA is relocatable.
This issue also affects optional Juju native storage, which will be landed as soon as I have fixed Juju stability issues in my testing environment.