[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ceph-users
Subject:    [ceph-users] Re: radosgw manual deployment
From:       Eugen Block <eblock () nde ! ag>
Date:       2021-08-31 12:53:10
Message-ID: 20210831125310.Horde.aEhirgGH8TTBZboQRc1Zr17 () webmail ! nde ! ag
[Download RAW message or body]

How exactly did you create the rgw(s), realms, users etc.? I have  
single node (pacific) where connecting the dashboard worked just fine.
Basically this is what I did:

# create realm, zonegroup, zone
radosgw-admin realm create --rgw-realm=pacific-realm --default
radosgw-admin zonegroup create --rgw-zonegroup=europe-zg --master --default
radosgw-admin zone create --rgw-zone=europe-zone  
--rgw-zonegroup=europe-zg --master --default
radosgw-admin period update --rgw-realm=pacific-realm --commit

# create a user (the dashboard needs one)
radosgw-admin user create --uid=admin --display-name=admin --system  
--access-key=admin --secret=admin

# apply rgw deployment
pacific:~ # ceph orch apply rgw pacific-rgw --realm=pacific-realm  
--zone=europe-zone --placement=1


Then the dashboard was configured as follows:

ceph dashboard set-rgw-api-ssl-verify false
ceph dashboard set-rgw-api-user-id admin
ceph dashboard set-rgw-api-access-key -i /tmp/rgw-api-access-key.txt
ceph dashboard set-rgw-api-secret-key -i /tmp/rgw-api-access-key.txt
ceph dashboard set-rgw-api-host my-host


I think that was it, I just can't create a bucket yet but I didn't check yet.


Zitat von "Francesco Piraneo G." <fpiraneo@zriemann.ch>:

> Hi Eugen,
> 
> everything worked fine on my test until I decided to move the RADOS  
> gateway under a different host than mon. In such case the dashboard  
> is no longer able to find the RADOS gateway daemon; on my dashboard  
> I have this message:
> 
> The Object Gateway Service is not configured
> No RGW daemon found with user-defined host: s3.anonicloud.test, port: 80
> 
> 
> Please consider the following:
> 
> - From monitor machine raising a curl to this url I get the s3  
> welcome string:
> 
> # curl s3.anonicloud.test
> <?xml version="1.0" encoding="UTF-8"?><ListAllMyBucketsResult  
> xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Owner><ID>anonymous</ID><DisplayName></DisplayName></Owner><Buckets></Buckets></ListAllMyBucketsResult>
>  
> So this lead me to think that s3 gateway is installed, running and  
> reachable from the mon machine;
> 
> $ ceph dashboard set-rgw-api-host <host>
> $ ceph dashboard set-rgw-api-port <port>
> $ ceph dashboard set-rgw-api-scheme <scheme>
> 
> Has been set correctly because on the error string I read where the  
> dashboard can find the s3 gateway; scheme is really http (checked  
> querying with get-rgw-api-scheme).
> 
> Any clue / suggestion is welcome.
> 
> Francesco
> 
> 
> 
> Il 24.08.21 11:22, Eugen Block ha scritto:
> > Hi,
> > 
> > I assume that the "latest" docs are already referring to quincy, if  
> > you check the pacific docs  
> > (https://docs.ceph.com/en/pacific/mgr/dashboard/) that command is  
> > not mentioned. So you'll probably have to use the previous method  
> > of configuring the credentials.
> > 
> > Regards,
> > Eugen



_______________________________________________
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-leave@ceph.io


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic