Skip to content

Commit 621b573

Browse files
authored
Bugfix: use 3 worker nodes for kaas testing (#939)
Also, increase timeout yet again, although I hope it will be quicker with more workers... Signed-off-by: Matthias Büchse <[email protected]>
1 parent f89c160 commit 621b573

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

.zuul.d/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
# timeout:
6363
# a) these tests take a lot of time, I'm afraid, particularly Sonobuoy
6464
# b) keep in mind that this job covers ALL test subjects (at most 4 in parallel)
65-
timeout: 18000 # 5 hrs -- 2.5 hrs was not enough
65+
timeout: 21600 # 6 hrs -- 5 hrs was almost sufficient (reports came through sometimes)
6666
vars:
6767
preset: kaas
6868
iaas: false

Tests/kaas/plugin/plugin_clusterstacks.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ def _auto_vars_syself(self, api_instance: _csh.CustomObjectsApi):
157157
return {'cs_class_name': cs_class_name, 'cs_version': cs_version}
158158

159159
def _auto_vars(self, auto_vars_kind, co_api: _csh.CustomObjectsApi):
160+
# set default values regardless of auto_vars_kind
161+
self.vars.setdefault('num_control_nodes', 3)
162+
self.vars.setdefault('num_worker_nodes', 3)
163+
# now on to specifics
160164
if not auto_vars_kind:
161165
return
162166
if auto_vars_kind == 'syself':

playbooks/.config/scs/syself-cluster.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ spec:
1616
class: '{{ cs_class_name }}'
1717
version: '{{ cs_version }}'
1818
controlPlane:
19-
replicas: 3
19+
replicas: {{ num_control_nodes }}
2020
workers:
2121
machineDeployments:
2222
- class: workeramd64hcloud
2323
name: md-0
24-
replicas: 1
24+
replicas: {{ num_worker_nodes }}
2525
failureDomain: nbg1
2626
variables:
2727
overrides:

playbooks/clusters.yaml.j2

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ clusters:
1212
kubeconfig: syself-kubeconfig.yaml
1313
vars:
1414
cs_name: hetzner-apalla-1-32
15+
num_control_nodes: 3
16+
num_worker_nodes: 3
1517
secrets:
1618
token: "{{ clouds_conf.syself_token }}"
1719
syself-1.31:
@@ -26,6 +28,8 @@ clusters:
2628
kubeconfig: syself-kubeconfig.yaml
2729
vars:
2830
cs_name: hetzner-apalla-1-31
31+
num_control_nodes: 3
32+
num_worker_nodes: 3
2933
secrets:
3034
token: "{{ clouds_conf.syself_token }}"
3135
syself-1.30:
@@ -40,6 +44,8 @@ clusters:
4044
kubeconfig: syself-kubeconfig.yaml
4145
vars:
4246
cs_name: hetzner-apalla-1-30
47+
num_control_nodes: 3
48+
num_worker_nodes: 3
4349
secrets:
4450
token: "{{ clouds_conf.syself_token }}"
4551
# dev clusters using kind

0 commit comments

Comments
 (0)