]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: add CORTX Motr SAL implementation 44379/head
authorAndriy Tkachuk <andriy.tkachuk@seagate.com>
Mon, 1 Nov 2021 21:39:39 +0000 (21:39 +0000)
committerAndriy Tkachuk <andriy.tkachuk@seagate.com>
Thu, 27 Jan 2022 10:45:25 +0000 (10:45 +0000)
commitbf24c479b93be14b5c44d8c4daf72bfcd50b5aba
tree00c04158eb4fcd5829c1cd49c49f23c5815db4b7
parent186d24bb83095acbf6effa984817b03c542dfb93
rgw: add CORTX Motr SAL implementation

To build with Motr backend, use -DWITH_RADOSGW_MOTR=YES cmake
option. cortx-motr-devel rpm should be installed beforehand.

To connect to Motr cluster, add the following configuration
parameters to ceph.conf:

    [client]
            ...
            rgw backend store = motr
            motr profile fid  = 0x7000000000000001:0x4f
            motr ha endpoint  = inet:tcp:10.0.0.1@2001
    ...
    [client.rgw.8000]
            ...
            motr my endpoint  = inet:tcp:10.0.0.1@5001
            motr my fid       = 0x7200000000000001:0x29

The correct values for the Motr connection parameters can be
taken from `hctl status` cmd output after Motr cluster is
bootstrapped. In the example above, the values were taken from
the following output:

    Profile:
        0x7000000000000001:0x4f
    Services:
        centos8n1
        [started] hax       0x7200000000000001:0x6  inet:tcp:10.0.0.1@5001
        ...
        [unknown] m0_client 0x7200000000000001:0x29 inet:tcp:10.0.0.1@5001

Motr pkgs for the build/run can be taken from
https://github.com/Seagate/cortx-motr/releases/tag/2.0.0-rgw.

Co-authored-by: Sining Wu <sining.wu@seagate.com>
Signed-off-by: Andriy Tkachuk <andriy.tkachuk@seagate.com>
CMakeLists.txt
install-deps.sh
run-make-check.sh
src/common/options/rgw.yaml.in
src/include/config-h.in.cmake
src/rgw/CMakeLists.txt
src/rgw/rgw_main.cc
src/rgw/rgw_sal.cc
src/rgw/rgw_sal.h
src/rgw/rgw_sal_motr.cc [new file with mode: 0644]
src/rgw/rgw_sal_motr.h [new file with mode: 0644]