Upgrade from Pike to Queens results in permission errors.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gnocchi Charm |
Fix Released
|
Medium
|
James Page | ||
charms.openstack |
Fix Released
|
Medium
|
James Page |
Bug Description
When upgrading an environment from Pike to Queens, gnocchi.conf is left as root:root 640, which results in apache2 being unable to read it, causing errors to appear in its log:
[Fri Jul 06 21:54:34.675791 2018] [wsgi:error] [pid 867238:tid 140089931683584] [remote 127.0.0.1:43838] mod_wsgi (pid=867238): Target WSGI script '/usr/bin/
[Fri Jul 06 21:54:34.675842 2018] [wsgi:error] [pid 867238:tid 140089931683584] [remote 127.0.0.1:43838] mod_wsgi (pid=867238): Exception occurred processing WSGI script '/usr/bin/
[Fri Jul 06 21:54:34.675985 2018] [wsgi:error] [pid 867238:tid 140089931683584] [remote 127.0.0.1:43838] Traceback (most recent call last):
[Fri Jul 06 21:54:34.676026 2018] [wsgi:error] [pid 867238:tid 140089931683584] [remote 127.0.0.1:43838] File "/usr/bin/
[Fri Jul 06 21:54:34.676032 2018] [wsgi:error] [pid 867238:tid 140089931683584] [remote 127.0.0.1:43838] application = app.load_
[Fri Jul 06 21:54:34.676041 2018] [wsgi:error] [pid 867238:tid 140089931683584] [remote 127.0.0.1:43838] File "/usr/lib/
[Fri Jul 06 21:54:34.676045 2018] [wsgi:error] [pid 867238:tid 140089931683584] [remote 127.0.0.1:43838] conf = service.
[Fri Jul 06 21:54:34.676053 2018] [wsgi:error] [pid 867238:tid 140089931683584] [remote 127.0.0.1:43838] File "/usr/lib/
[Fri Jul 06 21:54:34.676057 2018] [wsgi:error] [pid 867238:tid 140089931683584] [remote 127.0.0.1:43838] version=version)
[Fri Jul 06 21:54:34.676065 2018] [wsgi:error] [pid 867238:tid 140089931683584] [remote 127.0.0.1:43838] File "/usr/lib/
[Fri Jul 06 21:54:34.676069 2018] [wsgi:error] [pid 867238:tid 140089931683584] [remote 127.0.0.1:43838] self._namespace
[Fri Jul 06 21:54:34.676088 2018] [wsgi:error] [pid 867238:tid 140089931683584] [remote 127.0.0.1:43838] oslo_config.
The file continues to revert back to root:root if I manually chown it, but I'm not seeing any juju logs to indicate that it's dealing with that file.
-rw-r----- 1 root root 1217 May 17 00:31 /etc/gnocchi/
tags: | added: canonical-bootstack |
tags: | added: upgrade |
Changed in charm-gnocchi: | |
assignee: | nobody → James Page (james-page) |
Changed in charm-gnocchi: | |
status: | Confirmed → Incomplete |
Changed in charm-gnocchi: | |
status: | Incomplete → In Progress |
Changed in charm-gnocchi: | |
milestone: | none → 18.08 |
Changed in charm-gnocchi: | |
status: | Fix Committed → Fix Released |
# ls -lrt json.dpkg- dist
total 20
-rw-r----- 1 gnocchi gnocchi 1600 Apr 25 15:24 policy.
-rw-r----- 1 gnocchi gnocchi 1146 Apr 25 15:24 api-paste.ini
-rw-r----- 1 gnocchi gnocchi 1547 Jul 13 11:23 policy.json
-rw-r----- 1 gnocchi gnocchi 1134 Jul 13 11:23 api-paste.ini.old
-r--r--r-- 1 root root 1223 Jul 13 11:47 gnocchi.conf