Skip to content

Wip interactive ceph cli#4452

Merged
athanatos merged 3 commits intoceph:masterfrom
tchaikov:wip-interactive-ceph-cli
May 11, 2015
Merged

Wip interactive ceph cli#4452
athanatos merged 3 commits intoceph:masterfrom
tchaikov:wip-interactive-ceph-cli

Conversation

@tchaikov
Copy link
Copy Markdown
Contributor

@tchaikov tchaikov added the tools label Apr 23, 2015
@loic-bot
Copy link
Copy Markdown

@tchaikov tchaikov force-pushed the wip-interactive-ceph-cli branch from a30919f to 7a0a5d2 Compare April 24, 2015 04:05
Fixes: ceph#11279
Signed-off-by: Kefu Chai <kchai@redhat.com>
* if ceph is not reading from a tty, expect EOF instead of "quit"
  as the end of input.
* do not panic at seeing the EOF
* update the test case test_mon_injectargs_SI(). since we disables
  "ceph injectargs <args,...>" in a458bd8, in which the arguments
  of "injectargs" are supposed to be consumed by "tell" instead.
  so "ceph injectargs ..." is taken as an incomplete command, and
  this command will bring ceph cli into the interactive mode,
  redirecting its stdin to /dev/null helps ceph cli quit the loop,
  but in a way of throwing EOFError exception. this change handles
  the EOF, so the "ceph injectargs ..." does not throws anymore.
  but the side effect is that the test fails since it expects a
  non-zero return code. so replace it with an equivalent "tell"
  command which also fails but due to the non-SI postfix.

Signed-off-by: Kefu Chai <kchai@redhat.com>
* in case parse_cmdargs() throws

Signed-off-by: Kefu Chai <kchai@redhat.com>
@tchaikov tchaikov force-pushed the wip-interactive-ceph-cli branch from 7a0a5d2 to 7789eef Compare April 24, 2015 07:26
@ghost ghost self-assigned this Apr 24, 2015
@ghost ghost added the needs-qa label Apr 24, 2015
@ghost
Copy link
Copy Markdown

ghost commented Apr 24, 2015

@tchaikov it looks great ! Because ceph.in is used intensively in various contexts, it would be good to run a set of qa tests, just to be sure.

Reviewed-by: after a QA run

@tchaikov
Copy link
Copy Markdown
Contributor Author

@dachary thanks for the review !

@jecluis
Copy link
Copy Markdown
Member

jecluis commented Apr 28, 2015

This looks sane to me too.

@tchaikov
Copy link
Copy Markdown
Contributor Author

@jecluis thank you for looking at this PR !

@ghost ghost assigned athanatos and unassigned ghost Apr 29, 2015
athanatos pushed a commit that referenced this pull request May 11, 2015
Wip interactive ceph cli

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Loic Dachary <ldachary@redhat.com>
@athanatos athanatos merged commit 05db2b0 into ceph:master May 11, 2015
@tchaikov tchaikov deleted the wip-interactive-ceph-cli branch May 12, 2015 01:30
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