Add Ironic network
The patch connects additional ironic network to the following servers:
* workerks
* gateways
* computes
* spares
Related-Prod: PRODX-4769
Change-Id: I3d28eec496023759a219386ab15d80c79ba442a2
diff --git a/de/heat-templates/fragments/SrvInstancesBMCeph.yaml b/de/heat-templates/fragments/SrvInstancesBMCeph.yaml
index 2f2ae4a..c097bdf 100644
--- a/de/heat-templates/fragments/SrvInstancesBMCeph.yaml
+++ b/de/heat-templates/fragments/SrvInstancesBMCeph.yaml
@@ -38,6 +38,12 @@
type: string
control_network_cidr:
type: string
+ ironic_baremetal_network:
+ type: string
+ ironic_baremetal_subnet_id:
+ type: string
+ ironic_baremetal_interface:
+ type: string
functions_override:
type: string
boot_timeout:
@@ -83,6 +89,8 @@
$storage_frontend_interface: { get_param: storage_frontend_interface }
$storage_frontend_network_interface_ip: { get_attr: [storage_frontend_server_port, fixed_ips, 0, ip_address] }
$storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
+ $ironic_baremetal_interface: { get_param: ironic_baremetal_interface }
+ $ironic_baremetal_interface_ip: { get_attr: [ironic_baremetal_server_port, fixed_ips, 0, ip_address] }
inject_files:
type: "OS::Heat::CloudConfig"
@@ -116,6 +124,7 @@
- network: { get_param: accessible_network }
# NOTE(ohryhorov): connect to accessible network only as ironic doesn't
# support multitenancy use-case. Use private_floating_network for IPAM only.
+ # NOTE(vsaienko): ditto about ironic baremetal network
user_data_format: SOFTWARE_CONFIG
user_data: { get_resource: install_config_agent}
metadata: { get_param: metadata }
@@ -136,6 +145,14 @@
fixed_ips:
- subnet: { get_param: storage_frontend_subnet_id }
+ ironic_baremetal_server_port:
+ type: OS::Neutron::Port
+ properties:
+ network_id: { get_param: ironic_baremetal_network }
+ port_security_enabled: false
+ fixed_ips:
+ - subnet: { get_param: ironic_baremetal_subnet_id }
+
wait_handle:
type: OS::Heat::WaitConditionHandle
wait_condition: