Skip to content

qa/tests: initial checkin for octopus-x tests - #35808

Closed
yuriw wants to merge 12 commits into
ceph:masterfrom
yuriw:wip-yuriw-octopus-x-2-master
Closed

yuriw wants to merge 12 commits into
ceph:masterfrom
yuriw:wip-yuriw-octopus-x-2-master

Conversation

@yuriw

@yuriw yuriw commented Jun 26, 2020

Copy link
Copy Markdown
Contributor

Signed-off-by: Yuri Weinstein [email protected]

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard backend
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@yuriw
yuriw requested a review from jdurgin June 26, 2020 20:18
@yuriw
yuriw force-pushed the wip-yuriw-octopus-x-2-master branch 7 times, most recently from 42f45ab to 2ce82ed Compare June 26, 2020 20:34
@yuriw
yuriw requested a review from a team as a code owner June 26, 2020 20:34
@yuriw
yuriw force-pushed the wip-yuriw-octopus-x-2-master branch 2 times, most recently from a8a9b58 to 7ebab23 Compare June 26, 2020 21:34
@yuriw

yuriw commented Jun 27, 2020 •

Copy link
Copy Markdown
Contributor Author

see history #35008

@@ -0,0 +1,40 @@
meta:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have to make this more intelligent eventually

@yuriw

yuriw commented Jun 29, 2020

Copy link
Copy Markdown
Contributor Author

@yuriw
yuriw requested a review from sebastian-philipp June 29, 2020 23:30

@varshar16 varshar16 Jun 30, 2020 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yuriw You will need to remove roleless and instead use roles with orch apply mds.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@varshar16 I am not sure if we need to keep jumping over the hoops and workarounds or wait till mds issues are fixed?
joshd ^ ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove mds.a from roles. As we are creating one with orch apply.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@varshar16

varshar16 commented Jun 30, 2020 •

Copy link
Copy Markdown
Contributor

@yuriw
yuriw force-pushed the wip-yuriw-octopus-x-2-master branch 2 times, most recently from c8135e5 to 42f40c0 Compare June 30, 2020 21:03
@yuriw
yuriw force-pushed the wip-yuriw-octopus-x-2-master branch from d12c820 to c4a22cd Compare July 7, 2020 18:32
@yuriw

yuriw commented Jul 7, 2020

Copy link
Copy Markdown
Contributor Author

@sebastian-philipp @jdurgin @neha-ojha
Please see comment for stress-split part, in particular need some input for 2-partial-upgrade/firsthalf.yaml and 5-finish-upgrade.yaml

mon.c:
- cephadm.shell:
env: [sha1]
#we need to upgrade only nodes a b c - how? syntax or else?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the upgrade has a specific order:

CEPH_UPGRADE_ORDER = ['mgr', 'mon', 'crash', 'osd', 'mds', 'rgw', 'rbd-mirror']

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)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:$sha1

and then completely ignore the upgrade order for this test.

@neha-ojha neha-ojha Jul 23, 2020 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.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/.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@stale

stale Bot commented Oct 4, 2020

Copy link
Copy Markdown

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.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@stale stale Bot added the stale label Oct 4, 2020
@yuriw yuriw closed this Dec 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants