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
init-ceph: Make init-ceph work under FreeBSD for init-system #13209
Conversation
src/init-ceph.in
Outdated
@@ -463,6 +475,7 @@ for name in $what; do | |||
if daemon_is_running $name ceph-$type $id $pid_file; then | |||
printf "$name: running " | |||
do_cmd "$BINDIR/ceph --admin-daemon $asok version 2>/dev/null" || echo unknown | |||
[ `uname` = FreeBSD ] && echo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's this for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@liewegas
One way or another my Development version strings do not have a '\n' at the end.
And I've been going thru packs of python and other code, but I cannot find.
My linux reference is on CentOS 7 from packages, and that does include a newline in the ceph version output.
And this is a first whack at init-ceph.
It now starts/stops the local deamons, en reports status.
Which is enough IMHO to try and get the package config submitted with FreeBSD ports.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wjwithagen neither does my bin/init-ceph status
has \n
at the end of daemon status line
$ bin/init-ceph status
=== mon.a ===
mon.a: running {"version":"Development"}=== mon.b ===
mon.b: running {"version":"Development"}=== mon.c ===
mon.c: running {"version":"Development"}=== osd.0 ===
osd.0: not running.
=== osd.1 ===
osd.1: running {"version":"Development"}=== osd.2 ===
osd.2: not running.
i just posted #13351 to address this problem. so probably you can drop this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tchaikov
Ah, great.
I'll drop that line.
Jenkins retest please |
src/init-ceph.in
Outdated
GETOPT=/usr/local/bin/getopt | ||
ULIMIT="limit descriptors" | ||
else | ||
GETOPT=getoption |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be getopt
, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tchaikov
Eh yes it should. I did fix this,
And removed the ULIMIT stuff, since I wrongly thought /bin/sh was different in this.
In the mean time I've found some more enhancements.
I'll put this on DNM and fix.
Note that I have a three system cluster FreeBSD system up and running.... 8-D
But it also means I have a hard time tracking all the fixes to the packages and rc.d files. :(
11c66ee
to
a8532cc
Compare
src/init-ceph.in
Outdated
fi | ||
|
||
if id ceph > /dev/null 2&>1; then | ||
SETiCEPHUSER=" --setuser ceph --setgroup ceph" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/SETiCEPHUSER/SETCEPHUSER/
or better off using SET_CEPHUSER_ARGS
a8532cc
to
b1c3132
Compare
@tchaikov |
retest this please. |
Jenkins retest please |
2571203
to
7b48ec3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/init-ceph.in
Outdated
@@ -463,6 +475,7 @@ for name in $what; do | |||
if daemon_is_running $name ceph-$type $id $pid_file; then | |||
printf "$name: running " | |||
do_cmd "$BINDIR/ceph --admin-daemon $asok version 2>/dev/null" || echo unknown | |||
[ `uname` = FreeBSD ] && echo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tchaikov
Ah, great.
I'll drop that line.
- FreeBSD find does not have printf option - use the packaged getopt in /usr/local - Only apply user-facts when user ceph is available Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
7b48ec3
to
299b7d0
Compare
Signed-off-by: Willem Jan Withagen wjw@digiware.nl