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

Add more CLI options to ceph-rest-api #4191

Closed
wants to merge 1 commit into from
Closed

Conversation

leseb
Copy link
Member

@leseb leseb commented Mar 26, 2015

In order to containerized ceph-rest-api we need to expose some options
on the CLI directly. We don't want to rely on reading the ceph.conf. In
this commit, we expose all the configuration options as CLI extra
parameters.
Now you can run the API like this:

ceph-rest-api --addr 192.168.0.24:5001 --log-file /dev/null --base-url
/api/1.0/ --log-level debug

Signed-off-by: Sébastien Han sebastien.han@enovance.com

In order to containerized ceph-rest-api we need to expose some options
on the CLI directly. We don't want to rely on reading the ceph.conf. In
this commit, we expose all the configuration options as CLI extra
parameters.
Now you can run the API like this:

ceph-rest-api --addr 192.168.0.24:5001 --log-file /dev/null --base-url
/api/1.0/ --log-level debug

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
@loic-bot
Copy link

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

:octocat: Sent from GH.

@ghost ghost added feature core labels Mar 26, 2015
@tchaikov tchaikov changed the title Add more CLI optionsto ceph-rest-api Add more CLI options to ceph-rest-api Apr 8, 2015
@ghost ghost self-assigned this Apr 9, 2015
@ghost
Copy link

ghost commented Apr 9, 2015

looks good: could you add some tests ?

@leseb
Copy link
Member Author

leseb commented Apr 9, 2015

I don't think there are any tests for this.
I haven't seen any, if i'm mistaken can you point me to the specific files?

Merci !

@ghost ghost removed their assignment Apr 9, 2015
@ghost
Copy link

ghost commented Apr 9, 2015

I'm not the right person to review this patch. If it was me I would write tests modelled after https://github.com/ceph/ceph/blob/hammer/src/test/osd/osd-scrub-repair.sh (i.e. create a mini cluster and run a few commands, checking the expected side effects) or write unittests which I can't find for this command or the corresponding python module. I suspect testing is done somewhere else and it would be best if someone actually using the ceph-rest-api could comment.

@liewegas liewegas added tools and removed core labels Apr 14, 2015
@ghost
Copy link

ghost commented May 13, 2015

@leseb feel free to re-open as soon as you have time to write the tests (I realize that requires significant work and researching the good person to talk to etc. ;-)

@ghost ghost closed this May 13, 2015
@leseb
Copy link
Member Author

leseb commented May 13, 2015

@dachary well, do I really need to write ALL the tests simply because I added a few options? :)

@ghost
Copy link

ghost commented May 13, 2015

@leseb of course not ! Just the test related to your options ;-)

@leseb
Copy link
Member Author

leseb commented May 20, 2015

@dachary ok I'll do that, thanks.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants