7adce61612
Make use of the new lbaas v2 resources. This is an experimental gate job. Will use the lbaas v2 namespace-haproxy driver instead of octavia. Octavia requires nested vms which is very slow and causes timeouts in devstack gates. Change-Id: I7ea6e50a1da46622bdddcfccaf82203f473bfacc
70 lines
1.3 KiB
YAML
70 lines
1.3 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:
|
|
type: string
|
|
|
|
app_port:
|
|
type: number
|
|
|
|
timeout:
|
|
type: number
|
|
|
|
subnet:
|
|
type: string
|
|
|
|
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::LBaaS::PoolMember
|
|
depends_on: waiter
|
|
properties:
|
|
address: { get_attr: [ server, networks, { get_param: net }, 0 ] }
|
|
pool: { get_param: pool }
|
|
protocol_port: { get_param: app_port }
|
|
subnet: { get_param: subnet }
|