Commit Graph

725 Commits

Author SHA1 Message Date
Sage Weil
a16e46ef05 Revert "Merge PR #39482 into master"
This reverts commit 9200b1ea8e, reversing
changes made to e42bbba9ca.

For running tests to narrow down the root cause of:
https://tracker.ceph.com/issues/49237

Signed-off-by: Michael Fritch <mfritch@suse.com>
2021-03-01 11:27:18 -05:00
Sage Weil
5e197a21e6 Merge PR #39455 into master
* refs/pull/39455/head:
	doc/man/8/ceph: document --max option
	src/test/osd/safe-to-destroy: adjust test
	ceph: print command output to stdout even on error
	mgr/DaemonServer: include details in 'osd ok-to-stop' output
	mgr: add --max <n> to 'osd ok-to-stop' command
	mgr: relax osd ok-to-stop condition on degraded pgs

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2021-02-27 10:15:27 -05:00
Sage Weil
98f1be85d9 doc/man/8/ceph: document --max option
Signed-off-by: Sage Weil <sage@newdream.net>
2021-02-26 13:11:43 -06:00
Rishabh Dave
cd760804a0 doc/ceph-fuse: add some options to man page
Add description for options --id and --client_fs to the ceph-fuse manual
and move description for -d closer to -f since both options are similar.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2021-02-22 17:25:03 +05:30
Sage Weil
1303bf252c Merge PR #39394 into master
* refs/pull/39394/head:
	tools/kvstore-tool: implement 'dissect' command
	kv/KeyValueHistogram: make Bluestore's DBHistogram class reusable.

Reviewed-by: Adam Kupczyk <akucpzyk@redhat.com>
2021-02-21 11:51:32 -05:00
Jason Dillaman
0dc74ee027
Merge pull request #39478 from orozery/rbd-encryption-doc
doc/rbd: rbd encryption

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2021-02-21 09:15:00 -05:00
Or Ozeri
e45cd83af1 doc/rbd: rbd encryption
This commit adds documentation of the new rbd encryption feature

Signed-off-by: Or Ozeri <oro@il.ibm.com>
2021-02-21 07:31:24 +02:00
Sage Weil
c896292d58 Revert "Merge pull request #37764 from mgfritch/cephadm-no-container-init"
This reverts commit f635555fe7, reversing
changes made to d4d3d17b23.

This PR seems to be (indirectly?) responsible for
  https://tracker.ceph.com/issues/49237

Also, it was causing the rados.py task's follow-up step to wait
for snap trimming to fail: it would time out a 'ceph osd dump --format=json'
command.  :/

Signed-off-by: Sage Weil <sage@newdream.net>
2021-02-15 12:40:39 -05:00
Igor Fedotov
b437f7141c tools/kvstore-tool: implement 'dissect' command
This command shows information on key/value counts and lengths for KV
DB.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
2021-02-12 16:55:13 +03:00
Michael Fritch
9ac2ab85cb
cephadm: run containers using --init by default
generally all ceph containers need an init process to both reap any
zombie pids and/or perform signal handling (e.g. coredumps, etc.)

Signed-off-by: Michael Fritch <mfritch@suse.com>
2021-02-05 08:03:49 -07:00
Michael Fritch
d89fae5c9d
doc/man/cephadm: add missing --container-init flag
adopt command allows for the `--container-init` flag

Signed-off-by: Michael Fritch <mfritch@suse.com>
2021-02-05 08:03:43 -07:00
Ilya Dryomov
fcb0334156
Merge pull request #39064 from idryomov/wip-doc-osdtimeout
doc: don't mention osdtimeout option in mount.ceph man page

Reviewed-by: Jeff Layton <jlayton@redhat.com>
2021-01-26 13:37:10 +01:00
Ilya Dryomov
4cbd952916
Merge pull request #39060 from idryomov/wip-krbd-msgr2
krbd: add support for msgr2 (kernel 5.11)

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2021-01-26 11:46:08 +01:00
Ilya Dryomov
fd5f5722a2 doc: deprecate [no]cephx_require_signatures map options
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2021-01-25 21:17:44 +01:00
Ilya Dryomov
08f714964b krbd: add support for msgr2
Recognize ms_mode map option and filter initial monitor addresses
accordingly: if ms_mode is not given or ms_mode=legacy, discard v2
addresses, otherwise discard v1 addresses.

Note that nothing was discarded (i.e. v2 addresses were passed to
the kernel) previously.  The intent was to preserve that behaviour
in case ms_mode is not given, allowing to change the kernel default
in the future.  However, it turns out that mount.ceph helper has
been misguidedly discarding v2 addresses since commit eae0127513
("mount.ceph: fork a child to get info from local configuration"),
so that ship has sailed.

Fixes: https://tracker.ceph.com/issues/48976
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2021-01-25 21:17:44 +01:00
Ilya Dryomov
ed3913f02c doc: don't mention osdtimeout option in mount.ceph man page
It was deprecated over 8 years ago and will be entirely removed in
kernel 5.12.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2021-01-25 18:44:56 +01:00
Adam Kupczyk
882714e0c9 tools/bluestore: Add command 'show-sharding' to ceph-bluestore-tool
Add command 'show-sharding' to ceph-bluestore-tool.

Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
2021-01-19 15:07:16 +01:00
Jason Dillaman
45addcbd2e
Merge pull request #38838 from orozery/rbd-encryption-cli
librbd: rbd encryption cli

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2021-01-13 19:49:23 -05:00
Patrick Donnelly
72c3b5e6a3
Merge PR #37876 into master
* refs/pull/37876/head:
	systemd: cephfs-mirror systemd unit files
	doc, man: man page for `cephfs-mirror` tool
	doc: document mirror daemon internals
	cephfs-mirror: switch to using PeerReplayer class
	cephfs-mirror: cancel ongoing snapshot syncs on dir removal
	cephfs-mirror: display peer snapshot sync stats
	cephfs-mirror: carve out (and implement) mirroring snapshots to peers
	cephfs-mirror: remove `cephfs_mirror_directory_choose_policy` option
	cephfs-mirror: include helper routines to separate source
	cephfs-mirror: remove peer only when peer is tracked
	cephfs-mirror: typedef ceph_mount_info as MountRef shared pointer
	cephfs-mirror: enclose json dump in object section
	cephfs-mirror: note current peer set
	cephfs-mirror: fix option typo and document certain options
	cephfs-mirror: remove unnecessary command line options
	cephfs-mirror: default log level 0/5

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2021-01-13 08:26:05 -08:00
Or Ozeri
b2c3d5d4b2 librbd: add encryption cli
This commit adds rbd encryption cli (encryption format and nbd map)

Signed-off-by: Or Ozeri <oro@il.ibm.com>
2021-01-13 17:57:17 +02:00
Venky Shankar
42233bb5df doc, man: man page for cephfs-mirror tool
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2021-01-12 05:57:32 -05:00
Jeff Layton
dac04fc19f doc: document ms_mode option in the mount.ceph manpage
Fixes: https://tracker.ceph.com/issues/48838
Signed-off-by: Jeff Layton <jlayton@redhat.com>
2021-01-11 15:42:14 -05:00
Venky Shankar
4dd3f42552 doc, man: man page for cephfs-top utility
Fixes: http://tracker.ceph.com/issues/48602
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2021-01-11 06:15:53 -05:00
Patrick Donnelly
d03064d930
Merge PR #38642 into master
* refs/pull/38642/head:
	rpm/deb/cmake: install mount.fuse.ceph man page

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2021-01-08 15:12:42 -08:00
Jason Dillaman
b885dfe455
Merge pull request #38670 from Rethan/doc-fix-max_part-description
doc/rbd-nbd: fix description for command rbd-nbd's parameter --max_part

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2020-12-21 09:13:37 -05:00
haoyixing
90e3740582 doc/rbd-nbd: fix description for command rbd-nbd's parameter --max_part
The parameter --max_part should actually override module param max_part,
not as nbds_max as it said.

Signed-off-by: haoyixing <haoyixing@kuaishou.com>
2020-12-21 16:46:45 +08:00
Ken Dreyer
ad85bdf8de rpm/deb/cmake: install mount.fuse.ceph man page
Install the mount.fuse.ceph man page and ship it in the ceph-fuse
packaging along with the corresponding mount.fuse.ceph binary.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
2020-12-17 16:30:07 -07:00
Kefu Chai
c17c6c66eb ceph-conf: add --pid option
this change partially reverts 1f09b19665,
and add "--pid" option, so user can specify the pid to override the $pid
meta variable when expanding options.

Fixes: https://tracker.ceph.com/issues/47977
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-12-16 02:01:12 +08:00
haoyixing
0e7e036aa7 doc/dev: use http://docs.ceph.com/en/latest/ instead of /docs/master/ for docs
Several links under http://docs.ceph.com/docs/master/ were unable to access.
Change them to http://docs.ceph.com/en/lastest so we can access them directly.

Signed-off-by: haoyixing <haoyixing@kuaishou.com>
2020-11-24 12:49:47 +08:00
Jason Dillaman
c4be773b27 doc/man: add new RBD migration prepare source-spec optionals
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2020-11-02 19:58:55 -05:00
Jason Dillaman
0db501b2e3
Merge pull request #37273 from trociny/wip-rbd-nbd-persist
rbd-nbd: allow to restart daemon without destroying device

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2020-10-26 07:57:47 -04:00
Adam King
5224c5baf4 doc: document additional journal args in cephadm logs command
Signed-off-by: Adam King <adking@redhat.com>
2020-10-20 16:08:28 -04:00
Mykola Golub
5486050a8c doc: update rbd-nbd man
Signed-off-by: Mykola Golub <mgolub@suse.com>
2020-10-13 18:32:50 +01:00
Alex Marangone
9ecdb34342 doc: update osdmaptool man page
Signed-off-by: Alex Marangone <amarangone@digitalocean.com>
2020-10-12 14:17:42 +08:00
Ilya Dryomov
a107c47360 rbd: make common options override krbd-specific options
ceph-csi has added support for passing custom map and unmap options via
mapOptions and unmapOptions storage class parameters.  However, it also
uses --read-only for implementing ROX (ReadOnlyMany) PVs.  If the user
supplies "mapOptions: rw", they will get around the intended read-only
restriction (at least on the block device).

ceph-csi could be patched to use "-o ro", but it actually makes sense
for common options to win over device type-specific equivalents.

Fixes: https://tracker.ceph.com/issues/47625
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2020-09-24 10:50:24 +02:00
Ilya Dryomov
6827bbbcfb
Merge pull request #36927 from idryomov/wip-krbd-noudev
krbd: optionally skip waiting for udev events

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Sébastien Han <seb@redhat.com>
2020-09-21 19:39:30 +02:00
Anthony D'Atri
815263b583 doc/man: Add optional reweight-by-utilization args
doc/mgr: Grammar and wording for Prometheus labels
doc/rados: Spelling and clarity

Signed-off-by: Anthony D'Atri <anthony.datri@gmail.com>
2020-09-20 22:47:01 -07:00
Ponnuvel Palaniyappan
d99d520493 doc: Fixed a number of typos in documentation
Signed-off-by: Ponnuvel Palaniyappan <pponnuvel@gmail.com>
2020-09-18 18:17:15 +01:00
Joshua Schmid
4057f30187
Merge pull request #37059 from guits/guits-cephadm-shell-multiple-mounts
cephadm: support multiple mounts when running interactive shell
2020-09-18 10:57:52 +02:00
Rishabh Dave
e461a763c8 doc: add "fs authorize" subcommand to ceph man page
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2020-09-17 10:06:21 +05:30
Guillaume Abrioux
3ed3cff0d0 cephadm: support multiple mounts when running shell
This commit adds the multiple mounts support when running the
interactive shell.

ie:
```
--mount /foo /bar:/bar:z
```

Keeping default destination `/mnt` when no destination is passed for
backward compatibility. In the above example `/foo` will be mounted in
`/mnt/foo` and `/bar` in `/bar`

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2020-09-15 16:44:47 +02:00
Sebastian Wagner
49d36740a0
Merge pull request #36822 from sebastian-philipp/cephadm-container-init
cephadm: Add --container-init
2020-09-11 11:12:21 +02:00
Sebastian Wagner
5339315052 mgr/cephadm: Call cephadm with --container-image
The kernel treats any process with PID 1 different. Especially
it does not generate a core dump. Call podman / docker with
--init in order to get core dumps.

In addition, we can now properly reap zombies processes.

Fixes: https://tracker.ceph.com/issues/44231

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-09-02 09:45:03 +02:00
Ilya Dryomov
2e657d134a krbd: optionally skip waiting for udev events
Add support for noudev option to allow mapping and unmapping images
from a privileged container in a non-initial network namespace (e.g.
when using Multus CNI).

Fixes: https://tracker.ceph.com/issues/47128
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2020-09-01 21:31:06 +02:00
Neha Ojha
78224c21d2 doc: add clean-temps to osdmaptool.rst
Signed-off-by: Neha Ojha <nojha@redhat.com>
2020-08-27 17:02:08 +00:00
Sebastian Wagner
786e1c175b cephadm: Add --container-image
The kernel treats any process with PID 1 different. Especially
it does not generate a core dump. Call podman / docker with
--init in order to get core dumps.

In addition, we can now properly reap zombies processes.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-08-26 14:48:31 +02:00
Sage Weil
dfd01d7653 blacklist -> blocklist
Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Neha Ojha <nojha@redhat.com>
2020-08-24 19:53:08 +00:00
Sebastian Wagner
20b679a892 doc/man/cephadm: Add missing parameters for ls
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-08-24 10:28:07 +02:00
Kefu Chai
c8bfc66f2d
Merge pull request #35789 from Reperator/fix-ceph-objectstore-tool-docs
doc/man/8/ceph-objectstore-tool.rst: remove duplicate lines

Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-08-21 18:31:20 +08:00
Juan Miguel Olmo Martínez
08c4a53e79
cephadm: Allow users to use a custom dashboard ssl port
This modification allows the user to create a new bootstrap cluster using a predefined SSl port for the dashboard.
If firewall is enabled, any new manager daemon deployed in new hosts will take care of open the required ports for all the services enabled in the manager.

Two new parameters for cephadm tool (aka binary or standalone):
Command bootstrap:
--ssl-dashboard-port SSL_DASHBOARD_PORT
                      Port number used to connect with dashboard using SSL
Command deploy:
--tcp-ports TCP_PORTS
                      List of tcp ports to open in the host firewall

Signed-off-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
2020-08-20 13:56:59 +02:00