Skip to content

Commit a7d5e5a

Browse files
Merge pull request #519 from sauragar/named_stage
Added name param for stages to get named stages in automation/vars for all unijobs Ticket: https://issues.redhat.com/browse/OSPNW-971 Reviewed-by: Szymon Datko Reviewed-by: Andrew Bays <[email protected]>
2 parents f27bd05 + bbeb976 commit a7d5e5a

14 files changed

+119
-58
lines changed

.ci/automation-schema.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ _hook:
2626
kind: str(required=False)
2727
---
2828
_stage:
29+
name: str(required=False)
2930
path: str()
3031
wait_conditions: list(str(matches='^(oc|kubectl) .* wait .*'), min=1)
3132
values: list(include('_values'), min=1)

automation/vars/hci-adoption.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
vas:
33
hci-adoption:
44
stages:
5-
- path: examples/va/hci/control-plane/networking/nncp
5+
- name: nncp-configuration
6+
path: examples/va/hci/control-plane/networking/nncp
67
wait_conditions:
78
- >-
89
oc -n openstack wait nncp
@@ -14,7 +15,8 @@ vas:
1415
src_file: values.yaml
1516
build_output: nncp.yaml
1617

17-
- path: examples/va/hci/control-plane/networking
18+
- name: network-configuration
19+
path: examples/va/hci/control-plane/networking
1820
wait_conditions:
1921
- >-
2022
oc -n metallb-system wait pod

automation/vars/hci.yaml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
vas:
33
hci:
44
stages:
5-
- path: examples/va/hci/control-plane/networking/nncp
5+
- name: nncp-configuration
6+
path: examples/va/hci/control-plane/networking/nncp
67
wait_conditions:
78
- >-
89
oc -n openstack wait nncp
@@ -14,7 +15,8 @@ vas:
1415
src_file: values.yaml
1516
build_output: nncp.yaml
1617

17-
- path: examples/va/hci/control-plane/networking
18+
- name: network-configuration
19+
path: examples/va/hci/control-plane/networking
1820
wait_conditions:
1921
- >-
2022
oc -n metallb-system wait pod
@@ -26,7 +28,8 @@ vas:
2628
src_file: nncp/values.yaml
2729
build_output: network.yaml
2830

29-
- path: examples/va/hci/control-plane
31+
- name: control-plane
32+
path: examples/va/hci/control-plane
3033
wait_conditions:
3134
- >-
3235
oc -n openstack wait osctlplane controlplane --for condition=Ready
@@ -38,7 +41,8 @@ vas:
3841
src_file: networking/nncp/values.yaml
3942
build_output: ../control-plane.yaml
4043

41-
- path: examples/va/hci/edpm-pre-ceph/nodeset
44+
- name: edpm-pre-ceph-nodeset
45+
path: examples/va/hci/edpm-pre-ceph/nodeset
4246
wait_conditions:
4347
- >-
4448
oc -n openstack wait
@@ -49,7 +53,8 @@ vas:
4953
src_file: values.yaml
5054
build_output: nodeset-pre-ceph.yaml
5155

52-
- path: examples/va/hci/edpm-pre-ceph/deployment
56+
- name: edpm-pre-ceph-deployment
57+
path: examples/va/hci/edpm-pre-ceph/deployment
5358
wait_conditions:
5459
- >-
5560
oc -n openstack wait
@@ -65,7 +70,8 @@ vas:
6570
source: "../../playbooks/ceph.yml"
6671
inventory: "${HOME}/ci-framework-data/artifacts/zuul_inventory.yml"
6772

68-
- path: examples/va/hci
73+
- name: edpm-post-ceph-nodeset
74+
path: examples/va/hci
6975
wait_conditions:
7076
- >-
7177
oc -n openstack wait
@@ -78,7 +84,8 @@ vas:
7884
src_file: values.yaml
7985
build_output: nodeset-post-ceph.yaml
8086

81-
- path: examples/va/hci/deployment
87+
- name: edpm-post-ceph-deployment
88+
path: examples/va/hci/deployment
8289
wait_conditions:
8390
- >-
8491
oc -n openstack wait

automation/vars/uni01alpha-adoption.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ vas:
1212
kind: Node
1313
resource_name: master-0
1414
state: patched
15+
name: nncp-configuration
1516
path: examples/dt/uni01alpha/control-plane/networking/nncp
1617
wait_conditions:
1718
- >-
@@ -24,7 +25,8 @@ vas:
2425
src_file: values.yaml
2526
build_output: nncp.yaml
2627

27-
- path: examples/dt/uni01alpha/control-plane/networking
28+
- name: network-configuration
29+
path: examples/dt/uni01alpha/control-plane/networking
2830
wait_conditions:
2931
- >-
3032
oc -n metallb-system wait pod

automation/vars/uni01alpha.yaml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ vas:
1212
kind: Node
1313
resource_name: master-0
1414
state: patched
15+
name: nncp-configuration
1516
path: examples/dt/uni01alpha/control-plane/networking/nncp
1617
wait_conditions:
1718
- >-
@@ -24,7 +25,8 @@ vas:
2425
src_file: values.yaml
2526
build_output: nncp.yaml
2627

27-
- path: examples/dt/uni01alpha/control-plane/networking
28+
- name: network-configuration
29+
path: examples/dt/uni01alpha/control-plane/networking
2830
wait_conditions:
2931
- >-
3032
oc -n metallb-system wait pod
@@ -35,7 +37,8 @@ vas:
3537
src_file: nncp/values.yaml
3638
build_output: networking.yaml
3739

38-
- path: examples/dt/uni01alpha/control-plane
40+
- name: control-plane
41+
path: examples/dt/uni01alpha/control-plane
3942
wait_conditions:
4043
- >-
4144
oc -n openstack wait openstackcontrolplane
@@ -49,7 +52,8 @@ vas:
4952
src_file: service-values.yaml
5053
build_output: control-plane.yaml
5154

52-
- path: examples/dt/uni01alpha/networker/nodeset
55+
- name: edpm-networker-nodeset
56+
path: examples/dt/uni01alpha/networker/nodeset
5357
wait_conditions:
5458
- >-
5559
oc -n openstack wait openstackdataplanenodeset
@@ -61,7 +65,8 @@ vas:
6165
src_file: values.yaml
6266
build_output: edpm-networker.yaml
6367

64-
- path: examples/dt/uni01alpha/networker
68+
- name: edpm-networker-deployment
69+
path: examples/dt/uni01alpha/networker
6570
wait_conditions:
6671
- >-
6772
oc -n openstack wait openstackdataplanedeployment
@@ -73,7 +78,8 @@ vas:
7378
src_file: values.yaml
7479
build_output: edpm-networker.yaml
7580

76-
- path: examples/dt/uni01alpha/edpm
81+
- name: edpm-nodeset
82+
path: examples/dt/uni01alpha/edpm
7783
wait_conditions:
7884
- >-
7985
oc -n openstack wait openstackdataplanenodeset
@@ -85,7 +91,8 @@ vas:
8591
src_file: values.yaml
8692
build_output: edpm.yaml
8793

88-
- path: examples/dt/uni01alpha
94+
- name: edpm-deployment
95+
path: examples/dt/uni01alpha
8996
wait_conditions:
9097
- >-
9198
oc -n openstack wait openstackdataplanedeployment

automation/vars/uni02beta.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
vas:
33
uni02beta:
44
stages:
5-
- path: examples/dt/uni02beta/control-plane/nncp
5+
- name: nncp-configuration
6+
path: examples/dt/uni02beta/control-plane/nncp
67
wait_conditions:
78
- >-
89
oc -n openstack wait nncp
@@ -14,7 +15,8 @@ vas:
1415
src_file: values.yaml
1516
build_output: nncp.yaml
1617

17-
- path: examples/dt/uni02beta/control-plane
18+
- name: control-plane
19+
path: examples/dt/uni02beta/control-plane
1820
wait_conditions:
1921
- >-
2022
oc -n openstack wait openstackcontrolplane
@@ -28,7 +30,8 @@ vas:
2830
src_file: service-values.yaml
2931
build_output: control-plane.yaml
3032

31-
- path: examples/dt/uni02beta
33+
- name: edpm-deployment
34+
path: examples/dt/uni02beta
3235
wait_conditions:
3336
- >-
3437
oc -n openstack wait openstackdataplanedeployment

automation/vars/uni04delta-adoption.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
vas:
33
uni04delta-adoption:
44
stages:
5-
- path: examples/dt/uni04delta/control-plane/networking/nncp
5+
- name: nncp-configuration
6+
path: examples/dt/uni04delta/control-plane/networking/nncp
67
wait_conditions:
78
- >-
89
oc -n openstack wait nncp
@@ -14,7 +15,8 @@ vas:
1415
src_file: values.yaml
1516
build_output: nncp.yaml
1617

17-
- path: examples/dt/uni04delta/control-plane/networking
18+
- name: network-configuration
19+
path: examples/dt/uni04delta/control-plane/networking
1820
wait_conditions:
1921
- >-
2022
oc -n metallb-system wait pod

automation/vars/uni04delta-ipv6.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
vas:
33
uni04delta-ipv6:
44
stages:
5-
- path: examples/dt/uni04delta-ipv6/control-plane/nncp
5+
- name: nncp-configuration
6+
path: examples/dt/uni04delta-ipv6/control-plane/nncp
67
wait_conditions:
78
- >-
89
oc -n openstack wait nncp
@@ -14,7 +15,8 @@ vas:
1415
src_file: values.yaml
1516
build_output: nncp.yaml
1617

17-
- path: examples/dt/uni04delta-ipv6/control-plane
18+
- name: control-plane
19+
path: examples/dt/uni04delta-ipv6/control-plane
1820
wait_conditions:
1921
- >-
2022
oc -n openstack wait osctlplane controlplane
@@ -27,7 +29,8 @@ vas:
2729
src_file: service-values.yaml
2830
build_output: control-plane.yaml
2931

30-
- path: examples/dt/uni04delta-ipv6/edpm-pre-ceph/nodeset
32+
- name: edpm-nodeset-pre-ceph
33+
path: examples/dt/uni04delta-ipv6/edpm-pre-ceph/nodeset
3134
wait_conditions:
3235
- >-
3336
oc -n openstack wait
@@ -38,7 +41,8 @@ vas:
3841
src_file: values.yaml
3942
build_output: nodeset-pre-ceph.yaml
4043

41-
- path: examples/dt/uni04delta-ipv6/edpm-pre-ceph
44+
- name: edpm-deployment-pre-ceph
45+
path: examples/dt/uni04delta-ipv6/edpm-pre-ceph
4246
wait_conditions:
4347
- >-
4448
oc -n openstack wait
@@ -54,7 +58,8 @@ vas:
5458
source: "../../playbooks/ceph.yml"
5559
inventory: "${HOME}/ci-framework-data/artifacts/zuul_inventory.yml"
5660

57-
- path: examples/dt/uni04delta-ipv6
61+
- name: edpm-nodeset
62+
path: examples/dt/uni04delta-ipv6
5863
wait_conditions:
5964
- >-
6065
oc -n openstack wait osdpns
@@ -68,7 +73,8 @@ vas:
6873
src_file: values.yaml
6974
build_output: edpm-nodeset.yaml
7075

71-
- path: examples/dt/uni04delta-ipv6/deployment
76+
- name: edpm-deployment
77+
path: examples/dt/uni04delta-ipv6/deployment
7278
wait_conditions:
7379
- >-
7480
oc -n openstack wait osdpd

automation/vars/uni04delta.yaml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
vas:
33
uni04delta:
44
stages:
5-
- path: examples/dt/uni04delta/control-plane/networking/nncp
5+
- name: nncp-configuration
6+
path: examples/dt/uni04delta/control-plane/networking/nncp
67
wait_conditions:
78
- >-
89
oc -n openstack wait nncp
@@ -14,7 +15,8 @@ vas:
1415
src_file: values.yaml
1516
build_output: nncp.yaml
1617

17-
- path: examples/dt/uni04delta/control-plane/networking
18+
- name: network-configuration
19+
path: examples/dt/uni04delta/control-plane/networking
1820
wait_conditions:
1921
- >-
2022
oc -n metallb-system wait pod
@@ -26,7 +28,8 @@ vas:
2628
src_file: nncp/values.yaml
2729
build_output: network.yaml
2830

29-
- path: examples/dt/uni04delta/control-plane
31+
- name: control-plane
32+
path: examples/dt/uni04delta/control-plane
3033
wait_conditions:
3134
- >-
3235
oc -n openstack wait osctlplane controlplane
@@ -39,7 +42,8 @@ vas:
3942
src_file: service-values.yaml
4043
build_output: control-plane.yaml
4144

42-
- path: examples/dt/uni04delta/edpm-pre-ceph/nodeset
45+
- name: edpm-nodeset-pre-ceph
46+
path: examples/dt/uni04delta/edpm-pre-ceph/nodeset
4347
wait_conditions:
4448
- >-
4549
oc -n openstack wait
@@ -50,7 +54,8 @@ vas:
5054
src_file: values.yaml
5155
build_output: nodeset-pre-ceph.yaml
5256

53-
- path: examples/dt/uni04delta/edpm-pre-ceph
57+
- name: edpm-deployment-pre-ceph
58+
path: examples/dt/uni04delta/edpm-pre-ceph
5459
wait_conditions:
5560
- >-
5661
oc -n openstack wait
@@ -66,7 +71,8 @@ vas:
6671
source: "../../playbooks/ceph.yml"
6772
inventory: "${HOME}/ci-framework-data/artifacts/zuul_inventory.yml"
6873

69-
- path: examples/dt/uni04delta
74+
- name: edpm-nodeset
75+
path: examples/dt/uni04delta
7076
wait_conditions:
7177
- >-
7278
oc -n openstack wait osdpns
@@ -80,7 +86,8 @@ vas:
8086
src_file: values.yaml
8187
build_output: edpm-nodeset.yaml
8288

83-
- path: examples/dt/uni04delta/deployment
89+
- name: edpm-deployment
90+
path: examples/dt/uni04delta/deployment
8491
wait_conditions:
8592
- >-
8693
oc -n openstack wait osdpd

automation/vars/uni05epsilon-adoption.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
vas:
33
uni05epsilon-adoption:
44
stages:
5-
- path: examples/dt/uni05epsilon/control-plane/networking/nncp
5+
- name: nncp-configuration
6+
path: examples/dt/uni05epsilon/control-plane/networking/nncp
67
wait_conditions:
78
- >-
89
oc -n openstack wait nncp
@@ -14,7 +15,8 @@ vas:
1415
src_file: values.yaml
1516
build_output: nncp.yaml
1617

17-
- path: examples/dt/uni05epsilon/control-plane/networking
18+
- name: network-configuration
19+
path: examples/dt/uni05epsilon/control-plane/networking
1820
wait_conditions:
1921
- >-
2022
oc -n metallb-system wait pod

0 commit comments

Comments
 (0)