Fix toolbox permission issue when enabling ceph
Directory /home/ansible/.ansible and file /var/log/kolla/ansible.log are not created by default in toolbox image, so when ceph enabled, the directory and file will be created with user 'root' instead of user 'ansible' after running bootstrap osds because it using sudo when bootstraping osds, this will cause permission denied issue for other commands not using sudo. Fixes this issue by initializing ansible by running 'ansible localhost --version' using user 'ansible' TrivialFix Change-Id: Ibac3f98b3b72cbe287ee1d3a69ed9cea7ae3cd9e
This commit is contained in:
parent
bf991ff61f
commit
54be45e406
@ -31,6 +31,9 @@
|
||||
- "/run/:/run/"
|
||||
- "kolla_logs:/var/log/kolla/"
|
||||
|
||||
- name: Initializing toolbox container using normal user
|
||||
command: docker exec -t kolla_toolbox /usr/bin/ansible --version
|
||||
|
||||
- name: Starting cron container
|
||||
kolla_docker:
|
||||
action: "start_container"
|
||||
|
Loading…
Reference in New Issue
Block a user