Re: [ceph-users] NFS-Ganesha Mounts as a Read-Only Filesystem

2019-04-08 Thread junk
Possibly the client doesn't like the server returning SecType = "none";

Maybe try SecType = "sys":?

Leon L. Robinson

> On 6 Apr 2019, at 12:06,   
> wrote:
> 
> Hi all,
>  
> I have recently setup a Ceph cluster and on request using CephFS (MDS 
> version: ceph version 13.2.5 (cbff874f9007f1869bfd3821b7e33b2a6ffd4988) mimic 
> (stable)) as a backend for NFS-Ganesha. I have successfully tested a direct 
> mount with CephFS to read/write files, however I’m perplexed as to NFS 
> mounting as read-only despite setting the RW flags.
>  
> [root@mon02 mnt]# touch cephfs/test.txt
> touch: cannot touch âcephfs/test.txtâ: Read-only file system
>  
> Configuration of Ganesha is below:
>  
> NFS_CORE_PARAM
> {
>   Enable_NLM = false;
>   Enable_RQUOTA = false;
>   Protocols = 4;
> }
>  
> NFSv4
> {
>   Delegations = true;
>   RecoveryBackend = rados_ng;
>   Minor_Versions =  1,2;
> }
>  
> CACHEINODE {
>   Dir_Chunk = 0;
>   NParts = 1;
>   Cache_Size = 1;
> }
>  
> EXPORT
> {
> Export_ID = 15;
> Path = "/";
> Pseudo = "/cephfs/";
> Access_Type = RW;
> NFS_Protocols = "4";
> Squash = No_Root_Squash;
> Transport_Protocols = TCP;
> SecType = "none";
> Attr_Expiration_Time = 0;
> Delegations = R;
>  
> FSAL {
> Name = CEPH;
>  User_Id = "ganesha";
>  Filesystem = "cephfs";
>  Secret_Access_Key = "";
> }
> }
>  
>  
> Provided mount parameters:
>  
> mount -t nfs -o nfsvers=4.1,proto=tcp,rw,noatime,sync 172.16.32.15:/ 
> /mnt/cephfs
>  
> I have tried stripping much of the config and altering mount options, but so 
> far completely unable to decipher the cause. Also seems I’m not the only one 
> who has been caught on this:
>  
> https://www.spinics.net/lists/ceph-devel/msg41201.html
>  
> Thanks in advance,
>  
> Thomas
> ___
> ceph-users mailing list
> ceph-users@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] typo in news for PG auto-scaler

2019-04-05 Thread Junk
also 
$ ceph osd pool set foo pg_autoscaler_mode on

pg_autoscaleR_mode should be 

$ ceph osd pool set foo pg_autoscale_mode on

On Fri, 2019-04-05 at 08:05 +0200, Lars Täuber wrote:
> Hi everybody!
> There is a small mistake in the news about the PG autoscaler
> https://ceph.com/rados/new-in-nautilus-pg-merging-and-autotuning/
> 
> The command $ ceph osd pool set foo target_ratio .8should actually be
> $ ceph osd pool set foo target_size_ratio .8
> 
> Thanks for this great improvement!
> Cheers,Lars___ceph-users
> mailing listceph-us...@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


[ceph-users] ceph dashboard cert documentation bug?

2019-02-06 Thread Junk
I was trying to set my mimic dashboard cert using the instructions
from 

http://docs.ceph.com/docs/mimic/mgr/dashboard/

and I'm pretty sure the lines


$ ceph config-key set mgr mgr/dashboard/crt -i dashboard.crt
$ ceph config-key set mgr mgr/dashboard/key -i dashboard.key

should be

$ ceph config-key set mgr/dashboard/crt -i dashboard.crt
$ ceph config-key set mgr/dashboard/key -i dashboard.key

Can anyone confirm?


-- 
Junk 

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


[ceph-users] swift staticsite api

2018-09-28 Thread junk required

HI there, I'm trying to enable swift static site ability in my rgw.

It appears to be supported http://docs.ceph.com/docs/master/radosgw/swift/ but 
I can't find any documentation on it.

All I can find is for s3
https://access.redhat.com/documentation/en-us/red_hat_ceph_storage/2/html/object_gateway_guide_for_red_hat_enterprise_linux/configuration#creating_a_site
&
https://gist.github.com/robbat2/ec0a66eed28e5f0e1ef7018e9c77910c

I've tried using the following document to use the api calls 
http://docs.ceph.com/docs/master/radosgw/swift/

But it's not working.

Is there an undocumented rgw config setting I need to turn on? Or an equivalent 
to `rgw_enable_apis = s3website` for swift?

If I try and go to my swift endpoint:
http://therobinsonfamily.net/swift/staticsite/

I get

staticsite1000falseindex.html2018-09-28T16:10:16.334Z"984256f54df93400961cbfac92b1377f"12STANDARDbaggypantsBaggypants

instead of the content of index.html
Leon.
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com