Repository navigation
Conversation
42f45ab to
2ce82ed
Compare
a8a9b58 to
7ebab23
Compare
|
see history #35008 |
|
green! minor nit, I filled: https://tracker.ceph.com/issues/46254 but that doesn't block this PR. |
| @@ -0,0 +1,40 @@ | |||
| meta: | |||
There was a problem hiding this comment.
looks like we can't use the same cluster as https://github.com/ceph/ceph/blob/master/qa/suites/rados/cephadm/upgrade/fixed-2.yaml , right?
| env: [sha1] | ||
| host.a: | ||
| - ceph orch upgrade start --image quay.ceph.io/ceph-ci/ceph:$sha1 | ||
| - while ceph orch upgrade status | jq '.in_progress' | grep true ; do ceph orch ps ; ceph versions ; sleep 30 ; done |
There was a problem hiding this comment.
we have to make this more intelligent eventually
|
trying with |
There was a problem hiding this comment.
@yuriw You will need to remove roleless and instead use roles with orch apply mds.
There was a problem hiding this comment.
@varshar16 I am not sure if we need to keep jumping over the hoops and workarounds or wait till mds issues are fixed?
joshd ^ ?
There was a problem hiding this comment.
There was a problem hiding this comment.
Please remove mds.a from roles. As we are creating one with orch apply.
There was a problem hiding this comment.
@sebastian-philipp Even with the fix for mds, the tests failed. Can you please check the mgr log? |
c8135e5 to
42f40c0
Compare
Signed-off-by: Yuri Weinstein <[email protected]>
Signed-off-by: Yuri Weinstein <[email protected]>
Signed-off-by: Josh Durgin <[email protected]>
This sets up the prerequisites for many tests. Signed-off-by: Josh Durgin <[email protected]>
Signed-off-by: Josh Durgin <[email protected]>
d12c820 to
c4a22cd
Compare
|
@sebastian-philipp @jdurgin @neha-ojha |
| mon.c: | ||
| - cephadm.shell: | ||
| env: [sha1] | ||
| #we need to upgrade only nodes a b c - how? syntax or else? |
There was a problem hiding this comment.
the upgrade has a specific order:
ceph/src/pybind/mgr/cephadm/upgrade.py
Line 17 in c3af7f4
we first upgrade all MGRs, then we upgrade all MONs, then we upgrade all OSDs. etc. this is not by host, but by service type. What do you want? do you want to have some OSDs upgraded? that should work by doing something like:
def is_split_good() -> bool:
ps = check_output("ceph orch ps --format json")
if ...
while not is_split_good():
time.sleep(5)There was a problem hiding this comment.
@sebastian-philipp In the existing stress-split upgrade suites like https://github.com/ceph/ceph/tree/master/qa/suites/upgrade/nautilus-x/stress-split, the split is created by upgrading the mgr, few mons and osds first, running some workloads and finishing the upgrade with mon, osds and clients. Since cephadm defines CEPH_UPGRADE_ORDER, which I believe is not being overriden anywhere, does the existing stress-split structure still make sense? or should we create a split by abiding by the CEPH_UPGRADE_ORDER defined by cephadm.
There was a problem hiding this comment.
maybe it would make more sense to manually update a few daemons. Like providing a mon command
ceph orch redeploy mgr.x --image quay.ceph.io/ceph-ci/ceph:$sha1
and then do something like
tasks:
- cephadm.shell:
host.a:
- ceph orch redeploy mon.a --image quay.ceph.io/ceph-ci/ceph:$sha1
- ceph orch redeploy mgr.x --image quay.ceph.io/ceph-ci/ceph:$sha1
- ceph orch redeploy osd.0 --image quay.ceph.io/ceph-ci/ceph:$sha1
- ceph orch redeploy ceph.rgw.realm.zone.a --image quay.ceph.io/ceph-ci/ceph:$sha1
# do some tests ...
# and then finally finish the upgrade:
- ceph orch upgrade start --image quay.ceph.io/ceph-ci/ceph:$sha1and then completely ignore the upgrade order for this test.
There was a problem hiding this comment.
@sebastian-philipp I think it makes sense to follow the upgrade order in these tests since that's what our users will be using. We just need the ability to reliably stop the upgrade at any point while running workloads in parallel. Ideally, we'll want to cover test cases where we have mixed versions of mgrs, mons and osds. I presume this will need some changes to the upgrade module or maybe we can use the ceph orch redeploy command?
@jdurgin @yuriw makes sense?
There was a problem hiding this comment.
We have conflicting goals here:
- cephadm tries to provide an upgrade that is as safe as possible by sticking to a pre-defined upgrade order leveraging the benefits of a container based deployment.
- The upgrade test tries to reveal hidden bugs when running ceph in awkward upgrade scenarios. Which is exactly what cepham tries to avoid.
I mean, we not only need to modify the upgrade order, but also transpose it. (e.g. instead of
mgr.x, mgr.y, mgr.z, mon.a, mon.b, mon.c, osd.0, osd.1, osd.2
change it to something similar to
mgr.x, mon.a, osd.0, mgr.y, mon.b, osd.1, mgr.z, mon.c, osd.2
)
And this non-advisable upgrade order should be implemented in qa/ and not in src/.
There was a problem hiding this comment.
Let me explain again.
We have conflicting goals here:
- cephadm tries to provide an upgrade that is as safe as possible by sticking to a pre-defined upgrade order leveraging the benefits of a container based deployment.
I think we should stick to the pre-defined order in our tests too. So the stress-split changes in this PR are not relevant.
- The upgrade test tries to reveal hidden bugs when running ceph in awkward upgrade scenarios. Which is exactly what cepham tries to avoid.
What I am suggesting is to redesign our test suites such that they create awkward upgrade scenarios but do not defy the upgrade order. The first half of the split could look like
mgr.x, mgr.y
or
mgr.x, mgr.y, mgr.z, mon.a, mon.b
or
mgr.x, mgr.y, mgr.z, mon.a, mon.b, mon.c, osd.0, osd.1, osd.2
I mean, we not only need to modify the upgrade order, but also transpose it. (e.g. instead of
No, we should not transpose anything.
mgr.x, mgr.y, mgr.z, mon.a, mon.b, mon.c, osd.0, osd.1, osd.2change it to something similar to
mgr.x, mon.a, osd.0, mgr.y, mon.b, osd.1, mgr.z, mon.c, osd.2)
And this non-advisable upgrade order should be implemented in qa/ and not in src/.
There was a problem hiding this comment.
For now, I can offer you this with #36426 :
echo mgr.x mgr.y mgr.z mon.a mon.b mon.c osd.0 | xargs -n 1 ceph orch daemon redeploy --image=quay.cepi.io/ceph-ci/ceph:$sha --name
Having something more sophisticated in mgr/cephadm will take some time.
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
Signed-off-by: Yuri Weinstein [email protected]
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard backendjenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox