From 635f6b0468110b437740e8cbbe7a8dbc7947397b Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Thu, 22 Aug 2019 09:50:31 +0200 Subject: Support for py3 This patch provides support for py3 in the deployment host and the OPNFV VM. Some extra changes will need to happen in the future when distros disclose how they will react to the py2 expiration. * virtualbmc version is upgraded to 1.5 because 1.3 is not compatible with py3 * The dynamic inventory is slightly modified because it was using functionality that changes in py3 * pip3 check is removed as Ansible now works with py3 deploy-scenario:k8-calico-nofeature installer-type:osh Change-Id: I34178ebc357b0a299c0017d6f9e596b815c77b3b Signed-off-by: Manuel Buil --- xci/files/xci-lib.sh | 7 ------- 1 file changed, 7 deletions(-) (limited to 'xci/files/xci-lib.sh') diff --git a/xci/files/xci-lib.sh b/xci/files/xci-lib.sh index d1e76f59..9e751497 100644 --- a/xci/files/xci-lib.sh +++ b/xci/files/xci-lib.sh @@ -174,13 +174,6 @@ function install_ansible() { ${INSTALLER_CMD} ${install_map[@]} - # Note(cinerama): If pip is linked to pip3, the rest of the install - # won't work. Remove the alternatives. This is due to ansible's - # python 2.x requirement. - if [[ $(readlink -f /etc/alternatives/pip) =~ "pip3" ]]; then - sudo -H update-alternatives --remove pip $(readlink -f /etc/alternatives/pip) - fi - # We need to prepare our virtualenv now virtualenv --quiet --no-site-packages ${XCI_VENV} set +u -- cgit 1.2.3-korg