5dfba9d054bd74a0f4eecb67fcee0b1b73c0fc8b
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: FEAdd_On_Module_vLBAgentTemplate
4 imports:
5 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 node_types:
10   org.openecomp.resource.vfc.nodes.heat.vLBAgent:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     vf_module_id:
15       hidden: false
16       immutable: false
17       type: string
18     packet_mirror_network:
19       hidden: false
20       immutable: false
21       type: string
22     oam_private_net_name:
23       hidden: false
24       immutable: false
25       type: string
26     vProbe_cluster_name:
27       hidden: false
28       immutable: false
29       type: string
30     vlb_agent_image_name:
31       hidden: false
32       immutable: false
33       type: string
34     vf_module_name:
35       hidden: false
36       immutable: false
37       type: string
38     vLB_node_count:
39       hidden: false
40       immutable: false
41       type: float
42     domain_name:
43       hidden: false
44       immutable: false
45       type: string
46     ntp_timezone:
47       hidden: false
48       immutable: false
49       type: string
50     packet_internal_network:
51       hidden: false
52       immutable: false
53       type: string
54     vnf_id:
55       hidden: false
56       immutable: false
57       type: string
58     vLBAgent_cluster_name:
59       hidden: false
60       immutable: false
61       type: string
62     availability_zone_0:
63       hidden: false
64       immutable: false
65       type: string
66     region_name:
67       hidden: false
68       immutable: false
69       type: string
70     manager_name_0:
71       hidden: false
72       immutable: false
73       type: string
74     vLB_cluster_name:
75       hidden: false
76       immutable: false
77       type: string
78     tenant_name:
79       hidden: false
80       immutable: false
81       type: string
82     vLBAgent_flavor_name:
83       hidden: false
84       immutable: false
85       type: string
86     security_group:
87       hidden: false
88       immutable: false
89       type: string
90     vLBAgent_version_name:
91       hidden: false
92       immutable: false
93       type: string
94     vLBAgent_type:
95       hidden: false
96       immutable: false
97       type: string
98     vLBAgent_node_count:
99       hidden: false
100       immutable: false
101       type: float
102     vLBAgent_volume_type_0:
103       hidden: false
104       immutable: false
105       type: string
106     vLBAgent_volume_type_1:
107       hidden: false
108       immutable: false
109       type: string
110     vLBAgent_volume_size_1:
111       hidden: false
112       immutable: false
113       type: float
114     vLBAgent_volume_type_2:
115       hidden: false
116       immutable: false
117       type: string
118     vLBAgent_names:
119       hidden: false
120       immutable: false
121       type: list
122       entry_schema:
123         type: string
124     vLBAgent_volume_size_2:
125       hidden: false
126       immutable: false
127       type: float
128     vLBAgent_volume_size_0:
129       hidden: false
130       immutable: false
131       type: float
132     vLBAgent_index:
133       hidden: false
134       immutable: false
135       type: float
136     vLBAgent_volume_name_2:
137       hidden: false
138       immutable: false
139       type: string
140     vLBAgent_volume_name_1:
141       hidden: false
142       immutable: false
143       type: string
144     vLBAgent_volume_name_0:
145       hidden: false
146       immutable: false
147       type: string
148     manager_oam_direct_ip_0:
149       hidden: false
150       immutable: false
151       type: string
152     rpmrepository_ip_0:
153       hidden: false
154       immutable: false
155       type: string
156   node_templates:
157     packet_mirror_network_port_1:
158       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
159       properties:
160         ip_requirements:
161         - ip_version: 4
162           ip_count_required:
163             is_required: false
164           floating_ip_count_required:
165             is_required: false
166         - ip_version: 6
167           ip_count_required:
168             is_required: false
169           floating_ip_count_required:
170             is_required: false
171         security_groups:
172         - get_input: security_group
173         mac_requirements:
174           mac_count_required:
175             is_required: false
176         network:
177           get_input: packet_mirror_network
178       requirements:
179       - binding:
180           capability: tosca.capabilities.network.Bindable
181           node: vLBAgentInstance
182           relationship: tosca.relationships.network.BindsTo
183     vLBAgentInstance:
184       type: org.openecomp.resource.vfc.nodes.heat.vLBAgent
185       properties:
186         flavor:
187           get_input: vLBAgent_flavor_name
188         availability_zone:
189           get_input: availability_zone_0
190         image:
191           get_input: vlb_agent_image_name
192         metadata:
193           vf_module_id:
194             get_input: vf_module_id
195           packet_mirror_network_cidr:
196             get_attribute:
197             - packet_mirror_network_port_1
198             - subnets
199             - 0
200             - cidr
201           packet_internal_network_ip_0:
202           - UNSUPPORTED_ATTRIBUTE_packet_internal_network_port.fixed_ip_0s
203           version_number:
204             get_input: vLBAgent_version_name
205           machine_name:
206             get_input:
207             - vLBAgent_names
208             - get_input: vLBAgent_index
209           vf_module_name:
210             get_input: vf_module_name
211           vLB_node_count:
212             get_input: vLB_node_count
213           ntp_timezone:
214             get_input: ntp_timezone
215           vnf_id:
216             get_input: vnf_id
217           mount_colon__slash_log: vLBAgent_volume_1
218           mount_colon__slash_config: vLBAgent_volume_2
219           oam_private_network_cidr:
220             get_attribute:
221             - oam_private_net_network_port_3
222             - subnets
223             - 0
224             - cidr
225           tenant:
226             get_input: tenant_name
227           machine_type: vLBAgent
228           cluster_name:
229             get_input: vLBAgent_cluster_name
230           repo_ip_0:
231             get_input: rpmrepository_ip_0
232           mount_colon__slash_data: vLBAgent_volume_0
233           vLBAgentInstance:
234             get_input: vLBAgent_index
235           vLBAgent_id:
236           - UNSUPPORTED_RESOURCE_vLBAgent_id
237           vLBAgent_version_name:
238             get_input: vLBAgent_version_name
239           packet_internal_network_cidr:
240             get_attribute:
241             - packet_internal_network_port
242             - subnets
243             - 0
244             - cidr
245           vLBAgent_type:
246             get_input: vLBAgent_type
247           DPDK: DPDK_IP
248           oam_private_network_ip_0:
249           - UNSUPPORTED_ATTRIBUTE_oam_private_net_network_port_3.fixed_ip_0s
250           packet_mirror_network_ip_0:
251           - UNSUPPORTED_ATTRIBUTE_packet_mirror_network_port_1.fixed_ip_0s
252           vLBAgent_name:
253             get_input:
254             - vLBAgent_names
255             - get_input: vLBAgent_index
256           region:
257             get_input: region_name
258           manager_oam_direct_ip_0:
259             get_input: manager_oam_direct_ip_0
260         config_drive: true
261         personality:
262           /root/RegisterStatus/register_status.py:
263             get_artifact:
264             - SELF
265             - register_status
266           /root/dependencies_with_vLB.json:
267             get_artifact:
268             - SELF
269             - vlbagentdependencies_with_vLB
270           /root/CheckAvailability/check_availability.py:
271             get_artifact:
272             - SELF
273             - check_availability
274           /root/dependencies_without_vLB.json:
275             get_artifact:
276             - SELF
277             - vlbagentdependencies_without_vLB
278           /tmp/wait_for_resources.py:
279             get_artifact:
280             - SELF
281             - wait_for_resources
282           /root/call_home.py:
283             get_artifact:
284             - SELF
285             - call_home
286         user_data_format: RAW
287         name:
288           get_input:
289           - vLBAgent_names
290           - get_input: vLBAgent_index
291       requirements:
292       - local_storage:
293           capability: tosca.capabilities.Attachment
294           node: vLBAgent_volume_0
295           relationship: vLBAgent_volume_0_att
296       - local_storage:
297           capability: tosca.capabilities.Attachment
298           node: vLBAgent_volume_1
299           relationship: vLBAgent_volume_1_att
300       - local_storage:
301           capability: tosca.capabilities.Attachment
302           node: vLBAgent_volume_2
303           relationship: vLBAgent_volume_2_att
304       artifacts:
305         call_home:
306           type: tosca.artifacts.Deployment
307           file: ../Artifacts/call_home.py
308         check_availability:
309           type: tosca.artifacts.Deployment
310           file: ../Artifacts/check_availability.py
311         vlbagentdependencies_without_vLB:
312           type: tosca.artifacts.Deployment
313           file: ../Artifacts/vlbagentdependencies_without_vLB.json
314         vlbagentdependencies_with_vLB:
315           type: tosca.artifacts.Deployment
316           file: ../Artifacts/vlbagentdependencies_with_vLB.json
317         wait_for_resources:
318           type: tosca.artifacts.Deployment
319           file: ../Artifacts/wait_for_resources.py
320         register_status:
321           type: tosca.artifacts.Deployment
322           file: ../Artifacts/register_status.py
323     vLBAgent_volume_0:
324       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
325       properties:
326         volume_type:
327           get_input: vLBAgent_volume_type_0
328         size: '(get_input : vLBAgent_volume_size_0) * 1024'
329         description:
330           get_input: vLBAgent_volume_name_0
331     vLBAgent_volume_1:
332       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
333       properties:
334         volume_type:
335           get_input: vLBAgent_volume_type_1
336         size: '(get_input : vLBAgent_volume_size_1) * 1024'
337         description:
338           get_input: vLBAgent_volume_name_1
339     oam_private_net_network_port_3:
340       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
341       properties:
342         ip_requirements:
343         - ip_version: 4
344           ip_count_required:
345             is_required: false
346           floating_ip_count_required:
347             is_required: false
348         - ip_version: 6
349           ip_count_required:
350             is_required: false
351           floating_ip_count_required:
352             is_required: false
353         security_groups:
354         - get_input: security_group
355         mac_requirements:
356           mac_count_required:
357             is_required: false
358         network_role_tag: oam_private
359         network:
360           get_input: oam_private_net_name
361       requirements:
362       - binding:
363           capability: tosca.capabilities.network.Bindable
364           node: vLBAgentInstance
365           relationship: tosca.relationships.network.BindsTo
366     vLBAgent_volume_2:
367       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
368       properties:
369         volume_type:
370           get_input: vLBAgent_volume_type_2
371         size: '(get_input : vLBAgent_volume_size_2) * 1024'
372         description:
373           get_input: vLBAgent_volume_name_2
374     packet_internal_network_port:
375       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
376       properties:
377         ip_requirements:
378         - ip_version: 4
379           ip_count_required:
380             is_required: false
381           floating_ip_count_required:
382             is_required: false
383         - ip_version: 6
384           ip_count_required:
385             is_required: false
386           floating_ip_count_required:
387             is_required: false
388         security_groups:
389         - get_input: security_group
390         mac_requirements:
391           mac_count_required:
392             is_required: false
393         network:
394           get_input: packet_internal_network
395       requirements:
396       - binding:
397           capability: tosca.capabilities.network.Bindable
398           node: vLBAgentInstance
399           relationship: tosca.relationships.network.BindsTo
400   relationship_templates:
401     vLBAgent_volume_0_att:
402       type: org.openecomp.relationships.VolumeAttachesTo
403       properties:
404         volume_id: vLBAgent_volume_0
405         instance_uuid: vLBAgentInstance
406     vLBAgent_volume_2_att:
407       type: org.openecomp.relationships.VolumeAttachesTo
408       properties:
409         volume_id: vLBAgent_volume_2
410         instance_uuid: vLBAgentInstance
411     vLBAgent_volume_1_att:
412       type: org.openecomp.relationships.VolumeAttachesTo
413       properties:
414         volume_id: vLBAgent_volume_1
415         instance_uuid: vLBAgentInstance
416   groups:
417     FEAdd_On_Module_vLBAgentTemplate_group:
418       type: org.openecomp.groups.heat.HeatStack
419       properties:
420         heat_file: ../Artifacts/FEAdd_On_Module_vLBAgentTemplate.yaml
421       members:
422       - packet_mirror_network_port_1
423       - vLBAgentInstance
424       - vLBAgent_volume_0
425       - vLBAgent_volume_1
426       - oam_private_net_network_port_3
427       - vLBAgent_volume_2
428       - packet_internal_network_port
429   substitution_mappings:
430     node_type: org.openecomp.resource.abstract.nodes.heat.FEAdd_On_Module_vLBAgentTemplate
431     capabilities:
432       network.incoming.bytes.rate_packet_mirror_network_port_1:
433       - packet_mirror_network_port_1
434       - network.incoming.bytes.rate
435       disk.device.read.requests_vLBAgentInstance:
436       - vLBAgentInstance
437       - disk.device.read.requests
438       network.incoming.packets_packet_internal_network_port:
439       - packet_internal_network_port
440       - network.incoming.packets
441       network.outgoing.bytes.rate_oam_private_net_network_port_3:
442       - oam_private_net_network_port_3
443       - network.outgoing.bytes.rate
444       disk.device.usage_vLBAgentInstance:
445       - vLBAgentInstance
446       - disk.device.usage
447       network.incoming.bytes.rate_oam_private_net_network_port_3:
448       - oam_private_net_network_port_3
449       - network.incoming.bytes.rate
450       disk.read.requests_vLBAgentInstance:
451       - vLBAgentInstance
452       - disk.read.requests
453       network.incoming.packets_oam_private_net_network_port_3:
454       - oam_private_net_network_port_3
455       - network.incoming.packets
456       cpu_util_vLBAgentInstance:
457       - vLBAgentInstance
458       - cpu_util
459       feature_oam_private_net_network_port_3:
460       - oam_private_net_network_port_3
461       - feature
462       feature_vLBAgent_volume_1:
463       - vLBAgent_volume_1
464       - feature
465       feature_vLBAgent_volume_0:
466       - vLBAgent_volume_0
467       - feature
468       feature_vLBAgent_volume_2:
469       - vLBAgent_volume_2
470       - feature
471       network.incoming.bytes.rate_packet_internal_network_port:
472       - packet_internal_network_port
473       - network.incoming.bytes.rate
474       disk.usage_vLBAgentInstance:
475       - vLBAgentInstance
476       - disk.usage
477       disk.device.capacity_vLBAgentInstance:
478       - vLBAgentInstance
479       - disk.device.capacity
480       disk.device.iops_vLBAgentInstance:
481       - vLBAgentInstance
482       - disk.device.iops
483       network.incoming.packets_packet_mirror_network_port_1:
484       - packet_mirror_network_port_1
485       - network.incoming.packets
486       network.outgoing.bytes.rate_packet_mirror_network_port_1:
487       - packet_mirror_network_port_1
488       - network.outgoing.bytes.rate
489       network.outpoing.packets_oam_private_net_network_port_3:
490       - oam_private_net_network_port_3
491       - network.outpoing.packets
492       forwarder_packet_mirror_network_port_1:
493       - packet_mirror_network_port_1
494       - forwarder
495       binding_packet_internal_network_port:
496       - packet_internal_network_port
497       - binding
498       disk.device.write.bytes_vLBAgentInstance:
499       - vLBAgentInstance
500       - disk.device.write.bytes
501       attachment_packet_mirror_network_port_1:
502       - packet_mirror_network_port_1
503       - attachment
504       network.incoming.packets.rate_oam_private_net_network_port_3:
505       - oam_private_net_network_port_3
506       - network.incoming.packets.rate
507       binding_oam_private_net_network_port_3:
508       - oam_private_net_network_port_3
509       - binding
510       forwarder_packet_internal_network_port:
511       - packet_internal_network_port
512       - forwarder
513       endpoint_vLBAgentInstance:
514       - vLBAgentInstance
515       - endpoint
516       binding_packet_mirror_network_port_1:
517       - packet_mirror_network_port_1
518       - binding
519       binding_vLBAgentInstance:
520       - vLBAgentInstance
521       - binding
522       disk.allocation_vLBAgentInstance:
523       - vLBAgentInstance
524       - disk.allocation
525       memory.resident_vLBAgentInstance:
526       - vLBAgentInstance
527       - memory.resident
528       attachment_packet_internal_network_port:
529       - packet_internal_network_port
530       - attachment
531       disk.read.bytes_vLBAgentInstance:
532       - vLBAgentInstance
533       - disk.read.bytes
534       memory.usage_vLBAgentInstance:
535       - vLBAgentInstance
536       - memory.usage
537       scalable_vLBAgentInstance:
538       - vLBAgentInstance
539       - scalable
540       disk.latency_vLBAgentInstance:
541       - vLBAgentInstance
542       - disk.latency
543       disk.device.allocation_vLBAgentInstance:
544       - vLBAgentInstance
545       - disk.device.allocation
546       cpu_vLBAgentInstance:
547       - vLBAgentInstance
548       - cpu
549       disk.device.write.requests_vLBAgentInstance:
550       - vLBAgentInstance
551       - disk.device.write.requests
552       disk.write.bytes_vLBAgentInstance:
553       - vLBAgentInstance
554       - disk.write.bytes
555       memory_vLBAgentInstance:
556       - vLBAgentInstance
557       - memory
558       disk.device.write.bytes.rate_vLBAgentInstance:
559       - vLBAgentInstance
560       - disk.device.write.bytes.rate
561       network.outgoing.packets.rate_packet_internal_network_port:
562       - packet_internal_network_port
563       - network.outgoing.packets.rate
564       disk.iops_vLBAgentInstance:
565       - vLBAgentInstance
566       - disk.iops
567       network.outgoing.packets.rate_oam_private_net_network_port_3:
568       - oam_private_net_network_port_3
569       - network.outgoing.packets.rate
570       feature_packet_mirror_network_port_1:
571       - packet_mirror_network_port_1
572       - feature
573       instance_vLBAgentInstance:
574       - vLBAgentInstance
575       - instance
576       network.incoming.bytes_packet_mirror_network_port_1:
577       - packet_mirror_network_port_1
578       - network.incoming.bytes
579       attachment_oam_private_net_network_port_3:
580       - oam_private_net_network_port_3
581       - attachment
582       network.outgoing.bytes_packet_internal_network_port:
583       - packet_internal_network_port
584       - network.outgoing.bytes
585       network.outgoing.packets.rate_packet_mirror_network_port_1:
586       - packet_mirror_network_port_1
587       - network.outgoing.packets.rate
588       network.incoming.bytes_packet_internal_network_port:
589       - packet_internal_network_port
590       - network.incoming.bytes
591       network.outpoing.packets_packet_mirror_network_port_1:
592       - packet_mirror_network_port_1
593       - network.outpoing.packets
594       network.outgoing.bytes_packet_mirror_network_port_1:
595       - packet_mirror_network_port_1
596       - network.outgoing.bytes
597       disk.device.read.requests.rate_vLBAgentInstance:
598       - vLBAgentInstance
599       - disk.device.read.requests.rate
600       os_vLBAgentInstance:
601       - vLBAgentInstance
602       - os
603       network.incoming.packets.rate_packet_internal_network_port:
604       - packet_internal_network_port
605       - network.incoming.packets.rate
606       disk.write.requests.rate_vLBAgentInstance:
607       - vLBAgentInstance
608       - disk.write.requests.rate
609       attachment_vLBAgent_volume_0:
610       - vLBAgent_volume_0
611       - attachment
612       disk.device.read.bytes_vLBAgentInstance:
613       - vLBAgentInstance
614       - disk.device.read.bytes
615       attachment_vLBAgent_volume_2:
616       - vLBAgent_volume_2
617       - attachment
618       attachment_vLBAgent_volume_1:
619       - vLBAgent_volume_1
620       - attachment
621       host_vLBAgentInstance:
622       - vLBAgentInstance
623       - host
624       disk.device.write.requests.rate_vLBAgentInstance:
625       - vLBAgentInstance
626       - disk.device.write.requests.rate
627       disk.device.read.bytes.rate_vLBAgentInstance:
628       - vLBAgentInstance
629       - disk.device.read.bytes.rate
630       network.outgoing.bytes_oam_private_net_network_port_3:
631       - oam_private_net_network_port_3
632       - network.outgoing.bytes
633       forwarder_oam_private_net_network_port_3:
634       - oam_private_net_network_port_3
635       - forwarder
636       cpu.delta_vLBAgentInstance:
637       - vLBAgentInstance
638       - cpu.delta
639       network.incoming.bytes_oam_private_net_network_port_3:
640       - oam_private_net_network_port_3
641       - network.incoming.bytes
642       disk.capacity_vLBAgentInstance:
643       - vLBAgentInstance
644       - disk.capacity
645       disk.root.size_vLBAgentInstance:
646       - vLBAgentInstance
647       - disk.root.size
648       network.outgoing.bytes.rate_packet_internal_network_port:
649       - packet_internal_network_port
650       - network.outgoing.bytes.rate
651       disk.ephemeral.size_vLBAgentInstance:
652       - vLBAgentInstance
653       - disk.ephemeral.size
654       feature_vLBAgentInstance:
655       - vLBAgentInstance
656       - feature
657       disk.device.latency_vLBAgentInstance:
658       - vLBAgentInstance
659       - disk.device.latency
660       disk.write.requests_vLBAgentInstance:
661       - vLBAgentInstance
662       - disk.write.requests
663       network.outpoing.packets_packet_internal_network_port:
664       - packet_internal_network_port
665       - network.outpoing.packets
666       network.incoming.packets.rate_packet_mirror_network_port_1:
667       - packet_mirror_network_port_1
668       - network.incoming.packets.rate
669       vcpus_vLBAgentInstance:
670       - vLBAgentInstance
671       - vcpus
672       disk.read.bytes.rate_vLBAgentInstance:
673       - vLBAgentInstance
674       - disk.read.bytes.rate
675       feature_packet_internal_network_port:
676       - packet_internal_network_port
677       - feature
678       disk.write.bytes.rate_vLBAgentInstance:
679       - vLBAgentInstance
680       - disk.write.bytes.rate
681     requirements:
682       dependency_vLBAgentInstance:
683       - vLBAgentInstance
684       - dependency
685       dependency_packet_internal_network_port:
686       - packet_internal_network_port
687       - dependency
688       dependency_oam_private_net_network_port_3:
689       - oam_private_net_network_port_3
690       - dependency
691       link_packet_internal_network_port:
692       - packet_internal_network_port
693       - link
694       link_oam_private_net_network_port_3:
695       - oam_private_net_network_port_3
696       - link
697       dependency_vLBAgent_volume_1:
698       - vLBAgent_volume_1
699       - dependency
700       dependency_vLBAgent_volume_2:
701       - vLBAgent_volume_2
702       - dependency
703       dependency_packet_mirror_network_port_1:
704       - packet_mirror_network_port_1
705       - dependency
706       dependency_vLBAgent_volume_0:
707       - vLBAgent_volume_0
708       - dependency
709       link_packet_mirror_network_port_1:
710       - packet_mirror_network_port_1
711       - link
712       local_storage_vLBAgentInstance:
713       - vLBAgentInstance
714       - local_storage