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

Be more verbose in radosgw init script issues, return the right exit codes #811

Merged
merged 3 commits into from Nov 5, 2013
Merged

Be more verbose in radosgw init script issues, return the right exit codes #811

merged 3 commits into from Nov 5, 2013

Conversation

dmsimard
Copy link
Contributor

@dmsimard dmsimard commented Nov 3, 2013

Ref: http://tracker.ceph.com/issues/6710
Before, we would exit 0 where we should exit 1 or use "continue".
This means we were not returning exit 1 if there was an error and
radosgw did not start.
This commit aims to handle theses cases better.
We also now verify that radosgw started successfully.

@xarses
Copy link

xarses commented Nov 4, 2013

+1 Much needed for scripts to mange the service properly, Can we back port these to previous release too?

@dmsimard
Copy link
Contributor Author

dmsimard commented Nov 5, 2013

Screwed up the branch, hang on.

David Moreau Simard added 3 commits November 5, 2013 11:32
An exit 0 means everything went okay - we should exit 1 if there is a problem in
starting radosgw.

Signed-off-by: David Moreau Simard <dmsimard@iweb.com>
Changed "/etc/init.d/radosgw status" into a function that now
returns the appropriate exit code.
We now also verify that radosgw actually started properly.

Signed-off-by: David Moreau Simard <dmsimard@iweb.com>
This allows a user to use "-v|--verbose" to get some insight as to
what could be preventing radosgw from starting properly.

Signed-off-by: David Moreau Simard <dmsimard@iweb.com>
@dmsimard
Copy link
Contributor Author

dmsimard commented Nov 5, 2013

Sorry about that. Should be good now, what do you think ?

yehudasa added a commit that referenced this pull request Nov 5, 2013
Be more verbose in radosgw init script issues, return the right exit codes

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
@yehudasa yehudasa merged commit 8ca71b8 into ceph:master Nov 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants