permission on swift log directories incorrect
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
Medium
|
Andy McCrae |
Bug Description
On liberty branch, was not seeing any log files for swift. Turns out log dirs were owned by swift:swift, but all logging goes through syslog, so must be syslog:syslog.
Simple patch is below:
diff --git a/playbooks/
index 5bb0c3f..e3a292e 100644
--- a/playbooks/
+++ b/playbooks/
@@ -87,8 +87,8 @@
- name: Test for log directory or link
shell: |
if [ -h "/var/log/swift" ]; then
- chown -h {{ swift_system_
- chown -R {{ swift_system_
+ chown -h syslog:syslog "/var/log/swift"
+ chown -R syslog:syslog "$(readlink /var/log/swift)"
else
exit 1
fi
Changed in openstack-ansible: | |
status: | In Progress → Fix Released |
assignee: | Kevin Carter (kevin-carter) → Andy McCrae (andrew-mccrae) |
Better to patch https:/ /github. com/openstack/ openstack- ansible/ blob/master/ playbooks/ roles/os_ swift/tasks/ swift_pre_ install. yml#L90- L91 to use the syslog user - this allows swift to write there and rsyslog to read there.