]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agodoc/rados: Better block.db size recommendations for bluestore 32226/head
Neha [Thu, 12 Dec 2019 22:04:57 +0000 (22:04 +0000)]
doc/rados: Better block.db size recommendations for bluestore

Signed-off-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge PR #32148 into master
Sage Weil [Tue, 10 Dec 2019 20:33:02 +0000 (14:33 -0600)]
Merge PR #32148 into master

* refs/pull/32148/head:
doc/releases/nautilus: fix release notes (crash->device)

Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
5 years agoMerge pull request #32041 from dzafman/wip-balancer3-pending
David Zafman [Tue, 10 Dec 2019 18:56:04 +0000 (10:56 -0800)]
Merge pull request #32041 from dzafman/wip-balancer3-pending

release note: Add pending release notes for already merged code

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge PR #32127 into master
Sage Weil [Tue, 10 Dec 2019 18:16:23 +0000 (12:16 -0600)]
Merge PR #32127 into master

* refs/pull/32127/head:
mgr/rook: Added Mypy static type checking

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #32138 into master
Sage Weil [Tue, 10 Dec 2019 18:16:07 +0000 (12:16 -0600)]
Merge PR #32138 into master

* refs/pull/32138/head:
ceph-daemon: combine SUDO and ARGS into a single var

Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #32137 into master
Sage Weil [Tue, 10 Dec 2019 18:15:53 +0000 (12:15 -0600)]
Merge PR #32137 into master

* refs/pull/32137/head:
ceph-daemon: don't deref symlinks during chown

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #32145 into master
Patrick Donnelly [Tue, 10 Dec 2019 17:22:06 +0000 (09:22 -0800)]
Merge PR #32145 into master

* refs/pull/32145/head:
doc: show how to count jobs before triggering them

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #32140 from tchaikov/wip-cmake-cleanup
Kefu Chai [Tue, 10 Dec 2019 16:28:49 +0000 (00:28 +0800)]
Merge pull request #32140 from tchaikov/wip-cmake-cleanup

cmake: silence messages when cppcheck/IWYU is not found

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
5 years agoMerge pull request #31954 from dzafman/wip-42346
David Zafman [Tue, 10 Dec 2019 16:08:37 +0000 (08:08 -0800)]
Merge pull request #31954 from dzafman/wip-42346

osd: Use physical ratio for nearfull (doesn't include backfill resserve)

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoceph-daemon: don't deref symlinks during chown 32137/head
Michael Fritch [Tue, 10 Dec 2019 04:42:43 +0000 (21:42 -0700)]
ceph-daemon: don't deref symlinks during chown

- consolidate move/copy loop logic
- chown the actual file and not the symlink

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge PR #32132 into master
Sage Weil [Tue, 10 Dec 2019 14:49:52 +0000 (08:49 -0600)]
Merge PR #32132 into master

* refs/pull/32132/head:
osd/OSDMap: rename old calc_pg_role -> calc_pg_role_broken
osd/OSDMap: remove dead osd_is_valid_op_target
osd/OSDMap: fix get_pg_acting_role()
osd: use spg_t for pending_creates_from_osd
osd/OSDMap: drop unused get_pg_acting_role()
osd/OSDMap: fix+simplify is_up_acting_osd_shard
osd: use new and improved calc_pg_role()
osd/OSDMap: new calc_pg_role() that takes a pg_shard_t
osd/OSDMap: calc_pg_rank -> calc_pg_role
osd/PeeringState: debug lines for upacting_features, proc_lease
osd/PeeringState: use pg_vector_string for operator<<

Reviewed-by: Samuel Just <sjust@redhat.com>
5 years agodoc/releases/nautilus: fix release notes (crash->device) 32148/head
Sage Weil [Tue, 10 Dec 2019 14:32:02 +0000 (08:32 -0600)]
doc/releases/nautilus: fix release notes (crash->device)

Fix pending note for octopus too

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #31827 into master
Sage Weil [Tue, 10 Dec 2019 13:15:59 +0000 (07:15 -0600)]
Merge PR #31827 into master

* refs/pull/31827/head:
mgr/ssh: add 'upgrade check' command
ceph-daemon: add 'pull' command
mgr/orchestrator_cli: document orchestrator option
mgr/ssh: move entity name munging into a helper

Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agoMerge PR #31970 into master
Sage Weil [Tue, 10 Dec 2019 13:13:47 +0000 (07:13 -0600)]
Merge PR #31970 into master

* refs/pull/31970/head:
doc/releases: add Nautilus 14.2.5 to release timeline
doc/releases: add release notes for nautilus v14.2.5

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Jan Fajerski <jfajerski@suse.com>
Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #32141 from tchaikov/wip-doc-highlight-console
Kefu Chai [Tue, 10 Dec 2019 13:12:28 +0000 (21:12 +0800)]
Merge pull request #32141 from tchaikov/wip-doc-highlight-console

doc: use the console lexer for rendering command line sessions

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #31965 from rosinL/wip-osd-support-bond-network
Kefu Chai [Tue, 10 Dec 2019 13:07:29 +0000 (21:07 +0800)]
Merge pull request #31965 from rosinL/wip-osd-support-bond-network

osd/osd: Refactor get_iface_numa_node

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #27392 from rouming/bluestore-iouring
Kefu Chai [Tue, 10 Dec 2019 12:28:57 +0000 (20:28 +0800)]
Merge pull request #27392 from rouming/bluestore-iouring

os/bluestore: introduce new io_uring IO engine

Reviewed-by: Mark Nelson <mnelson@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #31979 from jan--f/c-v-patch-volumegroups
Sebastian Wagner [Tue, 10 Dec 2019 10:23:45 +0000 (11:23 +0100)]
Merge pull request #31979 from jan--f/c-v-patch-volumegroups

ceph-volume/test: patch VolumeGroups

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #32122 from s0nea/wip-dashboard-fix-tests
Lenz Grimmer [Tue, 10 Dec 2019 09:33:41 +0000 (09:33 +0000)]
Merge pull request #32122 from s0nea/wip-dashboard-fix-tests

qa/tasks/mgr/dashboard/test_health: update schema

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
5 years agodoc: show how to count jobs before triggering them 32145/head
Rishabh Dave [Tue, 10 Dec 2019 09:31:17 +0000 (15:01 +0530)]
doc: show how to count jobs before triggering them

Suggesting to use teuthology-suite command switch --dry-run for that.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
5 years agoos/bluestore: introduce new io_uring IO engine 27392/head
Roman Penyaev [Thu, 21 Mar 2019 17:10:11 +0000 (18:10 +0100)]
os/bluestore: introduce new io_uring IO engine

This implements low-level IO engine, which utilizes brand-new
io_uring IO interface: https://lwn.net/Articles/776428/

By default libaio is used.  If bluestore_ioring=true is set but kernel
does not support io_uring or architecture is not x86-64, libaio will be
used instead.

In current patch liburing library is used in order not to open code
everything.

In order to compile with liburing WITH_LIBURING=ON should be specified.

Signed-off-by: Roman Penyaev <rpenyaev@suse.de>
5 years agoos/bluestore: make abstract interface for any sorts of AIO queues
Roman Penyaev [Tue, 26 Mar 2019 09:10:50 +0000 (10:10 +0100)]
os/bluestore: make abstract interface for any sorts of AIO queues

In the next patch new io_uring API will be used instead of libaio.
So this prepares the abstract interface.

Signed-off-by: Roman Penyaev <rpenyaev@suse.de>
5 years agoMerge pull request #32007 from tchaikov/wip-osd-cleanup
Kefu Chai [Tue, 10 Dec 2019 09:18:03 +0000 (17:18 +0800)]
Merge pull request #32007 from tchaikov/wip-osd-cleanup

osd: use unique_ptr for managing life cycles

Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
5 years agoMerge pull request #31931 from majianpeng/bluestore-bugfix
Kefu Chai [Tue, 10 Dec 2019 09:13:21 +0000 (17:13 +0800)]
Merge pull request #31931 from majianpeng/bluestore-bugfix

os/bluestore: fix wakeup bug

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
5 years agoMerge pull request #32052 from mgfritch/wip-cd-standalone-tempfiles
Kefu Chai [Tue, 10 Dec 2019 08:57:48 +0000 (16:57 +0800)]
Merge pull request #32052 from mgfritch/wip-cd-standalone-tempfiles

ceph-daemon: clean-up tempfiles on EXIT

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agoMerge pull request #32100 from yehudasa/wip-43184
Yehuda Sadeh [Tue, 10 Dec 2019 05:51:27 +0000 (07:51 +0200)]
Merge pull request #32100 from yehudasa/wip-43184

qa: radosgw-admin: remove dependency on bunch package

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #31961 from joscollin/wip-B43038-subvolume-group-create-fail
Jos Collin [Tue, 10 Dec 2019 05:42:03 +0000 (11:12 +0530)]
Merge pull request #31961 from joscollin/wip-B43038-subvolume-group-create-fail

mgr/volumes: check for string values in uid/gid

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agodoc: use console lexer for rendering command line sessions 32141/head
Kefu Chai [Tue, 10 Dec 2019 04:41:36 +0000 (12:41 +0800)]
doc: use console lexer for rendering command line sessions

by default the pygements uses python lexer for rendering literal blocks,
and `#` is considered as the marker for inline comments. in this change,
the "console" lexer is specified explicitly. see
https://pygments.org/docs/lexers/#lexers-for-various-shells for more details,
in which "BashSessionLexer" is for this very use case.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #32124 into master
Patrick Donnelly [Tue, 10 Dec 2019 03:52:41 +0000 (19:52 -0800)]
Merge PR #32124 into master

* refs/pull/32124/head:
doc/cephfs/disaster-recovery-experts: Add link for scrub and note for scrub_path

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agocmake: silence messages when cppcheck/IWYU is not found 32140/head
Kefu Chai [Tue, 10 Dec 2019 03:03:13 +0000 (11:03 +0800)]
cmake: silence messages when cppcheck/IWYU is not found

* remove messages spit when these tools are not found
  they are not necessary for building Ceph. and the messages in the cmake
  output are distracting.
* fix a typo

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #27894 into master
Patrick Donnelly [Tue, 10 Dec 2019 01:05:52 +0000 (17:05 -0800)]
Merge PR #27894 into master

* refs/pull/27894/head:
cephfs-shell: Add default list to df
cephfs-shell: Add tests for df command
cephfs-shell: Fix 'df' command errors

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #32131 into master
Patrick Donnelly [Tue, 10 Dec 2019 00:39:36 +0000 (16:39 -0800)]
Merge PR #32131 into master

* refs/pull/32131/head:
codeowners: Add ceph2.py to @ceph/orchestrators

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #32038 into master
Patrick Donnelly [Tue, 10 Dec 2019 00:36:59 +0000 (16:36 -0800)]
Merge PR #32038 into master

* refs/pull/32038/head:
doc: reorganize CephFS landing page and ToC

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
5 years agoMerge PR #32098 into master
Sage Weil [Tue, 10 Dec 2019 00:29:41 +0000 (18:29 -0600)]
Merge PR #32098 into master

* refs/pull/32098/head:
ceph-daemon: py2: tolerate whitespace before config key name

Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agoMerge pull request #32037 from smithfarm/wip-43152-workaround
Nathan Cutler [Mon, 9 Dec 2019 23:42:16 +0000 (00:42 +0100)]
Merge pull request #32037 from smithfarm/wip-43152-workaround

build/ops: make-dist: default to no dashboard frontend build parallelism

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agodoc/releases: add Nautilus 14.2.5 to release timeline 31970/head
Nathan Cutler [Mon, 9 Dec 2019 22:28:58 +0000 (23:28 +0100)]
doc/releases: add Nautilus 14.2.5 to release timeline

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agodoc/releases: add release notes for nautilus v14.2.5
Nathan Cutler [Tue, 3 Dec 2019 11:53:08 +0000 (12:53 +0100)]
doc/releases: add release notes for nautilus v14.2.5

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoMerge pull request #32088 from idryomov/wip-krbd-exclusive-lock-fixups
Ilya Dryomov [Mon, 9 Dec 2019 21:59:13 +0000 (22:59 +0100)]
Merge pull request #32088 from idryomov/wip-krbd-exclusive-lock-fixups

qa: krbd_exclusive_option.sh: update for recent kernel changes

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge PR #32046 into master
Sage Weil [Mon, 9 Dec 2019 21:34:57 +0000 (15:34 -0600)]
Merge PR #32046 into master

* refs/pull/32046/head:
mgr/DaemonServer: fix 'osd ok-to-stop' for EC pools

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge PR #31489 into master
Sage Weil [Mon, 9 Dec 2019 20:46:39 +0000 (14:46 -0600)]
Merge PR #31489 into master

* refs/pull/31489/head:
pybind/rados: add WriteOp::writesame() and test WriteOp::writesame()
pybind/rados: add Ioctx::aio_writesame() and test Ioctx::aio_writesame()
pybind/rados: add Ioctx::writesame() and test Ioctx::writesame()

Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
5 years agoMerge PR #29214 into master
Sage Weil [Mon, 9 Dec 2019 20:46:09 +0000 (14:46 -0600)]
Merge PR #29214 into master

* refs/pull/29214/head:
mgr: templatize/generalize metrics collection interface

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #32102 into master
Sage Weil [Mon, 9 Dec 2019 20:44:37 +0000 (14:44 -0600)]
Merge PR #32102 into master

* refs/pull/32102/head:
mgr/diskprediction_local: import scipy early to fix self-test deadlock

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agorelease note: Add pending release notes for already merged code 32041/head
David Zafman [Thu, 5 Dec 2019 17:52:04 +0000 (09:52 -0800)]
release note: Add pending release notes for already merged code

Follow on to https://github.com/ceph/ceph/pull/31774

Signed-off-by: David Zafman <dzafman@redhat.com>
5 years agoMerge pull request #31794 from dillaman/wip-42889
Jason Dillaman [Mon, 9 Dec 2019 17:47:47 +0000 (12:47 -0500)]
Merge pull request #31794 from dillaman/wip-42889

librbd: disable zero-copy writes by default

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
5 years agoMerge pull request #32105 from junxfl/test1
Jason Dillaman [Mon, 9 Dec 2019 17:37:37 +0000 (12:37 -0500)]
Merge pull request #32105 from junxfl/test1

librbd: fix rbd_open_by_id, rbd_open_by_id_read_only

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #32109 from yehudasa/wip-42868
Daniel Gryniewicz [Mon, 9 Dec 2019 17:23:12 +0000 (12:23 -0500)]
Merge pull request #32109 from yehudasa/wip-42868

rgw: list buckets: don't return buckets if limit=0

5 years agoosd/OSDMap: rename old calc_pg_role -> calc_pg_role_broken 32132/head
Sage Weil [Mon, 9 Dec 2019 16:56:02 +0000 (10:56 -0600)]
osd/OSDMap: rename old calc_pg_role -> calc_pg_role_broken

Also primary_changed -> primary_changed_broken.

Logged this issue with https://tracker.ceph.com/issues/43213

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: combine SUDO and ARGS into a single var 32138/head
Michael Fritch [Mon, 9 Dec 2019 16:53:31 +0000 (09:53 -0700)]
ceph-daemon: combine SUDO and ARGS into a single var

- reduce the amount of typing/noise for each CEPH_DAEMON invocation
- ensure the `--image` param is passed to each test invocation
- allow passing additional args to ceph-daemon via CEPH_DAEMON_ARGS

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agoosd/OSDMap: remove dead osd_is_valid_op_target
Sage Weil [Mon, 9 Dec 2019 16:53:08 +0000 (10:53 -0600)]
osd/OSDMap: remove dead osd_is_valid_op_target

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd/OSDMap: fix get_pg_acting_role()
Sage Weil [Mon, 9 Dec 2019 16:47:49 +0000 (10:47 -0600)]
osd/OSDMap: fix get_pg_acting_role()

This needs to take an spgid in order to know what role the osd is
serving.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocodeowners: Add ceph2.py to @ceph/orchestrators 32131/head
Sebastian Wagner [Mon, 9 Dec 2019 16:46:57 +0000 (17:46 +0100)]
codeowners: Add ceph2.py to @ceph/orchestrators

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #32053 from votdev/left_align_badges
Lenz Grimmer [Mon, 9 Dec 2019 16:44:56 +0000 (16:44 +0000)]
Merge pull request #32053 from votdev/left_align_badges

mgr/dashboard: Left align badge datatable columns

Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agoosd: use spg_t for pending_creates_from_osd
Sage Weil [Mon, 9 Dec 2019 16:44:55 +0000 (10:44 -0600)]
osd: use spg_t for pending_creates_from_osd

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd/OSDMap: drop unused get_pg_acting_role()
Sage Weil [Mon, 9 Dec 2019 16:43:16 +0000 (10:43 -0600)]
osd/OSDMap: drop unused get_pg_acting_role()

No callers.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #31927 from bk201/wip-43072
Lenz Grimmer [Mon, 9 Dec 2019 16:42:54 +0000 (16:42 +0000)]
Merge pull request #31927 from bk201/wip-43072

mgr/dashboard: hide in-use devices when creating OSDs

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoosd/OSDMap: fix+simplify is_up_acting_osd_shard
Sage Weil [Mon, 9 Dec 2019 16:42:39 +0000 (10:42 -0600)]
osd/OSDMap: fix+simplify is_up_acting_osd_shard

Use the new calc_pg_role() to simplify this function

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #32084 from votdev/auth_service_observable
Lenz Grimmer [Mon, 9 Dec 2019 16:34:50 +0000 (16:34 +0000)]
Merge pull request #32084 from votdev/auth_service_observable

mgr/dashboard: Use Observable in auth.service

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
5 years agomgr/dashboard: Improve badge column template. (#32026)
Lenz Grimmer [Mon, 9 Dec 2019 16:32:03 +0000 (16:32 +0000)]
mgr/dashboard: Improve badge column template. (#32026)

mgr/dashboard: Improve badge column template.

Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
5 years agoMerge PR #31907 into master
Sage Weil [Mon, 9 Dec 2019 16:30:26 +0000 (10:30 -0600)]
Merge PR #31907 into master

* refs/pull/31907/head:
mgr/dashboard: properly handle a missing rbd-mirror service status
mgr: cull service daemons when the last instance has been removed
mgr: ensure new daemons are properly indexed by hostname

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
5 years agoqa: kernel.sh: unlock before rolling back 32088/head
Ilya Dryomov [Wed, 4 Dec 2019 18:08:46 +0000 (19:08 +0100)]
qa: kernel.sh: unlock before rolling back

"rbd snap rollback" expects an unlocked image, but we may get there
locked if object map is enabled (or if lock_on_read is specified in
rbd_default_map_options).

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
5 years agoqa: krbd_exclusive_option.sh: update for recent kernel changes
Ilya Dryomov [Wed, 4 Dec 2019 14:26:54 +0000 (15:26 +0100)]
qa: krbd_exclusive_option.sh: update for recent kernel changes

Since 5.3:
- a plain "rbd map" acquires the lock, so it's not different from
  "rbd map -o exclusive" in this regard
- if the lock is held by the exclusive peer, I/O is failed right away
  instead of blocking
- lock_timeout option is respected only by "rbd map" and not by I/O

Since 5.5:
- if the mapping is read-only, the lock isn't acquired

Added blacklisting test case, dropped lock_timeout test case.

Fixes: https://tracker.ceph.com/issues/43127
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
5 years agoosd: use new and improved calc_pg_role()
Sage Weil [Mon, 9 Dec 2019 15:44:11 +0000 (09:44 -0600)]
osd: use new and improved calc_pg_role()

An acting set might be [0,1,2,1], and we want pgs 1.0s2 and 1.0s4 on
osd.1 to get roles 1 and 3, respectively (instead of 1 and -1).  This
allows the second EC PG on the OSD to have role >= 0.

This probably was unnoticed before, but now it leads to hangs in the
rados/thrash-erasure-code collection because proc_lease() bails out
when is_nonprimary() fails (due to role < 0).

Fixes: https://tracker.ceph.com/issues/43189
Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd/OSDMap: new calc_pg_role() that takes a pg_shard_t
Sage Weil [Mon, 9 Dec 2019 15:41:31 +0000 (09:41 -0600)]
osd/OSDMap: new calc_pg_role() that takes a pg_shard_t

If you have an acting set like [0,1,2,1] then osd.1 has two possible roles
(1 and 3).  If we simply return the first one we see then we can't
correctly calculate a role for a pg like 1.0s3.  Take pg_shard_t instead.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd/OSDMap: calc_pg_rank -> calc_pg_role
Sage Weil [Mon, 9 Dec 2019 15:29:22 +0000 (09:29 -0600)]
osd/OSDMap: calc_pg_rank -> calc_pg_role

These were identical.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd/PeeringState: debug lines for upacting_features, proc_lease
Sage Weil [Mon, 9 Dec 2019 15:45:01 +0000 (09:45 -0600)]
osd/PeeringState: debug lines for upacting_features, proc_lease

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd/PeeringState: use pg_vector_string for operator<<
Sage Weil [Mon, 9 Dec 2019 15:44:39 +0000 (09:44 -0600)]
osd/PeeringState: use pg_vector_string for operator<<

This shows NONE instead of a numeric CRUSH_ITEM_NONE.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/tasks/mgr/dashboard/test_health: update schema 32122/head
Tatjana Dehler [Mon, 9 Dec 2019 12:45:45 +0000 (13:45 +0100)]
qa/tasks/mgr/dashboard/test_health: update schema

Fixes: https://tracker.ceph.com/issues/43195
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
5 years agomgr/rook: Added Mypy static type checking 32127/head
Sebastian Wagner [Mon, 9 Dec 2019 14:55:41 +0000 (15:55 +0100)]
mgr/rook: Added Mypy static type checking

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge PR #32009 into master
Sage Weil [Mon, 9 Dec 2019 14:23:44 +0000 (08:23 -0600)]
Merge PR #32009 into master

* refs/pull/32009/head:
doc: removes kube-helm installation instructions

Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agolibrbd: fix rbd_open_by_id, rbd_open_by_id_read_only 32105/head
yangjun [Sun, 8 Dec 2019 01:09:53 +0000 (09:09 +0800)]
librbd: fix rbd_open_by_id, rbd_open_by_id_read_only

These methods incorrectly delete ImageCtx on error, resulting
in double-free heap corruption.

Fixes: https://tracker.ceph.com/issues/43178
Signed-off-by: yangjun <yangjun@cmss.chinamobile.com>
5 years agomgr/volumes: check for string values in uid/gid 31961/head
Jos Collin [Tue, 3 Dec 2019 09:12:28 +0000 (14:42 +0530)]
mgr/volumes: check for string values in uid/gid

chown allows strings as per bbbfb44453f204286a8ff312349d42afde5fced6,
which caused this error. Eventhough uid/gid are input as CephInt, the
qa tests can pass in only string values to _fs_cmd. So try converting
the incoming uid/gid to int in create_subvolume and create_group.
It might be a valid string.

Fixes: https://tracker.ceph.com/issues/43038
Signed-off-by: Jos Collin <jcollin@redhat.com>
5 years agoMerge PR #31800 into master
Sage Weil [Mon, 9 Dec 2019 13:17:57 +0000 (07:17 -0600)]
Merge PR #31800 into master

* refs/pull/31800/head:
doc: Update commands in bootstrap.rst
Update doc/bootstrap.rst
Update doc/bootstrap.rst
Merge branch 'master' into wip-doc-prompts-update
doc: Update commands in bootstrap.rst

Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: py2: tolerate whitespace before config key name 32098/head
Sage Weil [Fri, 6 Dec 2019 21:43:23 +0000 (15:43 -0600)]
ceph-daemon: py2: tolerate whitespace before config key name

The py2 ConfigParser doesn't like whitespace before the config option
name.  (The py3 version doesn't care.)  Filter it out before parsing.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agodoc/cephfs/disaster-recovery-experts: Add link for scrub and note for scrub_path 32124/head
Varsha Rao [Mon, 9 Dec 2019 12:47:41 +0000 (18:17 +0530)]
doc/cephfs/disaster-recovery-experts: Add link for scrub and note for scrub_path

Fixes: https://tracker.ceph.com/issues/22204
Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agoMerge pull request #32106 from taodd/ceph-volume-fix-env
Jan Fajerski [Mon, 9 Dec 2019 10:46:18 +0000 (11:46 +0100)]
Merge pull request #32106 from taodd/ceph-volume-fix-env

ceph-volume: fix the integer overflow

5 years agomgr/dashboard: add smartctl data as a details tab of a host (#30594)
Lenz Grimmer [Mon, 9 Dec 2019 09:42:23 +0000 (09:42 +0000)]
mgr/dashboard: add smartctl data as a details tab of a host (#30594)

mgr/dashboard: add smartctl data as a details tab of a host

Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoqa: radosgw-admin: remove dependency on bunch package 32100/head
Yehuda Sadeh [Sat, 7 Dec 2019 09:12:19 +0000 (01:12 -0800)]
qa: radosgw-admin: remove dependency on bunch package

Fixes: https://tracker.ceph.com/issues/43184
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
5 years agoMerge PR #29687 into master
Sage Weil [Sun, 8 Dec 2019 21:24:13 +0000 (15:24 -0600)]
Merge PR #29687 into master

* refs/pull/29687/head:
test/store_test: test coverage for anti-spillover framework.
os/bluestore: introduce bluestore_volume_selection_reserved cfg option.
os/bluestore: beautify RocksDBBlueFSVolumeSelector::dump output
os/bluestore: introduce 'bluestore bluefs stats' admin socket command
os/bluestore: implement more intelligent DB volume space managment for BlueFS.
os/kv: add static method to parse RocksDB options
os/bluestore: introduce volume selector abstraction to BlueFS

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #32108 into master
Sage Weil [Sun, 8 Dec 2019 19:26:32 +0000 (13:26 -0600)]
Merge PR #32108 into master

* refs/pull/32108/head:
ceph-daemon: remove prepare-host

Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agoceph-daemon: remove prepare-host 32108/head
Sage Weil [Sun, 8 Dec 2019 05:39:17 +0000 (23:39 -0600)]
ceph-daemon: remove prepare-host

I thought I took this out of the PR but somehow it got merged in... must
have repushed and old branch and not realized.  :/

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #31959 into master
Sage Weil [Sun, 8 Dec 2019 16:15:48 +0000 (10:15 -0600)]
Merge PR #31959 into master

* refs/pull/31959/head:
os/bluestore/BlueStore.cc: set priorities for compression stats

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Igor Fedotov <ifedotov@suse.com>
5 years agoMerge PR #31995 into master
Sage Weil [Sun, 8 Dec 2019 16:15:17 +0000 (10:15 -0600)]
Merge PR #31995 into master

* refs/pull/31995/head:
msg/async: No need lock for func _filter_addrs

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #32101 into master
Sage Weil [Sun, 8 Dec 2019 16:14:50 +0000 (10:14 -0600)]
Merge PR #32101 into master

* refs/pull/32101/head:
mgr/orchestrator_cli: make rgw rm take realm+zone
qa/tasks/mgr/test_orchestrator_cli: fix rgw add test

Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agorgw: list buckets: don't return buckets if limit=0 32109/head
Yehuda Sadeh [Sun, 8 Dec 2019 11:08:46 +0000 (03:08 -0800)]
rgw: list buckets: don't return buckets if limit=0

Fixes: https://tracker.ceph.com/issues/42868
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
5 years agomgr/orchestrator_cli: make rgw rm take realm+zone 32101/head
Sage Weil [Sat, 7 Dec 2019 14:15:17 +0000 (08:15 -0600)]
mgr/orchestrator_cli: make rgw rm take realm+zone

And adjust test accordingly

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-volume: fix the type mismatch, covert the tries and interval to int from string. 32106/head
taodd [Sun, 8 Dec 2019 02:10:59 +0000 (10:10 +0800)]
ceph-volume: fix the type mismatch, covert the tries and interval to int from string.
Fixes: https://tracker.ceph.com/issues/43186
Signed-off-by: dongdong tao <dongdong.tao@canonical.com>
5 years agomgr/diskprediction_local: import scipy early to fix self-test deadlock 32102/head
Sage Weil [Sat, 7 Dec 2019 21:34:59 +0000 (15:34 -0600)]
mgr/diskprediction_local: import scipy early to fix self-test deadlock

We are seeing a hang on centos7 (but not ubuntu 18.04) from

        from .predictor import get_diskfailurepredictor_path

in _predict_life_expentancy.

Doing that same predictor import at the top of the file doesn't help--it
hangs right when the diskpredictor_local module is loaded.  Commenting
out the import scipy in predictor.py avoids the hang.

I'm not sure why, but doing the full scipy import here appears to work
around the problem.

Fixes: https://tracker.ceph.com/issues/42764
Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #32043 into master
Sage Weil [Sat, 7 Dec 2019 20:43:07 +0000 (14:43 -0600)]
Merge PR #32043 into master

* refs/pull/32043/head:
os/bluestore: default bluestore_block_size 1T -> 100G

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
5 years agoMerge PR #32044 into master
Sage Weil [Sat, 7 Dec 2019 20:42:49 +0000 (14:42 -0600)]
Merge PR #32044 into master

* refs/pull/32044/head:
mon/OSDMonitor: make memory autotune disable itself if no rocksdb

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge PR #31581 into master
Sage Weil [Sat, 7 Dec 2019 18:35:58 +0000 (12:35 -0600)]
Merge PR #31581 into master

* refs/pull/31581/head:
mon: fix mon_sync_max_payload_size type
mon: cap keys in mon_sync messages
mon/MonitorDBStore: improve get_chunk_tx limits
mon/MonitorDBStore: better size estimation for Transaction

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #32048 into master
Sage Weil [Sat, 7 Dec 2019 18:35:20 +0000 (12:35 -0600)]
Merge PR #32048 into master

* refs/pull/32048/head:
mon/PGMap: use NONE for 'pg ls[-*]' output too

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #32039 into master
Sage Weil [Sat, 7 Dec 2019 18:28:15 +0000 (12:28 -0600)]
Merge PR #32039 into master

* refs/pull/32039/head:
test: Improve races by using kill_daemons which waits for OSDs terminate
test: run-standalone.sh: Only run execs in the subdirectories of qa/standalone
test: Use activate_osd() when restarting OSDs
test: osd-scrub-snaps.sh: Fix race with osd restart and doing a scrub

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoqa/tasks/mgr/test_orchestrator_cli: fix rgw add test
Sage Weil [Sat, 7 Dec 2019 14:14:59 +0000 (08:14 -0600)]
qa/tasks/mgr/test_orchestrator_cli: fix rgw add test

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #32010 into master
Sage Weil [Sat, 7 Dec 2019 14:05:49 +0000 (08:05 -0600)]
Merge PR #32010 into master

* refs/pull/32010/head:
mgr/ssh: Add module to static type checking from tox.
mgr/orchestrator: Add mypy static type checking

Reviewed-by: Thomas Bechtold <tbechtold@suse.com>
Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #32023 into master
Sage Weil [Sat, 7 Dec 2019 14:05:24 +0000 (08:05 -0600)]
Merge PR #32023 into master

* refs/pull/32023/head:
qa/tasks/mgr/test_orchestrator_cli: test with valid network or IP
qa/orchestrator: do not test "mon update 3 host1"

Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Joshua Schmid <jschmid@suse.de>
5 years agotest: Improve races by using kill_daemons which waits for OSDs terminate 32039/head
David Zafman [Fri, 6 Dec 2019 20:44:57 +0000 (12:44 -0800)]
test: Improve races by using kill_daemons which waits for OSDs terminate

osd-backfill-space.sh: More sleep time to make sure the backfill gets started

Signed-off-by: David Zafman <dzafman@redhat.com>
5 years agoqa/tasks/mgr/test_orchestrator_cli: test with valid network or IP 32023/head
Sage Weil [Fri, 6 Dec 2019 21:54:06 +0000 (15:54 -0600)]
qa/tasks/mgr/test_orchestrator_cli: test with valid network or IP

Passing 'network' will fail with

Error EINVAL: Failed to parse host list: '['host1:network', 'host2:network', 'host3:network']': u'network' does not appear to be an IPv4 or IPv6 address

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #32096 into master
Sage Weil [Sat, 7 Dec 2019 03:23:55 +0000 (21:23 -0600)]
Merge PR #32096 into master

* refs/pull/32096/head:
ceph-daemon: fix firewalld error case

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge PR #32097 into master
Sage Weil [Sat, 7 Dec 2019 03:23:43 +0000 (21:23 -0600)]
Merge PR #32097 into master

* refs/pull/32097/head:
ceph-daemon: fix bootstrap ownership of tmp monmap file

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge PR #32051 into master
Sage Weil [Fri, 6 Dec 2019 22:19:09 +0000 (16:19 -0600)]
Merge PR #32051 into master

* refs/pull/32051/head:
mgr: simply exit on SIGINT or SIGTERM

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>