kolla_toolbox misconfigured kolla_ansible_sudoers file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla |
Fix Released
|
Undecided
|
Unassigned | ||
kolla-ansible |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hello,
When we run "kolla_ansible deploy" command, we get following error while configuring osd's on ceph nodes.
2018-06-12 13:07:55,631 p=1033 u=root | fatal: [ceph15]: FAILED! => {"changed": false, "cmd": ["docker", "exec", "-t", "kolla_toolbox", "sudo", "-E", "ansible", "localhost", "-m", "find_disks", "-a", "partition_
After we inspected kolla_toolbox image, we have discovered kolla_ansible_
(kolla-
ansible ALL=(root) NOPASSWD: /opt/ansible/
(kolla-
/usr/bin/ansible
description: | updated |
Changed in kolla: | |
status: | Fix Committed → Fix Released |
Changed in kolla-ansible: | |
status: | Fix Committed → Fix Released |
I have seen this on Kolla_ansible 6.0.0 deploying binary queens on Ubuntu, it hangs forever as in this bug: https:/ /bugs.launchpad .net/kolla/ +bug/1773911
you can copy the old sudoers file into kolla_toolbox, it's called 'kolla_ ansible_ sudoers'
docker cp kolla_ansible_ sudoers kolla_toolbox: /etc/sudoers. d/
the file contents should be:
ansible ALL=(root) NOPASSWD: /usr/bin/ansible localhost -m find_disks -a *, /usr/local/ bin/ansible localhost -m find_disks -a *
This patch has someone broken it /review. openstack. org/#/c/ 571723/
https:/