Perms on /etc/swift/backups not handled correctly by ansible
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
Medium
|
Andy McCrae | ||
Kilo |
Fix Released
|
Medium
|
Andy McCrae | ||
Trunk |
Fix Released
|
Medium
|
Andy McCrae |
Bug Description
Since we aren't managed /etc/swift/backups using ansible its possible that if the permissions are messed up (e.g. root:root) the plays will fail to rsync as below. (This was seen to happen when upgrading from juno - kilo/master)
TASK: [os_swift | Get swift rings]
*******
changed: [swift02]
changed: [infra03_
failed: [swift01] => {"changed": true, "cmd": "rsync -e 'ssh -o
UserKnownHostsF
swift@10.
les/ /etc/swift/", "delta": "0:00:00.177260", "end": "2015-05-05
22:44:43.049855", "rc": 23, "start": "2015-05-05 22:44:42.872595",
"warnings": ["Consider using synchronize mod
ule rather than running rsync"]}
stderr: Warning: Permanently added '10..0.13' (ECDSA) to the list of
known hosts.
rsync: failed to set times on "/etc/swift/
permitted (1)
rsync error: some files/attrs were not transferred (see previous
errors) (code 23) at main.c(1655) [generator=3.1.0]
stdout: receiving incremental file list
backups/
Fix proposed to branch: master /review. openstack. org/181011
Review: https:/