<commit_before>#!/bin/bash
basedir="/home/ubuntu/bin"
. $basedir/utils.sh
. $basedir/devstack_params.sh

echo "Parame are job_type=$job_type branch=$branch hyperv01=$hyperv01 hyperv02=$hyperv02"
set -x
set -e
sudo ifconfig eth0 promisc up
sudo ifconfig eth1 promisc up

# sudo ifconfig eth2 promisc up

HOSTNAME=$(hostname)

sudo sed -i '2i127.0.0.1  '$HOSTNAME'' /etc/hosts

# Add pip cache for devstack
mkdir -p $HOME/.pip
echo "[global]" > $HOME/.pip/pip.conf
echo "trusted-host = 10.20.1.8" >> $HOME/.pip/pip.conf
echo "index-url = http://10.20.1.8:8080/cloudbase/CI/+simple/" >> $HOME/.pip/pip.conf
echo "[install]" >> $HOME/.pip/pip.conf
echo "trusted-host = 10.20.1.8" >> $HOME/.pip/pip.conf

sudo mkdir -p /root/.pip
sudo cp $HOME/.pip/pip.conf /root/.pip/
sudo chown -R root:root /root/.pip

#Update packages to latest version
sudo easy_install -U pip
sudo pip install -U six
sudo pip install -U kombu
sudo pip install -U pbr<commit_msg>Remove pip installing via easy_install<commit_after>#!/bin/bash
basedir="/home/ubuntu/bin"
. $basedir/utils.sh
. $basedir/devstack_params.sh

echo "Parame are job_type=$job_type branch=$branch hyperv01=$hyperv01 hyperv02=$hyperv02"
set -x
set -e
sudo ifconfig eth0 promisc up
sudo ifconfig eth1 promisc up

# sudo ifconfig eth2 promisc up

HOSTNAME=$(hostname)

sudo sed -i '2i127.0.0.1  '$HOSTNAME'' /etc/hosts

# Add pip cache for devstack
mkdir -p $HOME/.pip
echo "[global]" > $HOME/.pip/pip.conf
echo "trusted-host = 10.20.1.8" >> $HOME/.pip/pip.conf
echo "index-url = http://10.20.1.8:8080/cloudbase/CI/+simple/" >> $HOME/.pip/pip.conf
echo "[install]" >> $HOME/.pip/pip.conf
echo "trusted-host = 10.20.1.8" >> $HOME/.pip/pip.conf

sudo mkdir -p /root/.pip
sudo cp $HOME/.pip/pip.conf /root/.pip/
sudo chown -R root:root /root/.pip

#Update packages to latest version
sudo pip install -U six
sudo pip install -U kombu
sudo pip install -U pbr
{'fraction_non_alphanumeric': 0.1569767441860465, 'fraction_numerical': 0.042283298097251586, 'mean_word_length': 3.7562814070351758, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 8, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4488773', 'n_tokens_mistral': 815, 'n_tokens_neox': 710, 'n_words': 199}