blob: 7c1e12927804bd17f7dbc34adcfbc1bcfac5eb5f [file] [log] [blame]
Anthony Young6ab10d42011-10-20 10:24:50 -07001#!/usr/bin/env bash
2
3# Load local configuration
4source ./stackrc
5
6# Set api host endpoint
Jesse Andrewsf75d8482011-10-24 13:38:52 -07007HOST_IP=${HOST_IP:-127.0.0.1}
Anthony Young6ab10d42011-10-20 10:24:50 -07008
9# Nova original used project_id as the *account* that owned resources (servers,
10# ip address, ...) With the addition of Keystone we have standardized on the
11# term **tenant** as the entity that owns the resources. **novaclient** still
12# uses the old deprecated terms project_id. Note that this field should now be
13# set to tenant_name, not tenant_id.
14export NOVA_PROJECT_ID=${TENANT:-demo}
15
16# In addition to the owning entity (tenant), nova stores the entity performing
17# the action as the **user**.
18export NOVA_USERNAME=${USERNAME:-demo}
19
20# With Keystone you pass the keystone password instead of an api key.
Jesse Andrews38df1222011-11-20 09:55:44 -080021# The most recent versions of novaclient use NOVA_PASSWORD instead of NOVA_API_KEY
22export NOVA_PASSWORD=${ADMIN_PASSWORD:-secrete}
Anthony Young6ab10d42011-10-20 10:24:50 -070023
Anthony Youngd4ddf3d2011-10-20 11:37:53 -070024# With the addition of Keystone, to use an openstack cloud you should
25# authenticate against keystone, which returns a **Token** and **Service
26# Catalog**. The catalog contains the endpoint for all services the user/tenant
27# has access to - including nova, glance, keystone, swift, ... We currently
28# recommend using the 2.0 *auth api*.
Anthony Young6ab10d42011-10-20 10:24:50 -070029#
Vishvananda Ishayaf56e3952011-10-24 16:05:57 -070030# *NOTE*: Using the 2.0 *auth api* does not mean that compute api is 2.0. We
Jesse Andrews9c853732011-10-21 19:05:40 -070031# will use the 1.1 *compute api*
Jesse Andrewsf75d8482011-10-24 13:38:52 -070032export NOVA_URL=${NOVA_URL:-http://$HOST_IP:5000/v2.0/}
Anthony Young6ab10d42011-10-20 10:24:50 -070033
34# Currently novaclient needs you to specify the *compute api* version. This
35# needs to match the config of your catalog returned by Keystone.
Anthony Youngd81ed032011-10-20 13:09:39 -070036export NOVA_VERSION=${NOVA_VERSION:-1.1}
Anthony Young6ab10d42011-10-20 10:24:50 -070037
38# FIXME - why does this need to be specified?
Anthony Youngd81ed032011-10-20 13:09:39 -070039export NOVA_REGION_NAME=${NOVA_REGION_NAME:-RegionOne}
Anthony Young6ab10d42011-10-20 10:24:50 -070040
Vishvananda Ishayaf56e3952011-10-24 16:05:57 -070041# Set the ec2 url so euca2ools works
42export EC2_URL=${EC2_URL:-http://$HOST_IP:8773/services/Cloud}
43
44# Access key is set in the initial keystone data to be the same as username
45export EC2_ACCESS_KEY=${USERNAME:-demo}
46
47# Secret key is set in the initial keystone data to the admin password
48export EC2_SECRET_KEY=${ADMIN_PASSWORD:-secrete}
49
Anthony Young6ab10d42011-10-20 10:24:50 -070050# set log level to DEBUG (helps debug issues)
Jesse Andrewsf1bfba22011-10-24 10:56:10 -070051# export NOVACLIENT_DEBUG=1
Vishvananda Ishayaf56e3952011-10-24 16:05:57 -070052
Todd Willey2599b312011-11-04 10:31:37 -040053# Max time till the vm is bootable
54export BOOT_TIMEOUT=${BOOT_TIMEOUT:-15}
55
56# Max time to wait while vm goes from build to active state
57export ACTIVE_TIMEOUT=${ACTIVE_TIMEOUT:-10}
58
Todd Willey9a3066f2011-11-05 11:02:34 -040059# Max time from run instance command until it is running
60export RUNNING_TIMEOUT=${RUNNING_TIMEOUT:-$(($BOOT_TIMEOUT + $ACTIVE_TIMEOUT))}
61
Todd Willey2599b312011-11-04 10:31:37 -040062# Max time to wait for proper IP association and dis-association.
63export ASSOCIATE_TIMEOUT=${ASSOCIATE_TIMEOUT:-10}