cluster-relation-changed runs as 'www-sync' user causing permissions issues with rendering configs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Repository Cache Charm |
Fix Released
|
Undecided
|
Haw Loeung |
Bug Description
Hi,
| root 1728 0.0 1.0 558812 72204 ? Sl Jul02 0:00 \_ /var/lib/
| www-sync 16493 0.0 0.2 72592 16144 ? S Jul02 0:00 \_ /usr/bin/python3 /var/lib/
| www-sync 17210 0.0 0.0 8644 796 ? S Jul02 0:00 \_ timeout rsync ...
As far as I can see in the charm, only ubuntu_
| @HOOKS.
| @util.run_
| def ubuntu_
| ...
But this does not appear to be the case, likely to do with implementation of util.run_as_user() or it's usage. Anyways, the cluster-
| 2019-07-02 23:38:26 INFO juju-log cluster:1: Rendering configuration templates
| 2019-07-02 23:38:26 INFO juju-log cluster:1: Rendering apache2 configuration templates
| 2019-07-02 23:38:26 INFO juju-log cluster:1: Writing file /etc/apache2/
| 2019-07-02 23:38:26 INFO juju-log cluster:1: Writing file /etc/apache2/
| 2019-07-02 23:38:26 DEBUG cluster-
| 2019-07-02 23:38:26 INFO juju-log cluster:1: Writing file /etc/apache2/
| 2019-07-02 23:38:26 DEBUG cluster-
| 2019-07-02 23:38:26 INFO juju-log cluster:1: Rendering squid configuration templates
| 2019-07-02 23:38:26 INFO juju-log cluster:1: Writing file /etc/squid-
| 2019-07-02 23:38:26 INFO juju-log cluster:1: Writing file /etc/squid-
| 2019-07-02 23:38:26 INFO juju-log cluster:1: Writing file /etc/squid-
| 2019-07-02 23:38:26 INFO juju-log cluster:1: Writing file /etc/logrotate.
| 2019-07-02 23:38:26 DEBUG cluster-
| 2019-07-02 23:38:26 DEBUG cluster-
| 2019-07-02 23:38:26 DEBUG cluster-
| 2019-07-02 23:38:26 DEBUG cluster-
| 2019-07-02 23:38:26 DEBUG cluster-
| 2019-07-02 23:38:26 DEBUG cluster-
| 2019-07-02 23:38:26 DEBUG cluster-
| 2019-07-02 23:38:26 DEBUG cluster-
| 2019-07-02 23:38:26 DEBUG cluster-
| 2019-07-02 23:38:26 DEBUG cluster-
| 2019-07-02 23:38:26 DEBUG cluster-
| 2019-07-02 23:38:26 DEBUG cluster-
| 2019-07-02 23:38:26 DEBUG cluster-
| 2019-07-02 23:38:26 DEBUG cluster-
| 2019-07-02 23:38:26 DEBUG cluster-
| 2019-07-02 23:38:26 DEBUG cluster-
| 2019-07-02 23:38:26 ERROR juju.worker.
| 2019-07-02 23:38:26 INFO juju.worker.uniter resolver.go:124 awaiting error resolution for "relation-changed" hook
Related branches
- Paul Collins: Approve (lgtm)
- Canonical IS Reviewers: Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiedlib/ubuntu_repository_cache/service.py (+1/-1)
Changed in ubuntu-repository-cache: | |
status: | New → In Progress |
assignee: | nobody → Haw Loeung (hloeung) |
status: | In Progress → Fix Released |