Dean Troyer | fda65b8 | 2011-11-02 12:13:33 -0500 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | # |
Dean Troyer | e62ba4d | 2012-06-27 22:07:34 -0500 | [diff] [blame] | 3 | # **configure_tempest.sh** |
| 4 | |
| 5 | # Build a tempest configuration file from devstack |
Dean Troyer | fda65b8 | 2011-11-02 12:13:33 -0500 | [diff] [blame] | 6 | |
Jay Pipes | 678a188 | 2012-04-23 10:56:15 -0400 | [diff] [blame] | 7 | echo "**************************************************" |
| 8 | echo "Configuring Tempest" |
| 9 | echo "**************************************************" |
| 10 | |
| 11 | # This script exits on an error so that errors don't compound and you see |
| 12 | # only the first error that occured. |
| 13 | set -o errexit |
| 14 | |
| 15 | # Print the commands being run so that we can see the command that triggers |
| 16 | # an error. It is also useful for following allowing as the install occurs. |
| 17 | set -o xtrace |
| 18 | |
Dean Troyer | fda65b8 | 2011-11-02 12:13:33 -0500 | [diff] [blame] | 19 | function usage { |
Dean Troyer | 608bb12 | 2012-01-10 14:43:17 -0600 | [diff] [blame] | 20 | echo "$0 - Build tempest.conf" |
Dean Troyer | fda65b8 | 2011-11-02 12:13:33 -0500 | [diff] [blame] | 21 | echo "" |
Jay Pipes | 678a188 | 2012-04-23 10:56:15 -0400 | [diff] [blame] | 22 | echo "Usage: $0" |
Dean Troyer | fda65b8 | 2011-11-02 12:13:33 -0500 | [diff] [blame] | 23 | exit 1 |
| 24 | } |
| 25 | |
Dean Troyer | 44d8f8f | 2011-11-23 23:21:06 -0600 | [diff] [blame] | 26 | if [ "$1" = "-h" ]; then |
Dean Troyer | fda65b8 | 2011-11-02 12:13:33 -0500 | [diff] [blame] | 27 | usage |
| 28 | fi |
| 29 | |
Dean Troyer | fda65b8 | 2011-11-02 12:13:33 -0500 | [diff] [blame] | 30 | # Keep track of the current directory |
| 31 | TOOLS_DIR=$(cd $(dirname "$0") && pwd) |
Dean Troyer | 7f9aa71 | 2012-01-31 12:11:56 -0600 | [diff] [blame] | 32 | TOP_DIR=$(cd $TOOLS_DIR/..; pwd) |
| 33 | |
| 34 | # Import common functions |
| 35 | . $TOP_DIR/functions |
Dean Troyer | fda65b8 | 2011-11-02 12:13:33 -0500 | [diff] [blame] | 36 | |
| 37 | # Abort if localrc is not set |
| 38 | if [ ! -e $TOP_DIR/localrc ]; then |
Jay Pipes | 58d34ea | 2012-04-05 17:19:02 -0400 | [diff] [blame] | 39 | echo "You must have a localrc with necessary basic configuration defined before proceeding." |
Dean Troyer | fda65b8 | 2011-11-02 12:13:33 -0500 | [diff] [blame] | 40 | exit 1 |
| 41 | fi |
| 42 | |
Jay Pipes | 58d34ea | 2012-04-05 17:19:02 -0400 | [diff] [blame] | 43 | # Abort if openrc is not set |
| 44 | if [ ! -e $TOP_DIR/openrc ]; then |
| 45 | echo "You must have an openrc with ALL necessary passwords and credentials defined before proceeding." |
| 46 | exit 1 |
| 47 | fi |
| 48 | |
Jay Pipes | 678a188 | 2012-04-23 10:56:15 -0400 | [diff] [blame] | 49 | # Source params |
Matthew Treinish | 5233064 | 2012-11-07 15:00:01 -0500 | [diff] [blame] | 50 | source $TOP_DIR/lib/database |
Jay Pipes | 58d34ea | 2012-04-05 17:19:02 -0400 | [diff] [blame] | 51 | source $TOP_DIR/openrc |
Dean Troyer | fda65b8 | 2011-11-02 12:13:33 -0500 | [diff] [blame] | 52 | |
| 53 | # Where Openstack code lives |
| 54 | DEST=${DEST:-/opt/stack} |
| 55 | |
Jay Pipes | 4ba6eeb | 2012-08-01 11:55:12 -0400 | [diff] [blame] | 56 | NOVA_SOURCE_DIR=$DEST/nova |
Dean Troyer | 608bb12 | 2012-01-10 14:43:17 -0600 | [diff] [blame] | 57 | TEMPEST_DIR=$DEST/tempest |
Jay Pipes | 678a188 | 2012-04-23 10:56:15 -0400 | [diff] [blame] | 58 | CONFIG_DIR=$TEMPEST_DIR/etc |
Dean Troyer | 608bb12 | 2012-01-10 14:43:17 -0600 | [diff] [blame] | 59 | TEMPEST_CONF=$CONFIG_DIR/tempest.conf |
Dean Troyer | 44d8f8f | 2011-11-23 23:21:06 -0600 | [diff] [blame] | 60 | |
Jay Pipes | efcda85 | 2012-11-09 12:22:16 -0500 | [diff] [blame] | 61 | DATABASE_TYPE=${DATABASE_TYPE:-mysql} |
| 62 | initialize_database_backends |
| 63 | |
Dean Troyer | fda65b8 | 2011-11-02 12:13:33 -0500 | [diff] [blame] | 64 | # Use the GUEST_IP unless an explicit IP is set by ``HOST_IP`` |
| 65 | HOST_IP=${HOST_IP:-$GUEST_IP} |
| 66 | # Use the first IP if HOST_IP still is not set |
| 67 | if [ ! -n "$HOST_IP" ]; then |
| 68 | HOST_IP=`LC_ALL=C /sbin/ifconfig | grep -m 1 'inet addr:'| cut -d: -f2 | awk '{print $1}'` |
| 69 | fi |
| 70 | |
Jay Pipes | 678a188 | 2012-04-23 10:56:15 -0400 | [diff] [blame] | 71 | # Glance should already contain images to be used in tempest |
| 72 | # testing. Here we simply look for images stored in Glance |
| 73 | # and set the appropriate variables for use in the tempest config |
Devananda van der Veen | c0c6f00 | 2012-07-06 17:49:12 -0700 | [diff] [blame] | 74 | # We ignore ramdisk and kernel images, look for the default image |
| 75 | # DEFAULT_IMAGE_NAME. If not found, we set the IMAGE_UUID to the |
| 76 | # first image returned and set IMAGE_UUID_ALT to the second, |
Jay Pipes | 678a188 | 2012-04-23 10:56:15 -0400 | [diff] [blame] | 77 | # if there is more than one returned... |
Sean Dague | 0f5da00 | 2012-05-03 11:52:55 -0400 | [diff] [blame] | 78 | # ... Also ensure we only take active images, so we don't get snapshots in process |
Jay Pipes | a1c8738 | 2012-04-27 17:46:58 -0400 | [diff] [blame] | 79 | IMAGE_LINES=`glance image-list` |
Jay Pipes | 678a188 | 2012-04-23 10:56:15 -0400 | [diff] [blame] | 80 | IFS="$(echo -e "\n\r")" |
| 81 | IMAGES="" |
| 82 | for line in $IMAGE_LINES; do |
Devananda van der Veen | c0c6f00 | 2012-07-06 17:49:12 -0700 | [diff] [blame] | 83 | if [ -z $DEFAULT_IMAGE_NAME ]; then |
| 84 | IMAGES="$IMAGES `echo $line | grep -v "^\(ID\|+--\)" | grep -v "\(aki\|ari\)" | grep 'active' | cut -d' ' -f2`" |
| 85 | else |
| 86 | IMAGES="$IMAGES `echo $line | grep -v "^\(ID\|+--\)" | grep -v "\(aki\|ari\)" | grep 'active' | grep "$DEFAULT_IMAGE_NAME" | cut -d' ' -f2`" |
| 87 | fi |
Dean Troyer | 3320c55 | 2011-11-23 23:19:10 -0600 | [diff] [blame] | 88 | done |
Jay Pipes | 678a188 | 2012-04-23 10:56:15 -0400 | [diff] [blame] | 89 | # Create array of image UUIDs... |
| 90 | IFS=" " |
| 91 | IMAGES=($IMAGES) |
| 92 | NUM_IMAGES=${#IMAGES[*]} |
| 93 | echo "Found $NUM_IMAGES images" |
| 94 | if [[ $NUM_IMAGES -eq 0 ]]; then |
| 95 | echo "Found no valid images to use!" |
| 96 | exit 1 |
| 97 | fi |
| 98 | IMAGE_UUID=${IMAGES[0]} |
| 99 | IMAGE_UUID_ALT=$IMAGE_UUID |
| 100 | if [[ $NUM_IMAGES -gt 1 ]]; then |
| 101 | IMAGE_UUID_ALT=${IMAGES[1]} |
Dean Troyer | 608bb12 | 2012-01-10 14:43:17 -0600 | [diff] [blame] | 102 | fi |
Dean Troyer | 3320c55 | 2011-11-23 23:19:10 -0600 | [diff] [blame] | 103 | |
Jay Pipes | d01325f | 2012-04-04 16:21:33 -0400 | [diff] [blame] | 104 | # Create tempest.conf from tempest.conf.tpl |
Sean Dague | 0f5da00 | 2012-05-03 11:52:55 -0400 | [diff] [blame] | 105 | # copy every time, because the image UUIDS are going to change |
| 106 | cp $TEMPEST_CONF.tpl $TEMPEST_CONF |
Jesse Andrews | d7326d2 | 2011-11-20 10:02:26 -0800 | [diff] [blame] | 107 | |
Jay Pipes | 3edd5b4 | 2012-07-08 21:04:12 -0400 | [diff] [blame] | 108 | COMPUTE_ADMIN_USERNAME=${ADMIN_USERNAME:-admin} |
| 109 | COMPUTE_ADMIN_PASSWORD=${ADMIN_PASSWORD:-secrete} |
| 110 | COMPUTE_ADMIN_TENANT_NAME=${ADMIN_TENANT:-admin} |
| 111 | |
| 112 | IDENTITY_ADMIN_USERNAME=${ADMIN_USERNAME:-admin} |
| 113 | IDENTITY_ADMIN_PASSWORD=${ADMIN_PASSWORD:-secrete} |
| 114 | IDENTITY_ADMIN_TENANT_NAME=${ADMIN_TENANT:-admin} |
Jay Pipes | b297d2d | 2012-05-10 11:21:22 -0400 | [diff] [blame] | 115 | |
Jay Pipes | d01325f | 2012-04-04 16:21:33 -0400 | [diff] [blame] | 116 | IDENTITY_USE_SSL=${IDENTITY_USE_SSL:-False} |
Jay Pipes | 678a188 | 2012-04-23 10:56:15 -0400 | [diff] [blame] | 117 | IDENTITY_HOST=${IDENTITY_HOST:-127.0.0.1} |
| 118 | IDENTITY_PORT=${IDENTITY_PORT:-5000} |
| 119 | IDENTITY_API_VERSION="v2.0" # Note: need v for now... |
Jay Pipes | d01325f | 2012-04-04 16:21:33 -0400 | [diff] [blame] | 120 | # TODO(jaypipes): This is dumb and needs to be removed |
| 121 | # from the Tempest configuration file entirely... |
| 122 | IDENTITY_PATH=${IDENTITY_PATH:-tokens} |
| 123 | IDENTITY_STRATEGY=${IDENTITY_STRATEGY:-keystone} |
Jay Pipes | 3edd5b4 | 2012-07-08 21:04:12 -0400 | [diff] [blame] | 124 | IDENTITY_CATALOG_TYPE=identity |
Jay Pipes | d01325f | 2012-04-04 16:21:33 -0400 | [diff] [blame] | 125 | |
| 126 | # We use regular, non-admin users in Tempest for the USERNAME |
| 127 | # substitutions and use ADMIN_USERNAME et al for the admin stuff. |
| 128 | # OS_USERNAME et all should be defined in openrc. |
| 129 | OS_USERNAME=${OS_USERNAME:-demo} |
| 130 | OS_TENANT_NAME=${OS_TENANT_NAME:-demo} |
jiajun xu | 203edc5 | 2012-11-15 10:45:44 +0800 | [diff] [blame] | 131 | OS_PASSWORD=${OS_PASSWORD:-$ADMIN_PASSWORD} |
Jay Pipes | d01325f | 2012-04-04 16:21:33 -0400 | [diff] [blame] | 132 | |
Jay Pipes | b297d2d | 2012-05-10 11:21:22 -0400 | [diff] [blame] | 133 | # See files/keystone_data.sh where alt_demo user |
| 134 | # and tenant are set up... |
| 135 | ALT_USERNAME=${ALT_USERNAME:-alt_demo} |
| 136 | ALT_TENANT_NAME=${ALT_TENANT_NAME:-alt_demo} |
Jay Pipes | d01325f | 2012-04-04 16:21:33 -0400 | [diff] [blame] | 137 | ALT_PASSWORD=$OS_PASSWORD |
Jay Pipes | d01325f | 2012-04-04 16:21:33 -0400 | [diff] [blame] | 138 | |
Devananda van der Veen | c0c6f00 | 2012-07-06 17:49:12 -0700 | [diff] [blame] | 139 | # Check Nova for existing flavors and, if set, look for the |
| 140 | # DEFAULT_INSTANCE_TYPE and use that. Otherwise, just use the first flavor. |
| 141 | FLAVOR_LINES=`nova flavor-list` |
| 142 | IFS="$(echo -e "\n\r")" |
| 143 | FLAVORS="" |
| 144 | for line in $FLAVOR_LINES; do |
| 145 | if [ -z $DEFAULT_INSTANCE_TYPE ]; then |
Devananda van der Veen | 2700492 | 2012-08-15 16:38:29 -0700 | [diff] [blame] | 146 | FLAVORS="$FLAVORS `echo $line | grep -v "^\(|\s*ID\|+--\)" | cut -d' ' -f2`" |
Devananda van der Veen | c0c6f00 | 2012-07-06 17:49:12 -0700 | [diff] [blame] | 147 | else |
Devananda van der Veen | 2700492 | 2012-08-15 16:38:29 -0700 | [diff] [blame] | 148 | FLAVORS="$FLAVORS `echo $line | grep -v "^\(|\s*ID\|+--\)" | grep "$DEFAULT_INSTANCE_TYPE" | cut -d' ' -f2`" |
Devananda van der Veen | c0c6f00 | 2012-07-06 17:49:12 -0700 | [diff] [blame] | 149 | fi |
| 150 | done |
| 151 | IFS=" " |
| 152 | FLAVORS=($FLAVORS) |
| 153 | NUM_FLAVORS=${#FLAVORS[*]} |
| 154 | echo "Found $NUM_FLAVORS flavors" |
| 155 | if [[ $NUM_FLAVORS -eq 0 ]]; then |
| 156 | echo "Found no valid flavors to use!" |
| 157 | exit 1 |
| 158 | fi |
| 159 | FLAVOR_REF=${FLAVORS[0]} |
| 160 | FLAVOR_REF_ALT=$FLAVOR_REF |
| 161 | if [[ $NUM_FLAVORS -gt 1 ]]; then |
| 162 | FLAVOR_REF_ALT=${FLAVORS[1]} |
| 163 | fi |
Jay Pipes | d01325f | 2012-04-04 16:21:33 -0400 | [diff] [blame] | 164 | |
Jay Pipes | d01325f | 2012-04-04 16:21:33 -0400 | [diff] [blame] | 165 | # Do any of the following need to be configurable? |
| 166 | COMPUTE_CATALOG_TYPE=compute |
| 167 | COMPUTE_CREATE_IMAGE_ENABLED=True |
Jay Pipes | 3edd5b4 | 2012-07-08 21:04:12 -0400 | [diff] [blame] | 168 | COMPUTE_ALLOW_TENANT_ISOLATION=True |
Dan Smith | 88ae376 | 2012-09-04 10:18:18 -0700 | [diff] [blame] | 169 | COMPUTE_ALLOW_TENANT_REUSE=True |
Jay Pipes | 4ba6eeb | 2012-08-01 11:55:12 -0400 | [diff] [blame] | 170 | COMPUTE_RESIZE_AVAILABLE=False |
David Kranz | 686f98e | 2012-07-24 09:15:44 -0400 | [diff] [blame] | 171 | COMPUTE_CHANGE_PASSWORD_AVAILABLE=False # not supported with QEMU... |
Jay Pipes | d01325f | 2012-04-04 16:21:33 -0400 | [diff] [blame] | 172 | COMPUTE_LOG_LEVEL=ERROR |
Jay Pipes | 3edd5b4 | 2012-07-08 21:04:12 -0400 | [diff] [blame] | 173 | BUILD_INTERVAL=3 |
| 174 | BUILD_TIMEOUT=400 |
Rohit Karajgi | 2eb9a13 | 2012-08-08 02:34:51 -0700 | [diff] [blame] | 175 | COMPUTE_BUILD_INTERVAL=3 |
| 176 | COMPUTE_BUILD_TIMEOUT=400 |
| 177 | VOLUME_BUILD_INTERVAL=3 |
| 178 | VOLUME_BUILD_TIMEOUT=300 |
Jay Pipes | 3edd5b4 | 2012-07-08 21:04:12 -0400 | [diff] [blame] | 179 | RUN_SSH=True |
Devananda van der Veen | c0c6f00 | 2012-07-06 17:49:12 -0700 | [diff] [blame] | 180 | # Check for DEFAULT_INSTANCE_USER and try to connect with that account |
| 181 | SSH_USER=${DEFAULT_INSTANCE_USER:-$OS_USERNAME} |
Jay Pipes | 3edd5b4 | 2012-07-08 21:04:12 -0400 | [diff] [blame] | 182 | NETWORK_FOR_SSH=private |
| 183 | IP_VERSION_FOR_SSH=4 |
| 184 | SSH_TIMEOUT=4 |
Jay Pipes | 4ba6eeb | 2012-08-01 11:55:12 -0400 | [diff] [blame] | 185 | # Whitebox testing configuration for Compute... |
| 186 | COMPUTE_WHITEBOX_ENABLED=True |
| 187 | COMPUTE_SOURCE_DIR=$NOVA_SOURCE_DIR |
Monty Taylor | 99fcd81 | 2012-12-02 13:07:39 -0800 | [diff] [blame] | 188 | COMPUTE_BIN_DIR=$NOVA_BIN_DIR |
Jay Pipes | 4ba6eeb | 2012-08-01 11:55:12 -0400 | [diff] [blame] | 189 | COMPUTE_CONFIG_PATH=/etc/nova/nova.conf |
| 190 | # TODO(jaypipes): Create the key file here... right now, no whitebox |
| 191 | # tests actually use a key. |
| 192 | COMPUTE_PATH_TO_PRIVATE_KEY=$TEMPEST_DIR/id_rsa |
Matthew Treinish | 5233064 | 2012-11-07 15:00:01 -0500 | [diff] [blame] | 193 | COMPUTE_DB_URI=$BASE_SQL_CONN/nova |
Jay Pipes | d01325f | 2012-04-04 16:21:33 -0400 | [diff] [blame] | 194 | |
Jay Pipes | c0e1ef5 | 2012-04-30 15:56:13 -0400 | [diff] [blame] | 195 | # Image test configuration options... |
| 196 | IMAGE_HOST=${IMAGE_HOST:-127.0.0.1} |
| 197 | IMAGE_PORT=${IMAGE_PORT:-9292} |
Jay Pipes | 3edd5b4 | 2012-07-08 21:04:12 -0400 | [diff] [blame] | 198 | IMAGE_API_VERSION=1 |
| 199 | IMAGE_CATALOG_TYPE=image |
| 200 | |
| 201 | # Network API test configuration |
| 202 | NETWORK_CATALOG_TYPE=network |
| 203 | NETWORK_API_VERSION=2.0 |
Jay Pipes | c0e1ef5 | 2012-04-30 15:56:13 -0400 | [diff] [blame] | 204 | |
Rohit Karajgi | 5ef9047 | 2012-07-31 06:20:35 -0700 | [diff] [blame] | 205 | # Volume API test configuration |
| 206 | VOLUME_CATALOG_TYPE=volume |
| 207 | |
Mate Lakat | 32cce9e | 2012-10-05 12:27:51 +0100 | [diff] [blame] | 208 | # Live migration |
| 209 | LIVE_MIGRATION_AVAILABLE=${LIVE_MIGRATION_AVAILABLE:-False} |
| 210 | USE_BLOCK_MIGRATION_FOR_LIVE_MIGRATION=${USE_BLOCK_MIGRATION_FOR_LIVE_MIGRATION:-False} |
| 211 | |
Attila Fazekas | ed30160 | 2012-11-29 16:52:59 +0100 | [diff] [blame] | 212 | # Object Storage |
| 213 | OBJECT_CATALOG_TYPE="object-store" |
| 214 | |
Jay Pipes | 596b906 | 2012-11-19 10:58:50 -0500 | [diff] [blame] | 215 | # EC2 and S3 test configuration |
| 216 | BOTO_EC2_URL="http://$IDENTITY_HOST:8773/services/Cloud" |
| 217 | BOTO_S3_URL="http://$IDENTITY_HOST:3333" |
| 218 | BOTO_AWS_ACCESS="" # Created in tempest... |
| 219 | BOTO_AWS_SECRET="" # Created in tempest... |
| 220 | BOTO_AWS_REGION="RegionOne" |
| 221 | BOTO_S3_MATERIALS_PATH=$DEST/devstack/files/images/s3-materials/cirros-0.3.0 |
| 222 | BOTO_ARI_MANIFEST=cirros-0.3.0-x86_64-initrd.manifest.xml |
| 223 | BOTO_AMI_MANIFEST=cirros-0.3.0-x86_64-blank.img.manifest.xml |
| 224 | BOTO_AKI_MANIFEST=cirros-0.3.0-x86_64-vmlinuz.manifest.xml |
| 225 | BOTO_FLAVOR_NAME=m1.tiny |
| 226 | BOTO_SOCKET_TIMEOUT=5 |
| 227 | BOTO_BUILD_TIMEOUT=${COMPUTE_BUILD_TIMEOUT:-400} |
| 228 | BOTO_BUILD_INTERVAL=${COMPUTE_BUILD_INTERVAL:-3} |
| 229 | |
Dean Troyer | 608bb12 | 2012-01-10 14:43:17 -0600 | [diff] [blame] | 230 | sed -e " |
Jay Pipes | d01325f | 2012-04-04 16:21:33 -0400 | [diff] [blame] | 231 | s,%IDENTITY_USE_SSL%,$IDENTITY_USE_SSL,g; |
Jay Pipes | 678a188 | 2012-04-23 10:56:15 -0400 | [diff] [blame] | 232 | s,%IDENTITY_HOST%,$IDENTITY_HOST,g; |
Jay Pipes | d01325f | 2012-04-04 16:21:33 -0400 | [diff] [blame] | 233 | s,%IDENTITY_PORT%,$IDENTITY_PORT,g; |
Jay Pipes | 678a188 | 2012-04-23 10:56:15 -0400 | [diff] [blame] | 234 | s,%IDENTITY_API_VERSION%,$IDENTITY_API_VERSION,g; |
Jay Pipes | d01325f | 2012-04-04 16:21:33 -0400 | [diff] [blame] | 235 | s,%IDENTITY_PATH%,$IDENTITY_PATH,g; |
| 236 | s,%IDENTITY_STRATEGY%,$IDENTITY_STRATEGY,g; |
Jay Pipes | 3edd5b4 | 2012-07-08 21:04:12 -0400 | [diff] [blame] | 237 | s,%IDENTITY_CATALOG_TYPE%,$IDENTITY_CATALOG_TYPE,g; |
Jay Pipes | d01325f | 2012-04-04 16:21:33 -0400 | [diff] [blame] | 238 | s,%USERNAME%,$OS_USERNAME,g; |
| 239 | s,%PASSWORD%,$OS_PASSWORD,g; |
| 240 | s,%TENANT_NAME%,$OS_TENANT_NAME,g; |
| 241 | s,%ALT_USERNAME%,$ALT_USERNAME,g; |
| 242 | s,%ALT_PASSWORD%,$ALT_PASSWORD,g; |
| 243 | s,%ALT_TENANT_NAME%,$ALT_TENANT_NAME,g; |
| 244 | s,%COMPUTE_CATALOG_TYPE%,$COMPUTE_CATALOG_TYPE,g; |
Jay Pipes | 3edd5b4 | 2012-07-08 21:04:12 -0400 | [diff] [blame] | 245 | s,%COMPUTE_ALLOW_TENANT_ISOLATION%,$COMPUTE_ALLOW_TENANT_ISOLATION,g; |
Dan Smith | 88ae376 | 2012-09-04 10:18:18 -0700 | [diff] [blame] | 246 | s,%COMPUTE_ALLOW_TENANT_REUSE%,$COMPUTE_ALLOW_TENANT_REUSE,g; |
Jay Pipes | d01325f | 2012-04-04 16:21:33 -0400 | [diff] [blame] | 247 | s,%COMPUTE_CREATE_IMAGE_ENABLED%,$COMPUTE_CREATE_IMAGE_ENABLED,g; |
| 248 | s,%COMPUTE_RESIZE_AVAILABLE%,$COMPUTE_RESIZE_AVAILABLE,g; |
David Kranz | 686f98e | 2012-07-24 09:15:44 -0400 | [diff] [blame] | 249 | s,%COMPUTE_CHANGE_PASSWORD_AVAILABLE%,$COMPUTE_CHANGE_PASSWORD_AVAILABLE,g; |
Jay Pipes | 4ba6eeb | 2012-08-01 11:55:12 -0400 | [diff] [blame] | 250 | s,%COMPUTE_WHITEBOX_ENABLED%,$COMPUTE_WHITEBOX_ENABLED,g; |
Jay Pipes | d01325f | 2012-04-04 16:21:33 -0400 | [diff] [blame] | 251 | s,%COMPUTE_LOG_LEVEL%,$COMPUTE_LOG_LEVEL,g; |
Jay Pipes | 58d34ea | 2012-04-05 17:19:02 -0400 | [diff] [blame] | 252 | s,%BUILD_INTERVAL%,$BUILD_INTERVAL,g; |
| 253 | s,%BUILD_TIMEOUT%,$BUILD_TIMEOUT,g; |
Rohit Karajgi | 2eb9a13 | 2012-08-08 02:34:51 -0700 | [diff] [blame] | 254 | s,%COMPUTE_BUILD_INTERVAL%,$COMPUTE_BUILD_INTERVAL,g; |
| 255 | s,%COMPUTE_BUILD_TIMEOUT%,$COMPUTE_BUILD_TIMEOUT,g; |
Jay Pipes | 3edd5b4 | 2012-07-08 21:04:12 -0400 | [diff] [blame] | 256 | s,%RUN_SSH%,$RUN_SSH,g; |
| 257 | s,%SSH_USER%,$SSH_USER,g; |
| 258 | s,%NETWORK_FOR_SSH%,$NETWORK_FOR_SSH,g; |
| 259 | s,%IP_VERSION_FOR_SSH%,$IP_VERSION_FOR_SSH,g; |
| 260 | s,%SSH_TIMEOUT%,$SSH_TIMEOUT,g; |
Jay Pipes | d01325f | 2012-04-04 16:21:33 -0400 | [diff] [blame] | 261 | s,%IMAGE_ID%,$IMAGE_UUID,g; |
| 262 | s,%IMAGE_ID_ALT%,$IMAGE_UUID_ALT,g; |
| 263 | s,%FLAVOR_REF%,$FLAVOR_REF,g; |
| 264 | s,%FLAVOR_REF_ALT%,$FLAVOR_REF_ALT,g; |
Jay Pipes | 4ba6eeb | 2012-08-01 11:55:12 -0400 | [diff] [blame] | 265 | s,%COMPUTE_CONFIG_PATH%,$COMPUTE_CONFIG_PATH,g; |
| 266 | s,%COMPUTE_SOURCE_DIR%,$COMPUTE_SOURCE_DIR,g; |
| 267 | s,%COMPUTE_BIN_DIR%,$COMPUTE_BIN_DIR,g; |
| 268 | s,%COMPUTE_PATH_TO_PRIVATE_KEY%,$COMPUTE_PATH_TO_PRIVATE_KEY,g; |
| 269 | s,%COMPUTE_DB_URI%,$COMPUTE_DB_URI,g; |
Jay Pipes | c0e1ef5 | 2012-04-30 15:56:13 -0400 | [diff] [blame] | 270 | s,%IMAGE_HOST%,$IMAGE_HOST,g; |
| 271 | s,%IMAGE_PORT%,$IMAGE_PORT,g; |
| 272 | s,%IMAGE_API_VERSION%,$IMAGE_API_VERSION,g; |
Jay Pipes | 3edd5b4 | 2012-07-08 21:04:12 -0400 | [diff] [blame] | 273 | s,%IMAGE_CATALOG_TYPE%,$IMAGE_CATALOG_TYPE,g; |
| 274 | s,%COMPUTE_ADMIN_USERNAME%,$COMPUTE_ADMIN_USERNAME,g; |
| 275 | s,%COMPUTE_ADMIN_PASSWORD%,$COMPUTE_ADMIN_PASSWORD,g; |
| 276 | s,%COMPUTE_ADMIN_TENANT_NAME%,$COMPUTE_ADMIN_TENANT_NAME,g; |
| 277 | s,%IDENTITY_ADMIN_USERNAME%,$IDENTITY_ADMIN_USERNAME,g; |
| 278 | s,%IDENTITY_ADMIN_PASSWORD%,$IDENTITY_ADMIN_PASSWORD,g; |
| 279 | s,%IDENTITY_ADMIN_TENANT_NAME%,$IDENTITY_ADMIN_TENANT_NAME,g; |
| 280 | s,%NETWORK_CATALOG_TYPE%,$NETWORK_CATALOG_TYPE,g; |
| 281 | s,%NETWORK_API_VERSION%,$NETWORK_API_VERSION,g; |
Rohit Karajgi | 5ef9047 | 2012-07-31 06:20:35 -0700 | [diff] [blame] | 282 | s,%VOLUME_CATALOG_TYPE%,$VOLUME_CATALOG_TYPE,g; |
Rohit Karajgi | 2eb9a13 | 2012-08-08 02:34:51 -0700 | [diff] [blame] | 283 | s,%VOLUME_BUILD_INTERVAL%,$VOLUME_BUILD_INTERVAL,g; |
| 284 | s,%VOLUME_BUILD_TIMEOUT%,$VOLUME_BUILD_TIMEOUT,g; |
Mate Lakat | 32cce9e | 2012-10-05 12:27:51 +0100 | [diff] [blame] | 285 | s,%LIVE_MIGRATION_AVAILABLE%,$LIVE_MIGRATION_AVAILABLE,g; |
| 286 | s,%USE_BLOCK_MIGRATION_FOR_LIVE_MIGRATION%,$USE_BLOCK_MIGRATION_FOR_LIVE_MIGRATION,g; |
Attila Fazekas | ed30160 | 2012-11-29 16:52:59 +0100 | [diff] [blame] | 287 | s,%OBJECT_CATALOG_TYPE%,$OBJECT_CATALOG_TYPE,g; |
Jay Pipes | 596b906 | 2012-11-19 10:58:50 -0500 | [diff] [blame] | 288 | s,%BOTO_EC2_URL%,$BOTO_EC2_URL,g; |
| 289 | s,%BOTO_S3_URL%,$BOTO_S3_URL,g; |
| 290 | s,%BOTO_AWS_ACCESS%,$BOTO_AWS_ACCESS,g; |
| 291 | s,%BOTO_AWS_SECRET%,$BOTO_AWS_SECRET,g; |
| 292 | s,%BOTO_AWS_REGION%,$BOTO_AWS_REGION,g; |
| 293 | s,%BOTO_S3_MATERIALS_PATH%,$BOTO_S3_MATERIALS_PATH,g; |
| 294 | s,%BOTO_ARI_MANIFEST%,$BOTO_ARI_MANIFEST,g; |
| 295 | s,%BOTO_AMI_MANIFEST%,$BOTO_AMI_MANIFEST,g; |
| 296 | s,%BOTO_AKI_MANIFEST%,$BOTO_AKI_MANIFEST,g; |
| 297 | s,%BOTO_FLAVOR_NAME%,$BOTO_FLAVOR_NAME,g; |
| 298 | s,%BOTO_SOCKET_TIMEOUT%,$BOTO_SOCKET_TIMEOUT,g; |
| 299 | s,%BOTO_BUILD_TIMEOUT%,$BOTO_BUILD_TIMEOUT,g; |
| 300 | s,%BOTO_BUILD_INTERVAL%,$BOTO_BUILD_INTERVAL,g; |
Dean Troyer | 608bb12 | 2012-01-10 14:43:17 -0600 | [diff] [blame] | 301 | " -i $TEMPEST_CONF |
Jesse Andrews | d7326d2 | 2011-11-20 10:02:26 -0800 | [diff] [blame] | 302 | |
Jay Pipes | 58d34ea | 2012-04-05 17:19:02 -0400 | [diff] [blame] | 303 | echo "Created tempest configuration file:" |
| 304 | cat $TEMPEST_CONF |
Jay Pipes | 58d34ea | 2012-04-05 17:19:02 -0400 | [diff] [blame] | 305 | |
Jay Pipes | 678a188 | 2012-04-23 10:56:15 -0400 | [diff] [blame] | 306 | echo "\n" |
| 307 | echo "**************************************************" |
| 308 | echo "Finished Configuring Tempest" |
| 309 | echo "**************************************************" |