Revert "Update cloud image"
[releng/builder.git] / jjb / integration / integration-templates.yaml
1 ---
2 # Job templates in this file (please update with every new template):
3 # FIXME: Update
4 #
5 # {project}-csit-1node-{functionality}-{install}-{stream}
6 # {project}-csit-3node-docker-{functionality}-{install}-{stream}
7 # {project}-csit-3node-{functionality}-{install}-{stream}
8 # {project}-csit-hwvtep-{topology}-openstack-{openstack}-{functionality}-{stream}
9 # {project}-csit-{topology}-openstack-{openstack}-{functionality}-{stream}
10 # {project}-csit-verify-1node-{functionality}
11 # {project}-csit-verify-3node-{functionality}
12 # {project}-patch-test-{feature}-{stream}
13 #
14 # Parameters:
15 # FIXME: Distinguish variables, macros and arguments, then update.
16 #
17 # opendaylight-infra-parameters: main project integration/test ($PROJECT)
18 # jre: (openjdk7 or openjdk8) Java runtime environment to use when launching ODL
19 # integration-distribution-branch: distribution branch ($DISTROBRANCH)
20 # integration-controller-bundle-url: distribution URL ($BUNDLE_URL)
21 # integration-controller-scope: only or all features ($CONTROLLERSCOPE)
22 # integration-controller-features: features under test ($CONTROLLER FEATURES)
23 # integration-test-options: robot options ($TESTOPTIONS)
24 # integration-stream-test-plan: stream specific robot test plan ($STREAMTESTPLAN)
25 # integration-test-plan: fallback robot test plan ($TESTPLAN)
26 # integration-patch-refspec: test branch ($PATCHREFSPEC)
27 # integration-use-features-boot: bool to toggle use of featuresBoot ($USEFEATURESBOOT)
28
29
30 ###########
31 # Anchors #
32 ###########
33
34 - inttest_csit_common: &inttest_csit_common
35     name: inttest-csit-common
36     # Defines common configuration to all CSIT jobs
37
38     #####################
39     # Default variables #
40     #####################
41
42     build-days-to-keep: 30
43     build-timeout: 360  # Time in minutes
44     disable-job: false
45
46     #####################
47     # Job configuration #
48     #####################
49
50     project-type: freestyle
51     node: centos7-robot-2c-8g
52     concurrent: true
53     disabled: '{disable-job}'
54
55     properties:
56       - opendaylight-infra-properties:
57           build-days-to-keep: '{build-days-to-keep}'
58
59     wrappers:
60       - opendaylight-infra-wrappers:
61           build-timeout: '{build-timeout}'
62
63 #################
64 # Job Templates #
65 #################
66
67 - job-template:
68     name: '{prefix}{project}-csit-verify-1node-{functionality}'
69     id: inttest-csit-verify-1node
70     <<: *inttest_csit_common
71
72     #####################
73     # Default variables #
74     #####################
75
76     openstack-cloud: vex
77     openstack-heat-template: csit-2-instance-type.yaml
78     openstack-heat-template-dir: openstack-hot
79
80     odl_system_flavor: 'odl-highcpu-4'
81     odl_system_image: 'ZZCI - CentOS 7 - builder - x86_64 - 20200730-200731.474'
82     controller-max-mem: '2048m'
83     tools_system_count: '1'
84     tools_system_flavor: 'odl-highcpu-2'
85     tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20190415-091034.881'
86
87     #####################
88     # Job configuration #
89     #####################
90
91     parameters:
92       - integration-csit-parameters:
93           archive-artifacts: '{archive-artifacts}'
94           branch: '{branch}'
95           os-cloud: '{os-cloud}'
96           # CSIT
97           bundle-url: '{bundle-url}'
98           repo-url: '{repo-url}'
99           robot-options: '{robot-options}'
100           # Controller
101           controller-scope: only
102           controller-max-mem: '{controller-max-mem}'
103           debug-map: '{debug-map}'
104           install-features: '{install-features}'
105           use-features-boot: 'True'
106           elasticsearch-attribute: '{elasticsearch-attribute}'
107       - integration-stack-2-type:
108           vm_0_count: '1'
109           vm_0_flavor: '{odl_system_flavor}'
110           vm_0_image: '{odl_system_image}'
111           vm_1_count: '{tools_system_count}'
112           vm_1_flavor: '{tools_system_flavor}'
113           vm_1_image: '{tools_system_image}'
114       - integration-distribution-branch:
115           branch: '{verify-branch}'
116       - integration-distribution-stream:
117           stream: '{verify-stream}'
118       - integration-script-plan:
119           script-plan: '{project}.txt'
120       - integration-config-plan:
121           config-plan: '{project}.txt'
122       - integration-stream-test-plan:
123           stream-test-plan: '{project}-{functionality}-{verify-stream}.txt'
124       - integration-test-plan:
125           test-plan: '{project}-{functionality}.txt'
126       - integration-jdk-version:
127           jdkversion: '{verify-jdkversion}'
128       - distribution-karaf-version:
129           karaf-version: '{verify-karaf-version}'
130
131     scm:
132       - integration-gerrit-scm:
133           basedir: 'test'
134           refspec: '$GERRIT_REFSPEC'
135           branch: 'master'
136
137     triggers:
138       - integration-trigger-patch-submitted:
139           gerrit-server-name: '{gerrit-server-name}'
140           project: 'integration/test'
141           branch: 'master'
142           files: 'csit/suites/{project}/**'
143
144     builders:
145       - lf-infra-pre-build
146       - integration-stack-2-type:
147           openstack-cloud: '{openstack-cloud}'
148           openstack-heat-template: '{openstack-heat-template}'
149           openstack-heat-template-dir: '{openstack-heat-template-dir}'
150       - integration-install-robotframework
151       - inject:
152           properties-file: 'env.properties'
153       - integration-get-slave-addresses
154       - inject:
155           properties-file: 'slave_addresses.txt'
156       - integration-detect-variables
157       - integration-install-common-functions
158       - integration-deploy-controller-run-test
159       - integration-cleanup-tmp
160
161     publishers:
162       - email-notification:
163           email-recipients: '{email-recipients}'
164           email-prefix: '[{project}]'
165       - integration-csit-publish:
166           robot_other_files: ''
167           robot-pass-threshold: 100.0
168           robot-unstable-threshold: 0.0
169       - lf-stack-delete:
170           openstack-cloud: '{openstack-cloud}'
171       - lf-infra-publish
172
173
174 ######################
175 # inttest-csit-1node #
176 ######################
177
178 - inttest_csit_1node: &inttest_csit_1node
179     name: inttest-csit-1node
180
181     #####################
182     # Default variables #
183     #####################
184
185     openstack-cloud: vex
186     openstack-heat-template: csit-2-instance-type.yaml
187     openstack-heat-template-dir: openstack-hot
188
189     odl_system_flavor: 'odl-highcpu-4'
190     odl_system_image: 'ZZCI - CentOS 7 - builder - x86_64 - 20200730-200731.474'
191     controller-max-mem: '2048m'
192     tools_system_count: '1'
193     tools_system_flavor: 'odl-highcpu-2'
194     tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20190415-091034.881'
195
196
197     #####################
198     # Job configuration #
199     #####################
200
201     parameters:
202       - integration-csit-parameters:
203           archive-artifacts: '{archive-artifacts}'
204           branch: '{branch}'
205           os-cloud: '{os-cloud}'
206           # CSIT
207           bundle-url: '{bundle-url}'
208           repo-url: '{repo-url}'
209           robot-options: '{robot-options}'
210           # Controller
211           controller-scope: '{install}'
212           controller-max-mem: '{controller-max-mem}'
213           debug-map: '{debug-map}'
214           install-features: '{install-features}'
215           use-features-boot: 'True'
216           elasticsearch-attribute: '{elasticsearch-attribute}'
217       - integration-stack-2-type:
218           vm_0_count: '1'
219           vm_0_flavor: '{odl_system_flavor}'
220           vm_0_image: '{odl_system_image}'
221           vm_1_count: '{tools_system_count}'
222           vm_1_flavor: '{tools_system_flavor}'
223           vm_1_image: '{tools_system_image}'
224       - integration-distribution-branch:
225           branch: '{branch}'
226       - integration-distribution-stream:
227           stream: '{stream}'
228       - integration-script-plan:
229           script-plan: '{project}.txt'
230       - integration-config-plan:
231           config-plan: '{project}.txt'
232       - integration-stream-test-plan:
233           stream-test-plan: '{project}-{functionality}-{stream}.txt'
234       - integration-test-plan:
235           test-plan: '{project}-{functionality}.txt'
236       - integration-test-suites:
237           test-suites: '{test-suites}'
238       - integration-patch-refspec:
239           branch: 'master'
240       - integration-jdk-version:
241           jdkversion: '{jre}'
242       - distribution-karaf-version:
243           karaf-version: '{karaf-version}'
244
245     scm:
246       - integration-gerrit-scm:
247           basedir: 'test'
248           refspec: '$PATCHREFSPEC'
249           branch: 'master'
250
251     triggers:
252       # we need this for not SR projects
253       - integration-csit-trigger:
254           jobs: '{trigger-jobs}'
255
256     builders:
257       - lf-infra-pre-build
258       - integration-stack-2-type:
259           openstack-cloud: '{openstack-cloud}'
260           openstack-heat-template: '{openstack-heat-template}'
261           openstack-heat-template-dir: '{openstack-heat-template-dir}'
262       - integration-install-robotframework
263       - inject:
264           properties-file: 'env.properties'
265       - integration-get-slave-addresses
266       - inject:
267           properties-file: 'slave_addresses.txt'
268       - integration-detect-variables
269       - integration-install-common-functions
270       - integration-deploy-controller-run-test
271       - integration-cleanup-tmp
272
273     publishers:
274       - email-notification:
275           email-recipients: '{email-recipients}'
276           email-prefix: '[{project}]'
277       - plot:
278           - title: '{01-plot-title}'
279             yaxis: '{01-plot-yaxis}'
280             group: '{01-plot-group}'
281             num-builds: '180'
282             keep-records: true
283             style: line
284             use-description: false
285             # yamllint disable-line rule:line-length
286             csv-file-name: '{project}-csit-1node-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv'
287             series:
288               - file: '{01-plot-data-file}'
289                 inclusion-flag: 'off'
290                 display-table: true
291                 format: csv
292           - title: '{02-plot-title}'
293             yaxis: '{02-plot-yaxis}'
294             group: '{02-plot-group}'
295             num-builds: '180'
296             keep-records: true
297             style: line
298             use-description: false
299             # yamllint disable-line rule:line-length
300             csv-file-name: '{project}-csit-1node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv'
301             series:
302               - file: '{02-plot-data-file}'
303                 inclusion-flag: 'off'
304                 display-table: true
305                 format: csv
306           - title: '{03-plot-title}'
307             yaxis: '{03-plot-yaxis}'
308             group: '{03-plot-group}'
309             num-builds: '180'
310             keep-records: true
311             style: line
312             use-description: false
313             # yamllint disable-line rule:line-length
314             csv-file-name: '{project}-csit-1node-{functionality}-{install}-{stream}-{03-plot-data-file}-03-history.csv'
315             series:
316               - file: '{03-plot-data-file}'
317                 inclusion-flag: '{03-inclusion-flag}'
318                 exclude: '{03-exclude-value}'
319                 format: csv
320           - title: '{04-plot-title}'
321             yaxis: '{04-plot-yaxis}'
322             group: '{04-plot-group}'
323             num-builds: '180'
324             keep-records: true
325             style: line
326             use-description: false
327             # yamllint disable-line rule:line-length
328             csv-file-name: '{project}-csit-1node-{functionality}-{install}-{stream}-{04-plot-data-file}-04-history.csv'
329             series:
330               - file: '{04-plot-data-file}'
331                 inclusion-flag: '{04-inclusion-flag}'
332                 exclude: '{04-exclude-value}'
333                 format: csv
334           - title: '{05-plot-title}'
335             yaxis: '{05-plot-yaxis}'
336             group: '{05-plot-group}'
337             num-builds: '180'
338             keep-records: true
339             style: line
340             use-description: false
341             # yamllint disable-line rule:line-length
342             csv-file-name: '{project}-csit-1node-{functionality}-{install}-{stream}-{05-plot-data-file}-05-history.csv'
343             series:
344               - file: '{05-plot-data-file}'
345                 inclusion-flag: '{05-inclusion-flag}'
346                 exclude: '{05-exclude-value}'
347                 format: csv
348           - title: '{06-plot-title}'
349             yaxis: '{06-plot-yaxis}'
350             group: '{06-plot-group}'
351             num-builds: '180'
352             keep-records: true
353             style: line
354             use-description: false
355             # yamllint disable-line rule:line-length
356             csv-file-name: '{project}-csit-1node-{functionality}-{install}-{stream}-{06-plot-data-file}-06-history.csv'
357             series:
358               - file: '{06-plot-data-file}'
359                 inclusion-flag: '{06-inclusion-flag}'
360                 exclude: '{06-exclude-value}'
361                 format: csv
362           - title: '{07-plot-title}'
363             yaxis: '{07-plot-yaxis}'
364             group: '{07-plot-group}'
365             num-builds: '180'
366             keep-records: true
367             style: line
368             use-description: false
369             # yamllint disable-line rule:line-length
370             csv-file-name: '{project}-csit-1node-{functionality}-{install}-{stream}-{07-plot-data-file}-07-history.csv'
371             series:
372               - file: '{07-plot-data-file}'
373                 inclusion-flag: '{07-inclusion-flag}'
374                 exclude: '{07-exclude-value}'
375                 format: csv
376           - title: '{08-plot-title}'
377             yaxis: '{08-plot-yaxis}'
378             group: '{08-plot-group}'
379             num-builds: '180'
380             keep-records: true
381             style: line
382             use-description: false
383             # yamllint disable-line rule:line-length
384             csv-file-name: '{project}-csit-1node-{functionality}-{install}-{stream}-{08-plot-data-file}-08-history.csv'
385             series:
386               - file: '{08-plot-data-file}'
387                 inclusion-flag: '{08-inclusion-flag}'
388                 exclude: '{08-exclude-value}'
389                 format: csv
390           - title: '{09-plot-title}'
391             yaxis: '{09-plot-yaxis}'
392             group: '{09-plot-group}'
393             num-builds: '180'
394             keep-records: true
395             style: line
396             use-description: false
397             # yamllint disable-line rule:line-length
398             csv-file-name: '{project}-csit-1node-{functionality}-{install}-{stream}-{09-plot-data-file}-09-history.csv'
399             series:
400               - file: '{09-plot-data-file}'
401                 inclusion-flag: '{09-inclusion-flag}'
402                 exclude: '{09-exclude-value}'
403                 format: csv
404           - title: '{10-plot-title}'
405             yaxis: '{10-plot-yaxis}'
406             group: '{10-plot-group}'
407             num-builds: '180'
408             keep-records: true
409             style: line
410             use-description: false
411             # yamllint disable-line rule:line-length
412             csv-file-name: '{project}-csit-1node-{functionality}-{install}-{stream}-{10-plot-data-file}-10-history.csv'
413             series:
414               - file: '{10-plot-data-file}'
415                 inclusion-flag: '{10-inclusion-flag}'
416                 exclude: '{10-exclude-value}'
417                 format: csv
418       - integration-csit-publish:
419           robot_other_files: ''
420           robot-pass-threshold: 100.0
421           robot-unstable-threshold: 0.0
422       - lf-stack-delete:
423           openstack-cloud: '{openstack-cloud}'
424       - lf-infra-publish
425
426 - job-template:
427     name: '{prefix}{project}-csit-1node-{functionality}-{install}-{stream}'
428     id: inttest-csit-1node
429     <<: *inttest_csit_common
430     # yamllint disable-line rule:key-duplicates
431     <<: *inttest_csit_1node
432
433 - job-template:
434     name: '{prefix}{project}-csit-1node-{functionality}-{install}-{stream}'
435     id: inttest-csit-1node-custom
436     <<: *inttest_csit_common
437     # yamllint disable-line rule:key-duplicates
438     <<: *inttest_csit_1node
439
440     parameters:
441       - integration-csit-parameters:
442           archive-artifacts: '{archive-artifacts}'
443           branch: '{branch}'
444           os-cloud: '{os-cloud}'
445           # CSIT
446           bundle-url: '{bundle-url}'
447           repo-url: '{repo-url}'
448           robot-options: '{robot-options}'
449           # Controller
450           controller-scope: '{install}'
451           controller-max-mem: '{controller-max-mem}'
452           debug-map: '{debug-map}'
453           install-features: '{install-features}'
454           use-features-boot: 'True'
455           elasticsearch-attribute: '{elasticsearch-attribute}'
456       - integration-stack-2-type:
457           vm_0_count: '1'
458           vm_0_flavor: '{odl_system_flavor}'
459           vm_0_image: '{odl_system_image}'
460           vm_1_count: '{tools_system_count}'
461           vm_1_flavor: '{tools_system_flavor}'
462           vm_1_image: '{tools_system_image}'
463       - integration-distribution-branch:
464           branch: '{branch}'
465       - integration-distribution-stream:
466           stream: '{stream}'
467       - integration-script-plan:
468           script-plan: '{project}.txt'
469       - integration-config-plan:
470           config-plan: '{project}.txt'
471       - integration-stream-test-plan:
472           stream-test-plan: '{project}-{functionality}-{stream}.txt'
473       - integration-test-plan:
474           test-plan: '{testplan}'
475       - integration-test-suites:
476           test-suites: '{test-suites}'
477       - integration-patch-refspec:
478           branch: 'master'
479       - integration-jdk-version:
480           jdkversion: '{jre}'
481       - distribution-karaf-version:
482           karaf-version: '{karaf-version}'
483
484
485 - job-template:
486     name: '{prefix}{project}-csit-verify-3node-{functionality}'
487     id: inttest-csit-verify-3node
488     <<: *inttest_csit_common
489
490     #####################
491     # Default variables #
492     #####################
493
494     openstack-cloud: vex
495     openstack-heat-template: csit-2-instance-type.yaml
496     openstack-heat-template-dir: openstack-hot
497
498     odl_system_flavor: 'odl-highcpu-4'
499     odl_system_image: 'ZZCI - CentOS 7 - builder - x86_64 - 20200730-200731.474'
500     controller-max-mem: '2048m'
501     tools_system_count: '1'
502     tools_system_flavor: 'odl-highcpu-2'
503     tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20190415-091034.881'
504
505     #####################
506     # Job Configuration #
507     #####################
508
509     parameters:
510       - integration-csit-parameters:
511           archive-artifacts: '{archive-artifacts}'
512           branch: '{branch}'
513           os-cloud: '{os-cloud}'
514           # CSIT
515           bundle-url: '{bundle-url}'
516           repo-url: '{repo-url}'
517           robot-options: '{robot-options}'
518           # Controller
519           controller-scope: only
520           controller-max-mem: '{controller-max-mem}'
521           debug-map: '{debug-map}'
522           install-features: 'odl-jolokia,{install-features}'
523           use-features-boot: 'True'
524           elasticsearch-attribute: '{elasticsearch-attribute}'
525       - integration-stack-2-type:
526           vm_0_count: '3'
527           vm_0_flavor: '{odl_system_flavor}'
528           vm_0_image: '{odl_system_image}'
529           vm_1_count: '{tools_system_count}'
530           vm_1_flavor: '{tools_system_flavor}'
531           vm_1_image: '{tools_system_image}'
532       - integration-distribution-branch:
533           branch: '{verify-branch}'
534       - integration-distribution-stream:
535           stream: '{verify-stream}'
536       - integration-script-plan:
537           script-plan: '{project}.txt'
538       - integration-config-plan:
539           config-plan: '{project}.txt'
540       - integration-stream-test-plan:
541           stream-test-plan: '{project}-{functionality}-{verify-stream}.txt'
542       - integration-test-plan:
543           test-plan: '{project}-{functionality}.txt'
544       - integration-test-suites:
545           test-suites: '{test-suites}'
546       - integration-jdk-version:
547           jdkversion: '{verify-jdkversion}'
548       - distribution-karaf-version:
549           karaf-version: '{verify-karaf-version}'
550
551     scm:
552       - integration-gerrit-scm:
553           basedir: 'test'
554           refspec: '$GERRIT_REFSPEC'
555           branch: 'master'
556
557     triggers:
558       - integration-trigger-patch-submitted:
559           gerrit-server-name: '{gerrit-server-name}'
560           project: 'integration/test'
561           branch: 'master'
562           files: 'csit/suites/{project}/**'
563
564     builders:
565       - lf-infra-pre-build
566       - integration-stack-2-type:
567           openstack-cloud: '{openstack-cloud}'
568           openstack-heat-template: '{openstack-heat-template}'
569           openstack-heat-template-dir: '{openstack-heat-template-dir}'
570       - integration-install-robotframework
571       - inject:
572           properties-file: 'env.properties'
573       - integration-get-slave-addresses
574       - inject:
575           properties-file: 'slave_addresses.txt'
576       - integration-detect-variables
577       - integration-install-common-functions
578       - integration-configure-clustering
579       - integration-start-cluster-run-test
580       - integration-cleanup-tmp
581
582     publishers:
583       - email-notification:
584           email-recipients: '{email-recipients}'
585           email-prefix: '[{project}]'
586       - integration-csit-publish:
587           robot_other_files: ''
588           robot-pass-threshold: 100.0
589           robot-unstable-threshold: 0.0
590       - lf-stack-delete:
591           openstack-cloud: '{openstack-cloud}'
592       - lf-infra-publish
593
594
595 ######################
596 # inttest-csit-3node #
597 ######################
598
599 - inttest_csit_3node: &inttest_csit_3node
600     name: inttest-csit-3node
601
602     #####################
603     # Default variables #
604     #####################
605
606     openstack-cloud: vex
607     openstack-heat-template: csit-2-instance-type.yaml
608     openstack-heat-template-dir: openstack-hot
609
610     odl_system_flavor: 'odl-highcpu-4'
611     odl_system_image: 'ZZCI - CentOS 7 - builder - x86_64 - 20200730-200731.474'
612     controller-max-mem: '2048m'
613     tools_system_count: '1'
614     tools_system_flavor: 'odl-highcpu-2'
615     tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20190415-091034.881'
616
617     #####################
618     # Job configuration #
619     #####################
620
621     parameters:
622       - integration-csit-parameters:
623           archive-artifacts: '{archive-artifacts}'
624           branch: '{branch}'
625           os-cloud: '{os-cloud}'
626           # CSIT
627           bundle-url: '{bundle-url}'
628           repo-url: '{repo-url}'
629           robot-options: '{robot-options}'
630           # Controller
631           controller-scope: '{install}'
632           controller-max-mem: '{controller-max-mem}'
633           debug-map: '{debug-map}'
634           install-features: 'odl-jolokia,{install-features}'
635           use-features-boot: 'True'
636           elasticsearch-attribute: '{elasticsearch-attribute}'
637       - integration-stack-2-type:
638           vm_0_count: '3'
639           vm_0_flavor: '{odl_system_flavor}'
640           vm_0_image: '{odl_system_image}'
641           vm_1_count: '{tools_system_count}'
642           vm_1_flavor: '{tools_system_flavor}'
643           vm_1_image: '{tools_system_image}'
644       - integration-distribution-branch:
645           branch: '{branch}'
646       - integration-distribution-stream:
647           stream: '{stream}'
648       - integration-script-plan:
649           script-plan: '{project}.txt'
650       - integration-config-plan:
651           config-plan: '{project}.txt'
652       - integration-stream-test-plan:
653           stream-test-plan: '{project}-{functionality}-{stream}.txt'
654       - integration-test-plan:
655           test-plan: '{project}-{functionality}.txt'
656       - integration-test-suites:
657           test-suites: '{test-suites}'
658       - integration-patch-refspec:
659           branch: 'master'
660       - integration-jdk-version:
661           jdkversion: '{jre}'
662       - distribution-karaf-version:
663           karaf-version: '{karaf-version}'
664
665     scm:
666       - integration-gerrit-scm:
667           basedir: 'test'
668           refspec: '$PATCHREFSPEC'
669           branch: 'master'
670
671     triggers:
672       # we need this for not SR projects
673       - integration-csit-trigger:
674           jobs: '{trigger-jobs}'
675
676     builders:
677       - lf-infra-pre-build
678       - integration-stack-2-type:
679           openstack-cloud: '{openstack-cloud}'
680           openstack-heat-template: '{openstack-heat-template}'
681           openstack-heat-template-dir: '{openstack-heat-template-dir}'
682       - integration-install-robotframework
683       - inject:
684           properties-file: 'env.properties'
685       - integration-get-slave-addresses
686       - inject:
687           properties-file: 'slave_addresses.txt'
688       - integration-detect-variables
689       - integration-install-common-functions
690       - integration-configure-clustering
691       - integration-start-cluster-run-test
692       - integration-cleanup-tmp
693
694     publishers:
695       - email-notification:
696           email-recipients: '{email-recipients}'
697           email-prefix: '[{project}]'
698       - plot:
699           - title: '{01-plot-title}'
700             yaxis: '{01-plot-yaxis}'
701             group: '{01-plot-group}'
702             num-builds: '180'
703             keep-records: true
704             style: line
705             use-description: false
706             # yamllint disable-line rule:line-length
707             csv-file-name: '{project}-csit-3node-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv'
708             series:
709               - file: '{01-plot-data-file}'
710                 inclusion-flag: 'off'
711                 display-table: true
712                 format: csv
713           - title: '{02-plot-title}'
714             yaxis: '{02-plot-yaxis}'
715             group: '{02-plot-group}'
716             num-builds: '180'
717             keep-records: true
718             style: line
719             use-description: false
720             # yamllint disable-line rule:line-length
721             csv-file-name: '{project}-csit-3node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv'
722             series:
723               - file: '{02-plot-data-file}'
724                 inclusion-flag: 'off'
725                 display-table: true
726                 format: csv
727           - title: '{03-plot-title}'
728             yaxis: '{03-plot-yaxis}'
729             group: '{03-plot-group}'
730             num-builds: '180'
731             keep-records: true
732             style: line
733             use-description: false
734             # yamllint disable-line rule:line-length
735             csv-file-name: '{project}-csit-3node-{functionality}-{install}-{stream}-{03-plot-data-file}-03-history.csv'
736             series:
737               - file: '{03-plot-data-file}'
738                 inclusion-flag: '{03-inclusion-flag}'
739                 exclude: '{03-exclude-value}'
740                 format: csv
741           - title: '{04-plot-title}'
742             yaxis: '{04-plot-yaxis}'
743             group: '{04-plot-group}'
744             num-builds: '180'
745             keep-records: true
746             style: line
747             use-description: false
748             # yamllint disable-line rule:line-length
749             csv-file-name: '{project}-csit-3node-{functionality}-{install}-{stream}-{04-plot-data-file}-04-history.csv'
750             series:
751               - file: '{04-plot-data-file}'
752                 inclusion-flag: '{04-inclusion-flag}'
753                 exclude: '{04-exclude-value}'
754                 format: csv
755           - title: '{05-plot-title}'
756             yaxis: '{05-plot-yaxis}'
757             group: '{05-plot-group}'
758             num-builds: '180'
759             keep-records: true
760             style: line
761             use-description: false
762             # yamllint disable-line rule:line-length
763             csv-file-name: '{project}-csit-3node-{functionality}-{install}-{stream}-{05-plot-data-file}-05-history.csv'
764             series:
765               - file: '{05-plot-data-file}'
766                 inclusion-flag: '{05-inclusion-flag}'
767                 exclude: '{05-exclude-value}'
768                 format: csv
769           - title: '{06-plot-title}'
770             yaxis: '{06-plot-yaxis}'
771             group: '{06-plot-group}'
772             num-builds: '180'
773             keep-records: true
774             style: line
775             use-description: false
776             # yamllint disable-line rule:line-length
777             csv-file-name: '{project}-csit-3node-{functionality}-{install}-{stream}-{06-plot-data-file}-06-history.csv'
778             series:
779               - file: '{06-plot-data-file}'
780                 inclusion-flag: '{06-inclusion-flag}'
781                 exclude: '{06-exclude-value}'
782                 format: csv
783           - title: '{07-plot-title}'
784             yaxis: '{07-plot-yaxis}'
785             group: '{07-plot-group}'
786             num-builds: '180'
787             keep-records: true
788             style: line
789             use-description: false
790             # yamllint disable-line rule:line-length
791             csv-file-name: '{project}-csit-3node-{functionality}-{install}-{stream}-{07-plot-data-file}-07-history.csv'
792             series:
793               - file: '{07-plot-data-file}'
794                 inclusion-flag: '{07-inclusion-flag}'
795                 exclude: '{07-exclude-value}'
796                 format: csv
797           - title: '{08-plot-title}'
798             yaxis: '{08-plot-yaxis}'
799             group: '{08-plot-group}'
800             num-builds: '180'
801             keep-records: true
802             style: line
803             use-description: false
804             # yamllint disable-line rule:line-length
805             csv-file-name: '{project}-csit-3node-{functionality}-{install}-{stream}-{08-plot-data-file}-08-history.csv'
806             series:
807               - file: '{08-plot-data-file}'
808                 inclusion-flag: '{08-inclusion-flag}'
809                 exclude: '{08-exclude-value}'
810                 format: csv
811           - title: '{09-plot-title}'
812             yaxis: '{09-plot-yaxis}'
813             group: '{09-plot-group}'
814             num-builds: '180'
815             keep-records: true
816             style: line
817             use-description: false
818             # yamllint disable-line rule:line-length
819             csv-file-name: '{project}-csit-3node-{functionality}-{install}-{stream}-{09-plot-data-file}-09-history.csv'
820             series:
821               - file: '{09-plot-data-file}'
822                 inclusion-flag: '{09-inclusion-flag}'
823                 exclude: '{09-exclude-value}'
824                 format: csv
825           - title: '{10-plot-title}'
826             yaxis: '{10-plot-yaxis}'
827             group: '{10-plot-group}'
828             num-builds: '180'
829             keep-records: true
830             style: line
831             use-description: false
832             # yamllint disable-line rule:line-length
833             csv-file-name: '{project}-csit-3node-{functionality}-{install}-{stream}-{10-plot-data-file}-10-history.csv'
834             series:
835               - file: '{10-plot-data-file}'
836                 inclusion-flag: '{10-inclusion-flag}'
837                 exclude: '{10-exclude-value}'
838                 format: csv
839       - integration-csit-publish:
840           robot_other_files: ''
841           robot-pass-threshold: 100.0
842           robot-unstable-threshold: 0.0
843       - lf-stack-delete:
844           openstack-cloud: '{openstack-cloud}'
845       - lf-infra-publish
846
847 - job-template:
848     name: '{prefix}{project}-csit-3node-{functionality}-{install}-{stream}'
849     id: inttest-csit-3node
850     <<: *inttest_csit_common
851     # yamllint disable-line rule:key-duplicates
852     <<: *inttest_csit_3node
853
854 - job-template:
855     name: '{prefix}{project}-csit-3node-{functionality}-{install}-{stream}'
856     id: inttest-csit-3node-custom
857     <<: *inttest_csit_common
858     # yamllint disable-line rule:key-duplicates
859     <<: *inttest_csit_3node
860
861     parameters:
862       - integration-csit-parameters:
863           archive-artifacts: '{archive-artifacts}'
864           branch: '{branch}'
865           os-cloud: '{os-cloud}'
866           # CSIT
867           bundle-url: '{bundle-url}'
868           repo-url: '{repo-url}'
869           robot-options: '{robot-options}'
870           # Controller
871           controller-scope: '{install}'
872           controller-max-mem: '{controller-max-mem}'
873           debug-map: '{debug-map}'
874           install-features: 'odl-jolokia,{install-features}'
875           use-features-boot: 'True'
876           elasticsearch-attribute: '{elasticsearch-attribute}'
877       - integration-stack-2-type:
878           vm_0_count: '3'
879           vm_0_flavor: '{odl_system_flavor}'
880           vm_0_image: '{odl_system_image}'
881           vm_1_count: '{tools_system_count}'
882           vm_1_flavor: '{tools_system_flavor}'
883           vm_1_image: '{tools_system_image}'
884       - integration-distribution-branch:
885           branch: '{branch}'
886       - integration-distribution-stream:
887           stream: '{stream}'
888       - integration-script-plan:
889           script-plan: '{project}.txt'
890       - integration-config-plan:
891           config-plan: '{project}.txt'
892       - integration-stream-test-plan:
893           stream-test-plan: '{project}-{functionality}-{stream}.txt'
894       - integration-test-plan:
895           test-plan: '{testplan}'
896       - integration-test-suites:
897           test-suites: '{test-suites}'
898       - integration-patch-refspec:
899           branch: 'master'
900       - integration-jdk-version:
901           jdkversion: '{jre}'
902       - distribution-karaf-version:
903           karaf-version: '{karaf-version}'
904
905
906 - job-template:
907     name: '{prefix}{project}-csit-3node-docker-{functionality}-{install}-{stream}'
908     id: inttest-csit-3node-docker
909     <<: *inttest_csit_common
910
911     #####################
912     # Default variables #
913     #####################
914
915     openstack-cloud: vex
916     openstack-heat-template: csit-2-instance-type.yaml
917     openstack-heat-template-dir: openstack-hot
918
919     odl_system_count: 1
920     odl_system_flavor: 'odl-highcpu-4'
921     odl_system_image: 'ZZCI - CentOS 7 - builder - x86_64 - 20200730-200731.474'
922     controller-max-mem: '2048m'
923     docker_system_count: '1'
924     docker_system_flavor: 'odl-standard-1'
925     docker_system_image: 'ZZCI - CentOS 7 - docker - x86_64 - 20191004-045622.840'
926
927     #####################
928     # Job Configuration #
929     #####################
930
931     parameters:
932       - integration-csit-parameters:
933           archive-artifacts: '{archive-artifacts}'
934           branch: '{branch}'
935           os-cloud: '{os-cloud}'
936           # CSIT
937           bundle-url: '{bundle-url}'
938           repo-url: '{repo-url}'
939           robot-options: '{robot-options}'
940           # Controller
941           controller-scope: '{install}'
942           controller-max-mem: '{controller-max-mem}'
943           debug-map: '{debug-map}'
944           install-features: 'odl-jolokia,{install-features}'
945           use-features-boot: 'True'
946           elasticsearch-attribute: '{elasticsearch-attribute}'
947       - integration-stack-2-type:
948           vm_0_count: '3'
949           vm_0_flavor: '{odl_system_flavor}'
950           vm_0_image: '{odl_system_image}'
951           vm_1_count: '{docker_system_count}'
952           vm_1_flavor: '{docker_system_flavor}'
953           vm_1_image: '{docker_system_image}'
954       - integration-distribution-branch:
955           branch: '{branch}'
956       - integration-distribution-stream:
957           stream: '{stream}'
958       - integration-script-plan:
959           script-plan: '{project}.txt'
960       - integration-config-plan:
961           config-plan: '{project}.txt'
962       - integration-stream-test-plan:
963           stream-test-plan: '{project}-{functionality}-{stream}.txt'
964       - integration-test-plan:
965           test-plan: '{project}-{functionality}.txt'
966       - integration-patch-refspec:
967           branch: 'master'
968       - integration-jdk-version:
969           jdkversion: '{jre}'
970       - distribution-karaf-version:
971           karaf-version: '{karaf-version}'
972
973     scm:
974       - integration-gerrit-scm:
975           basedir: 'test'
976           refspec: '$PATCHREFSPEC'
977           branch: 'master'
978
979     builders:
980       - lf-infra-pre-build
981       - integration-stack-2-type:
982           openstack-cloud: '{openstack-cloud}'
983           openstack-heat-template: '{openstack-heat-template}'
984           openstack-heat-template-dir: '{openstack-heat-template-dir}'
985       - integration-install-robotframework
986       - inject:
987           properties-file: 'env.properties'
988       - integration-get-slave-addresses
989       - inject:
990           properties-file: 'slave_addresses.txt'
991       - integration-detect-variables
992       - integration-install-common-functions
993       - integration-configure-clustering
994       - integration-start-cluster-run-test
995       - integration-cleanup-tmp
996
997     publishers:
998       - email-notification:
999           email-recipients: '{email-recipients}'
1000           email-prefix: '[{project}]'
1001       - plot:
1002           - title: '{01-plot-title}'
1003             yaxis: '{01-plot-yaxis}'
1004             group: '{01-plot-group}'
1005             num-builds: '5400'
1006             keep-records: true
1007             style: line
1008             use-description: false
1009             # yamllint disable-line rule:line-length
1010             csv-file-name: '{project}-csit-3node-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv'
1011             series:
1012               - file: '{01-plot-data-file}'
1013                 inclusion-flag: 'off'
1014                 display-table: true
1015                 format: csv
1016           - title: '{02-plot-title}'
1017             yaxis: '{02-plot-yaxis}'
1018             group: '{02-plot-group}'
1019             num-builds: '5400'
1020             keep-records: true
1021             style: line
1022             use-description: false
1023             # yamllint disable-line rule:line-length
1024             csv-file-name: '{project}-csit-3node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv'
1025             series:
1026               - file: '{02-plot-data-file}'
1027                 inclusion-flag: 'off'
1028                 display-table: true
1029                 format: csv
1030       - integration-csit-publish:
1031           robot_other_files: ''
1032           robot-pass-threshold: 100.0
1033           robot-unstable-threshold: 0.0
1034       - lf-stack-delete:
1035           openstack-cloud: '{openstack-cloud}'
1036       - lf-infra-publish
1037
1038
1039 #################################
1040 # inttest-csit-hwvtep-openstack #
1041 #################################
1042
1043 - inttest_csit_hwvtep_openstack: &inttest_csit_hwvtep_openstack
1044     name: inttest-csit-hwvtep-openstack
1045
1046     #####################
1047     # Default variables #
1048     #####################
1049
1050     openstack-cloud: vex
1051     openstack-heat-template: csit-4-instance-type.yaml
1052     openstack-heat-template-dir: openstack-hot
1053
1054     odl_system_count: 1
1055     odl_system_flavor: 'odl-highcpu-4'
1056     odl_system_image: 'ZZCI - CentOS 7 - builder - x86_64 - 20200730-200731.474'
1057     controller-max-mem: '2048m'
1058     openstack_system_count: 1
1059     openstack_system_flavor: 'odl-standard-4'
1060     openstack_system_image: 'ZZCI - CentOS 7 - devstack - x86_64 - 20191004-045548.485'
1061     openstack_system2_count: 0
1062     openstack_system2_flavor: 'odl-standard-1'
1063     openstack_system2_image: 'ZZCI - CentOS 7 - devstack - x86_64 - 20191004-045548.485'
1064     tools_system_count: 1
1065     tools_system_flavor: 'odl-highcpu-2'
1066     tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20190415-091034.881'
1067
1068     #####################
1069     # Job configuration #
1070     #####################
1071
1072     parameters:
1073       - integration-csit-parameters:
1074           archive-artifacts: '{archive-artifacts}'
1075           branch: '{branch}'
1076           os-cloud: '{os-cloud}'
1077           # CSIT
1078           bundle-url: '{bundle-url}'
1079           repo-url: '{repo-url}'
1080           robot-options: '{robot-options}'
1081           # Controller
1082           controller-scope: ''
1083           controller-max-mem: '{controller-max-mem}'
1084           debug-map: '{debug-map}'
1085           install-features: '{install-features}'
1086           use-features-boot: '{use-features-boot}'
1087           elasticsearch-attribute: '{elasticsearch-attribute}'
1088       - integration-stack-4-type:
1089           vm_0_count: '{odl_system_count}'
1090           vm_0_flavor: '{odl_system_flavor}'
1091           vm_0_image: '{odl_system_image}'
1092           vm_1_count: '{openstack_system_count}'
1093           vm_1_flavor: '{openstack_system_flavor}'
1094           vm_1_image: '{openstack_system_image}'
1095           vm_2_count: '{openstack_system2_count}'
1096           vm_2_flavor: '{openstack_system2_flavor}'
1097           vm_2_image: '{openstack_system2_image}'
1098           vm_3_count: '{tools_system_count}'
1099           vm_3_flavor: '{tools_system_flavor}'
1100           vm_3_image: '{tools_system_image}'
1101       - integration-distribution-branch:
1102           branch: '{branch}'
1103       - integration-distribution-stream:
1104           stream: '{stream}'
1105       - integration-script-plan:
1106           script-plan: '{project}.txt'
1107       - integration-config-plan:
1108           config-plan: '{project}.txt'
1109       - integration-test-plan:
1110           test-plan: '{project}-{functionality}.txt'
1111       - integration-test-suites:
1112           test-suites: '{test-suites}'
1113       - integration-patch-refspec:
1114           branch: 'master'
1115       - integration-jdk-version:
1116           jdkversion: '{jre}'
1117       - distribution-karaf-version:
1118           karaf-version: '{karaf-version}'
1119       - string:
1120           name: OPENSTACK_BRANCH
1121           default: '{openstack-branch}'
1122           description: 'Openstack version to use with devstack'
1123       - string:
1124           name: DEVSTACK_HASH
1125           default: '{devstack-hash}'
1126           description: 'devstack hash to checkout'
1127       - string:
1128           name: ODL_ML2_DRIVER_REPO
1129           default: '{odl-ml2-driver-repo}'
1130           description: 'URL to fetch networking-odl driver'
1131       - string:
1132           name: ODL_ML2_BRANCH
1133           default: '{odl-ml2-branch}'
1134           description: 'Version of networking-odl to checkout from the repo'
1135       - string:
1136           name: ODL_ML2_DRIVER_VERSION
1137           default: '{odl-ml2-driver-version}'
1138           description: 'Mode of networking-odl (v1 or v2)'
1139       - string:
1140           name: ODL_ML2_PORT_BINDING
1141           default: '{odl-ml2-port-binding}'
1142           description: >
1143             Method of networking-odl port-binding (pseudo-agentdb-binding or
1144             legacy-port-binding or network-topology)
1145       - string:
1146           name: DEVSTACK_KUBERNETES_PLUGIN_REPO
1147           default: '{devstack-kubernetes-plugin-repo}'
1148           description: 'URL to fetch kubernetes devstack plugin'
1149       - string:
1150           name: DEVSTACK_LBAAS_PLUGIN_REPO
1151           default: '{devstack-lbaas-plugin-repo}'
1152           description: 'URL to fetch neutron-lbaas devstack plugin'
1153       - string:
1154           name: DEVSTACK_NETWORKING_SFC_PLUGIN_REPO
1155           default: '{devstack-networking-sfc-plugin-repo}'
1156           description: 'URL to fetch neutron-lbaas devstack plugin'
1157       - string:
1158           name: IPSEC_VXLAN_TUNNELS_ENABLED
1159           default: '{ipsec-vxlan-tunnels-enabled}'
1160           description: 'Enable ipsec over vxlan support for all controllers and computes'
1161       - string:
1162           name: PUBLIC_BRIDGE
1163           default: '{public-bridge}'
1164           description: 'Specifies public bridge for provider and external networking'
1165       - string:
1166           name: ENABLE_HAPROXY_FOR_NEUTRON
1167           default: '{enable-haproxy}'
1168           description: 'Enable HAProxy for using neutron interface as HA'
1169       - string:
1170           name: ENABLE_OS_SERVICES
1171           default: '{enable-openstack-services}'
1172           description: 'comma separated list of services to enable on controller nodes'
1173       - string:
1174           name: ENABLE_OS_COMPUTE_SERVICES
1175           default: '{enable-openstack-compute-services}'
1176           description: 'comma separated list of services to enable on compute nodes'
1177       - string:
1178           name: ENABLE_OS_NETWORK_SERVICES
1179           default: '{enable-openstack-network-services}'
1180           description: 'comma seperated list of network services to enable'
1181       - string:
1182           name: ENABLE_OS_PLUGINS
1183           default: '{enable-openstack-plugins}'
1184           description: 'comma seperated list of plugins to enable'
1185       - string:
1186           name: DISABLE_OS_SERVICES
1187           default: '{disable-openstack-services}'
1188           description: 'comma seperated list of services to enable'
1189       - string:
1190           name: TENANT_NETWORK_TYPE
1191           default: '{tenant-network-type}'
1192           description: 'Tenant Network Type supported by the implementation'
1193       - string:
1194           name: SECURITY_GROUP_MODE
1195           default: '{security-group-mode}'
1196           description: 'Security Group Mode to be used in netvirt aclservice config'
1197       - string:
1198           name: ENABLE_ITM_DIRECT_TUNNELS
1199           default: '{enable-itm-direct-tunnels}'
1200           description: 'Tunnel Configuration mode to be used in genius ifm config'
1201       - string:
1202           name: PUBLIC_PHYSICAL_NETWORK
1203           default: '{public-physical-network}'
1204           description: 'provider physical network used for flat/vlan networks'
1205       - string:
1206           name: ENABLE_NETWORKING_L2GW
1207           default: '{enable-networking-l2gw}'
1208           description: 'Enable networking L2gw'
1209       - string:
1210           name: NETWORKING_L2GW_DRIVER
1211           default: '{networking-l2gw-repo}'
1212           description: 'URL to fetch networking-l2gw driver'
1213       - string:
1214           name: CREATE_INITIAL_NETWORKS
1215           default: '{create-initial-networks}'
1216           description: 'Toggles the option of letting devstack create initial networks (True/False)'
1217       - string:
1218           name: LBAAS_SERVICE_PROVIDER
1219           default: '{lbaas-service-provider}'
1220           description: >
1221             The NEUTRON_LBAAS_SERVICE_PROVIDERV2 value to be used in
1222             local.conf - only relevant when using neutron-lbaas
1223       - string:
1224           name: ODL_SFC_DRIVER
1225           default: '{odl-sfc-driver}'
1226           description: 'The SFC driver to be used in local.conf - only relevant when using networking-sfc'
1227       - string:
1228           name: ODL_SNAT_MODE
1229           default: '{odl-snat-mode}'
1230           description: 'The SNAT mode to be configured - options are conntrack/controller.'
1231       - string:
1232           name: GROUP_ADD_MOD_ENABLED
1233           default: '{group-add-mod-enabled}'
1234           description: 'The Group add mod enabled mode to be configured - options are true/false.'
1235       - string:
1236           name: OVS_INSTALL
1237           default: '{ovs-install}'
1238           description: >
1239             Install a custom OVS. It can be an OVS version to build
1240             (like v2.9.2 or v2.6.1-nsh) or a yum repo url to pull from.
1241
1242     scm:
1243       - integration-gerrit-scm:
1244           basedir: 'test'
1245           refspec: '$PATCHREFSPEC'
1246           branch: 'master'
1247
1248     triggers:
1249       - timed: '{schedule}'
1250
1251     builders:
1252       - lf-infra-pre-build
1253       - integration-stack-4-type:
1254           openstack-cloud: '{openstack-cloud}'
1255           openstack-heat-template: '{openstack-heat-template}'
1256           openstack-heat-template-dir: '{openstack-heat-template-dir}'
1257       - integration-install-robotframework
1258       - inject:
1259           properties-file: 'env.properties'
1260       - integration-get-slave-addresses
1261       - inject:
1262           properties-file: 'slave_addresses.txt'
1263       - integration-detect-variables
1264       - integration-install-common-functions
1265       - integration-deploy-controller-run-test
1266       - integration-deploy-openstack-run-test
1267       - integration-cleanup-tmp
1268
1269     publishers:
1270       - email-notification:
1271           email-recipients: '{email-recipients}'
1272           email-prefix: '[{project}]'
1273       - integration-csit-collect-netvirt-logs
1274       - integration-csit-publish:
1275           robot_other_files:
1276             - tempest_results.html
1277           robot-pass-threshold: 100.0
1278           robot-unstable-threshold: 0.0
1279       - lf-stack-delete:
1280           openstack-cloud: '{openstack-cloud}'
1281       - lf-infra-publish
1282
1283 - job-template:
1284     # yamllint disable-line rule:line-length
1285     name: '{prefix}{project}-csit-hwvtep-{topology}-{os-cmb-cnt}cmb-{os-ctl-cnt}ctl-{os-cmp-cnt}cmp-openstack-{openstack}-{functionality}-{stream}'
1286     id: inttest-csit-hwvtep-openstack
1287     <<: *inttest_csit_common
1288     # yamllint disable-line rule:key-duplicates
1289     <<: *inttest_csit_hwvtep_openstack
1290
1291 - job-template:
1292     # yamllint disable-line rule:line-length
1293     name: '{prefix}{project}-csit-hwvtep-{topology}-{os-cmb-cnt}cmb-{os-ctl-cnt}ctl-{os-cmp-cnt}cmp-openstack-{openstack}-{functionality}-{stream}'
1294     id: inttest-csit-hwvtep-openstack-custom
1295     <<: *inttest_csit_common
1296     # yamllint disable-line rule:key-duplicates
1297     <<: *inttest_csit_hwvtep_openstack
1298
1299     parameters:
1300       - integration-csit-parameters:
1301           archive-artifacts: '{archive-artifacts}'
1302           branch: '{branch}'
1303           os-cloud: '{os-cloud}'
1304           # CSIT
1305           bundle-url: '{bundle-url}'
1306           repo-url: '{repo-url}'
1307           robot-options: '{robot-options}'
1308           # Controller
1309           controller-scope: ''
1310           controller-max-mem: '{controller-max-mem}'
1311           debug-map: '{debug-map}'
1312           install-features: '{install-features}'
1313           use-features-boot: '{use-features-boot}'
1314           elasticsearch-attribute: '{elasticsearch-attribute}'
1315       - integration-stack-4-type:
1316           vm_0_count: '{odl_system_count}'
1317           vm_0_flavor: '{odl_system_flavor}'
1318           vm_0_image: '{odl_system_image}'
1319           vm_1_count: '{openstack_system_count}'
1320           vm_1_flavor: '{openstack_system_flavor}'
1321           vm_1_image: '{openstack_system_image}'
1322           vm_2_count: '{openstack_system2_count}'
1323           vm_2_flavor: '{openstack_system2_flavor}'
1324           vm_2_image: '{openstack_system2_image}'
1325           vm_3_count: '{tools_system_count}'
1326           vm_3_flavor: '{tools_system_flavor}'
1327           vm_3_image: '{tools_system_image}'
1328       - integration-distribution-branch:
1329           branch: '{branch}'
1330       - integration-distribution-stream:
1331           stream: '{stream}'
1332       - integration-script-plan:
1333           script-plan: '{project}.txt'
1334       - integration-config-plan:
1335           config-plan: '{project}.txt'
1336       - integration-test-plan:
1337           test-plan: '{testplan}'
1338       - integration-test-suites:
1339           test-suites: '{test-suites}'
1340       - integration-patch-refspec:
1341           branch: 'master'
1342       - integration-jdk-version:
1343           jdkversion: '{jre}'
1344       - distribution-karaf-version:
1345           karaf-version: '{karaf-version}'
1346       - string:
1347           name: OPENSTACK_BRANCH
1348           default: '{openstack-branch}'
1349           description: 'Openstack version to use with devstack'
1350       - string:
1351           name: DEVSTACK_HASH
1352           default: '{devstack-hash}'
1353           description: 'devstack hash to checkout'
1354       - string:
1355           name: ODL_ML2_DRIVER_REPO
1356           default: '{odl-ml2-driver-repo}'
1357           description: 'URL to fetch networking-odl driver'
1358       - string:
1359           name: ODL_ML2_BRANCH
1360           default: '{odl-ml2-branch}'
1361           description: 'Version of networking-odl to checkout from the repo'
1362       - string:
1363           name: ODL_ML2_DRIVER_VERSION
1364           default: '{odl-ml2-driver-version}'
1365           description: 'Mode of networking-odl (v1 or v2)'
1366       - string:
1367           name: ODL_ML2_PORT_BINDING
1368           default: '{odl-ml2-port-binding}'
1369           description: 'Method of networking-odl port-binding (pseudo-agentdb-binding or legacy-port-binding or
1370           network-topology)'
1371       - string:
1372           name: DEVSTACK_KUBERNETES_PLUGIN_REPO
1373           default: '{devstack-kubernetes-plugin-repo}'
1374           description: 'URL to fetch kubernetes devstack plugin'
1375       - string:
1376           name: DEVSTACK_LBAAS_PLUGIN_REPO
1377           default: '{devstack-lbaas-plugin-repo}'
1378           description: 'URL to fetch neutron-lbaas devstack plugin'
1379       - string:
1380           name: DEVSTACK_NETWORKING_SFC_PLUGIN_REPO
1381           default: '{devstack-networking-sfc-plugin-repo}'
1382           description: 'URL to fetch neutron-lbaas devstack plugin'
1383       - string:
1384           name: IPSEC_VXLAN_TUNNELS_ENABLED
1385           default: '{ipsec-vxlan-tunnels-enabled}'
1386           description: 'Enable ipsec over vxlan support for all controllers and computes'
1387       - string:
1388           name: PUBLIC_BRIDGE
1389           default: '{public-bridge}'
1390           description: 'Specifies public bridge for provider and external networking'
1391       - string:
1392           name: ENABLE_HAPROXY_FOR_NEUTRON
1393           default: '{enable-haproxy}'
1394           description: 'Enable HAProxy for using neutron interface as HA'
1395       - string:
1396           name: ENABLE_OS_SERVICES
1397           default: '{enable-openstack-services}'
1398           description: 'comma separated list of services to enable on controller nodes'
1399       - string:
1400           name: ENABLE_OS_COMPUTE_SERVICES
1401           default: '{enable-openstack-compute-services}'
1402           description: 'comma separated list of services to enable on compute nodes'
1403       - string:
1404           name: ENABLE_OS_NETWORK_SERVICES
1405           default: '{enable-openstack-network-services}'
1406           description: 'comma seperated list of network services to enable'
1407       - string:
1408           name: ENABLE_OS_PLUGINS
1409           default: '{enable-openstack-plugins}'
1410           description: 'comma seperated list of plugins to enable'
1411       - string:
1412           name: DISABLE_OS_SERVICES
1413           default: '{disable-openstack-services}'
1414           description: 'comma seperated list of services to enable'
1415       - string:
1416           name: TENANT_NETWORK_TYPE
1417           default: '{tenant-network-type}'
1418           description: 'Tenant Network Type supported by the implementation'
1419       - string:
1420           name: SECURITY_GROUP_MODE
1421           default: '{security-group-mode}'
1422           description: 'Security Group Mode to be used in netvirt aclservice config'
1423       - string:
1424           name: ENABLE_ITM_DIRECT_TUNNELS
1425           default: '{enable-itm-direct-tunnels}'
1426           description: 'Tunnel Configuration mode to be used in genius ifm config'
1427       - string:
1428           name: PUBLIC_PHYSICAL_NETWORK
1429           default: '{public-physical-network}'
1430           description: 'provider physical network used for flat/vlan networks'
1431       - string:
1432           name: ENABLE_NETWORKING_L2GW
1433           default: '{enable-networking-l2gw}'
1434           description: 'Enable networking L2gw'
1435       - string:
1436           name: NETWORKING_L2GW_DRIVER
1437           default: '{networking-l2gw-repo}'
1438           description: 'URL to fetch networking-l2gw driver'
1439       - string:
1440           name: CREATE_INITIAL_NETWORKS
1441           default: '{create-initial-networks}'
1442           description: 'Toggles the option of letting devstack create initial networks (True/False)'
1443       - string:
1444           name: LBAAS_SERVICE_PROVIDER
1445           default: '{lbaas-service-provider}'
1446           description: 'The NEUTRON_LBAAS_SERVICE_PROVIDERV2 value to be used in local.conf - only relevant when using
1447           neutron-lbaas'
1448       - string:
1449           name: ODL_SFC_DRIVER
1450           default: '{odl-sfc-driver}'
1451           description: 'The SFC driver to be used in local.conf - only relevant when using networking-sfc'
1452       - string:
1453           name: ODL_SNAT_MODE
1454           default: '{odl-snat-mode}'
1455           description: 'The SNAT mode to be configured - options are conntrack/controller.'
1456       - string:
1457           name: GROUP_ADD_MOD_ENABLED
1458           default: '{group-add-mod-enabled}'
1459           description: 'The Group add mod enabled mode to be configured - options are true/false.'
1460       - string:
1461           name: OVS_INSTALL
1462           default: '{ovs-install}'
1463           description: 'Install a custom OVS. It can be an OVS version to build (like v2.9.2 or v2.6.1-nsh) or a yum
1464           repo url to pull from.'
1465
1466
1467 ##########################
1468 # inttest-csit-openstack #
1469 ##########################
1470
1471 - inttest_csit_openstack: &inttest_csit_openstack
1472     name: inttest-csit-openstack
1473
1474     #####################
1475     # Default variables #
1476     #####################
1477
1478     openstack-cloud: vex
1479     openstack-heat-template: csit-4-instance-type.yaml
1480     openstack-heat-template-dir: openstack-hot
1481
1482     odl_system_count: 1
1483     odl_system_flavor: 'odl-highcpu-4'
1484     odl_system_image: 'ZZCI - CentOS 7 - builder - x86_64 - 20200730-200731.474'
1485     controller-max-mem: '2048m'
1486     openstack_system_count: 1
1487     openstack_system_flavor: 'odl-standard-4'
1488     openstack_system_image: 'ZZCI - CentOS 7 - devstack - x86_64 - 20191004-045548.485'
1489     openstack_system2_count: 0
1490     openstack_system2_flavor: 'odl-standard-1'
1491     openstack_system2_image: 'ZZCI - CentOS 7 - devstack - x86_64 - 20191004-045548.485'
1492     tools_system_count: 1
1493     tools_system_flavor: 'odl-highcpu-2'
1494     tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20190415-091034.881'
1495
1496     #####################
1497     # Job configuration #
1498     #####################
1499
1500     parameters:
1501       - integration-csit-parameters:
1502           archive-artifacts: '{archive-artifacts}'
1503           branch: '{branch}'
1504           os-cloud: '{os-cloud}'
1505           # CSIT
1506           bundle-url: '{bundle-url}'
1507           repo-url: '{repo-url}'
1508           robot-options: '{robot-options}'
1509           # Controller
1510           controller-scope: ''
1511           controller-max-mem: '{controller-max-mem}'
1512           debug-map: '{debug-map}'
1513           install-features: '{install-features}'
1514           use-features-boot: '{use-features-boot}'
1515           elasticsearch-attribute: '{elasticsearch-attribute}'
1516       - integration-stack-4-type:
1517           vm_0_count: '{odl_system_count}'
1518           vm_0_flavor: '{odl_system_flavor}'
1519           vm_0_image: '{odl_system_image}'
1520           vm_1_count: '{openstack_system_count}'
1521           vm_1_flavor: '{openstack_system_flavor}'
1522           vm_1_image: '{openstack_system_image}'
1523           vm_2_count: '{openstack_system2_count}'
1524           vm_2_flavor: '{openstack_system2_flavor}'
1525           vm_2_image: '{openstack_system2_image}'
1526           vm_3_count: '{tools_system_count}'
1527           vm_3_flavor: '{tools_system_flavor}'
1528           vm_3_image: '{tools_system_image}'
1529       - integration-distribution-branch:
1530           branch: '{branch}'
1531       - integration-distribution-stream:
1532           stream: '{stream}'
1533       - integration-script-plan:
1534           script-plan: '{project}.txt'
1535       - integration-config-plan:
1536           config-plan: '{project}.txt'
1537       - integration-test-plan:
1538           test-plan: '{project}-{functionality}.txt'
1539       - integration-test-suites:
1540           test-suites: '{test-suites}'
1541       - integration-patch-refspec:
1542           branch: 'master'
1543       - integration-jdk-version:
1544           jdkversion: '{jre}'
1545       - distribution-karaf-version:
1546           karaf-version: '{karaf-version}'
1547       - string:
1548           name: OPENSTACK_BRANCH
1549           default: '{openstack-branch}'
1550           description: 'Openstack version to use with devstack'
1551       - string:
1552           name: DEVSTACK_HASH
1553           default: '{devstack-hash}'
1554           description: 'devstack hash to checkout'
1555       - string:
1556           name: ODL_ML2_DRIVER_REPO
1557           default: '{odl-ml2-driver-repo}'
1558           description: 'URL to fetch networking-odl driver'
1559       - string:
1560           name: ODL_ML2_BRANCH
1561           default: '{odl-ml2-branch}'
1562           description: 'Version of networking-odl to checkout from the repo'
1563       - string:
1564           name: ODL_ML2_DRIVER_VERSION
1565           default: '{odl-ml2-driver-version}'
1566           description: 'Mode of networking-odl (v1 or v2)'
1567       - string:
1568           name: ODL_ML2_PORT_BINDING
1569           default: '{odl-ml2-port-binding}'
1570           description: 'Method of networking-odl port-binding (pseudo-agentdb-binding or legacy-port-binding or
1571           network-topology)'
1572       - string:
1573           name: ENABLE_GRE_TYPE_DRIVERS
1574           default: '{enable-gre-type-driver}'
1575           description: 'Enable gre tunnel'
1576       - string:
1577           name: DEVSTACK_KUBERNETES_PLUGIN_REPO
1578           default: '{devstack-kubernetes-plugin-repo}'
1579           description: 'URL to fetch kubernetes devstack plugin'
1580       - string:
1581           name: DEVSTACK_LBAAS_PLUGIN_REPO
1582           default: '{devstack-lbaas-plugin-repo}'
1583           description: 'URL to fetch neutron-lbaas devstack plugin'
1584       - string:
1585           name: DEVSTACK_NETWORKING_SFC_PLUGIN_REPO
1586           default: '{devstack-networking-sfc-plugin-repo}'
1587           description: 'URL to fetch neutron-lbaas devstack plugin'
1588       - string:
1589           name: IPSEC_VXLAN_TUNNELS_ENABLED
1590           default: '{ipsec-vxlan-tunnels-enabled}'
1591           description: 'Enable ipsec over vxlan support for all controllers and computes'
1592       - string:
1593           name: PUBLIC_BRIDGE
1594           default: '{public-bridge}'
1595           description: 'Specifies public bridge for provider and external networking'
1596       - string:
1597           name: ENABLE_HAPROXY_FOR_NEUTRON
1598           default: '{enable-haproxy}'
1599           description: 'Enable HAProxy for using neutron interface as HA'
1600       - string:
1601           name: ENABLE_OS_SERVICES
1602           default: '{enable-openstack-services}'
1603           description: 'comma seperated list of services to enable'
1604       - string:
1605           name: ENABLE_OS_COMPUTE_SERVICES
1606           default: '{enable-openstack-compute-services}'
1607           description: 'comma separated list of services to enable on compute nodes'
1608       - string:
1609           name: ENABLE_OS_NETWORK_SERVICES
1610           default: '{enable-openstack-network-services}'
1611           description: 'comma seperated list of network services to enable'
1612       - string:
1613           name: ENABLE_OS_PLUGINS
1614           default: '{enable-openstack-plugins}'
1615           description: 'comma seperated list of plugins to enable'
1616       - string:
1617           name: DISABLE_OS_SERVICES
1618           default: '{disable-openstack-services}'
1619           description: 'comma seperated list of services to enable'
1620       - string:
1621           name: TENANT_NETWORK_TYPE
1622           default: '{tenant-network-type}'
1623           description: 'Tenant Network Type supported by the implementation'
1624       - string:
1625           name: SECURITY_GROUP_MODE
1626           default: '{security-group-mode}'
1627           description: 'Security Group Mode to be used in netvirt aclservice config'
1628       - string:
1629           name: ENABLE_ITM_DIRECT_TUNNELS
1630           default: '{enable-itm-direct-tunnels}'
1631           description: 'Tunnel Configuration mode to be used in genius ifm config'
1632       - string:
1633           name: PUBLIC_PHYSICAL_NETWORK
1634           default: '{public-physical-network}'
1635           description: 'provider physical network used for flat/vlan networks'
1636       - string:
1637           name: ENABLE_NETWORKING_L2GW
1638           default: '{enable-networking-l2gw}'
1639           description: 'Enable networking L2gw'
1640       - string:
1641           name: NETWORKING_L2GW_DRIVER
1642           default: '{networking-l2gw-repo}'
1643           description: 'URL to fetch networking-l2gw driver'
1644       - string:
1645           name: CREATE_INITIAL_NETWORKS
1646           default: '{create-initial-networks}'
1647           description: 'Toggles the option of letting devstack create initial networks (True/False)'
1648       - string:
1649           name: LBAAS_SERVICE_PROVIDER
1650           default: '{lbaas-service-provider}'
1651           description: 'The NEUTRON_LBAAS_SERVICE_PROVIDERV2 value to be used in local.conf - only relevant when using
1652           neutron-lbaas'
1653       - string:
1654           name: ODL_SFC_DRIVER
1655           default: '{odl-sfc-driver}'
1656           description: 'The SFC driver to be used in local.conf - only relevant when using networking-sfc'
1657       - string:
1658           name: ODL_SNAT_MODE
1659           default: '{odl-snat-mode}'
1660           description: 'The SNAT mode to be configured - options are conntrack/controller.'
1661       - string:
1662           name: GROUP_ADD_MOD_ENABLED
1663           default: '{group-add-mod-enabled}'
1664           description: 'The Group add mod enabled mode to be configured - options are true/false.'
1665       - string:
1666           name: OVS_INSTALL
1667           default: '{ovs-install}'
1668           description: 'Install a custom OVS. It can be an OVS version to build (like v2.9.2 or v2.6.1-nsh) or a yum
1669           repo url to pull from.'
1670
1671     scm:
1672       - integration-gerrit-scm:
1673           basedir: 'test'
1674           refspec: '$PATCHREFSPEC'
1675           branch: 'master'
1676
1677     triggers:
1678       - timed: '{schedule}'
1679
1680     builders:
1681       - lf-infra-pre-build
1682       - integration-stack-4-type:
1683           openstack-cloud: '{openstack-cloud}'
1684           openstack-heat-template: '{openstack-heat-template}'
1685           openstack-heat-template-dir: '{openstack-heat-template-dir}'
1686       - integration-install-robotframework
1687       - inject:
1688           properties-file: 'env.properties'
1689       - integration-get-slave-addresses
1690       - inject:
1691           properties-file: 'slave_addresses.txt'
1692       - integration-detect-variables
1693       - integration-install-common-functions
1694       - integration-deploy-controller-run-test
1695       - integration-deploy-openstack-run-test
1696       - integration-cleanup-tmp
1697
1698     publishers:
1699       - email-notification:
1700           email-recipients: '{email-recipients}'
1701           email-prefix: '[{project}]'
1702       - integration-csit-collect-netvirt-logs
1703       - integration-csit-publish:
1704           robot_other_files:
1705             - tempest_results.html
1706           robot-pass-threshold: 100.0
1707           robot-unstable-threshold: 0.0
1708       - lf-stack-delete:
1709           openstack-cloud: '{openstack-cloud}'
1710       - lf-infra-publish
1711
1712 - job-template:
1713     # yamllint disable-line rule:line-length
1714     name: '{prefix}{project}-csit-{topology}-{os-cmb-cnt}cmb-{os-ctl-cnt}ctl-{os-cmp-cnt}cmp-openstack-{openstack}-{functionality}-{stream}'
1715     id: inttest-csit-openstack
1716     <<: *inttest_csit_common
1717     # yamllint disable-line rule:key-duplicates
1718     <<: *inttest_csit_openstack
1719
1720 - job-template:
1721     # yamllint disable-line rule:line-length
1722     name: '{prefix}{project}-csit-{topology}-{os-cmb-cnt}cmb-{os-ctl-cnt}ctl-{os-cmp-cnt}cmp-openstack-{openstack}-{functionality}-{stream}'
1723     id: inttest-csit-openstack-custom
1724     <<: *inttest_csit_common
1725     # yamllint disable-line rule:key-duplicates
1726     <<: *inttest_csit_openstack
1727
1728     parameters:
1729       - integration-csit-parameters:
1730           archive-artifacts: '{archive-artifacts}'
1731           branch: '{branch}'
1732           os-cloud: '{os-cloud}'
1733           # CSIT
1734           bundle-url: '{bundle-url}'
1735           repo-url: '{repo-url}'
1736           robot-options: '{robot-options}'
1737           # Controller
1738           controller-scope: ''
1739           controller-max-mem: '{controller-max-mem}'
1740           debug-map: '{debug-map}'
1741           install-features: '{install-features}'
1742           use-features-boot: '{use-features-boot}'
1743           elasticsearch-attribute: '{elasticsearch-attribute}'
1744       - integration-stack-4-type:
1745           vm_0_count: '{odl_system_count}'
1746           vm_0_flavor: '{odl_system_flavor}'
1747           vm_0_image: '{odl_system_image}'
1748           vm_1_count: '{openstack_system_count}'
1749           vm_1_flavor: '{openstack_system_flavor}'
1750           vm_1_image: '{openstack_system_image}'
1751           vm_2_count: '{openstack_system2_count}'
1752           vm_2_flavor: '{openstack_system2_flavor}'
1753           vm_2_image: '{openstack_system2_image}'
1754           vm_3_count: '{tools_system_count}'
1755           vm_3_flavor: '{tools_system_flavor}'
1756           vm_3_image: '{tools_system_image}'
1757       - integration-distribution-branch:
1758           branch: '{branch}'
1759       - integration-distribution-stream:
1760           stream: '{stream}'
1761       - integration-script-plan:
1762           script-plan: '{project}.txt'
1763       - integration-config-plan:
1764           config-plan: '{project}.txt'
1765       - integration-test-plan:
1766           test-plan: '{testplan}'
1767       - integration-test-suites:
1768           test-suites: '{test-suites}'
1769       - integration-patch-refspec:
1770           branch: 'master'
1771       - integration-jdk-version:
1772           jdkversion: '{jre}'
1773       - distribution-karaf-version:
1774           karaf-version: '{karaf-version}'
1775       - string:
1776           name: OPENSTACK_BRANCH
1777           default: '{openstack-branch}'
1778           description: 'Openstack version to use with devstack'
1779       - string:
1780           name: DEVSTACK_HASH
1781           default: '{devstack-hash}'
1782           description: 'devstack hash to checkout'
1783       - string:
1784           name: ODL_ML2_DRIVER_REPO
1785           default: '{odl-ml2-driver-repo}'
1786           description: 'URL to fetch networking-odl driver'
1787       - string:
1788           name: ODL_ML2_BRANCH
1789           default: '{odl-ml2-branch}'
1790           description: 'Version of networking-odl to checkout from the repo'
1791       - string:
1792           name: ODL_ML2_DRIVER_VERSION
1793           default: '{odl-ml2-driver-version}'
1794           description: 'Mode of networking-odl (v1 or v2)'
1795       - string:
1796           name: ODL_ML2_PORT_BINDING
1797           default: '{odl-ml2-port-binding}'
1798           description: 'Method of networking-odl port-binding (pseudo-agentdb-binding or legacy-port-binding or
1799           network-topology)'
1800       - string:
1801           name: ENABLE_GRE_TYPE_DRIVERS
1802           default: '{enable-gre-type-driver}'
1803           description: 'Enable gre tunnel'
1804       - string:
1805           name: DEVSTACK_KUBERNETES_PLUGIN_REPO
1806           default: '{devstack-kubernetes-plugin-repo}'
1807           description: 'URL to fetch kubernetes devstack plugin'
1808       - string:
1809           name: DEVSTACK_LBAAS_PLUGIN_REPO
1810           default: '{devstack-lbaas-plugin-repo}'
1811           description: 'URL to fetch neutron-lbaas devstack plugin'
1812       - string:
1813           name: DEVSTACK_NETWORKING_SFC_PLUGIN_REPO
1814           default: '{devstack-networking-sfc-plugin-repo}'
1815           description: 'URL to fetch neutron-lbaas devstack plugin'
1816       - string:
1817           name: IPSEC_VXLAN_TUNNELS_ENABLED
1818           default: '{ipsec-vxlan-tunnels-enabled}'
1819           description: 'Enable ipsec over vxlan support for all controllers and computes'
1820       - string:
1821           name: PUBLIC_BRIDGE
1822           default: '{public-bridge}'
1823           description: 'Specifies public bridge for provider and external networking'
1824       - string:
1825           name: ENABLE_HAPROXY_FOR_NEUTRON
1826           default: '{enable-haproxy}'
1827           description: 'Enable HAProxy for using neutron interface as HA'
1828       - string:
1829           name: ENABLE_OS_SERVICES
1830           default: '{enable-openstack-services}'
1831           description: 'comma seperated list of services to enable'
1832       - string:
1833           name: ENABLE_OS_COMPUTE_SERVICES
1834           default: '{enable-openstack-compute-services}'
1835           description: 'comma separated list of services to enable on compute nodes'
1836       - string:
1837           name: ENABLE_OS_NETWORK_SERVICES
1838           default: '{enable-openstack-network-services}'
1839           description: 'comma seperated list of network services to enable'
1840       - string:
1841           name: ENABLE_OS_PLUGINS
1842           default: '{enable-openstack-plugins}'
1843           description: 'comma seperated list of plugins to enable'
1844       - string:
1845           name: DISABLE_OS_SERVICES
1846           default: '{disable-openstack-services}'
1847           description: 'comma seperated list of services to enable'
1848       - string:
1849           name: TENANT_NETWORK_TYPE
1850           default: '{tenant-network-type}'
1851           description: 'Tenant Network Type supported by the implementation'
1852       - string:
1853           name: SECURITY_GROUP_MODE
1854           default: '{security-group-mode}'
1855           description: 'Security Group Mode to be used in netvirt aclservice config'
1856       - string:
1857           name: ENABLE_ITM_DIRECT_TUNNELS
1858           default: '{enable-itm-direct-tunnels}'
1859           description: 'Tunnel Configuration mode to be used in genius ifm config'
1860       - string:
1861           name: PUBLIC_PHYSICAL_NETWORK
1862           default: '{public-physical-network}'
1863           description: 'provider physical network used for flat/vlan networks'
1864       - string:
1865           name: ENABLE_NETWORKING_L2GW
1866           default: '{enable-networking-l2gw}'
1867           description: 'Enable networking L2gw'
1868       - string:
1869           name: NETWORKING_L2GW_DRIVER
1870           default: '{networking-l2gw-repo}'
1871           description: 'URL to fetch networking-l2gw driver'
1872       - string:
1873           name: CREATE_INITIAL_NETWORKS
1874           default: '{create-initial-networks}'
1875           description: 'Toggles the option of letting devstack create initial networks (True/False)'
1876       - string:
1877           name: LBAAS_SERVICE_PROVIDER
1878           default: '{lbaas-service-provider}'
1879           description: 'The NEUTRON_LBAAS_SERVICE_PROVIDERV2 value to be used in local.conf - only relevant when using
1880           neutron-lbaas'
1881       - string:
1882           name: ODL_SFC_DRIVER
1883           default: '{odl-sfc-driver}'
1884           description: 'The SFC driver to be used in local.conf - only relevant when using networking-sfc'
1885       - string:
1886           name: ODL_SNAT_MODE
1887           default: '{odl-snat-mode}'
1888           description: 'The SNAT mode to be configured - options are conntrack/controller.'
1889       - string:
1890           name: GROUP_ADD_MOD_ENABLED
1891           default: '{group-add-mod-enabled}'
1892           description: 'The Group add mod enabled mode to be configured - options are true/false.'
1893       - string:
1894           name: OVS_INSTALL
1895           default: '{ovs-install}'
1896           description: 'Install a custom OVS. It can be an OVS version to build (like v2.9.2 or v2.6.1-nsh) or a yum
1897           repo url to pull from.'
1898
1899 # Template: {project}-patch-test-{stream}
1900 # Goal: Build a patch and run project specific system test on a distribution containing the change
1901 # Operation: This job template builds a patch, creates a distribution containing the patch, and
1902 # triggers the project system test defined in {csit-list} when gerrit receives test-{project} keyword
1903
1904 - job-template:
1905     name: '{prefix}{project}-patch-test-{feature}-{stream}'
1906     id: inttest-patch-test
1907     <<: *inttest_csit_common
1908
1909     build-timeout: 720
1910
1911     parameters:
1912       - opendaylight-infra-parameters:
1913           os-cloud: '{os-cloud}'
1914           project: '{project}'
1915           branch: '{branch}'
1916           refspec: 'refs/heads/{branch}'
1917           artifacts: '{archive-artifacts}'
1918       - integration-distribution-branch:
1919           branch: '{branch}'
1920       - distribution-karaf-version:
1921           karaf-version: '{karaf-version}'
1922       - integration-distribution-git-url:
1923           git-url: '{git-url}'
1924       - string:
1925           name: feature
1926           default: 'all'
1927           description: 'Specific feature test for patch'
1928       - maven-exec:
1929           maven-version: mvn35
1930
1931     scm:
1932       - integration-gerrit-scm:
1933           basedir: '{project}'
1934           refspec: '$GERRIT_REFSPEC'
1935           branch: '{branch}'
1936       - integration-distribution-scm:
1937           branch: '{branch}'
1938
1939     triggers:
1940       - gerrit:
1941           server-name: '{gerrit-server-name}'
1942           trigger-on:
1943             - comment-added-contains-event:
1944                 comment-contains-value: 'test-{project}-all'
1945             - comment-added-contains-event:
1946                 comment-contains-value: 'test-{project}-{feature}'
1947           projects:
1948             - project-compare-type: 'ANT'
1949               project-pattern: '{project}'
1950               branches:
1951                 - branch-compare-type: 'ANT'
1952                   branch-pattern: '**/{branch}'
1953           skip-vote:
1954             successful: true
1955             failed: true
1956             unstable: true
1957             notbuilt: true
1958
1959     builders:
1960       - integration-rebase-gerrit-patch
1961       - wipe-org-opendaylight-repo
1962       - lf-update-java-alternatives:
1963           java-version: '{java-version}'
1964       - maven-target:
1965           maven-version: mvn35
1966           pom: '{project}/pom.xml'
1967           goals: |
1968               clean install dependency:tree
1969               -Pq
1970               -Dgitid.skip=false
1971               -Dmaven.gitcommitid.skip=false
1972               -DgenerateReports=false
1973               -Dstream={stream}
1974               {opendaylight-infra-mvn-opts}
1975           # {opendaylight-infra-parallel-mvn-opts} is bad when there are multiple big features in SFT.
1976           java-opts:
1977             - '-Xmx4096m -Dmaven.compile.fork=true'
1978           settings: integration-settings
1979           settings-type: cfp
1980           global-settings: global-settings
1981           global-settings-type: cfp
1982       - maven-target:
1983           maven-version: mvn35
1984           pom: distribution/pom.xml
1985           goals: |
1986               clean install dependency:tree
1987               -Pq
1988               -Dgitid.skip=false
1989               -Dmaven.gitcommitid.skip=false
1990               {opendaylight-infra-mvn-opts}
1991           # {opendaylight-infra-parallel-mvn-opts} is bad when there are multiple big features in SFT.
1992           java-opts:
1993             - '-Xmx1024m -Dmaven.compile.fork=true'
1994           settings: integration-settings
1995           settings-type: cfp
1996           global-settings: global-settings
1997           global-settings-type: cfp
1998       - integration-upload-distribution:
1999           dist-pom: distribution/pom.xml
2000       - trigger-builds:
2001           - project: '{csit-list}'
2002             block: true
2003             predefined-parameters: |
2004               BUNDLE_URL=$BUNDLE_URL
2005               GERRIT_BRANCH=$GERRIT_BRANCH
2006               GERRIT_PROJECT=$GERRIT_PROJECT
2007               GERRIT_REFSPEC=$GERRIT_REFSPEC
2008               KARAF_VERSION=$KARAF_VERSION
2009
2010     publishers:
2011       - email-notification:
2012           email-recipients: '{email-recipients}'
2013           email-prefix: '[{project}]'
2014
2015
2016 #####################
2017 # inttest-csit-apex #
2018 #####################
2019
2020 - inttest_csit_apex: &inttest_csit_apex
2021     name: inttest-csit-apex
2022
2023     #####################
2024     # Default variables #
2025     #####################
2026
2027     openstack-cloud: vex
2028     openstack-heat-template: csit-apex-3-instance-type.yaml
2029     openstack-heat-template-dir: openstack-hot
2030     controller-max-mem: '2048m'
2031
2032     #####################
2033     # Job configuration #
2034     #####################
2035
2036     parameters:
2037       - integration-csit-parameters:
2038           archive-artifacts: '{archive-artifacts}'
2039           branch: '{branch}'
2040           os-cloud: '{os-cloud}'
2041           # CSIT
2042           bundle-url: '{bundle-url}'
2043           repo-url: '{repo-url}'
2044           robot-options: '{robot-options}'
2045           # Controller
2046           controller-scope: ''
2047           controller-max-mem: '{controller-max-mem}'
2048           debug-map: '{debug-map}'
2049           install-features: '{install-features}'
2050           use-features-boot: '{use-features-boot}'
2051           elasticsearch-attribute: '{elasticsearch-attribute}'
2052       - integration-stack-3-type:
2053           vm_0_count: '{apex_controller_count}'
2054           vm_0_flavor: '{apex_controller_flavor}'
2055           vm_0_image: '{apex_controller_image}'
2056           vm_1_count: '1'
2057           vm_1_flavor: '{apex_compute_0_flavor}'
2058           vm_1_image: '{apex_compute_0_image}'
2059           vm_2_count: '1'
2060           vm_2_flavor: '{apex_compute_1_flavor}'
2061           vm_2_image: '{apex_compute_1_image}'
2062       - integration-distribution-branch:
2063           branch: '{branch}'
2064       - integration-distribution-stream:
2065           stream: '{stream}'
2066       - integration-test-plan:
2067           test-plan: '{project}-{functionality}.txt'
2068       - integration-test-suites:
2069           test-suites: '{test-suites}'
2070       - integration-patch-refspec:
2071           branch: 'master'
2072       - integration-jdk-version:
2073           jdkversion: '{jre}'
2074       - distribution-karaf-version:
2075           karaf-version: '{karaf-version}'
2076       - string:
2077           name: OPENSTACK_BRANCH
2078           default: '{openstack-branch}'
2079           description: 'Openstack version to use with devstack'
2080       - string:
2081           name: IPSEC_VXLAN_TUNNELS_ENABLED
2082           default: '{ipsec-vxlan-tunnels-enabled}'
2083           description: 'Enable ipsec over vxlan support for all controllers and computes'
2084       - string:
2085           name: PUBLIC_BRIDGE
2086           default: '{public-bridge}'
2087           description: 'Specifies public bridge for provider and external networking'
2088       - string:
2089           name: SECURITY_GROUP_MODE
2090           default: '{security-group-mode}'
2091           description: 'Security Group Mode to be used in netvirt aclservice config'
2092       - string:
2093           name: ENABLE_ITM_DIRECT_TUNNELS
2094           default: '{enable-itm-direct-tunnels}'
2095           description: 'Tunnel Configuration mode to be used in genius ifm config'
2096       - string:
2097           name: PUBLIC_PHYSICAL_NETWORK
2098           default: '{public-physical-network}'
2099           description: 'provider physical network used for flat/vlan networks'
2100       - string:
2101           name: ODL_SNAT_MODE
2102           default: '{odl-snat-mode}'
2103           description: 'The SNAT mode to be configured - options are conntrack/controller.'
2104       - string:
2105           name: GROUP_ADD_MOD_ENABLED
2106           default: '{group-add-mod-enabled}'
2107           description: 'The Group add mod enabled mode to be configured - options are true/false.'
2108
2109     scm:
2110       - integration-gerrit-scm:
2111           basedir: 'test'
2112           refspec: '$PATCHREFSPEC'
2113           branch: 'master'
2114
2115     triggers:
2116       - timed: '{schedule}'
2117
2118     builders:
2119       - lf-infra-pre-build
2120       - integration-stack-3-type:
2121           openstack-cloud: '{openstack-cloud}'
2122           openstack-heat-template: '{openstack-heat-template}'
2123           openstack-heat-template-dir: '{openstack-heat-template-dir}'
2124       - integration-install-robotframework
2125       - integration-detect-variables
2126       - integration-install-common-functions
2127       - inject:
2128           properties-file: 'env.properties'
2129       - integration-get-apex-addresses
2130       - inject:
2131           properties-file: 'slave_addresses.txt'
2132       - integration-apex-run-tests
2133       - integration-cleanup-tmp
2134
2135     publishers:
2136       - email-notification:
2137           email-recipients: '{email-recipients}'
2138           email-prefix: '[{project}]'
2139       - integration-csit-publish:
2140           robot_other_files:
2141             - tempest_results.html
2142           robot-pass-threshold: 100.0
2143           robot-unstable-threshold: 0.0
2144       - lf-stack-delete:
2145           openstack-cloud: '{openstack-cloud}'
2146       - lf-infra-publish
2147
2148 - job-template:
2149     # yamllint disable-line rule:line-length
2150     name: '{prefix}{project}-csit-{topology}-{os-cmb-cnt}cmb-{os-ctl-cnt}ctl-{os-cmp-cnt}cmp-apex-{openstack}-{functionality}-{stream}'
2151     id: inttest-csit-apex
2152     <<: *inttest_csit_common
2153     # yamllint disable-line rule:key-duplicates
2154     <<: *inttest_csit_apex
2155
2156 - job-template:
2157     # yamllint disable-line rule:line-length
2158     name: '{prefix}{project}-csit-{topology}-{os-cmb-cnt}cmb-{os-ctl-cnt}ctl-{os-cmp-cnt}cmp-apex-{openstack}-{functionality}-{stream}'
2159     id: inttest-csit-apex-custom
2160     <<: *inttest_csit_common
2161     # yamllint disable-line rule:key-duplicates
2162     <<: *inttest_csit_apex
2163
2164     parameters:
2165       - integration-csit-parameters:
2166           archive-artifacts: '{archive-artifacts}'
2167           branch: '{branch}'
2168           os-cloud: '{os-cloud}'
2169           # CSIT
2170           bundle-url: '{bundle-url}'
2171           repo-url: '{repo-url}'
2172           robot-options: '{robot-options}'
2173           # Controller
2174           controller-scope: ''
2175           controller-max-mem: '{controller-max-mem}'
2176           debug-map: '{debug-map}'
2177           install-features: '{install-features}'
2178           use-features-boot: '{use-features-boot}'
2179           elasticsearch-attribute: '{elasticsearch-attribute}'
2180       - integration-stack-3-type:
2181           vm_0_count: '{apex_controller_count}'
2182           vm_0_flavor: '{apex_controller_flavor}'
2183           vm_0_image: '{apex_controller_image}'
2184           vm_1_count: '1'
2185           vm_1_flavor: '{apex_compute_0_flavor}'
2186           vm_1_image: '{apex_compute_0_image}'
2187           vm_2_count: '1'
2188           vm_2_flavor: '{apex_compute_1_flavor}'
2189           vm_2_image: '{apex_compute_1_image}'
2190       - integration-distribution-branch:
2191           branch: '{branch}'
2192       - integration-distribution-stream:
2193           stream: '{stream}'
2194       - integration-test-plan:
2195           test-plan: '{testplan}'
2196       - integration-test-suites:
2197           test-suites: '{test-suites}'
2198       - integration-patch-refspec:
2199           branch: 'master'
2200       - integration-jdk-version:
2201           jdkversion: '{jre}'
2202       - distribution-karaf-version:
2203           karaf-version: '{karaf-version}'
2204       - string:
2205           name: OPENSTACK_BRANCH
2206           default: '{openstack-branch}'
2207           description: 'Openstack version to use with devstack'
2208       - string:
2209           name: IPSEC_VXLAN_TUNNELS_ENABLED
2210           default: '{ipsec-vxlan-tunnels-enabled}'
2211           description: 'Enable ipsec over vxlan support for all controllers and computes'
2212       - string:
2213           name: PUBLIC_BRIDGE
2214           default: '{public-bridge}'
2215           description: 'Specifies public bridge for provider and external networking'
2216       - string:
2217           name: SECURITY_GROUP_MODE
2218           default: '{security-group-mode}'
2219           description: 'Security Group Mode to be used in netvirt aclservice config'
2220       - string:
2221           name: ENABLE_ITM_DIRECT_TUNNELS
2222           default: '{enable-itm-direct-tunnels}'
2223           description: 'Tunnel Configuration mode to be used in genius ifm config'
2224       - string:
2225           name: PUBLIC_PHYSICAL_NETWORK
2226           default: '{public-physical-network}'
2227           description: 'provider physical network used for flat/vlan networks'
2228       - string:
2229           name: ODL_SNAT_MODE
2230           default: '{odl-snat-mode}'
2231           description: 'The SNAT mode to be configured - options are conntrack/controller.'
2232       - string:
2233           name: GROUP_ADD_MOD_ENABLED
2234           default: '{group-add-mod-enabled}'
2235           description: 'The Group add mod enabled mode to be configured - options are true/false.'