Skip to content

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

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

mgr: use new MMgrCommand for CLI commands sent to mgr#30155
liewegas merged 3 commits intoceph:masterfrom
liewegas:wip-mgr-commands

Conversation

@liewegas
Copy link
Member

@liewegas liewegas commented Sep 4, 2019

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

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 <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
This allows us to (eventually) leave MCommand for tell-style commands
only.

Signed-off-by: Sage Weil <sage@redhat.com>
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 <nojha@redhat.com>
@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