Re: New user questions with radosgw with Jewel 10.2.1

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

 



Hi Sylvain,

this is probably related to the fact that the systemd unit file for the RGW is configured to run as user ceph. As ceph is not a privileged user, it can not bind to lower port numbers.

Modify the ceph-radosgw unit file and make sure the set user is set for root.

To verify this is the root cause, manually start the ceph-radosgw process from the command line being connected as root. If it works and you can query your RGW on port 80, then it is this problem.

Cheers
JC

On May 23, 2016, at 10:03, Sylvain, Eric <Eric.Sylvain@xxxxxxxxx> wrote:

 
Hello,
 
I’m a fairly new user and I am trying to bring up radosgw.
 
 
I have Jewel 10.2.1 installed with a co-located admin/mon host and a separate osd host
 
First a question: Can I run radosgw on a co-located admin/monitor host?
 
And then my issue: I cannot seem to get the frontent (civetweb) to run on port 80.
(I do the following)
su – ceph
cd my-cluster
sudo ceph-deploy install –rgw p6-os1-mon2
ceph-deploy --overwrite-conf rgw create p6-os1-mon
   (Note it says: The Ceph Object Gateway (RGW) is now running on host p6-os1-mon2 and default port 7480)
   (Testing to http://p6-os1-mon2:7480 show the correct info)
Edit ~ceph/my-cluster/ceph.conf and add:
   [client.radosgw.p6-os1-mon2]
   rgw_frontends = "civetweb port=80”
Reboot p6-os1/mon2
After everything is back up, try http://p6-os1-mon2:80
   No luck, it appears it is still running at 7480…
What am I missing that would make radosgw get the correct port?
(Running by hand, I see “listening_ports”
2016-05-23 12:13:43.479136 7fc0793f7a40 20 civetweb config: decode_url: no
2016-05-23 12:13:43.479138 7fc0793f7a40 20 civetweb config: enable_keep_alive: yes
2016-05-23 12:13:43.479138 7fc0793f7a40 20 civetweb config: listening_ports: 7480
2016-05-23 12:13:43.479139 7fc0793f7a40 20 civetweb config: num_threads: 100
2016-05-23 12:13:43.479140 7fc0793f7a40 20 civetweb config: run_as_user: ceph
 
    I suspected maybe the keyring? So I did:
      $ sudo rm -rf /etc/ceph/ceph.client.radosgw.keyring
      $ sudo ceph-authtool --create-keyring /etc/ceph/ceph.client.radosgw.keyring
      $ sudo chmod +r /etc/ceph/ceph.client.radosgw.keyring
      $ sudo ceph-authtool /etc/ceph/ceph.client.radosgw.keyring -n client.radosgw.p6-os1-mon2
      $ sudo ceph-authtool /etc/ceph/ceph.client.radosgw.keyring -n client.radosgw.p6-os1-mon2 --gen-key
      $ sudo ceph-authtool -n client.radosgw.p6-os1-mon2 --cap osd 'allow rwx' --cap mon 'allow rwx' /etc/ceph/ceph.client.radosgw.keyring
      $ sudo ceph -k /etc/ceph/ceph.client.admin.keyring auth add client.radosgw.p6-os1-mon2 -i /etc/ceph/ceph.client.radosgw.keyring
      (Also copied to to my osd node…)
      Reboot everything, still no luck civetweb remains on 7480
 
Ideas? Comments?
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
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]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux