Skip to content

mgr/cephadm: Make ceph orch * --refresh asynchronous#36447

Merged
sebastian-philipp merged 2 commits intoceph:masterfrom
sebastian-philipp:mgr-cephadm-kill--refresh
Aug 7, 2020
Merged

mgr/cephadm: Make ceph orch * --refresh asynchronous#36447
sebastian-philipp merged 2 commits intoceph:masterfrom
sebastian-philipp:mgr-cephadm-kill--refresh

Conversation

@sebastian-philipp
Copy link
Contributor

@sebastian-philipp sebastian-philipp commented Aug 4, 2020

There is just no way we can allow those calls to be synchornous:

  • All CLI commands are blocked, till the refresh completes.
  • ^C doesn't help at all, as it just kills the client

See https://docs.ceph.com/docs/master/dev/cephadm/#note-regarding-network-calls-from-cli-handlers for details

Therefore they have to be scheduled in the bg.

Fixes: https://tracker.ceph.com/issues/46813

Signed-off-by: Sebastian Wagner sebastian.wagner@suse.com

This change affects ceph-linode and mgr/dashboard as well

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 api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

- add filtering by label
"""
if refresh:
# ugly sync path, FIXME someday perhaps?
Copy link
Contributor

Choose a reason for hiding this comment

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

seems like someday is today 🎉

@sebastian-philipp sebastian-philipp force-pushed the mgr-cephadm-kill--refresh branch from 3f60d54 to 2dd9f94 Compare August 4, 2020 12:48
@sebastian-philipp sebastian-philipp added the wip-swagner-testing My Teuthology tests label Aug 4, 2020
Copy link
Contributor

@mgfritch mgfritch left a comment

Choose a reason for hiding this comment

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

this greatly improves the ux! 👍

@sebastian-philipp
Copy link
Contributor Author

There is just no way we can allow those calls to be synchornous:

* All CLI commands are blocked, till the refresh completes.
* ^C doesn't help at all, as it just kills the client

Therefore they have to be scheduled in the bg.

Fixes: https://tracker.ceph.com/issues/46813

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
@sebastian-philipp sebastian-philipp force-pushed the mgr-cephadm-kill--refresh branch from 2b9ef4c to be3f513 Compare August 5, 2020 14:49
@sebastian-philipp sebastian-philipp added the wip-swagner-testing My Teuthology tests label Aug 5, 2020
@jschmid1
Copy link
Contributor

jschmid1 commented Aug 6, 2020

jenkins test make check

@sebastian-philipp
Copy link
Contributor Author

@sebastian-philipp
Copy link
Contributor Author

jenkins test make check

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.

3 participants