diff options
Diffstat (limited to 'ci/create_storperf_flavor.sh')
-rwxr-xr-x | ci/create_storperf_flavor.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ci/create_storperf_flavor.sh b/ci/create_storperf_flavor.sh new file mode 100755 index 0000000..f25d56d --- /dev/null +++ b/ci/create_storperf_flavor.sh @@ -0,0 +1,25 @@ +#!/bin/bash +############################################################################## +# Copyright (c) 2017 EMC and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +echo "Checking for StorPerf flavor" + +openstack flavor delete storperf + +FLAVOUR=`openstack flavor list | grep "storperf"` +if [ -z "$FLAVOUR" ] +then + openstack flavor create storperf \ + --id auto \ + --ram 8192 \ + --disk 4 \ + --vcpus 2 +fi + +openstack flavor show storperf |