Adding resources creation and other helper scripts

 - prepare.sh
   Create all manner of resources needed for testing
   Also, creating manifest with all names and IDs for future use
   Automated detect, download and create of images
   cirros35, cirros40, ubuntu16

 - add_user_to_image.sh
   Semi-manual script to add user to ubuntu image
 - entropy_bench.pl
   Benchmark entropy levels on host
 - poke.sh
   direct curl to project resource using token
 - profiled_run.sh
   Execute any command several time or one and calculate avg time
 - simple_profile.sh
   Execute resource listings and calculate avg time

Fixes for cleanup.sh
 - container deletion
 - cleaning flavors
 - mask now cleans all with 'cvp' too

Change-Id: I073857abc2fbee730b983b1d8655e0fa16fee3fc
Related-PROD: PROD-30951
diff --git a/cleanup.sh b/cleanup.sh
index 6b295a0..897cee3 100644
--- a/cleanup.sh
+++ b/cleanup.sh
@@ -1,6 +1,6 @@
 #!/bin/bash
 export OS_INTERFACE='admin'
-mask='s_rally\|rally_\|tempest_\|tempest-'
+mask='cvp\|s_rally\|rally_\|tempest_\|tempest-'
 stack_alt=false
 stack_regex='api-[0-9]+-[a-z]+'
 dry_run=false
@@ -282,12 +282,19 @@
 
 ### Containers
 function _clean_containers {
-    containers=( $(openstack container list --all -c ID -c Name -f value | grep ${mask}) )
+    containers=( $(openstack container list --all -c ID -c Name -f value | grep ${mask} | cut -d' ' -f1) )
     echo "-> ${#containers[@]} containers containing '${mask}' found"
     printf "%s\n" ${containers[@]} | xargs -I{} echo container delete {} >>${cmds}
     _clean_and_flush
 }
 
+function _clean_flavors {
+    flavors=( $(openstack flavor list --all -c ID -c Name -f value | grep ${mask} | cut -d' ' -f1) )
+    echo "-> ${#flavors[@]} flavors containing '${mask}' found"
+    printf "%s\n" ${flavors[@]} | xargs -I{} echo flavor delete {} >>${cmds}
+    _clean_and_flush
+}
+
 ###################
 ### Main
 ###################