Skip to content

mgr: use new MMgrCommand for CLI commands sent to mgr - #30155

Merged
liewegas merged 3 commits into
ceph:masterfrom
liewegas:wip-mgr-commands
Sep 10, 2019
Merged

liewegas merged 3 commits into
ceph:masterfrom
liewegas:wip-mgr-commands

Conversation

@liewegas

@liewegas liewegas commented Sep 4, 2019 •

Copy link
Copy Markdown
Member

Currently we have

  • MCommand: sent to osd, mgr, mds daemons (CLI and/or tell commands)
  • MMonCommand: sent to mon (CLI commands)

Our goal is to unify the tell and daemon commands, and to keep them distinct from CLI commands (ceph pg ls != ceph tell mgr.x pg ls). This is the first step in that process. (Next steps will include using MCommand for mon tell commands, and then actually unifying the daemon and tell command handling for each daemon.)

(I didn't just use MMonCommand for CLI commands to mon because MMonCommand derives from PaxosServiceMessage, and that doesn't seem appropriate for the mgr.)

Comment thread src/messages/MMgrBeacon.h Resolved
MCommand is used both for tell-style commands and for CLI commands
implemented by the mgr.  Allow the latter to be send via MMgrCommand
instead.

Signed-off-by: Sage Weil <[email protected]>
This allows us to (eventually) leave MCommand for tell-style commands
only.

Signed-off-by: Sage Weil <[email protected]>
liewegas added a commit that referenced this pull request Sep 10, 2019
* refs/pull/30155/head:
	mgr/MgrClient: send MMgrCommand for octopus+ mgrs
	mon/MgrMap: include mgr_features in mgrmap
	mgr: accept MMgrCommand[Reply] messages (in addition to MCommand[Reply])

Reviewed-by: Neha Ojha <[email protected]>
@liewegas
liewegas merged commit 0019005 into ceph:master Sep 10, 2019
@liewegas
liewegas deleted the wip-mgr-commands branch September 10, 2019 12:15
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.

2 participants