Re: New user questions with radosgw with Jewel 10.2.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Eric,

Please see inline...

On Tue, Jun 07, 2016 at 05:14:25PM +0000, Sylvain, Eric wrote:
> 
> Yes, my system is set to run as “ceph”:
>    /etc/systemd/system/ceph-radosgw.target.wants/ceph-radosgw@rgw.p6-os1-mon7.service<mailto:/etc/systemd/system/ceph-radosgw.target.wants/ceph-radosgw@rgw.p6-os1-mon7.service>
>        ExecStart=/usr/bin/radosgw -f --cluster ${CLUSTER} --name client.%i -conf  --setuser ceph --setgroup ceph

The first thing to check is the heading line of the RGW section in your ceph.conf file.

Systemd passes --name as "client.%i" where "%i" expands to (in your case): rgw.p6-os1-mon7.
Thus, your ceph.conf RGW heading should be: [client.rgw.p6-os1-mon7]
If these entires do not match, RGW will not parse the necessary configuration
section and will simply use defaults (ie. port 7480, etc).

> 
> Yet changing these to “root” has no effect.
>    ExecStart=/usr/bin/radosgw -f --cluster ${CLUSTER} --name client.%i -conf  --setuser root --setgroup root

Using user root is not needed for binding to privileged ports. When configured
to use civetweb, RGW delegates the permission drop to civetweb. Civetweb
does this _after_ binding to a port, reading certificates, etc. So, using
the default "--user ceph" and "--group ceph" is best.

> 
> Also doing: chown root.root /usr/bin/radosgw; chmod 4755 /usr/bin/radosgw
> Had no effect.

This is not needed.

> 
> I feel the issue is in reading /etc/ceph/ceph.conf, because even if I change
>    rgw frontends = “bogus bogus bogus”
> Expecting some failure, it still started up fine (on port 7480).
> The config still says:
>     # ceph --admin-daemon /var/run/ceph/ceph-client.rgw.p6-os1-mon7.asok config show
>
>     "rgw_frontends": "fastcgi, civetweb port=7480",
>

Which points to RGW not parsing it's config section.

> 
> Again suspecting keyring I created “client.radosgw.gateway” and changed ceph.conf for it, to see if that would help, no luck…
> 
> Could this be tied to having admin, mon and radosgw on same host?

RGW should reside happily alongside any of the ceph daemons.

> 
> Does keyring restrict what parts of ceph.conf are available?
> 
> Thanks in advance for anything you can provide
> 

Hope this helps.

-- 
Regards,
Karol

Attachment: signature.asc
Description: Digital signature

_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux