Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check the ovs-rally output #90

Merged
merged 1 commit into from
Jul 22, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 22 additions & 5 deletions ci/scale-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ function check_container_failure {
fi
}

function check_ovn_rally {
output_file=$1
count=`cat $output_file | grep total | grep 100 | wc -l`
if [ $count -ne 0 ]
then
echo "Rally run succeeded"
else
echo "Rally run failed"
exit 1
fi
}

# Build the docker containers
pushd $OVN_SCALE_TOP
cd ansible/docker
Expand Down Expand Up @@ -55,38 +67,43 @@ $OVNSUDO docker exec ovn-south-database ovn-sbctl show
$OVNSUDO docker exec ovn-rally rally-ovs deployment create --file /root/rally-ovn/ovn-multihost-deployment.json --name ovn-multihost

# Register the emulated sandboxes in the rally database
$OVNSUDO docker exec ovn-rally rally-ovs task start /root/rally-ovn/workload/create-sandbox-$OVN_RALLY_HOSTNAME.json
$OVNSUDO docker exec ovn-rally rally-ovs task start /root/rally-ovn/workload/create-sandbox-$OVN_RALLY_HOSTNAME.json 2>&1 | tee /tmp/rally-ovs-output.raw
check_ovn_rally /tmp/rally-ovs-output.raw
TASKID=$($OVNSUDO docker exec ovn-rally rally task list --uuids-only)
$OVNSUDO docker exec ovn-rally rally task report $TASKID --out /root/create-sandbox-output.html
$OVNSUDO docker cp ovn-rally:/root/create-sandbox-output.html .
$OVNSUDO docker exec ovn-rally rally task delete --uuid $TASKID

# Run tests
$OVNSUDO docker exec ovn-rally rally-ovs task start /root/rally-ovn/workload/create_networks.json
$OVNSUDO docker exec ovn-rally rally-ovs task start /root/rally-ovn/workload/create_networks.json 2>&1 | tee /tmp/rally-ovs-output.raw
check_ovn_rally /tmp/rally-ovs-output.raw
TASKID=$($OVNSUDO docker exec ovn-rally rally task list --uuids-only)
# NOTE(mestery): HTML and JSON data are collected differently, look to consolidate
$OVNSUDO docker exec ovn-rally rally task report $TASKID --out /root/create-networks-output.html
$OVNSUDO docker exec ovn-rally rally task results $TASKID > ./create-networks-data.json
$OVNSUDO docker cp ovn-rally:/root/create-networks-output.html .
$OVNSUDO docker exec ovn-rally rally task delete --uuid $TASKID

$OVNSUDO docker exec ovn-rally rally-ovs task start /root/rally-ovn/workload/create_and_list_lports.json
$OVNSUDO docker exec ovn-rally rally-ovs task start /root/rally-ovn/workload/create_and_list_lports.json 2>&1 | tee /tmp/rally-ovs-output.raw
check_ovn_rally /tmp/rally-ovs-output.raw
TASKID=$($OVNSUDO docker exec ovn-rally rally task list --uuids-only)
# NOTE(mestery): HTML and JSON data are collected differently, look to consolidate
$OVNSUDO docker exec ovn-rally rally task report $TASKID --out /root/create-and-list-lports-output.html
$OVNSUDO docker exec ovn-rally rally task results $TASKID > ./create-and-list-lports-data.json
$OVNSUDO docker cp ovn-rally:/root/create-and-list-lports-output.html .
$OVNSUDO docker exec ovn-rally rally task delete --uuid $TASKID

$OVNSUDO docker exec ovn-rally rally-ovs task start /root/rally-ovn/workload/create_and_list_acls.json
$OVNSUDO docker exec ovn-rally rally-ovs task start /root/rally-ovn/workload/create_and_list_acls.json 2>&1 | tee /tmp/rally-ovs-output.raw
check_ovn_rally /tmp/rally-ovs-output.raw
TASKID=$($OVNSUDO docker exec ovn-rally rally task list --uuids-only)
# NOTE(mestery): HTML and JSON data are collected differently, look to consolidate
$OVNSUDO docker exec ovn-rally rally task report $TASKID --out /root/create-and-list-acls-output.html
$OVNSUDO docker exec ovn-rally rally task results $TASKID > ./create-and-list-acls-data.json
$OVNSUDO docker cp ovn-rally:/root/create-and-list-acls-output.html .
$OVNSUDO docker exec ovn-rally rally task delete --uuid $TASKID

$OVNSUDO docker exec ovn-rally rally-ovs task start /root/rally-ovn/workload/create_and_bind_ports.json
$OVNSUDO docker exec ovn-rally rally-ovs task start /root/rally-ovn/workload/create_and_bind_ports.json 2>&1 | tee /tmp/rally-ovs-output.raw
check_ovn_rally /tmp/rally-ovs-output.raw
TASKID=$($OVNSUDO docker exec ovn-rally rally task list --uuids-only)
# NOTE(mestery): HTML and JSON data are collected differently, look to consolidate
$OVNSUDO docker exec ovn-rally rally task report $TASKID --out /root/create-and-bind-ports-output.html
Expand Down