Comment 2 for bug 1776461

Revision history for this message
ByungYeol Woo (wby1089) wrote :

I faced with same issue at 'Looking up disks for Swift' task.
In my case, Ubuntu 18.04's ansible was located at /usr/bin

==== location of ansible
root@swift01:~# docker exec -u root -t kolla_toolbox cat /etc/sudoers.d/kolla_ansible_sudoers
ansible ALL=(root) NOPASSWD: /opt/ansible/bin/ansible localhost -m find_disks -a *, /usr/local/bin/ansible localhost -m find_disks -a *
root@swift01:~# docker exec -t kolla_toolbox which ansible
/usr/bin/ansible

I founded "kolla_toolbox -m find_disks" was excuted without root permision.
So I changed kolla-ansible's "ansible/roles/swift/tasks/start.yml" file instead of Robert's workaround.

===before
  command: docker exec -t kolla_toolbox sudo -E ansible localhost

===after
  command: docker exec -t kolla_toolbox ansible localhost