SI MOCK BM LAB

https: //mirantis.jira.com/browse/PRODX-2630
Change-Id: I31f86effd15ba4fc5079b084c235d27bb704b2da
diff --git a/de/heat-templates/env/bmt410-mstr3-wrkr3-cmp0-gtw0-osd3.yaml b/de/heat-templates/env/bmt410-mstr3-wrkr3-cmp0-gtw0-osd3.yaml
new file mode 100644
index 0000000..ec785e9
--- /dev/null
+++ b/de/heat-templates/env/bmt410-mstr3-wrkr3-cmp0-gtw0-osd3.yaml
@@ -0,0 +1,536 @@
+resource_registry:
+  "MCP2::NetworkAcc": ../fragments/NetworkAccBM.yaml
+  "MCP2::NetworkAccStorage": ../fragments/NetworkAccVMStorage.yaml
+  "MCP2::NetworkPrvFl": ../fragments/NetworkPrvFl.yaml
+  "MCP2::SrvInstances": ../fragments/SrvInstancesBM.yaml
+  "MCP2::SrvInstancesCeph": ../fragments/SrvInstancesBMCeph.yaml
+  "MCP2::SrvInstancesCephOSD": ../fragments/SrvInstancesBMCephOSD.yaml
+
+parameters:
+  image: bionic-server-cloudimg-amd64-20190612
+  ucp_flavor: si-bm-410-128-16-hdd0-ssd2x1t
+  masters_flavor: si-bm-410-128-16-hdd0-ssd2x1t
+  workers_flavor: si-bm-410-128-32-hdd0-ssd2x1t
+  cmps_flavor: oscore-bm-lab-01
+  gtws_flavor: oscore-bm-lab-01
+  lmas_flavor: oscore-bm-lab-01
+  osds_flavor: si-bm-410-64-16-hdd2x2t-ssd1x500g
+  spares_flavor: si-bm-410-64-16-hdd2x2t-ssd1x500g
+  masters_size: 2  # UCP nodes
+  worker_size: 3  # OpenStack controller nodes
+  cmp_size: 0
+  gtw_size: 0
+  lma_size: 0
+  osd_size: 3
+  spare_size: 1
+  ucp_boot_timeout: 1200
+  cluster_public_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCp0evjOaK8c8SKYK4r2+0BN7g+8YSvQ2n8nFgOURCyvkJqOHi1qPGZmuN0CclYVdVuZiXbWw3VxRbSW3EH736VzgY1U0JmoTiSamzLHaWsXvEIW8VCi7boli539QJP0ikJiBaNAgZILyCrVPN+A6mfqtacs1KXdZ0zlMq1BPtFciR1JTCRcVs5vP2Wwz5QtY2jMIh3aiwkePjMTQPcfmh1TkOlxYu5IbQyZ3G1ahA0mNKI9a0dtF282av/F6pwB/N1R1nEZ/9VtcN2I1mf1NW/tTHEEcTzXYo1R/8K9vlqAN8QvvGLZtZduGviNVNoNWvoxaXxDt8CPv2B2NCdQFZp
+  public_net_id: 'physnet1-410'
+  control_network_cidr: '172.16.50.0/25'
+  private_floating_network_cidr: '172.16.51.0/25'
+  private_floating_network_pool_start: '172.16.51.10'
+  private_floating_network_pool_end: '172.16.51.30'
+  private_floating_network_ipam_pool_start: '172.16.51.31'
+  private_floating_network_ipam_pool_end: '172.16.51.62'
+  private_floating_network_gateway: '172.16.51.1'
+  private_floating_interface: 'os-floating'
+  tunnel_interface: 'os-tenant'
+  live_migration_interface: 'os-tenant'
+  #master_metadata: {"labels": {"role": "stacklight", "stacklight": "enabled"}}
+  worker_metadata: {"labels": {"openstack-control-plane":"enabled", "openstack-compute-node":"enabled", "openvswitch":"enabled", "gateway": "enabled"}}
+  osd_metadata: {"labels": {"role": "ceph-osd-node"}}
+  spare_metadata: {"labels": {"role": "spare-node"}}
+
+
+  hardware_metadata: |
+    '0c:c4:7a:33:26:7c':
+      write_files:
+      - path: '/etc/netplan/99-cz7714.yaml'
+        content: |
+          network:
+            version: 2
+            ethernets:
+              eno1:
+                dhcp4: false
+              ens3f1:
+                dhcp4: false
+              ens3f2:
+                dhcp4: false
+              ens3f3:
+                dhcp4: false
+            bonds:
+              bond0:
+                dhcp4: no
+                interfaces: [eno1, ens3f1]
+                parameters:
+                  mode: active-backup
+                  mii-monitor-interval: 1
+              bond1:
+                dhcp4: no
+                interfaces: [ens3f2, ens3f3]
+                parameters:
+                  mode: active-backup
+                  mii-monitor-interval: 1
+            vlans:
+              k8s-control:
+                id: 411
+                link: bond0
+              os-floating:
+                id: 412
+                link: bond1
+              k8s-metallb:
+                id: 413
+                link: bond0
+              k8s-dataplane:
+                id: 414
+                link: bond0
+              os-storage:
+                id: 415
+                link: bond1
+              os-tenant:
+                id: 416
+                link: bond1
+
+    '0c:c4:7a:33:26:6e':
+      write_files:
+      - path: '/etc/netplan/99-cz7725.yaml'
+        content: |
+          network:
+            version: 2
+            ethernets:
+              eno1:
+                dhcp4: false
+              ens3f1:
+                dhcp4: false
+              ens3f2:
+                dhcp4: false
+              ens3f3:
+                dhcp4: false
+            bonds:
+              bond0:
+                dhcp4: no
+                interfaces: [eno1, ens3f1]
+                parameters:
+                  mode: active-backup
+                  mii-monitor-interval: 1
+              bond1:
+                dhcp4: no
+                interfaces: [ens3f2, ens3f3]
+                parameters:
+                  mode: active-backup
+                  mii-monitor-interval: 1
+            vlans:
+              k8s-control:
+                id: 411
+                link: bond0
+              os-floating:
+                id: 412
+                link: bond1
+              k8s-metallb:
+                id: 413
+                link: bond0
+              k8s-dataplane:
+                id: 414
+                link: bond0
+              os-storage:
+                id: 415
+                link: bond1
+              os-tenant:
+                id: 416
+                link: bond1
+
+    '0c:c4:7a:33:26:6a':
+      write_files:
+      - path: '/etc/netplan/99-cz7725.yaml'
+        content: |
+          network:
+            version: 2
+            ethernets:
+              eno1:
+                dhcp4: false
+              ens3f1:
+                dhcp4: false
+              ens3f2:
+                dhcp4: false
+              ens3f3:
+                dhcp4: false
+            bonds:
+              bond0:
+                dhcp4: no
+                interfaces: [eno1, ens3f1]
+                parameters:
+                  mode: active-backup
+                  mii-monitor-interval: 1
+              bond1:
+                dhcp4: no
+                interfaces: [ens3f2, ens3f3]
+                parameters:
+                  mode: active-backup
+                  mii-monitor-interval: 1
+            vlans:
+              k8s-control:
+                id: 411
+                link: bond0
+              os-floating:
+                id: 412
+                link: bond1
+              k8s-metallb:
+                id: 413
+                link: bond0
+              k8s-dataplane:
+                id: 414
+                link: bond0
+              os-storage:
+                id: 415
+                link: bond1
+              os-tenant:
+                id: 416
+                link: bond1
+
+    '0c:c4:7a:34:92:94':
+      write_files:
+      - path: '/etc/netplan/99-cz7725.yaml'
+        content: |
+          network:
+            version: 2
+            ethernets:
+              eno1:
+                dhcp4: false
+              ens3f1:
+                dhcp4: false
+              ens3f2:
+                dhcp4: false
+              ens3f3:
+                dhcp4: false
+            bonds:
+              bond0:
+                dhcp4: no
+                interfaces: [eno1, ens3f1]
+                parameters:
+                  mode: active-backup
+                  mii-monitor-interval: 1
+              bond1:
+                dhcp4: no
+                interfaces: [ens3f2, ens3f3]
+                parameters:
+                  mode: active-backup
+                  mii-monitor-interval: 1
+            vlans:
+              k8s-control:
+                id: 411
+                link: bond0
+              os-floating:
+                id: 412
+                link: bond1
+              k8s-metallb:
+                id: 413
+                link: bond0
+              k8s-dataplane:
+                id: 414
+                link: bond0
+              os-storage:
+                id: 415
+                link: bond1
+              os-tenant:
+                id: 416
+                link: bond1
+
+    '0c:c4:7a:aa:e0:9e':
+      write_files:
+      - path: '/etc/netplan/99-cz7725.yaml'
+        content: |
+          network:
+            version: 2
+            ethernets:
+              ens11f0:
+                dhcp4: false
+              ens11f1:
+                dhcp4: false
+              ens11f2:
+                dhcp4: false
+              ens11f3:
+                dhcp4: false
+            bonds:
+              bond0:
+                dhcp4: no
+                interfaces: [ens11f0, ens11f1]
+                parameters:
+                  mode: active-backup
+                  mii-monitor-interval: 1
+              bond1:
+                dhcp4: no
+                interfaces: [ens11f2, ens11f3]
+                parameters:
+                  mode: active-backup
+                  mii-monitor-interval: 1
+            vlans:
+              k8s-control:
+                id: 411
+                link: bond0
+              os-floating:
+                id: 412
+                link: bond1
+              k8s-metallb:
+                id: 413
+                link: bond0
+              k8s-dataplane:
+                id: 414
+                link: bond0
+              os-storage:
+                id: 415
+                link: bond1
+              os-tenant:
+                id: 416
+                link: bond1
+
+    '0c:c4:7a:aa:e0:9c':
+      write_files:
+      - path: '/etc/netplan/99-cz7725.yaml'
+        content: |
+          network:
+            version: 2
+            ethernets:
+              ens11f0:
+                dhcp4: false
+              ens11f1:
+                dhcp4: false
+              ens11f2:
+                dhcp4: false
+              ens11f3:
+                dhcp4: false
+            bonds:
+              bond0:
+                dhcp4: no
+                interfaces: [ens11f0, ens11f1]
+                parameters:
+                  mode: active-backup
+                  mii-monitor-interval: 1
+              bond1:
+                dhcp4: no
+                interfaces: [ens11f2, ens11f3]
+                parameters:
+                  mode: active-backup
+                  mii-monitor-interval: 1
+            vlans:
+              k8s-control:
+                id: 411
+                link: bond0
+              os-floating:
+                id: 412
+                link: bond1
+              k8s-metallb:
+                id: 413
+                link: bond0
+              k8s-dataplane:
+                id: 414
+                link: bond0
+              os-storage:
+                id: 415
+                link: bond1
+              os-tenant:
+                id: 416
+                link: bond1
+
+    '0c:c4:7a:aa:78:2c':
+      write_files:
+      - path: '/etc/netplan/99-cz7725.yaml'
+        content: |
+          network:
+            version: 2
+            ethernets:
+              ens11f0:
+                dhcp4: false
+              ens11f1:
+                dhcp4: false
+              ens11f2:
+                dhcp4: false
+              ens11f3:
+                dhcp4: false
+            bonds:
+              bond0:
+                dhcp4: no
+                interfaces: [ens11f0, ens11f1]
+                parameters:
+                  mode: active-backup
+                  mii-monitor-interval: 1
+              bond1:
+                dhcp4: no
+                interfaces: [ens11f2, ens11f3]
+                parameters:
+                  mode: active-backup
+                  mii-monitor-interval: 1
+            vlans:
+              k8s-control:
+                id: 411
+                link: bond0
+              os-floating:
+                id: 412
+                link: bond1
+              k8s-metallb:
+                id: 413
+                link: bond0
+              k8s-dataplane:
+                id: 414
+                link: bond0
+              os-storage:
+                id: 415
+                link: bond1
+              os-tenant:
+                id: 416
+                link: bond1
+
+    '0c:c4:7a:aa:78:7a':
+      write_files:
+      - path: '/etc/netplan/99-cz7725.yaml'
+        content: |
+          network:
+            version: 2
+            ethernets:
+              eno1:
+                dhcp4: false
+              ens4f1:
+                dhcp4: false
+              ens4f2:
+                dhcp4: false
+              ens4f3:
+                dhcp4: false
+            bonds:
+              bond0:
+                dhcp4: no
+                interfaces: [eno1, ens4f1]
+                parameters:
+                  mode: active-backup
+                  mii-monitor-interval: 1
+              bond1:
+                dhcp4: no
+                interfaces: [ens4f2, ens4f3]
+                parameters:
+                  mode: active-backup
+                  mii-monitor-interval: 1
+            vlans:
+              k8s-control:
+                id: 411
+                link: bond0
+              os-floating:
+                id: 412
+                link: bond1
+              k8s-metallb:
+                id: 413
+                link: bond0
+              k8s-dataplane:
+                id: 414
+                link: bond0
+              os-storage:
+                id: 415
+                link: bond1
+              os-tenant:
+                id: 416
+                link: bond1
+
+    '0c:c4:7a:aa:e0:98':
+      write_files:
+      - path: '/etc/netplan/99-cz7725.yaml'
+        content: |
+          network:
+            version: 2
+            ethernets:
+              eno1:
+                dhcp4: false
+              ens4f1:
+                dhcp4: false
+              ens4f2:
+                dhcp4: false
+              ens4f3:
+                dhcp4: false
+            bonds:
+              bond0:
+                dhcp4: no
+                interfaces: [eno1, ens4f1]
+                parameters:
+                  mode: active-backup
+                  mii-monitor-interval: 1
+              bond1:
+                dhcp4: no
+                interfaces: [ens4f2, ens4f3]
+                parameters:
+                  mode: active-backup
+                  mii-monitor-interval: 1
+            vlans:
+              k8s-control:
+                id: 411
+                link: bond0
+              os-floating:
+                id: 412
+                link: bond1
+              k8s-metallb:
+                id: 413
+                link: bond0
+              k8s-dataplane:
+                id: 414
+                link: bond0
+              os-storage:
+                id: 415
+                link: bond1
+              os-tenant:
+                id: 416
+                link: bond1
+
+    '0c:c4:7a:aa:78:7c':
+      write_files:
+      - path: '/etc/netplan/99-cz7725.yaml'
+        content: |
+          network:
+            version: 2
+            ethernets:
+              eno1:
+                dhcp4: false
+              ens4f1:
+                dhcp4: false
+              ens4f2:
+                dhcp4: false
+              ens4f3:
+                dhcp4: false
+            bonds:
+              bond0:
+                dhcp4: no
+                interfaces: [eno1, ens4f1]
+                parameters:
+                  mode: active-backup
+                  mii-monitor-interval: 1
+              bond1:
+                dhcp4: no
+                interfaces: [ens4f2, ens4f3]
+                parameters:
+                  mode: active-backup
+                  mii-monitor-interval: 1
+            vlans:
+              k8s-control:
+                id: 411
+                link: bond0
+              os-floating:
+                id: 412
+                link: bond1
+              k8s-metallb:
+                id: 413
+                link: bond0
+              k8s-dataplane:
+                id: 414
+                link: bond0
+              os-storage:
+                id: 415
+                link: bond1
+              os-tenant:
+                id: 416
+                link: bond1
+
+  functions_override: |
+
+    function network_config {
+
+        DEBIAN_FRONTEND=noninteractive apt -y install bridge-utils ifenslave vlan
+        sudo modprobe bonding
+        netplan --debug apply
+        sleep 15
+
+        ip a a ${PUBLIC_INTERFACE_IP}/${PUBLIC_INTERFACE_NETMASK} dev ${PUBLIC_INTERFACE}
+    }