Add new vm_availability_zone and use it for virtual environments
Change-Id: I4ee0abef632fdec03a6a673d28e23142e3e65861
diff --git a/tcp_tests/templates/heat-cicd-k8s-genie/underlay.hot b/tcp_tests/templates/heat-cicd-k8s-genie/underlay.hot
index c6287c6..f05b7c6 100644
--- a/tcp_tests/templates/heat-cicd-k8s-genie/underlay.hot
+++ b/tcp_tests/templates/heat-cicd-k8s-genie/underlay.hot
@@ -53,6 +53,11 @@
foundation_image:
type: string
+ bm_availability_zone:
+ type: string
+ vm_availability_zone:
+ type: string
+
resources:
networks:
type: MCP::Networks
@@ -81,6 +86,7 @@
env_name: { get_param: env_name }
mcp_version: { get_param: mcp_version }
cfg01_flavor: { get_param: cfg_flavor }
+ availability_zone: { get_param: bm_availability_zone }
management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }
@@ -108,6 +114,7 @@
instance03_name: ctl03
instance01_role: [k8s_controller]
instance_flavor: {get_param: ctl_flavor}
+ availability_zone: { get_param: vm_availability_zone }
underlay_userdata: { get_file: ./underlay-userdata.yaml }
instance01_control_net_static_ip:
list_join:
@@ -159,6 +166,7 @@
instance02_name: kvm02
instance03_name: kvm03
instance_flavor: {get_param: kvm_fake_flavor}
+ availability_zone: { get_param: vm_availability_zone }
underlay_userdata: { get_file: ./underlay-userdata.yaml }
instance01_control_net_static_ip:
list_join:
@@ -210,6 +218,7 @@
instance02_name: cid02
instance03_name: cid03
instance_flavor: {get_param: cid_flavor}
+ availability_zone: { get_param: vm_availability_zone }
underlay_userdata: { get_file: ./underlay-userdata.yaml }
instance01_control_net_static_ip:
list_join:
@@ -259,6 +268,7 @@
instance_domain: {get_param: instance_domain}
instance_name: prx01
instance_flavor: {get_param: cid_flavor}
+ availability_zone: { get_param: vm_availability_zone }
underlay_userdata: { get_file: ./underlay-userdata.yaml }
control_net_static_ip:
list_join:
@@ -284,6 +294,7 @@
instance_domain: {get_param: instance_domain}
instance_name: prx02
instance_flavor: {get_param: cid_flavor}
+ availability_zone: { get_param: vm_availability_zone }
underlay_userdata: { get_file: ./underlay-userdata.yaml }
control_net_static_ip:
list_join:
@@ -309,6 +320,7 @@
instance_domain: {get_param: instance_domain}
instance_name: cmp001
instance_flavor: {get_param: cmp_flavor}
+ availability_zone: { get_param: vm_availability_zone }
underlay_userdata: { get_file: ./underlay-userdata.yaml }
control_net_static_ip:
list_join:
@@ -334,6 +346,7 @@
instance_domain: {get_param: instance_domain}
instance_name: cmp002
instance_flavor: {get_param: cmp_flavor}
+ availability_zone: { get_param: vm_availability_zone }
underlay_userdata: { get_file: ./underlay-userdata.yaml }
control_net_static_ip:
list_join:
@@ -359,6 +372,7 @@
instance_domain: {get_param: instance_domain}
instance_name: cmp003
instance_flavor: {get_param: cmp_flavor}
+ availability_zone: { get_param: vm_availability_zone }
underlay_userdata: { get_file: ./underlay-userdata.yaml }
control_net_static_ip:
list_join:
@@ -384,6 +398,7 @@
instance_domain: {get_param: instance_domain}
instance_name: cmp004
instance_flavor: {get_param: cmp_flavor}
+ availability_zone: { get_param: vm_availability_zone }
underlay_userdata: { get_file: ./underlay-userdata.yaml }
control_net_static_ip:
list_join:
@@ -410,6 +425,7 @@
instance_name: foundation
instance_image: { get_param: foundation_image }
instance_flavor: {get_param: foundation_flavor}
+ availability_zone: { get_param: bm_availability_zone }
management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] }
control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] }
tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] }