Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mon: osd create: add optional 'id' parameter #3743

Merged
merged 1 commit into from
May 7, 2015

Conversation

trociny
Copy link
Contributor

@trociny trociny commented Feb 16, 2015

Signed-off-by: Mykola Golub [email protected]

@trociny
Copy link
Contributor Author

trociny commented Feb 16, 2015

See also discussion on ceph-user under the thread "ceph-osd - No Longer Creates osd.X upon Launch - Bug ?".

@loic-bot
Copy link

SUCCESS: the output of run-make-check.sh on centos-centos7 for f5a2342 is http://paste2.org/_zscbvsPf

:octocat: Sent from GH.

@ghost ghost added feature core labels Feb 16, 2015
@ghost
Copy link

ghost commented Mar 22, 2015

@trociny could you please rebase ?

@loic-bot
Copy link

SUCCESS: the output of run-make-check.sh on centos-7 for 54c2ab8 is http://paste2.org/I62513IX

:octocat: Sent from GH.

"name=uuid,type=CephUUID,req=false", \
"create new osd (with optional UUID)", "osd", "rw", "cli,rest")
"name=uuid,type=CephUUID,req=false " \
"name=id,type=CephInt,req=false", \
Copy link
Contributor

Choose a reason for hiding this comment

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

could specify the range of id, like the way how osd find does. i.e.

name=id,type=CephInt,range=0

@tchaikov
Copy link
Contributor

tchaikov commented Apr 8, 2015

See also discussion on ceph-user under the thread "ceph-osd - No Longer Creates osd.X upon Launch - Bug ?".

see https://www.mail-archive.com/[email protected]/msg16825.html .

@trociny
Copy link
Contributor Author

trociny commented Apr 9, 2015

Rebased after addressing @tchaikov's suggestions.

i = pending_inc.identify_osd(uuid);
if (id >= 0) {
// Both id and uuid provided. Check they do not conflict with existing.
if (i < 0) {
Copy link
Member

Choose a reason for hiding this comment

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

indentation seems wrong. this may be github playing tricks, but please check to make sure that's not a single white-space.

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, it's a tab.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Rechecked. Indentation is ok here (according to -- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t --)

@trociny
Copy link
Contributor Author

trociny commented Apr 9, 2015

Rebased after addressing @jecluis comments.

@trociny
Copy link
Contributor Author

trociny commented Apr 9, 2015

Rebased after fixing s/not match/does not match/.

@trociny
Copy link
Contributor Author

trociny commented Apr 12, 2015

@jecluis how do you like this version?

@jecluis
Copy link
Member

jecluis commented Apr 28, 2015

This looks fine to me.

Sorry for the delay -- forgot about this pull request! :(

Reviewed-by: Joao Eduardo Luis <[email protected]>

tchaikov added a commit that referenced this pull request May 7, 2015
mon: osd create: add optional 'id' parameter

Reviewed-by: Joao Eduardo Luis <[email protected]>
@tchaikov tchaikov merged commit 410175b into ceph:master May 7, 2015
@trociny trociny deleted the wip-osd_create branch May 7, 2015 17:47
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.

4 participants