> Kolla-ansible provides support for creating a python virtual environment on the target hosts as part of the bootstrap-servers command. The path to the virtualenv is configured via the virtualenv variable, and access to site-packages is controlled via virtualenv_site_packages. Typically we will need to enable use of system site-packages from within this virtualenv, to support the use of modules such as yum, apt, and selinux, which are not available on PyPI.
but didn't help, since on "kolla-ansible -i ./all-in-one bootstrap-servers" I get:
TASK [Gathering Facts] *************************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"ansible_facts": {}, "changed": false, "failed_modules": {"setup": {"failed": true, "module_stderr": "/bin/sh: 1: /root/targethost/env/bin/python: not found\n", "module_stdout": "", "msg": "The module failed to execute correctly, you probably need to set the interpreter.\nSee stdout/stderr for the exact error", "rc": 127}}, "msg": "The following modules failed to execute: setup\n"}
In which file should I add those? (I'm am not that familiar with Ansible either).
I can get over these issues as mentioned above. But I'd add more details to kolla-ansible docs to have a smooth install on Ubuntu 20.04, it might help someone in the future.
Some other minor issues I found during install are:
# this is needed to create venv, but not mentioned in docs:
apt-get install python3-venv
# this was required, does not appear in docs. Useful for mindless copy/pasting :)
mkdir /etc/ansible
I've tried to reproduce this step by step in a fresh Ubuntu 20.04 install, paying more attention to the docs.
And I've noticed this issue is actually mentioned in https:/ /docs.openstack .org/kolla- ansible/ victoria/ user/virtual- environments. html#target- hosts
> Kolla-ansible provides support for creating a python virtual environment on the target hosts as part of the bootstrap-servers command. The path to the virtualenv is configured via the virtualenv variable, and access to site-packages is controlled via virtualenv_ site_packages. Typically we will need to enable use of system site-packages from within this virtualenv, to support the use of modules such as yum, apt, and selinux, which are not available on PyPI.
Tried to add these to /etc/kolla/ globals. yml :
virtualenv_ site_packages: yes t/env python_ interpreter: /root/targethos t/env/bin/ python
virtualenv: /root/targethos
ansible_
but didn't help, since on "kolla-ansible -i ./all-in-one bootstrap-servers" I get:
TASK [Gathering Facts] ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ****** t/env/bin/ python: not found\n", "module_stdout": "", "msg": "The module failed to execute correctly, you probably need to set the interpreter.\nSee stdout/stderr for the exact error", "rc": 127}}, "msg": "The following modules failed to execute: setup\n"}
fatal: [localhost]: FAILED! => {"ansible_facts": {}, "changed": false, "failed_modules": {"setup": {"failed": true, "module_stderr": "/bin/sh: 1: /root/targethos
In which file should I add those? (I'm am not that familiar with Ansible either).
I can get over these issues as mentioned above. But I'd add more details to kolla-ansible docs to have a smooth install on Ubuntu 20.04, it might help someone in the future.
Some other minor issues I found during install are:
# this is needed to create venv, but not mentioned in docs:
apt-get install python3-venv
# this was required, does not appear in docs. Useful for mindless copy/pasting :)
mkdir /etc/ansible