swift_rings_distribute.yml synchronize task broken on multi-node
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The synchronize module in swift_rings_
Seems to be a problem with the combination of "become_user", "delegate_to", and the way the synchronize module runs the rsync command. The --rsync-path looks suspicious to me. Why is it "sudo rsync" when we are escalating privileges to the swift user via "become_user"?
This error will not appear in an AIO build, most likely due to the fact that the AIO doesn't have problems with connecting to itself via root user.
[1] https:/
[2] https:/
Changed in openstack-ansible: | |
assignee: | nobody → Miguel Alejandro Cantu (miguel-cantu) |
status: | New → In Progress |
Changed in openstack-ansible: | |
assignee: | Miguel Alejandro Cantu (miguel-cantu) → nobody |
Reviewed: https:/ /review. openstack. org/336624 /git.openstack. org/cgit/ openstack/ openstack- ansible- os_swift/ commit/ ?id=2ba929f1729 021afa18143b2fd d5771b5c4876fa
Committed: https:/
Submitter: Jenkins
Branch: master
commit 2ba929f1729021a fa18143b2fdd577 1b5c4876fa
Author: Kevin Carter <email address hidden>
Date: Fri Jul 1 10:40:42 2016 -0500
Fix swift ring distribute
The swift ring distribute task was using the Synchronize module
which is broken in ansible 2.1 when using become and delegate_to.
The become and delegate_to methods are required to make the module
pull from a remote source to another remote source using a specific
user. To resolve the issue these tasks have been changed to use the
command module.
Related-Issue: https:/ /github. com/ansible/ ansible/ issues/ 15405
Change-Id: I1f0a14759408e3 efd066a8adf4510 db688d01437
Closes-bug: #1597475
Signed-off-by: Kevin Carter <email address hidden>