Skip to content

mon/MonCommands: mgr metadata - improve parameter naming consistency - #20866

Merged
tchaikov merged 1 commit into
ceph:masterfrom
jan--f:mgr-fix-metadata-return
Apr 7, 2018
Merged

tchaikov merged 1 commit into
ceph:masterfrom
jan--f:mgr-fix-metadata-return

Conversation

@jan--f

@jan--f jan--f commented Mar 13, 2018

Copy link
Copy Markdown
Contributor

Other then the fix I changed id -> name in the metadata as I understand that daemons generally have a name, not an id (at least mons and mds' do).

Fixes: http://tracker.ceph.com/issues/23330

Signed-off-by: Jan Fajerski [email protected]

Comment thread src/mon/MgrMonitor.cc 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.

Need to change the definition in MonCommands.h as well to change the param name

@jcsp

jcsp commented Mar 13, 2018

Copy link
Copy Markdown
Contributor

The command wasn't actually broken, just had an inconsistent param name compared with the other metadata commands -- but I'm happy to have the change to make them consistent.

@jan--f
jan--f force-pushed the mgr-fix-metadata-return branch from 3ebf2f6 to 9ae70fd Compare March 13, 2018 12:16
@jan--f

jan--f commented Mar 13, 2018

Copy link
Copy Markdown
Contributor Author

Oh I see now...I was just calling it wrong. Guess we'll call it a cleanup then.

@jan--f jan--f added cleanup and removed bug-fix labels Mar 13, 2018
@jan--f jan--f changed the title mon/MgrMonitor: daemon id is under who in cmdmap, return name not id MonCommands: mgr metadata - improve parameter naming consistency Mar 13, 2018
@liewegas liewegas changed the title MonCommands: mgr metadata - improve parameter naming consistency mon/MonCommands: mgr metadata - improve parameter naming consistency Mar 13, 2018

@liewegas liewegas left a comment

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.

lgtm.

strictly speaking this changes the mon command interface, but in practice the only consumer is probably the cli and it doesn't care.

@jan--f

jan--f commented Mar 13, 2018

Copy link
Copy Markdown
Contributor Author

@liewegas well I came across this when using the mgr metadata command on the mgr daemon with a copy/pasted command invocation for mds metadata

The make check failure seems unrelated to this, fails to build the dashboard_v2.

@tchaikov

Copy link
Copy Markdown
Contributor

retest this please.

@jecluis jecluis left a comment

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.

lgtm

@jan--f jan--f added the needs-qa label Apr 3, 2018
@jan--f
jan--f force-pushed the mgr-fix-metadata-return branch from 9ae70fd to 428236d Compare April 3, 2018 08:45
@tchaikov

tchaikov commented Apr 7, 2018

Copy link
Copy Markdown
Contributor

retest this please.

@tchaikov

tchaikov commented Apr 7, 2018

Copy link
Copy Markdown
Contributor
[ RUN      ] TestFutureImpl.Getters
/home/jenkins-build/build/workspace/ceph-pull-requests/src/test/journal/test_FutureImpl.cc:47: Failure
      Expected: 0
To be equal to: create(oid)
      Which is: -38
[ RUN      ] TestMockDeepCopyRequest.SimpleCopy
/home/jenkins-build/build/workspace/ceph-pull-requests/src/test/librbd/test_mock_DeepCopyRequest.cc:152: Failure
      Expected: 0
To be equal to: open_image(m_image_name, &m_src_image_ctx)
      Which is: -38

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