Merge PR #40034 into master

* refs/pull/40034/head:
	qa/suites/rados/cephadm/upgrade: start at 15.2.9 to test iscsi upgrade
	qa/tasks/cephadm.py: don't set mgr count to +1

Reviewed-by: Sebastian Wagner <swagner@suse.com>
This commit is contained in:
Sage Weil 2021-03-11 18:52:03 -05:00
commit 1d590a07a2
4 changed files with 59 additions and 33 deletions

View File

@ -0,0 +1,34 @@
os_type: ubuntu
os_version: "20.04"
tasks:
- cephadm:
image: docker.io/ceph/ceph:v15.2.9
cephadm_branch: v15.2.9
cephadm_git_url: https://github.com/ceph/ceph
# avoid --cap-add=PTRACE + --privileged for older cephadm versions
allow_ptrace: false
roles:
- - mon.a
- mon.c
- mgr.y
- osd.0
- osd.1
- osd.2
- osd.3
- client.0
# - ceph.rgw.realm.zone.a # CLI change in v16 pacific
- node-exporter.a
- alertmanager.a
- - mon.b
- mgr.x
- osd.4
- osd.5
- osd.6
- osd.7
- client.1
- prometheus.a
- grafana.a
- node-exporter.b
- ceph.iscsi.iscsi.a

View File

@ -8,3 +8,27 @@ tasks:
cephadm_git_url: https://github.com/ceph/ceph
# avoid --cap-add=PTRACE + --privileged for older cephadm versions
allow_ptrace: false
roles:
- - mon.a
- mon.c
- mgr.y
- osd.0
- osd.1
- osd.2
- osd.3
- client.0
# - ceph.rgw.realm.zone.a # Disabled, needs 15.2.4 as an upgrade start
- node-exporter.a
- alertmanager.a
- - mon.b
- mgr.x
- osd.4
- osd.5
- osd.6
- osd.7
- client.1
- prometheus.a
- grafana.a
- node-exporter.b
# - ceph.iscsi.iscsi.a # needs later start point

View File

@ -1,32 +0,0 @@
roles:
- - mon.a
- mon.c
- mgr.y
- osd.0
- osd.1
- osd.2
- osd.3
- client.0
# - ceph.rgw.realm.zone.a # Disabled, needs 15.2.4 as an upgrade start
- node-exporter.a
- alertmanager.a
- - mon.b
- mgr.x
- osd.4
- osd.5
- osd.6
- osd.7
- client.1
- prometheus.a
- grafana.a
- node-exporter.b
- ceph.iscsi.iscsi.a
openstack:
- volumes: # attached to each instance
count: 4
size: 10 # GB
overrides:
ceph:
conf:
osd:
osd shutdown pgref assert: true

View File

@ -573,7 +573,7 @@ def ceph_mgrs(ctx, config):
if nodes:
_shell(ctx, cluster_name, remote, [
'ceph', 'orch', 'apply', 'mgr',
str(len(nodes) + 1) + ';' + ';'.join(nodes)]
str(len(nodes)) + ';' + ';'.join(nodes)]
)
for mgr, i in daemons.items():
remote, id_ = i