1
0
mirror of https://github.com/ceph/ceph synced 2025-03-04 15:31:44 +00:00
Commit Graph

109377 Commits

Author SHA1 Message Date
Deepika Upadhyay
b69dcaa18c mon: calculate min_size on osd pool set size
currently `osd pool set size` only modifies min_size when it is above new size,
while it should be recalculated unconditionally.

fixes: https://tracker.ceph.com/issues/44862
Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
2020-04-02 12:30:29 +05:30
Kefu Chai
48942dc3bd
Merge pull request from tchaikov/wip-44658
ceph.spec.in: add build deps for Debug build of seastar

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2020-03-19 10:10:28 +08:00
Jan Fajerski
d7753e3a02
Merge pull request from jan--f/c-v-prepare-slots
ceph-volume: prepare: use *-slots arguments for implicit sizing
2020-03-18 13:04:16 +01:00
Lenz Grimmer
921199b679
Merge pull request from tspmelo/wip-update-prettier
mgr/dashboard: Update prettier

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
2020-03-18 12:24:00 +01:00
Kefu Chai
32bcb7964c
Merge pull request from grinapo/patch-1
doc/rbd: s/use use/use/

Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-03-18 16:27:30 +08:00
Peter Gervai
cb20e2bc89 doc/rbd: s/use use/use/
just a typo, really.

Signed-off-by: Peter Gervai <grin@grin.hu>
2020-03-18 15:44:16 +08:00
Kefu Chai
293e8bdf6c ceph.spec.in: add build deps for Debug build of seastar
it's a regression introduced by
6158bcfdef, which dropped the change to
make Sanitizers optional

since we've switched from xenial to bionic. there is no need to disable
this anymore. we ran into an issue caused by the ancient linker shipped
by xenial before.

Fixes: https://tracker.ceph.com/issues/44658
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-03-18 11:02:23 +08:00
Tiago Melo
bd08daad2e mgr/dashboard: Update prettier
Fix all new linting errors.

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

Signed-off-by: Tiago Melo <tmelo@suse.com>
2020-03-17 16:25:22 -01:00
Kefu Chai
3e7ea7bb67
Merge pull request from xxhdx1985126/wip-crimson-osd-report-failure
crimson/heartbeat: report to monitors about osd failure

Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-03-17 19:00:46 +08:00
Xuehan Xu
cf16d37e22 crimson/os/heartbeat: report peer failure to monitors
Signed-off-by: Xuehan Xu <xxhdx1985126@163.com>
2020-03-17 17:12:30 +08:00
Kefu Chai
fb88d3f687
Merge pull request from tchaikov/wip-cmake-mgr-rook-client
cmake: rook-ceph-client related cleanups.

Reviewed-by: Sebastian Wagner <swagner@suse.com>
2020-03-17 14:41:03 +08:00
Kefu Chai
3b6fc96bf9
Merge pull request from optimistyzy/316_increase_que_size_upstream
NVMEDevice: set the queue_size of the ctrlr opts.

Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-03-17 12:25:58 +08:00
Ziye Yang
c59c4b1965 NVMEDevice: set the queue_size of the ctrlr opts.
Purpose: Allocate more resoures for the requests in the io qpair,
and the real value will be determined by the inner logic in SPDK NVMe Driver.
But if we do not set it, the default size is 512, and the value is too low.
If there are many big I/Os with high QD submitted, with this setting,
it could improve the performance.

Signed-off-by: Ziye Yang <ziye.yang@intel.com>
2020-03-17 19:38:22 +08:00
Sage Weil
7f0c3c4f37 Merge remote-tracking branch 'gh/octopus' 2020-03-16 12:47:25 -05:00
Sage Weil
dd20ffe2f5 Merge PR into octopus
* refs/pull/33979/head:
	cephadm: implement 'install' command

Reviewed-by: Michael Fritch <mfritch@suse.com>
2020-03-16 12:34:16 -05:00
Mykola Golub
252be9014d
Merge pull request from dillaman/wip-44391
rbd-mirror: hold lock while updating local image name

Reviewed-by: Mykola Golub <mgolub@suse.com>
2020-03-16 19:18:35 +02:00
Lenz Grimmer
cf01ccc2fd
Merge pull request from rhcs-dashboard/44545-fix-vstart-runner
vstart_runner.py: fix OSError when checking if non-existent path is mounted

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-03-16 17:27:28 +01:00
Sage Weil
f979dd1ebf cephadm: implement 'install' command
This was present, but a no-op.

By default, install cephadm.

Optionally take a list of packages to install instead (e.g., ceph-common).

Signed-off-by: Sage Weil <sage@redhat.com>
2020-03-16 08:24:36 -05:00
Jason Dillaman
b3c7efbd45 rbd-mirror: hold lock while updating local image name
There is a potential for an independently scheduled status update to
request the local image name from the bootstrap state machine during its
initialization.

Fixes: https://tracker.ceph.com/issues/44391
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2020-03-16 09:16:03 -04:00
Kefu Chai
a2a44e05d3
Merge pull request from tchaikov/wip-octopus-formatting
doc/releases/octopus.rst: formatting tweaks

Reviewed-by: Sage Weil <sage@redhat.com>
2020-03-16 21:04:41 +08:00
Sage Weil
85aecea51a Merge PR into octopus
* refs/pull/33980/head:
	cephadm: bootstrap: allow --output-dir
	cephadm: do not infer image for bootstrap
	cephadm: write output files to /etc/ceph by default
	cephadm: verify the output files' containing directory exists

Reviewed-by: Michael Fritch <mfritch@suse.com>
2020-03-16 07:44:59 -05:00
Kefu Chai
1b17f742c9 doc/releases/octopus.rst: use note directive for notes
so the note stands out in the text

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-03-16 20:12:53 +08:00
Kefu Chai
fbd4b59742 doc/releases/octopus.rst: add '$' as prompt
to help the BashSession lexer to render the text starting with "#" as comments

see https://pygments.org/docs/lexers/#lexers-for-various-shells

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-03-16 20:12:53 +08:00
Kefu Chai
2a2ce99dc5 doc/releases/octopus: decrease the indent level
for less and better horizontal spacing

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-03-16 20:12:53 +08:00
Kefu Chai
c555a4e10d doc/_static/css: fine tune the spacing
* `ul.simple > li` is also used in front page, where the items are too
  sparse now. so we need to restore the default spacing.
* `ul.simple > li > ul > li:last-child` is used to control the spacing
  between nested unordered list. we need have more spacing there.
* `div.section > ul > li > p` is added to decrease the spacing of nested
  list items.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-03-16 20:12:38 +08:00
Kefu Chai
6421605d5f
Merge pull request from tchaikov/wip-crimson-tell
crimson/osd: add tell command support

Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
2020-03-16 11:12:37 +08:00
Kefu Chai
a9a93ad7e5
Merge pull request from tchaikov/octopus-doc-release
doc/releases/octopus.rst: format tweaks

Reviewed-by: Sage Weil <sage@redhat.com>
2020-03-16 11:11:15 +08:00
Sage Weil
c74d7a0667 Merge PR into octopus
* refs/pull/33968/head:
	mgr/cephadm: do not include 'osd' service in 'orch ls' output

Reviewed-by: Michael Fritch <mfritch@suse.com>
2020-03-15 21:26:20 -05:00
Sage Weil
9194a33adb Merge PR into octopus
* refs/pull/33970/head:
	python-common: 'all:true' -> '*'

Reviewed-by: Michael Fritch <mfritch@suse.com>
2020-03-15 21:01:50 -05:00
Sage Weil
334dede198 Merge PR into octopus
* refs/pull/33973/head:
	mgr/orch,cephadm: elevate --force flag for daemons to interface
	cephadm: backup data when we remove stateful daemons (mon, osd, prometheus)
	cephadm: do not zap disk after removing an OSD daemon

Reviewed-by: Michael Fritch <mfritch@suse.com>
2020-03-15 21:01:07 -05:00
Sage Weil
05b8f07313 Merge PR into octopus
* refs/pull/33935/head:
	mgr/cephadm: fix host connection exception
	doc/cephadm: use ssh-copy-id

Reviewed-by: Joshua Schmid <jschmid@suse.de>
2020-03-15 14:38:30 -05:00
Kefu Chai
5d6a1998c7 doc/releases/octopus.rst: reindent top-level items
reduce the indent level, so these items are better formated

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-03-16 02:00:46 +08:00
Kefu Chai
0299336c69 doc/releases/octopus.rst: formatting tweaks
* use console lexer for highlighting command lines
  otherwise they will be rendered as python code
* use bold font instead italic in subsection headers,
  they look more formal this way
* fix a typo: delineated

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-03-16 02:00:46 +08:00
Kefu Chai
611eb5b6d8 doc/releases: fix hyper link
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-03-16 02:00:46 +08:00
Kefu Chai
cdc169feaa doc/release: fix "CephFS" subsection heading
it's a regression introduced by 26db06cf21

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-03-16 02:00:46 +08:00
Sage Weil
fc101d8fb0 cephadm: bootstrap: allow --output-dir
This is easier than specifying each of output-config, output-keyring, and
output-pub-ssh-key.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-03-15 10:19:22 -05:00
Sage Weil
15a893811a cephadm: do not infer image for bootstrap
Signed-off-by: Sage Weil <sage@redhat.com>
2020-03-15 10:19:22 -05:00
Sage Weil
42b1dd2e93 cephadm: write output files to /etc/ceph by default
This streamlines the install for most users by putting the config and
keyring files in /etc/ceph, where other ceph CLI commands will find them.

The cost is making isolated installs a bit more painful, by requiring
that users specify a local location for --output-config etc.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-03-15 10:19:22 -05:00
Sage Weil
6d4ffc675a cephadm: verify the output files' containing directory exists
Signed-off-by: Sage Weil <sage@redhat.com>
2020-03-15 10:19:22 -05:00
Sage Weil
87e18ebb77 Merge PR into octopus
* refs/pull/33977/head:
	pybind/mgr: apply_drivegroups should return Sequence[Completion]

Reviewed-by: Sage Weil <sage@redhat.com>
2020-03-15 08:01:45 -05:00
Kefu Chai
a19a81edcd crimson/admin: revise doxygen docs
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-03-15 20:56:47 +08:00
Kefu Chai
26d3e3ef5e crimson/admin: drop unused functions
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-03-15 20:56:47 +08:00
Kefu Chai
b6a932ac85 crimson/osd: add tell command support
* change the function signature of `call()` to accept a bufferlist,
  as MCommand is supposed to carry a bufferlist which can be consumed
  by the hook.
* drop the wrapper of `tell()`, instead always use `call()`. simpler
  this way.
* promote `tell_result_t` to top level of `crimson::admin` as it is used
  as part of the interface between hook and `AdminSocket`
* replace `maybe_parsed_t` with `std::variant<parsed_command_t, tell_result_t>`,
  as the latter is able to convey more detailed error information if
  something goes wrong.
* osd now handles `MCommand`.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-03-15 20:56:47 +08:00
Kefu Chai
cb3bff0541 crimson/asok: pass vector<string> to parse_cmd()
prepare for the tell command, as the payload of MCommand is a
`vector<string>`, and `cmdmap_from_json()` expects a `vector<string>`

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-03-15 20:56:47 +08:00
Kefu Chai
54ec595811 pybind/mgr: apply_drivegroups should return Sequence[Completion]
* change annotation of `orchestrator.Orchestrator.apply_drivegroups()` so it returns
  `Sequence[Completion]`
  see
  https://mypy.readthedocs.io/en/latest/generics.html#variance-of-generic-types
* to follow the interface defined by `orchestrator.Orchestrator`. change
  all its implementations. see `orchestrator/_interface.py`.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-03-15 12:39:46 +08:00
Sage Weil
903f4590c3 mgr/orch,cephadm: elevate --force flag for daemons to interface
Apply this check in the generic orchestrator code so that it applies
consistently to all implementations.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-03-14 17:16:37 -05:00
Sage Weil
cbdf6fe229 cephadm: backup data when we remove stateful daemons (mon, osd, prometheus)
This avoids doing permanent damage when removing stateful daemons.

We include OSDs here even though in most cases no precious data lives in
the osd data directory because there might be some important metadata
there--particularly for adopted OSDs from older clusters.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-03-14 14:56:40 -05:00
Sage Weil
65027e9e79 cephadm: do not zap disk after removing an OSD daemon
Signed-off-by: Sage Weil <sage@redhat.com>
2020-03-14 14:56:40 -05:00
Sage Weil
bbeefb2c10 Merge PR into octopus
* refs/pull/33922/head:
	qa/tasks/mgr/test_orchestrator_cli: adapt
	qa/suites/rados/cephadm/upgrade: start from compatible build
	mgr/cephadm: refine log message
	python-common: correctly dictify DriveGroupSpec objects when paths are used
	mgr/cephadm: adapt test_cephadm.sh to new syntax
	mgr/cephadm: adapt qa->test_cephadm.sh
	qa/tasks/cephadm: use 'orch daemon osd add'
	mgr/cephadm: adapt osd deployment to service_apply

Reviewed-by: Sage Weil <sage@redhat.com>
2020-03-14 10:52:05 -05:00
Sage Weil
279cfb551f qa/tasks/mgr/test_orchestrator_cli: adapt
Signed-off-by: Sage Weil <sage@redhat.com>
2020-03-14 10:18:25 -05:00