<commit_before>set -e
set -x

# needed to create with admin login as Ocata policies don't allow users to create ports with specific IP addresses
source /root/files/admin-openrc.sh
#source /root/files/demo-openrc.sh
export OS_PROJECT_NAME=demo

# create client in vip ipv4 and vip6 network
netid=`neutron net-show vip4 -c 'id' --format 'value'`
net6id=`neutron net-show vip6 -c 'id' --format 'value'`
openstack server create --flavor m1.se \
    --image trusty \
    --user-data ./cloud-init-client.sh \
    --config-drive True \
    --nic net-id=$netid,v4-fixed-ip=10.0.2.20 \
    --nic net-id=$net6id,v6-fixed-ip='fc00:e968:6179::de52:7100' \
    client1

sleep 5

# create server in data IPv4 and data IPv6 network
netid=`neutron net-show data4 -c 'id' --format 'value'`
net6id=`neutron net-show data6 -c 'id' --format 'value'`
openstack server create --flavor m1.se \
    --image trusty \
    --user-data ./cloud-init-server.sh \
    --config-drive True \
    --nic net-id=$netid,v4-fixed-ip=10.0.3.10 \
    --nic net-id=$net6id,v6-fixed-ip='fd00:c2b6:b24b:be67:2827:688d:e6a1:6a3b' \
    server1

sleep 5

openstack server list

# Wait for client
status=`openstack server show client1 | grep status | awk '{print $4}'`
count=0
while [[ "$status" != "ACTIVE" ]]  &&  [[ $count -lt 24 ]];
do
    echo "Waiting for client to come up..."
    sleep 5
    #(( count++ ))
    count=$((count+1))
    status=`openstack server show client1 | grep status | awk '{print $4}'`
done
if [[ "$status" != "ACTIVE" ]];
then
        echo "Client VM didn't come up..."
        exit 1
fi

# Wait for server
status=`openstack server show server1 | grep status | awk '{print $4}'`
count=0
while [[ "$status" != "ACTIVE" ]]  &&  [[ $count -lt 24 ]];
do
    echo "Waiting for client to come up..."
    sleep 5
    #(( count++ ))
    count=$((count+1))
    status=`openstack server show server1 | grep status | awk '{print $4}'`
done
if [[ "$status" != "ACTIVE" ]];
then
        echo "Server VM didn't come up..."
        exit 1
fi<commit_msg>Increased timeout threshold to 10 mins<commit_after>set -e
set -x

# needed to create with admin login as Ocata policies don't allow users to create ports with specific IP addresses
source /root/files/admin-openrc.sh
#source /root/files/demo-openrc.sh
export OS_PROJECT_NAME=demo

# create client in vip ipv4 and vip6 network
netid=`neutron net-show vip4 -c 'id' --format 'value'`
net6id=`neutron net-show vip6 -c 'id' --format 'value'`
openstack server create --flavor m1.se \
    --image trusty \
    --user-data ./cloud-init-client.sh \
    --config-drive True \
    --nic net-id=$netid,v4-fixed-ip=10.0.2.20 \
    --nic net-id=$net6id,v6-fixed-ip='fc00:e968:6179::de52:7100' \
    client1

sleep 5

# create server in data IPv4 and data IPv6 network
netid=`neutron net-show data4 -c 'id' --format 'value'`
net6id=`neutron net-show data6 -c 'id' --format 'value'`
openstack server create --flavor m1.se \
    --image trusty \
    --user-data ./cloud-init-server.sh \
    --config-drive True \
    --nic net-id=$netid,v4-fixed-ip=10.0.3.10 \
    --nic net-id=$net6id,v6-fixed-ip='fd00:c2b6:b24b:be67:2827:688d:e6a1:6a3b' \
    server1

sleep 5

openstack server list

# Wait for client
status=`openstack server show client1 | grep status | awk '{print $4}'`
count=0
while [[ "$status" != "ACTIVE" ]]  &&  [[ $count -lt 60 ]];
do
    echo "Waiting for client to come up..."
    sleep 10
    #(( count++ ))
    count=$((count+1))
    status=`openstack server show client1 | grep status | awk '{print $4}'`
done
if [[ "$status" != "ACTIVE" ]];
then
        echo "Client VM didn't come up..."
        exit 1
fi

# Wait for server
status=`openstack server show server1 | grep status | awk '{print $4}'`
count=0
while [[ "$status" != "ACTIVE" ]]  &&  [[ $count -lt 60 ]];
do
    echo "Waiting for client to come up..."
    sleep 10
    #(( count++ ))
    count=$((count+1))
    status=`openstack server show server1 | grep status | awk '{print $4}'`
done
if [[ "$status" != "ACTIVE" ]];
then
        echo "Server VM didn't come up..."
        exit 1
fi
{'fraction_non_alphanumeric': 0.1597444089456869, 'fraction_numerical': 0.04423691324649791, 'mean_word_length': 2.9591439688715955, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '484442', 'n_tokens_mistral': 1559, 'n_tokens_neox': 1470, 'n_words': 446}