and avoid errors when "clusternodes" is not defined.
Fixes: https://tracker.ceph.com/issues/67352
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
-clusternodes: 2
roles:
- [mgr.x, mon.a, mon.c, mds.a, mds.c, osd.0, client.0]
- [mgr.y, mgr.z, mon.b, mds.b, osd.1, osd.2, osd.3, client.1]
-clusternodes: 2
roles:
- [mon.a, mon.c, osd.0, osd.1, osd.2]
- [mon.b, mgr.x, mds.a, osd.3, osd.4, osd.5]
-clusternodes: 1
overrides:
ceph-deploy:
conf:
-clusternodes: 2
roles:
- [mon.a, mon.c, mgr.y, osd.0, osd.1, osd.2, osd.3, client.0, node-exporter.a]
- [mon.b, mgr.x, osd.4, osd.5, osd.6, osd.7, client.1, prometheus.a, node-exporter.b]
-clusternodes: 2
roles:
- [mon.a, mds.a, mgr.x, osd.0, osd.1]
- [mon.b, mds.b, mon.c, mgr.y, osd.2, osd.3]
-clusternodes: 2
roles:
- [mon.a, mon.c, mgr.x, osd.0, osd.1, osd.2, osd.3]
- [mon.b, mgr.y, osd.4, osd.5, osd.6, osd.7]
-clusternodes: 4
roles:
- [mon.a, mgr.y, osd.0, osd.4, osd.8, osd.12]
- [mon.b, osd.1, osd.5, osd.9, osd.13]
teuthology:
postmerge:
- # Don't run this test on tiny clusters
- - if yaml.clusternodes < 4 then reject() end
+ - |
+ -- Don't run this test on tiny clusters
+ if py_len(yaml.roles) < 4 then reject() end
overrides:
ceph:
log-ignorelist:
teuthology:
postmerge:
- # Don't run this test on tiny clusters
- - if yaml.clusternodes < 4 then reject() end
+ - |
+ -- Don't run this test on tiny clusters
+ if py_len(yaml.roles) < 4 then reject() end
overrides:
ceph:
log-ignorelist: