juju add-unit fails relation-joined hook due to permissions issues
Bug #1770071 reported by
Paul Gear
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Charm Helpers |
Fix Released
|
High
|
Haw Loeung | ||
Ubuntu Repository Cache Charm |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
On adding a new juju unit, the www-sync user's ssh directory is created with apparently wrong permissions:
# ls -la /home/www-
total 24
drwxr-xr-x 2 www-sync root 4096 May 9 04:34 .
drwxr-xr-x 3 www-sync www-data 4096 May 9 04:34 ..
-rw-r--r-- 1 root root 396 May 9 04:34 authorized_keys
-rw------- 1 www-sync root 1679 May 9 04:34 id_rsa
-rw-r--r-- 1 www-sync root 396 May 9 04:34 id_rsa.pub
-rw-r--r-- 1 root root 659 May 9 04:34 known_hosts
This causes the initial sync of metadata to fail, preventing the relation hook from completing: https:/
Workaround: chown -R www-sync /home/www-
Related branches
lp:~hloeung/ubuntu-repository-cache/fix-ssh-files-ownership
- Tom Haddon: Approve
- Canonical IS Reviewers: Pending requested
-
Diff: 58 lines (+23/-0)1 file modifiedreactive/ubuntu-repository-cache.py (+23/-0)
Changed in charm-helpers: | |
status: | New → Confirmed |
assignee: | nobody → Haw Loeung (hloeung) |
status: | Confirmed → In Progress |
Changed in ubuntu-repository-cache: | |
status: | New → Won't Fix |
Changed in charm-helpers: | |
importance: | Undecided → High |
Changed in charm-helpers: | |
status: | In Progress → Fix Committed |
Changed in charm-helpers: | |
status: | Fix Committed → In Progress |
Changed in charm-helpers: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
This is related to, but not the same as, lp:1680860