Bug #12407
closedWith root as default user, unable to have multiple RGW instances running
0%
Description
This is with reference to the commit https://github.com/ceph/ceph/commit/f30fa4a364602fb9412babf7319140eca4c64995 and tracker http://tracker.ceph.com/issues/11453
On Hammer binaries, we are finding this fix has regressed to have multiple RGW instances to be run on a single machine. Meaning, with no user specified under ‘client.radosgw.gateway’ sections, and by having the default user to be assumed as ‘root’, we are unable to get multiple RGW daemons run on a client machine.
The start-stop-daemon complains than an instance of ‘radosgw’ is already running, by starting the first daemon in the configuration and bails out from starting further instances:
<snip>
+ start-stop-daemon --start u root -x /usr/bin/radosgw - -n client.radosgw.gateway-3
/usr/bin/radosgw already running.
<\snip>
However, by having a user specified in the relevant ‘client.radosgw.gateway’ sections, one can get around this issue. Wanted to confirm if this is indeed a regression or was it expected to behave so from the fix.
Updated by Sage Weil over 8 years ago
- Project changed from Ceph to rgw
- Category deleted (
22) - Priority changed from Normal to Urgent
- Affected Versions deleted (
v0.21.1)
Updated by Sage Weil over 8 years ago
diff --git a/src/init-radosgw b/src/init-radosgw index 6fb8ba2..b7569a0 100644 --- a/src/init-radosgw +++ b/src/init-radosgw @@ -100,7 +100,7 @@ case "$1" in echo "Starting $name..." if [ $DEBIAN -eq 1 ]; then - start-stop-daemon --start -u $user -x $RADOSGW -- -n $name + start-stop-daemon --start -u $user -x $RADOSGW -p /var/run/ceph/client-$name.pid -- -n $name elif [ -n "$SYSTEMD_RUN" ]; then $SYSTEMD_RUN -r su "$user" -c "ulimit -n 32768; $RADOSGW -n $name" else
this would probably fix it. Pavan, do you mind testing?
Updated by Sage Weil over 8 years ago
Pavan, can you also let me know what version of debian you are using? Thanks!
Updated by Pavan Rallabhandi over 8 years ago
Sage, apologies for the delay in response, was away from work for a while. Yes, your proposed fix works. We are running Ubuntu 14.04.
Please let me know if you need any more info from me.
Thanks,
-Pavan.
Updated by Yehuda Sadeh over 8 years ago
- Status changed from Need More Info to 12
Updated by Sage Weil over 8 years ago
- Status changed from In Progress to Fix Under Review
- Backport set to hammer
Updated by Sage Weil over 8 years ago
- Status changed from Fix Under Review to Pending Backport
Updated by Loïc Dachary over 8 years ago
What commit / pull requests fixes this issue ?
Updated by Loïc Dachary over 8 years ago
Updated by Loïc Dachary over 8 years ago
- Status changed from Pending Backport to Resolved