Skip to content

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

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

sebastian-philipp merged 2 commits into
ceph:masterfrom
sebastian-philipp:mgr-cephadm-kill--refresh

Conversation

@sebastian-philipp

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

Copy link
Copy Markdown
Contributor

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 [email protected]

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

Comment thread src/pybind/mgr/cephadm/module.py Outdated

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.

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

@mgfritch mgfritch left a comment

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.

this greatly improves the ux! 👍

Comment thread src/pybind/mgr/cephadm/module.py Resolved
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 <[email protected]>
@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

jschmid1 commented Aug 6, 2020

Copy link
Copy Markdown
Contributor

jenkins test make check

@sebastian-philipp

Copy link
Copy Markdown
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