NFS relationship logic is broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
owncloud (Juju Charms Collection) |
Fix Released
|
Undecided
|
Charles Butler |
Bug Description
I've discovered by deploying through LXC containers the NFS relationship is broken. This is thanks to some sync issues and in reality should be done via lxc.host.mount in the container configuration, no big deal.
This however prompted me to investigate how well it functions in AWS. I deployed owncloud, deployed the nfs charm, and attempted to relate the services.
The hooks executed and exited without any sign of schenanigans, however when I remoted into the machine there was no external NFS mount present, as illustrated:
root@ip-
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 7.9G 1.1G 6.5G 15% /
udev 819M 12K 819M 1% /dev
tmpfs 331M 180K 331M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 827M 92K 827M 1% /run/shm
/dev/xvdb 147G 188M 140G 1% /mnt
From what i saw, the shared-
diving deeper into the logs however, I got a single line of ouput:
2014-01-30 18:07:11 INFO juju-log shared-fs:2: remote host not ready
so far i've tried remoting into both hosts and running the hooks interactively, but it appears that this message is there to stay. Somethings missing in translation between the hosts.
it appears that on the NFS host, the fail case at the top of the script is blocking it from transmitting the relationship data:
remote_
if [ -z "$remote_ip" ] ; then
juju-log "wait for related service to start"
exit 0
fi
therefore the changed hook never executes on owncloud:
if [ -z "${export_path}" ]; then
juju-log "remote host not ready"
exit 0
fi
Related branches
- charmers: Pending requested
-
Diff: 14 lines (+2/-2)1 file modifiedhooks/shared-fs-relation-changed (+2/-2)
summary: |
- NFS relationship inherently broken + NFS relationship logic is broken |
description: | updated |
Changed in owncloud (Juju Charms Collection): | |
assignee: | nobody → Charles Butler (lazypower) |
status: | New → In Progress |
Changed in owncloud (Juju Charms Collection): | |
status: | In Progress → Fix Released |