heat/heat_integrationtests/scenario/templates/app_server_neutron.yaml
Pavlo Shchelokovskyy 1bc886c89d Merge Neutron AutoScaling and LoadBalancer tests
The tested use case is an autoscaling group of web app servers
behind a loadbalancer.

Test template was rewritten to use AutoScalingGroup, wait conditions and
outputs, so no other client than heat one is used.
Now there is no need to check for VM connectivity,
as stack/resources status COMPLETE now quite reliably means
that the listening servers are running.

This patch should probably also help with narrowing down the causes of
bug 1437203, since it does not checks instance connectivity with SSH.

Change-Id: Iec8e8061f9ab3f3841fa221722b7b7805760cdf7
Related-Bug: #1437203
Closes-Bug: #1435285
2015-08-28 08:39:47 +00:00

66 lines
1.2 KiB
YAML

heat_template_version: 2015-10-15
description: |
App server that is a member of Neutron Pool.
parameters:
image:
type: string
flavor:
type: string
net:
type: string
sec_group:
type: string
pool_id:
type: string
app_port:
type: number
timeout:
type: number
resources:
config:
type: OS::Test::WebAppConfig
properties:
app_port: { get_param: app_port }
wc_curl_cli: { get_attr: [ handle, curl_cli ] }
server:
type: OS::Nova::Server
properties:
image: { get_param: image }
flavor: { get_param: flavor }
networks:
- network: { get_param: net }
security_groups:
- { get_param: sec_group }
user_data_format: RAW
user_data: { get_resource: config }
handle:
type: OS::Heat::WaitConditionHandle
waiter:
type: OS::Heat::WaitCondition
depends_on: server
properties:
timeout: { get_param: timeout }
handle: { get_resource: handle }
pool_member:
type: OS::Neutron::PoolMember
depends_on: waiter
properties:
address: { get_attr: [ server, networks, { get_param: net }, 0 ] }
pool_id: { get_param: pool_id }
protocol_port: { get_param: app_port }