blob: dead3c2b51dd6965958cfb3e366b44a2493cecc9 [file] [log] [blame]
Mate Lakat45ea0812013-09-25 10:00:29 +01001# lib/heat
Dean Troyer6d04fd72012-12-21 11:03:37 -06002# Install and start **Heat** service
3
Steve Bakerbfdad752012-08-18 09:00:42 +12004# To enable, add the following to localrc
Adam Spiers6a5aa7c2013-10-24 11:27:02 +01005#
6# ENABLED_SERVICES+=,heat,h-api,h-api-cfn,h-api-cw,h-eng
Steve Bakerbfdad752012-08-18 09:00:42 +12007
8# Dependencies:
Adam Spiers6a5aa7c2013-10-24 11:27:02 +01009#
Steve Bakerbfdad752012-08-18 09:00:42 +120010# - functions
11
12# stack.sh
13# ---------
Adam Spiers6a5aa7c2013-10-24 11:27:02 +010014# - install_heatclient
15# - install_heat
16# - configure_heatclient
17# - configure_heat
18# - init_heat
19# - start_heat
20# - stop_heat
21# - cleanup_heat
Steve Bakerbfdad752012-08-18 09:00:42 +120022
Dean Troyer7903b792012-09-13 17:16:12 -050023# Save trace setting
24XTRACE=$(set +o | grep xtrace)
25set +o xtrace
Steve Bakerbfdad752012-08-18 09:00:42 +120026
27
28# Defaults
29# --------
Dean Troyercc6b4432013-04-08 15:38:03 -050030
31# set up default directories
Steve Bakerbfdad752012-08-18 09:00:42 +120032HEAT_DIR=$DEST/heat
Steve Baker32761a42012-11-05 09:57:57 +130033HEATCLIENT_DIR=$DEST/python-heatclient
Steve Baker315971d2014-05-27 12:24:18 +120034HEAT_CFNTOOLS_DIR=$DEST/heat-cfntools
35HEAT_TEMPLATES_REPO_DIR=$DEST/heat-templates
Steve Bakerc3249082013-04-09 13:41:47 +120036HEAT_AUTH_CACHE_DIR=${HEAT_AUTH_CACHE_DIR:-/var/cache/heat}
Steve Baker389b3a02013-08-01 10:44:09 +120037HEAT_STANDALONE=`trueorfalse False $HEAT_STANDALONE`
Angus Salkeldf645a852013-08-26 10:13:36 +100038HEAT_CONF_DIR=/etc/heat
Angus Salkelda213e2c2013-08-30 10:48:46 +100039HEAT_CONF=$HEAT_CONF_DIR/heat.conf
Angus Salkeldf645a852013-08-26 10:13:36 +100040HEAT_ENV_DIR=$HEAT_CONF_DIR/environment.d
Angus Salkeldfb71a272013-08-26 10:15:38 +100041HEAT_TEMPLATES_DIR=$HEAT_CONF_DIR/templates
Steve Baker16aca8a2014-03-11 14:01:57 +130042HEAT_STACK_DOMAIN=`trueorfalse True $HEAT_STACK_DOMAIN`
Steve Bakere389aed2014-09-23 17:10:39 +120043HEAT_API_HOST=${HEAT_API_HOST:-$HOST_IP}
44HEAT_API_PORT=${HEAT_API_PORT:-8004}
Dean Troyercc6b4432013-04-08 15:38:03 -050045
Steven Hardyf83cf932014-03-12 16:54:01 +000046# other default options
47HEAT_DEFERRED_AUTH=${HEAT_DEFERRED_AUTH:-trusts}
48
Dean Troyer4237f592014-01-29 16:22:11 -060049# Tell Tempest this project is present
50TEMPEST_SERVICES+=,heat
51
52
Dean Troyercc6b4432013-04-08 15:38:03 -050053# Functions
54# ---------
Steve Bakerbfdad752012-08-18 09:00:42 +120055
Sean Dague29870cc2014-03-14 14:32:01 -040056# Test if any Heat services are enabled
57# is_heat_enabled
58function is_heat_enabled {
59 [[ ,${ENABLED_SERVICES} =~ ,"h-" ]] && return 0
60 return 1
61}
62
Steve Bakerbfdad752012-08-18 09:00:42 +120063# cleanup_heat() - Remove residual data files, anything left over from previous
64# runs that a clean run would need to clean up
Ian Wienandaee18c72014-02-21 15:35:08 +110065function cleanup_heat {
Steve Bakerc3249082013-04-09 13:41:47 +120066 sudo rm -rf $HEAT_AUTH_CACHE_DIR
Angus Salkeldf645a852013-08-26 10:13:36 +100067 sudo rm -rf $HEAT_ENV_DIR
Angus Salkeldfb71a272013-08-26 10:15:38 +100068 sudo rm -rf $HEAT_TEMPLATES_DIR
Steve Bakerbfdad752012-08-18 09:00:42 +120069}
70
71# configure_heat() - Set config files, create data dirs, etc
Ian Wienandaee18c72014-02-21 15:35:08 +110072function configure_heat {
Steve Bakerbfdad752012-08-18 09:00:42 +120073 setup_develop $HEAT_DIR
Steve Bakere389aed2014-09-23 17:10:39 +120074 if [[ "$HEAT_STANDALONE" = "True" ]]; then
75 setup_develop $HEAT_DIR/contrib/heat_keystoneclient_v2
76 fi
Steve Bakerbfdad752012-08-18 09:00:42 +120077
Steve Bakerbfdad752012-08-18 09:00:42 +120078 if [[ ! -d $HEAT_CONF_DIR ]]; then
79 sudo mkdir -p $HEAT_CONF_DIR
80 fi
Attila Fazekas91b8d132013-01-06 22:40:09 +010081 sudo chown $STACK_USER $HEAT_CONF_DIR
Angus Salkelda213e2c2013-08-30 10:48:46 +100082 # remove old config files
83 rm -f $HEAT_CONF_DIR/heat-*.conf
Steve Bakerbfdad752012-08-18 09:00:42 +120084
Steve Bakere61bc612014-01-27 15:21:29 +130085 HEAT_API_CFN_HOST=${HEAT_API_CFN_HOST:-$HOST_IP}
Angus Salkelde2790212012-09-11 11:24:09 +100086 HEAT_API_CFN_PORT=${HEAT_API_CFN_PORT:-8000}
Steve Bakerbfdad752012-08-18 09:00:42 +120087 HEAT_ENGINE_HOST=${HEAT_ENGINE_HOST:-$SERVICE_HOST}
88 HEAT_ENGINE_PORT=${HEAT_ENGINE_PORT:-8001}
Steve Bakere61bc612014-01-27 15:21:29 +130089 HEAT_API_CW_HOST=${HEAT_API_CW_HOST:-$HOST_IP}
Angus Salkelde2790212012-09-11 11:24:09 +100090 HEAT_API_CW_PORT=${HEAT_API_CW_PORT:-8003}
Steve Bakerd5cd79b2013-04-13 11:14:41 -070091 HEAT_API_PASTE_FILE=$HEAT_CONF_DIR/api-paste.ini
92 HEAT_POLICY_FILE=$HEAT_CONF_DIR/policy.json
93
94 cp $HEAT_DIR/etc/heat/api-paste.ini $HEAT_API_PASTE_FILE
95 cp $HEAT_DIR/etc/heat/policy.json $HEAT_POLICY_FILE
Angus Salkelda213e2c2013-08-30 10:48:46 +100096 cp $HEAT_DIR/etc/heat/heat.conf.sample $HEAT_CONF
Steve Bakerbfdad752012-08-18 09:00:42 +120097
Angus Salkelda213e2c2013-08-30 10:48:46 +100098 # common options
99 iniset_rpc_backend heat $HEAT_CONF DEFAULT
100 iniset $HEAT_CONF DEFAULT heat_metadata_server_url http://$HEAT_API_CFN_HOST:$HEAT_API_CFN_PORT
101 iniset $HEAT_CONF DEFAULT heat_waitcondition_server_url http://$HEAT_API_CFN_HOST:$HEAT_API_CFN_PORT/v1/waitcondition
102 iniset $HEAT_CONF DEFAULT heat_watch_server_url http://$HEAT_API_CW_HOST:$HEAT_API_CW_PORT
Angus Salkelde2314382013-11-14 14:36:46 +1100103 iniset $HEAT_CONF database connection `database_connection_url heat`
Attila Fazekasf71b5002014-05-28 09:52:22 +0200104 iniset $HEAT_CONF DEFAULT auth_encryption_key $(generate_hex_string 16)
Steve Bakerbfdad752012-08-18 09:00:42 +1200105
Bartosz Górski0abde392014-02-28 14:15:19 +0100106 iniset $HEAT_CONF DEFAULT region_name_for_services "$REGION_NAME"
107
Angus Salkelda213e2c2013-08-30 10:48:46 +1000108 # logging
109 iniset $HEAT_CONF DEFAULT debug $ENABLE_DEBUG_LOG_LEVEL
110 iniset $HEAT_CONF DEFAULT use_syslog $SYSLOG
Steve Baker556ffe42013-08-06 16:42:38 +1200111 if [ "$LOG_COLOR" == "True" ] && [ "$SYSLOG" == "False" ]; then
112 # Add color to logging output
Arata Notsu4897ff52013-10-09 18:49:32 +0900113 setup_colorized_logging $HEAT_CONF DEFAULT tenant user
Steve Baker556ffe42013-08-06 16:42:38 +1200114 fi
115
Angus Salkelda213e2c2013-08-30 10:48:46 +1000116 # keystone authtoken
Jamie Lennox3561d7f2014-05-21 17:18:43 +1000117 iniset $HEAT_CONF keystone_authtoken identity_uri $KEYSTONE_AUTH_URI
Vincent Hou21fe4e72013-11-21 03:10:27 -0500118 configure_API_version $HEAT_CONF $IDENTITY_API_VERSION
Jamie Lennoxbd24a8d2013-09-20 16:26:42 +1000119 iniset $HEAT_CONF keystone_authtoken cafile $KEYSTONE_SSL_CA
Angus Salkelda213e2c2013-08-30 10:48:46 +1000120 iniset $HEAT_CONF keystone_authtoken admin_tenant_name $SERVICE_TENANT_NAME
121 iniset $HEAT_CONF keystone_authtoken admin_user heat
122 iniset $HEAT_CONF keystone_authtoken admin_password $SERVICE_PASSWORD
Angus Salkelde1186552013-09-06 13:35:09 +1000123 iniset $HEAT_CONF keystone_authtoken signing_dir $HEAT_AUTH_CACHE_DIR
Angus Salkelde2790212012-09-11 11:24:09 +1000124
Rob Crittendenfefd64b2014-05-27 22:27:15 -0400125 if is_ssl_enabled_service "key"; then
126 iniset $HEAT_CONF clients_keystone ca_file $KEYSTONE_SSL_CA
127 fi
128
Angus Salkelda213e2c2013-08-30 10:48:46 +1000129 # ec2authtoken
Jamie Lennox3561d7f2014-05-21 17:18:43 +1000130 iniset $HEAT_CONF ec2authtoken auth_uri $KEYSTONE_SERVICE_URI/v2.0
Angus Salkelda213e2c2013-08-30 10:48:46 +1000131
132 # paste_deploy
Steve Bakere389aed2014-09-23 17:10:39 +1200133 if [[ "$HEAT_STANDALONE" = "True" ]]; then
134 iniset $HEAT_CONF paste_deploy flavor standalone
135 iniset $HEAT_CONF DEFAULT keystone_backend heat_keystoneclient_v2.client.KeystoneClientV2
136 iniset $HEAT_CONF clients_heat url "http://$HEAT_API_HOST:$HEAT_API_PORT/v1/%(tenant_id)s"
137 fi
Angus Salkelda213e2c2013-08-30 10:48:46 +1000138
139 # OpenStack API
Angus Salkelda213e2c2013-08-30 10:48:46 +1000140 iniset $HEAT_CONF heat_api bind_port $HEAT_API_PORT
141
142 # Cloudformation API
Angus Salkelda213e2c2013-08-30 10:48:46 +1000143 iniset $HEAT_CONF heat_api_cfn bind_port $HEAT_API_CFN_PORT
144
145 # Cloudwatch API
Angus Salkelda213e2c2013-08-30 10:48:46 +1000146 iniset $HEAT_CONF heat_api_cloudwatch bind_port $HEAT_API_CW_PORT
Angus Salkelde2790212012-09-11 11:24:09 +1000147
Angus Salkeldf645a852013-08-26 10:13:36 +1000148 # heat environment
149 sudo mkdir -p $HEAT_ENV_DIR
150 sudo chown $STACK_USER $HEAT_ENV_DIR
151 # copy the default environment
152 cp $HEAT_DIR/etc/heat/environment.d/* $HEAT_ENV_DIR/
153
Angus Salkeldfb71a272013-08-26 10:15:38 +1000154 # heat template resources.
155 sudo mkdir -p $HEAT_TEMPLATES_DIR
156 sudo chown $STACK_USER $HEAT_TEMPLATES_DIR
157 # copy the default templates
158 cp $HEAT_DIR/etc/heat/templates/* $HEAT_TEMPLATES_DIR/
159
Steve Bakerbfdad752012-08-18 09:00:42 +1200160}
161
162# init_heat() - Initialize database
Ian Wienandaee18c72014-02-21 15:35:08 +1100163function init_heat {
Steve Bakerbfdad752012-08-18 09:00:42 +1200164
165 # (re)create heat database
Terry Wilson428af5a2012-11-01 16:12:39 -0400166 recreate_database heat utf8
Steve Bakerbfdad752012-08-18 09:00:42 +1200167
Steve Bakere3111322013-06-19 13:57:31 +1200168 $HEAT_DIR/bin/heat-manage db_sync
Steve Bakerc3249082013-04-09 13:41:47 +1200169 create_heat_cache_dir
170}
171
172# create_heat_cache_dir() - Part of the init_heat() process
Ian Wienandaee18c72014-02-21 15:35:08 +1100173function create_heat_cache_dir {
Steve Bakerc3249082013-04-09 13:41:47 +1200174 # Create cache dirs
Angus Salkelde1186552013-09-06 13:35:09 +1000175 sudo mkdir -p $HEAT_AUTH_CACHE_DIR
176 sudo chown $STACK_USER $HEAT_AUTH_CACHE_DIR
Steve Bakerbfdad752012-08-18 09:00:42 +1200177}
178
Steve Baker32761a42012-11-05 09:57:57 +1300179# install_heatclient() - Collect source and prepare
Ian Wienandaee18c72014-02-21 15:35:08 +1100180function install_heatclient {
Steve Baker32761a42012-11-05 09:57:57 +1300181 git_clone $HEATCLIENT_REPO $HEATCLIENT_DIR $HEATCLIENT_BRANCH
Sean Dagued644e232013-07-25 15:34:48 -0400182 setup_develop $HEATCLIENT_DIR
Attila Fazekas8664ca52014-02-02 10:07:39 +0100183 sudo install -D -m 0644 -o $STACK_USER {$HEATCLIENT_DIR/tools/,/etc/bash_completion.d/}heat.bash_completion
Steve Baker32761a42012-11-05 09:57:57 +1300184}
185
Steve Bakerbfdad752012-08-18 09:00:42 +1200186# install_heat() - Collect source and prepare
Ian Wienandaee18c72014-02-21 15:35:08 +1100187function install_heat {
Steve Bakerbfdad752012-08-18 09:00:42 +1200188 git_clone $HEAT_REPO $HEAT_DIR $HEAT_BRANCH
189}
190
Steve Baker315971d2014-05-27 12:24:18 +1200191# install_heat_other() - Collect source and prepare
192function install_heat_other {
193 git_clone $HEAT_CFNTOOLS_REPO $HEAT_CFNTOOLS_DIR $HEAT_CFNTOOLS_BRANCH
194 git_clone $HEAT_TEMPLATES_REPO $HEAT_TEMPLATES_REPO_DIR $HEAT_TEMPLATES_BRANCH
195}
196
Steve Bakerbfdad752012-08-18 09:00:42 +1200197# start_heat() - Start running processes, including screen
Ian Wienandaee18c72014-02-21 15:35:08 +1100198function start_heat {
Chris Dent2f27a0e2014-09-09 13:46:02 +0100199 run_process h-eng "$HEAT_DIR/bin/heat-engine --config-file=$HEAT_CONF"
200 run_process h-api "$HEAT_DIR/bin/heat-api --config-file=$HEAT_CONF"
201 run_process h-api-cfn "$HEAT_DIR/bin/heat-api-cfn --config-file=$HEAT_CONF"
202 run_process h-api-cw "$HEAT_DIR/bin/heat-api-cloudwatch --config-file=$HEAT_CONF"
Steve Bakerbfdad752012-08-18 09:00:42 +1200203}
204
Dean Troyer699a29f2012-09-10 14:10:27 -0500205# stop_heat() - Stop running processes
Ian Wienandaee18c72014-02-21 15:35:08 +1100206function stop_heat {
Kieran Spear70338292013-05-28 11:31:31 +1000207 # Kill the screen windows
Dean Troyer7d31bdc2014-07-25 12:50:05 -0500208 local serv
Kieran Spear70338292013-05-28 11:31:31 +1000209 for serv in h-eng h-api h-api-cfn h-api-cw; do
Chris Dent2f27a0e2014-09-09 13:46:02 +0100210 stop_process $serv
Dean Troyer699a29f2012-09-10 14:10:27 -0500211 done
Steve Bakerbfdad752012-08-18 09:00:42 +1200212}
Dean Troyer7903b792012-09-13 17:16:12 -0500213
Steven Hardy33d1f862014-02-13 15:00:33 +0000214# create_heat_accounts() - Set up common required heat accounts
Ian Wienandaee18c72014-02-21 15:35:08 +1100215function create_heat_accounts {
Steven Hardy57d478d2014-02-28 16:37:43 +0000216 # migrated from files/keystone_data.sh
Dean Troyer7d31bdc2014-07-25 12:50:05 -0500217 local service_tenant=$(openstack project list | awk "/ $SERVICE_TENANT_NAME / { print \$2 }")
218 local admin_role=$(openstack role list | awk "/ admin / { print \$2 }")
Steven Hardy57d478d2014-02-28 16:37:43 +0000219
Dean Troyer7d31bdc2014-07-25 12:50:05 -0500220 local heat_user=$(get_or_create_user "heat" \
221 "$SERVICE_PASSWORD" $service_tenant)
222 get_or_add_user_role $admin_role $heat_user $service_tenant
Bartosz Górski0abde392014-02-28 14:15:19 +0100223
Steven Hardy57d478d2014-02-28 16:37:43 +0000224 if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then
Bartosz Górski0abde392014-02-28 14:15:19 +0100225
Dean Troyer7d31bdc2014-07-25 12:50:05 -0500226 local heat_service=$(get_or_create_service "heat" \
Bartosz Górski0abde392014-02-28 14:15:19 +0100227 "orchestration" "Heat Orchestration Service")
Dean Troyer7d31bdc2014-07-25 12:50:05 -0500228 get_or_create_endpoint $heat_service \
Bartosz Górski0abde392014-02-28 14:15:19 +0100229 "$REGION_NAME" \
230 "$SERVICE_PROTOCOL://$HEAT_API_HOST:$HEAT_API_PORT/v1/\$(tenant_id)s" \
231 "$SERVICE_PROTOCOL://$HEAT_API_HOST:$HEAT_API_PORT/v1/\$(tenant_id)s" \
232 "$SERVICE_PROTOCOL://$HEAT_API_HOST:$HEAT_API_PORT/v1/\$(tenant_id)s"
233
Dean Troyer7d31bdc2014-07-25 12:50:05 -0500234 local heat_cfn_service=$(get_or_create_service "heat-cfn" \
Bartosz Górski0abde392014-02-28 14:15:19 +0100235 "cloudformation" "Heat CloudFormation Service")
Dean Troyer7d31bdc2014-07-25 12:50:05 -0500236 get_or_create_endpoint $heat_cfn_service \
Bartosz Górski0abde392014-02-28 14:15:19 +0100237 "$REGION_NAME" \
238 "$SERVICE_PROTOCOL://$HEAT_API_CFN_HOST:$HEAT_API_CFN_PORT/v1" \
239 "$SERVICE_PROTOCOL://$HEAT_API_CFN_HOST:$HEAT_API_CFN_PORT/v1" \
240 "$SERVICE_PROTOCOL://$HEAT_API_CFN_HOST:$HEAT_API_CFN_PORT/v1"
Steven Hardy57d478d2014-02-28 16:37:43 +0000241 fi
242
243 # heat_stack_user role is for users created by Heat
Bartosz Górski0abde392014-02-28 14:15:19 +0100244 get_or_create_role "heat_stack_user"
Steven Hardy57d478d2014-02-28 16:37:43 +0000245
Steven Hardyf83cf932014-03-12 16:54:01 +0000246 if [[ $HEAT_DEFERRED_AUTH == trusts ]]; then
Bartosz Górski0abde392014-02-28 14:15:19 +0100247
Steven Hardyf83cf932014-03-12 16:54:01 +0000248 # heat_stack_owner role is given to users who create Heat stacks,
249 # it's the default role used by heat to delegate to the heat service
250 # user (for performing deferred operations via trusts), see heat.conf
Dean Troyer7d31bdc2014-07-25 12:50:05 -0500251 local heat_owner_role=$(get_or_create_role "heat_stack_owner")
Steven Hardy2ca3bf12014-03-03 18:07:33 +0000252
Steven Hardyf83cf932014-03-12 16:54:01 +0000253 # Give the role to the demo and admin users so they can create stacks
254 # in either of the projects created by devstack
Dean Troyer7d31bdc2014-07-25 12:50:05 -0500255 get_or_add_user_role $heat_owner_role demo demo
256 get_or_add_user_role $heat_owner_role admin demo
257 get_or_add_user_role $heat_owner_role admin admin
Steven Hardyf83cf932014-03-12 16:54:01 +0000258 iniset $HEAT_CONF DEFAULT deferred_auth_method trusts
259 fi
Steven Hardy2ca3bf12014-03-03 18:07:33 +0000260
Steve Baker16aca8a2014-03-11 14:01:57 +1300261 if [[ "$HEAT_STACK_DOMAIN" == "True" ]]; then
262 # Note we have to pass token/endpoint here because the current endpoint and
263 # version negotiation in OSC means just --os-identity-api-version=3 won't work
Dean Troyer7d31bdc2014-07-25 12:50:05 -0500264 local ks_endpoint_v3="$KEYSTONE_SERVICE_URI/v3"
Steven Hardydd029da2014-02-24 18:09:10 +0000265
Dean Troyer7d31bdc2014-07-25 12:50:05 -0500266 D_ID=$(openstack --os-token $OS_TOKEN --os-url=$ks_endpoint_v3 \
Bartosz Górski0abde392014-02-28 14:15:19 +0100267 --os-identity-api-version=3 domain list | grep ' heat ' | get_field 1)
268
269 if [[ -z "$D_ID" ]]; then
Dean Troyer7d31bdc2014-07-25 12:50:05 -0500270 D_ID=$(openstack --os-token $OS_TOKEN --os-url=$ks_endpoint_v3 \
Bartosz Górski0abde392014-02-28 14:15:19 +0100271 --os-identity-api-version=3 domain create heat \
272 --description "Owns users and projects created by heat" \
273 | grep ' id ' | get_field 2)
274 iniset $HEAT_CONF DEFAULT stack_user_domain ${D_ID}
275
Dean Troyer7d31bdc2014-07-25 12:50:05 -0500276 openstack --os-token $OS_TOKEN --os-url=$ks_endpoint_v3 \
Bartosz Górski0abde392014-02-28 14:15:19 +0100277 --os-identity-api-version=3 user create --password $SERVICE_PASSWORD \
278 --domain $D_ID heat_domain_admin \
279 --description "Manages users and projects created by heat"
Dean Troyer7d31bdc2014-07-25 12:50:05 -0500280 openstack --os-token $OS_TOKEN --os-url=$ks_endpoint_v3 \
Bartosz Górski0abde392014-02-28 14:15:19 +0100281 --os-identity-api-version=3 role add \
282 --user heat_domain_admin --domain ${D_ID} admin
283 iniset $HEAT_CONF DEFAULT stack_domain_admin heat_domain_admin
284 iniset $HEAT_CONF DEFAULT stack_domain_admin_password $SERVICE_PASSWORD
285 fi
Steve Baker16aca8a2014-03-11 14:01:57 +1300286 fi
Steven Hardy33d1f862014-02-13 15:00:33 +0000287}
288
Steve Baker2a6009c2014-05-05 16:13:39 +1200289# build_heat_functional_test_image() - Build and upload functional test image
290function build_heat_functional_test_image {
291 build_dib_pip_repo "$OCC_DIR $OAC_DIR $ORC_DIR $HEAT_CFNTOOLS_DIR"
292 local image_name=heat-functional-tests-image
293
294 # The elements to invoke disk-image-create with
295 local image_elements="vm fedora selinux-permissive pypi \
296 os-collect-config os-refresh-config os-apply-config heat-cfntools \
297 heat-config heat-config-cfn-init heat-config-puppet heat-config-script"
298
299 # Elements path for tripleo-image-elements and heat-templates software-config
300 local elements_path=$TIE_DIR/elements:$HEAT_TEMPLATES_REPO_DIR/hot/software-config/elements
301
302 disk_image_create_upload "$image_name" "$image_elements" "$elements_path"
303 iniset $TEMPEST_CONFIG orchestration image_ref $image_name
304}
305
Dean Troyer7903b792012-09-13 17:16:12 -0500306# Restore xtrace
307$XTRACE
Sean Dague584d90e2013-03-29 14:34:53 -0400308
Adam Spiers6a5aa7c2013-10-24 11:27:02 +0100309# Tell emacs to use shell-script-mode
310## Local variables:
311## mode: shell-script
312## End: