forked from WorksOnArm/OpenStackWorksOnArm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathComputePerfTest.sh
More file actions
executable file
·43 lines (35 loc) · 903 Bytes
/
ComputePerfTest.sh
File metadata and controls
executable file
·43 lines (35 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#/bin/bash
export OS_USERNAME=admin
export OS_PASSWORD=ADMIN_PASS
export OS_PROJECT_NAME=admin
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
export OS_AUTH_URL=http://controller:5000/v3
export OS_IDENTITY_API_VERSION=3
openstack quota set --instances 99 admin
openstack quota set --cores 99 admin
errors=0
out_max=5
concurrent_connections=4
for j in `seq 1 5`
do
for i in `seq 1 $concurrent_connections`
do
openstack server create --flavor m1.small --key-name default --image Fedora-26-arm64 --wait temp$i > $i.txt &
if [ $? -ne 0 ]; then
((errors++))
fi
done
wait
for i in `seq 1 $concurrent_connections`
do
openstack server delete temp$i > /dev/null &
if [ $? -ne 0 ]; then
((errors++))
fi
done
wait
done
echo "Test name: " $0
echo "Total execs: " $((out_max*concurrent_connections))
echo "Total errors: " $errors