Rewrite managing of virtualenvs

Change-Id: Icd729b1ac66661f27dcaa8423fc2d72c45a027c7
diff --git a/tcp_tests/templates/_heat_environments/eu-cloud-low-flavors.env b/tcp_tests/templates/_heat_environments/eu-cloud-low-flavors.env
index abbe367..5c65579 100644
--- a/tcp_tests/templates/_heat_environments/eu-cloud-low-flavors.env
+++ b/tcp_tests/templates/_heat_environments/eu-cloud-low-flavors.env
@@ -44,5 +44,5 @@
   vm_availability_zone: nova
   net_public: public
 
-  foundation_image: system.foundation01
+  foundation_image: system.foundation02
   nameservers: 172.18.176.6,172.18.224.6
diff --git a/tcp_tests/templates/_heat_environments/eu-cloud.env b/tcp_tests/templates/_heat_environments/eu-cloud.env
index d5e0e5a..463f000 100644
--- a/tcp_tests/templates/_heat_environments/eu-cloud.env
+++ b/tcp_tests/templates/_heat_environments/eu-cloud.env
@@ -48,5 +48,5 @@
   vm_availability_zone: nova
   net_public: public
 
-  foundation_image: system.foundation01
+  foundation_image: system.foundation02
   nameservers: 172.18.176.6,172.18.224.6
diff --git a/tcp_tests/templates/_heat_environments/us-cloud-low-flavors.env b/tcp_tests/templates/_heat_environments/us-cloud-low-flavors.env
index 1af6209..dd35a4b 100644
--- a/tcp_tests/templates/_heat_environments/us-cloud-low-flavors.env
+++ b/tcp_tests/templates/_heat_environments/us-cloud-low-flavors.env
@@ -44,5 +44,5 @@
   vm_availability_zone: nova
   net_public: public
 
-  foundation_image: system.foundation01
+  foundation_image: system.foundation02
   nameservers: 172.18.224.6,172.18.176.6
diff --git a/tcp_tests/templates/_heat_environments/us-cloud.env b/tcp_tests/templates/_heat_environments/us-cloud.env
index 44c79dd..d216a1f 100644
--- a/tcp_tests/templates/_heat_environments/us-cloud.env
+++ b/tcp_tests/templates/_heat_environments/us-cloud.env
@@ -48,5 +48,5 @@
   vm_availability_zone: nova
   net_public: public
 
-  foundation_image: system.foundation01
+  foundation_image: system.foundation02
   nameservers: 172.18.224.6,172.18.176.6
diff --git a/tcp_tests/templates/_packer/scripts/jenkins_virtualenvs.sh b/tcp_tests/templates/_packer/scripts/jenkins_virtualenvs.sh
index 70cd37f..d3b2f4a 100644
--- a/tcp_tests/templates/_packer/scripts/jenkins_virtualenvs.sh
+++ b/tcp_tests/templates/_packer/scripts/jenkins_virtualenvs.sh
@@ -2,8 +2,6 @@
 
 LC_ALL=en_US.UTF-8
 DEVOPS_VENV_PATH=/home/jenkins/fuel-devops30
-REPORT_VENV_PATH=/home/jenkins/venv_testrail_reporter
-TESTMARKER_VENV_PATH=/home/jenkins/venv_testrail_analyzer
 
 if [ ! "$CHANGE_RIGHTS" ]; then
     CHANGE_RIGHTS=true
@@ -25,19 +23,6 @@
 pip install psycopg2  # workaround for setup with PostgreSQL , to keep requirements.txt for Sqlite3 only
 deactivate
 
-# Install xunit2testrail
-. ${REPORT_VENV_PATH}/bin/activate
-#pip install xunit2testrail -U
-pip install git+https://github.com/dis-xcom/testrail_reporter -U  # Removed accessing to an unexisting pastebin on srv62
-deactivate
-
-# Install testRail analyzer
-. ${TESTMARKER_VENV_PATH}/bin/activate
-#pip install git+https://github.com/ibumarskov/testrail-reporter -U
-# Pull from review to test changes in testrail-reporter before their merging
-pip install git+https://review.gerrithub.io/ibumarskov/testrail-reporter@refs/changes/94/514594/8
-deactivate
-
 if [ "$CHANGE_RIGHTS" = true ]; then
   chown -R jenkins:jenkins /home/jenkins/
 fi
diff --git a/tcp_tests/templates/_packer/scripts/ubuntu_packets.sh b/tcp_tests/templates/_packer/scripts/ubuntu_packets.sh
index 2e59834..cd29a30 100644
--- a/tcp_tests/templates/_packer/scripts/ubuntu_packets.sh
+++ b/tcp_tests/templates/_packer/scripts/ubuntu_packets.sh
@@ -16,6 +16,9 @@
 # update kernel
 apt-get install -y linux-generic-hwe-16.04
 
+
+
+
 #install python3.7
 cd /usr/src
 wget https://www.python.org/ftp/python/3.7.9/Python-3.7.9.tgz
@@ -23,3 +26,14 @@
 cd Python-3.7.9
 ./configure --enable-optimizations
 make altinstall
+
+# install Pyenv
+apt-get install -y build-essential git libreadline-dev zlib1g-dev libssl-dev libbz2-dev libsqlite3-dev
+export PYENV_ROOT=/usr/local/.pyenv/
+curl https://pyenv.run | bash
+command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
+ln -s $(which pyenv) /usr/local/bin/pyenv
+pyenv install 3.7.12
+pyenv install 3.8.12
+pyenv install 3.9.12
+chown -R jenkins:jenkins $PYENV_ROOT
\ No newline at end of file