progetti:cloud-areapd:ceph:install_and_confihure_ceph-rgw
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| progetti:cloud-areapd:ceph:install_and_confihure_ceph-rgw [2018/05/31 14:47] – sgaravat@infn.it | progetti:cloud-areapd:ceph:install_and_confihure_ceph-rgw [2020/02/11 10:14] (current) – sgaravat@infn.it | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Install and configure ceph-rgw ====== | ||
| + | |||
| + | On the machine where ceph radosgw will be installed: | ||
| + | |||
| + | <code bash> | ||
| + | yum clean all | ||
| + | yum update | ||
| + | |||
| + | useradd ceph-deploy | ||
| + | passwd ceph-deploy | ||
| + | echo " | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | cepl-deploy@ceph-adm key on the node where radosgw will be installed: | ||
| + | |||
| + | <code bash> | ||
| + | [ceph-deploy@ceph-adm ~]$ ssh-copy-id ceph-deploy@ceph-rgw-02 | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | ceph-deploy@ceph-rgw-02' | ||
| + | |||
| + | Number of key(s) added: 1 | ||
| + | |||
| + | Now try logging into the machine, with: " | ||
| + | and check to make sure that only the key(s) you wanted were added. | ||
| + | |||
| + | [ceph-deploy@ceph-adm ~]$ ssh ceph-rgw-02 hostname | ||
| + | ceph-rgw-02.cloud.pd.infn.it | ||
| + | [ceph-deploy@ceph-adm ~]$ | ||
| + | </ | ||
| + | |||
| + | |||
| + | Disable SELinux | ||
| + | |||
| + | Modify ceph.conf on all ceph cluster nodes and all openstack nodes adding: | ||
| + | |||
| + | |||
| + | < | ||
| + | |||
| + | [global] | ||
| + | # | ||
| + | ... | ||
| + | ... | ||
| + | # Default quota for object storage | ||
| + | rgw user default quota max size = 200G | ||
| + | |||
| + | |||
| + | [client.rgw.ceph-rgw-01] | ||
| + | |||
| + | # | ||
| + | # SSL | ||
| + | # | ||
| + | | ||
| + | # | ||
| + | # Plain | ||
| + | rgw_frontends=" | ||
| + | # | ||
| + | # Realm, zonegroup and zone | ||
| + | rgw_zone=cloudprod | ||
| + | rgw_zonegroup=cloudprod | ||
| + | rgw_realm=cloudprod | ||
| + | |||
| + | # Debug level | ||
| + | debug rgw = 2 | ||
| + | # | ||
| + | # OpenStack cloud | ||
| + | rgw keystone url = https:// | ||
| + | rgw keystone accepted roles = project_manager, | ||
| + | rgw keystone api version = 3 | ||
| + | rgw keystone admin token = CHANGEHERE | ||
| + | rgw keystone token cache size = 0 | ||
| + | ##rgw keystone revocation interval = 100 | ||
| + | | ||
| + | rgw keystone implicit tenants = false | ||
| + | rgw s3 auth use keystone = true | ||
| + | nss_db_path = / | ||
| + | </ | ||
| + | |||
| + | |||
| + | Dall' | ||
| + | |||
| + | <code bash> | ||
| + | [ceph-deploy@ceph-adm ~]$ ssh-copy-id ceph-deploy@ceph-rgw-01 | ||
| + | / | ||
| + | The authenticity of host ' | ||
| + | ECDSA key fingerprint is SHA256: | ||
| + | ECDSA key fingerprint is MD5: | ||
| + | Are you sure you want to continue connecting (yes/no)? yes | ||
| + | / | ||
| + | / | ||
| + | ceph-deploy@ceph-rgw-01' | ||
| + | |||
| + | Number of key(s) added: 1 | ||
| + | |||
| + | Now try logging into the machine, with: " | ||
| + | and check to make sure that only the key(s) you wanted were added. | ||
| + | </ | ||
| + | |||
| + | Verifica: | ||
| + | |||
| + | |||
| + | <code bash> | ||
| + | [ceph-deploy@ceph-adm ~]$ ssh ceph-rgw-01 hostname | ||
| + | ceph-rgw-01.cloud.pd.infn.it | ||
| + | </ | ||
| + | |||
| + | Get file di conf di ceph da un monitor node: | ||
| + | |||
| + | <code bash> | ||
| + | [ceph-deploy@ceph-adm ~]$ cd CephProdCluster | ||
| + | [ceph-deploy@ceph-adm CephProdCluster]$ ceph-deploy config pull ceph-mon-01 | ||
| + | </ | ||
| + | |||
| + | Da un monitor: | ||
| + | |||
| + | Creazione realm cloudprod (come default realm): | ||
| + | |||
| + | |||
| + | <code bash> | ||
| + | [root@ceph-mon-01 ceph]# radosgw-admin realm list --rgw-realm=cloudprod | ||
| + | </ | ||
| + | |||
| + | |||
| + | Verifica: | ||
| + | |||
| + | <code bash> | ||
| + | [root@ceph-mon-01 ceph]# radosgw-admin realm list | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | ] | ||
| + | } | ||
| + | |||
| + | [root@ceph-mon-01 ceph]# radosgw-admin realm get --rgw-realm=cloudprod | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | |||
| + | </ | ||
| + | |||
| + | Creazione zonegroup e zone ' | ||
| + | |||
| + | <code bash> | ||
| + | |||
| + | [root@ceph-mon-01 ceph]# radosgw-admin zonegroup create --rgw-zonegroup=cloudprod --endpoints=http:// | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | ], | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | |||
| + | [root@ceph-mon-01 ceph]# radosgw-admin zone create --rgw-zonegroup=cloudprod --rgw-zone=cloudprod --endpoints=http:// | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | } | ||
| + | ], | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | |||
| + | [root@ceph-mon-01 ceph]# | ||
| + | </ | ||
| + | |||
| + | Cancellazione default zonegroup e zone: | ||
| + | |||
| + | <code bash> | ||
| + | # radosgw-admin zonegroup remove --rgw-zonegroup=default --rgw-zone=default | ||
| + | # radosgw-admin period update --commit | ||
| + | # radosgw-admin zone delete --rgw-zone=default | ||
| + | # radosgw-admin period update --commit | ||
| + | # radosgw-admin zonegroup delete --rgw-zonegroup=default | ||
| + | # radosgw-admin period update --commit | ||
| + | </ | ||
