Ceph is a distributed object, block, and file storage platform
Go to file
Sage Weil 7bc23cb0bd Merge PR #33777 into octopus
* refs/pull/33777/head:
	rgw: svc.config_key_rados: get() warns if potentially insecure connection
	rgw: svc.rados: add clog_warn()
	mon: log monitor: add command level param
	auth registry: helpers for checking secure method/mode

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2020-03-13 15:55:34 -05:00
.github .github: Rename orchestrator_cli to orchestrator 2020-02-17 10:24:01 +01:00
admin admin/serve-doc: Switch to python3 only 2020-02-29 10:29:21 +10:00
alpine alphine: remove urcu 2019-10-05 16:04:47 +08:00
bin scripts: fix bash path in shebangs (part 2) 2017-09-25 17:20:40 -06:00
ceph-erasure-code-corpus@2d7d78b9cc
ceph-menv ceph-menv: mrun shell environment 2018-05-21 13:51:16 -07:00
ceph-object-corpus@e9bd1dbea0 ceph-object-corpus: forward_incompat pg_missing_item and pg_missing_t 2019-05-09 12:33:31 +08:00
cmake Merge pull request #33256 from tchaikov/wip-cmake-cares 2020-02-21 22:04:23 +08:00
debian rpm,deb: fix python dateutil module dependency 2020-02-28 16:29:26 +00:00
doc Merge PR #33953 into octopus 2020-03-13 10:25:40 -05:00
etc packaging: remove SuSEfirewall2 support 2019-07-12 09:55:35 +02:00
examples Merge pull request #33063 from theanalyst/boto3-ext-append 2020-02-28 09:31:14 -05:00
fusetrace fusetrace: s/Mutex/ceph::mutex/ 2019-08-03 11:27:20 +08:00
keys
man man: skip directive starting with ".." 2018-08-15 13:28:54 +08:00
mirroring docs: Update au.ceph.com maintainers, update README.md to include Mirror mailing list. 2020-01-24 12:31:42 +11:00
monitoring monitoring: fix RGW grafana chart 'Average GET/PUT Latencies' 2020-03-10 12:05:26 +01:00
qa Merge pull request #33900 from dillaman/wip-44459 2020-03-12 19:22:22 -04:00
selinux selinux: Allow ceph to setsched 2020-02-19 14:28:07 +10:00
share
src Merge PR #33777 into octopus 2020-03-13 15:55:34 -05:00
sudoers.d files,rpm,deb: rename ceph-daemon -> cephadm 2019-12-11 19:14:09 -06:00
systemd systemd: Wait 5 seconds before attempting a restart of an OSD 2019-11-12 10:21:45 +01:00
udev udev: remove parttypeuuid rules for ceph-disk 2018-06-13 15:16:22 -04:00
.gitattributes githubmap: define merge conflict resolution 2017-10-10 12:06:34 -07:00
.githubmap Merge PR #33850 into octopus 2020-03-10 17:20:12 -05:00
.gitignore .gitignore: Add .mypy-cache to .gitignore 2020-02-24 14:04:29 +01:00
.gitmodule_mirrors
.gitmodules remove cephadm-adoption-corpus as submodule 2020-02-27 11:46:42 -06:00
.mailmap mailmap: sort entries 2019-03-21 10:46:10 +01:00
.organizationmap .organizationmap: Wido 42on -> 42on 2019-12-15 10:21:07 -06:00
.peoplemap mailmap: updates for nautilus 2019-03-21 10:32:53 +01:00
AUTHORS AUTHORS: Update Component Technical Leads and maintainers to canonical location of ceph.com. 2017-10-18 18:48:37 +08:00
ceph.spec.in spec: Podman (temporarily) requires apparmor-abstractions on suse 2020-03-10 13:57:25 +01:00
CMakeLists.txt cmake: reduce the indent level 2020-02-24 12:45:35 +08:00
CodingStyle coding-style: update a link and fix typos. 2020-02-07 15:55:08 +00:00
CONTRIBUTING.rst
COPYING relicense LGPL-2.1 code as LGPL-2.1 or LGPL-3.0 2019-04-22 11:22:55 -05:00
COPYING-GPL2
COPYING-LGPL2.1
COPYING-LGPL3 relicense LGPL-2.1 code as LGPL-2.1 or LGPL-3.0 2019-04-22 11:22:55 -05:00
do_cmake.sh do_cmake.sh: bail out if something goes wrong 2020-02-01 00:14:19 +08:00
do_freebsd.sh rgw/pubsub: add kafka notification endpoint 2019-11-05 19:25:03 +02:00
doc_deps.deb.txt doc: missing virtualenv for build-doc 2019-11-26 16:01:54 -03:00
Doxyfile
install-deps.sh install-deps.sh: remove the workaround to bootstrap a new venv 2020-03-12 14:52:13 +08:00
make-apk.sh
make-debs.sh make-debs.sh: clean dir to avoid build deb packages error 2018-11-24 13:17:12 +08:00
make-dist cmake: Integrate Rook client generation 2020-02-13 11:33:55 +01:00
make-srpm.sh
PendingReleaseNotes doc: change case from apis to APIs 2020-03-03 14:52:45 +05:30
pom.xml
README.aix
README.alpine.md Remove embedded 'cephd' code 2018-05-11 13:10:26 -07:00
README.FreeBSD doc: fix typos 2018-09-21 12:41:42 +08:00
README.md README.md: remove stale cmake prerequisite 2020-01-22 00:00:01 +08:00
README.solaris
README.windows.rst [win32] Add build scripts 2020-02-19 08:24:21 +00:00
run-make-check.sh run-make-check.sh: WITH_SEASTAR on demand 2020-03-04 22:18:50 +08:00
SubmittingPatches-backports.rst doc: Small update of SubmittingPatches-backports 2019-10-25 16:20:19 +02:00
SubmittingPatches-kernel.rst doc: split up SubmittingPatches.rst 2019-10-17 19:32:03 +02:00
SubmittingPatches.rst doc: split up SubmittingPatches.rst 2019-10-17 19:32:03 +02:00
test_cephadm.sh cephadm: include docker.io in image name 2020-02-19 07:10:59 -06:00
win32_build.sh [win32] Add build scripts 2020-02-19 08:24:21 +00:00
win32_deps_build.sh [win32] Add build scripts 2020-02-19 08:24:21 +00:00

Ceph - a scalable distributed storage system

Please see http://ceph.com/ for current info.

Contributing Code

Most of Ceph is dual licensed under the LGPL version 2.1 or 3.0. Some miscellaneous code is under BSD-style license or is public domain. The documentation is licensed under Creative Commons Attribution Share Alike 3.0 (CC-BY-SA-3.0). There are a handful of headers included here that are licensed under the GPL. Please see the file COPYING for a full inventory of licenses by file.

Code contributions must include a valid "Signed-off-by" acknowledging the license for the modified or contributed file. Please see the file SubmittingPatches.rst for details on what that means and on how to generate and submit patches.

We do not require assignment of copyright to contribute code; code is contributed under the terms of the applicable license.

Checking out the source

You can clone from github with

git clone git@github.com:ceph/ceph

or, if you are not a github user,

git clone git://github.com/ceph/ceph

Ceph contains many git submodules that need to be checked out with

git submodule update --init --recursive

Build Prerequisites

The list of Debian or RPM packages dependencies can be installed with:

./install-deps.sh

Building Ceph

Note that these instructions are meant for developers who are compiling the code for development and testing. To build binaries suitable for installation we recommend you build deb or rpm packages, or refer to the ceph.spec.in or debian/rules to see which configuration options are specified for production builds.

Build instructions:

./do_cmake.sh
cd build
make

(Note: do_cmake.sh now defaults to creating a debug build of ceph that can be up to 5x slower with some workloads. Please pass "-DCMAKE_BUILD_TYPE=RelWithDebInfo" to do_cmake.sh to create a non-debug release.)

(Note: make alone will use only one CPU thread, this could take a while. use the -j option to use more threads. Something like make -j$(nproc) would be a good start.

This assumes you make your build dir a subdirectory of the ceph.git checkout. If you put it elsewhere, just point CEPH_GIT_DIRto the correct path to the checkout. Any additional CMake args can be specified setting ARGS before invoking do_cmake. See cmake options for more details. Eg.

ARGS="-DCMAKE_C_COMPILER=gcc-7" ./do_cmake.sh

To build only certain targets use:

make [target name]

To install:

make install

CMake Options

If you run the cmake command by hand, there are many options you can set with "-D". For example the option to build the RADOS Gateway is defaulted to ON. To build without the RADOS Gateway:

cmake -DWITH_RADOSGW=OFF [path to top level ceph directory]

Another example below is building with debugging and alternate locations for a couple of external dependencies:

cmake -DLEVELDB_PREFIX="/opt/hyperleveldb" -DOFED_PREFIX="/opt/ofed" \
-DCMAKE_INSTALL_PREFIX=/opt/accelio -DCMAKE_C_FLAGS="-O0 -g3 -gdwarf-4" \
..

To view an exhaustive list of -D options, you can invoke cmake with:

cmake -LH

If you often pipe make to less and would like to maintain the diagnostic colors for errors and warnings (and if your compiler supports it), you can invoke cmake with:

cmake -DDIAGNOSTICS_COLOR=always ..

Then you'll get the diagnostic colors when you execute:

make | less -R

Other available values for 'DIAGNOSTICS_COLOR' are 'auto' (default) and 'never'.

Building a source tarball

To build a complete source tarball with everything needed to build from source and/or build a (deb or rpm) package, run

./make-dist

This will create a tarball like ceph-$version.tar.bz2 from git. (Ensure that any changes you want to include in your working directory are committed to git.)

Running a test cluster

To run a functional test cluster,

cd build
make vstart        # builds just enough to run vstart
../src/vstart.sh --debug --new -x --localhost --bluestore
./bin/ceph -s

Almost all of the usual commands are available in the bin/ directory. For example,

./bin/rados -p rbd bench 30 write
./bin/rbd create foo --size 1000

To shut down the test cluster,

../src/stop.sh

To start or stop individual daemons, the sysvinit script can be used:

./bin/init-ceph restart osd.0
./bin/init-ceph stop

Running unit tests

To build and run all tests (in parallel using all processors), use ctest:

cd build
make
ctest -j$(nproc)

(Note: Many targets built from src/test are not run using ctest. Targets starting with "unittest" are run in make check and thus can be run with ctest. Targets starting with "ceph_test" can not, and should be run by hand.)

When failures occur, look in build/Testing/Temporary for logs.

To build and run all tests and their dependencies without other unnecessary targets in Ceph:

cd build
make check -j$(nproc)

To run an individual test manually, run ctest with -R (regex matching):

ctest -R [regex matching test name(s)]

(Note: ctest does not build the test it's running or the dependencies needed to run it)

To run an individual test manually and see all the tests output, run ctest with the -V (verbose) flag:

ctest -V -R [regex matching test name(s)]

To run an tests manually and run the jobs in parallel, run ctest with the -j flag:

ctest -j [number of jobs]

There are many other flags you can give ctest for better control over manual test execution. To view these options run:

man ctest

Building the Documentation

Prerequisites

The list of package dependencies for building the documentation can be found in doc_deps.deb.txt:

sudo apt-get install `cat doc_deps.deb.txt`

Building the Documentation

To build the documentation, ensure that you are in the top-level /ceph directory, and execute the build script. For example:

admin/build-doc