kolla_toolbox sudoers not using the correct ansible path in stable/queens branch

Bug #1776444 reported by David Blaisonneau
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kolla
New
Undecided
Unassigned

Bug Description

This issue appends during kolla-ansible task "ceph : Looking up disks to bootstrap for Ceph OSDs"

TASK [ceph : Looking up disks to bootstrap for Ceph OSDs] **********************
fatal: [server11]: FAILED! => {"changed": false, "cmd": ["docker", "exec", "-t", "kolla_toolbox", "sudo", "-E", "ansible", "localhost", "-m", "find_disks", "-a", "partition_name='KOLLA_CEPH_OSD_BOOTSTRAP' match_mode='prefix' use_udev=True"], "delta": "0:05:00.081435", "end": "2018-06-12 07:31:22.649652", "failed": true, "failed_when_result": true, "msg": "non-zero return code", "rc": 1, "start": "2018-06-12 07:26:22.568217", "stderr": "", "stderr_lines": [], "stdout": "\r\nWe trust you have received the usual lecture from the local System\r\nAdministrator. It usually boils down to these three things:\r\n\r\n #1) Respect the privacy of others.\r\n #2) Think before you type.\r\n #3) With great power comes great responsibility.\r\n\r\n[sudo] password for ansible: ", "stdout_lines": ["", "We trust you have received the usual lecture from the local System", "Administrator. It usually boils down to these three things:", "", " #1) Respect the privacy of others.", " #2) Think before you type.", " #3) With great power comes great responsibility.", "", "[sudo] password for ansible: "]}

This probably appends after the merge of commit 9ef9cbeb8f3504a4d80716e5e6ae7e9e6bb372d6 on docker/kolla-toolbox/ansible_sudoers. This patch does not reflect the correct ansible path in stable/queens version.

The path in sudoers is /opt/ansible/bin/ansible or /usr/local/bin/ansible but the correct path in centos-source-kolla-toolbox image is /usr/bin/ansible.

The correction of this bug could be the revert on this patch or probably the usage of the virtualenv_path in kolla/docker/kolla-toolbox/Dockerfile.j2 as done in master branch

Thanks for your help

summary: - Sudoers not using the correct ansible path in stable/queens branch
+ kolla_toolbox sudoers not using the correct ansible path in
+ stable/queens branch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.