I don't think the latter part makes quite as much sense. We can't necessarily use the local VIRTUAL_ENV environment variable to determine the python interpreter to use on the remote hosts. If a virtualenv is in use on the remote hosts, this could be achieved by passing the -e argument to kolla-ansible manually.
The first part of the patch in comment #5 works for me:
$ diff /home/csj/ .virtualenvs/ kolla/bin/ kolla-ansible /home/csj/ .virtualenvs/ temp/bin/ kolla-ansible ENV}/bin" ]]; then "${VIRTUAL_ ENV}/share/ kolla"
12,13d11
< elif [[ ${dir_name} == "${VIRTUAL_
< BASEDIR=
I don't think the latter part makes quite as much sense. We can't necessarily use the local VIRTUAL_ENV environment variable to determine the python interpreter to use on the remote hosts. If a virtualenv is in use on the remote hosts, this could be achieved by passing the -e argument to kolla-ansible manually.