mgr/cephadm: streamline rgw deployment#36162
Conversation
|
move this logic down into the and then use the rgw keyring for these commands? something like this inside the rgw container: |
There was a problem hiding this comment.
add a rgw generate_config function for the config-json...?
similar to this:
ceph/src/pybind/mgr/cephadm/services/cephadmservice.py
Lines 84 to 97 in e51d0e0
|
@cbodley we need to call |
i think it's reasonable to put it there, yeah |
10a1e4d to
540fcb9
Compare
sebastian-philipp
left a comment
There was a problem hiding this comment.
looks great! (even though a bit awkward to call radosgw-admin in the mgr container)
|
adding dashboard cause this is the base for a future dashboard integration |
8f76b20 to
35a5762
Compare
locally on my system. |
|
jenkins test make check |
|
Are you planning to add documentation to this PR, or will that be done via a separate PR? |
35a5762 to
ce65cf7
Compare
ce65cf7 to
a81b5e9
Compare
|
tests passed finally! |
cephadm will create realm, zonegroup, and zone if needed before creating rgw service fixes: https://tracker.ceph.com/issues/43681 Signed-off-by: Daniel-Pivonka <dpivonka@redhat.com>
a81b5e9 to
131001c
Compare
Streamline the rgw deployment process for cephadm:
Currently to deploy rgw you first:
need a healthy cluster (
ceph -s->HEALTH_OK)create a realm (
radosgw-admin realm create --rgw-realm=*<realm-name>* --default)create a zonegroup (
radosgw-admin zonegroup create --rgw-zonegroup=default --master --default)create a zone (
radosgw-admin zone create --rgw-zonegroup=default --rgw-zone=*<zone-name>* --master --default)then finally deploy the rgw service (
ceph orch apply rgw *<realm-name>* *<zone-name>* --placement=*<placement>*)To streamline this process cephadm handles those steps:
ceph orch apply rgw *<realm-name>* *<zone-name>* --placement=*<placement>*(this one command handles everything)when a user creates a rgw service they supply the realm and zone they want
and then before creating the rgw service cephadm can:
check the cluster health
creates the realm if needed
create a zonegroup if needed (this is always 'default' for now)
create a zone if needed
then deploy the rgw service like normal
Fixes: https://tracker.ceph.com/issues/43681
Signed-off-by: Daniel-Pivonka dpivonka@redhat.com