]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
4 years agodoc/cephfs/nfs: Add rook pod restart note, export and log block example 38955/head
Varsha Rao [Mon, 18 Jan 2021 16:24:32 +0000 (21:54 +0530)]
doc/cephfs/nfs: Add rook pod restart note, export and log block example

Fixes: https://tracker.ceph.com/issues/48914
Signed-off-by: Varsha Rao <varao@redhat.com>
4 years agoMerge pull request #39041 from ifed01/wip-ifed-fix-48966
Igor Fedotov [Tue, 2 Feb 2021 11:10:01 +0000 (14:10 +0300)]
Merge pull request #39041 from ifed01/wip-ifed-fix-48966

os/bluestore: fix a bug causing unexpected Onode's unpinned state.

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge PR #38869 into master
Jan Fajerski [Tue, 2 Feb 2021 09:46:35 +0000 (10:46 +0100)]
Merge PR #38869 into master

* refs/pull/38869/head:
ceph-volume: Fix usage of is_lv

Reviewed-by: Jan Fajerski <jfajerski@suse.com>
4 years agoMerge pull request #38975 from athanatos/sjust/wip-seastore-pipelines
Kefu Chai [Tue, 2 Feb 2021 09:40:37 +0000 (17:40 +0800)]
Merge pull request #38975 from athanatos/sjust/wip-seastore-pipelines

seastore: update to support pipelined write operations

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoos/bluestore: fix a bug causing unexpected Onode's unpinned state. 39041/head
Igor Fedotov [Sat, 23 Jan 2021 17:33:13 +0000 (20:33 +0300)]
os/bluestore: fix a bug causing unexpected Onode's unpinned state.

There could be a race for Onodes put() and get() methods:

put()(pinned, nref=3)
  int n = --nref; (nref = 2)
  if (n == 2) {
    ..
    std::lock_guard l(ocs->lock);
    ...
    pinned = pinned && nref > 2; (= false)
    ...                                     get()
    if (r) {                                ++nref; (=3)
      n = --nref; (nref = 2)                return;
    }
    ...
    return

As a result nref = 2, pinned = false which is wrong

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
4 years agoMerge pull request #39205 from rzarzynski/wip-crimson-configurable-alien-threads-num
Kefu Chai [Tue, 2 Feb 2021 06:04:59 +0000 (14:04 +0800)]
Merge pull request #39205 from rzarzynski/wip-crimson-configurable-alien-threads-num

crimson: make the number of alien threads configurable.

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Mark Nelson <mnelson@redhat.com>
4 years agoMerge pull request #38956 from zdover23/2021_Jan_19_release_notes_grammar
Josh Durgin [Mon, 1 Feb 2021 23:31:48 +0000 (15:31 -0800)]
Merge pull request #38956 from zdover23/2021_Jan_19_release_notes_grammar

doc/PendingReleaseNotes: grammar and wording

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agoMerge PR #39149 into master
Sage Weil [Mon, 1 Feb 2021 22:25:01 +0000 (16:25 -0600)]
Merge PR #39149 into master

* refs/pull/39149/head:
qa/workunits/cephtool/test.sh: tolerate some settling for osd info vs dump test

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agocrimson/os/seastore/segment_cleaner: tolerate mark_space_used on closed segment 38975/head
Samuel Just [Tue, 19 Jan 2021 20:49:49 +0000 (12:49 -0800)]
crimson/os/seastore/segment_cleaner: tolerate mark_space_used on closed segment

A journal segment can be closed while outstanding writes on that
segment have not yet updated metadata.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/journal: tolerate journal rolls during commit
Samuel Just [Tue, 19 Jan 2021 20:48:36 +0000 (12:48 -0800)]
crimson/os/seastore/journal: tolerate journal rolls during commit

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore: add basic pipeline phases to TransactionManager
Samuel Just [Mon, 11 Jan 2021 23:03:31 +0000 (15:03 -0800)]
crimson/os/seastore: add basic pipeline phases to TransactionManager

We need to ensure that the metadata preperation and completions happen
in order.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/common/operation: add OrderedConcurrentPhase
Samuel Just [Tue, 19 Jan 2021 03:46:30 +0000 (19:46 -0800)]
crimson/common/operation: add OrderedConcurrentPhase

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agosrc/crimson/common: decouple handle from stage
Samuel Just [Mon, 18 Jan 2021 22:06:18 +0000 (14:06 -0800)]
src/crimson/common: decouple handle from stage

We're going to introduce stages with other properties.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore: fix find_hole
Samuel Just [Fri, 15 Jan 2021 01:26:13 +0000 (17:26 -0800)]
crimson/os/seastore: fix find_hole

We actually need to propogate eagain errors now, fix to use do_until.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore: annotate all assert_all instances
Samuel Just [Fri, 15 Jan 2021 01:25:48 +0000 (17:25 -0800)]
crimson/os/seastore: annotate all assert_all instances

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agostore-nbd: support concurrent operations
Samuel Just [Tue, 8 Dec 2020 23:49:34 +0000 (15:49 -0800)]
store-nbd: support concurrent operations

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore: validate node immediately prior to adding pin
Samuel Just [Thu, 14 Jan 2021 03:43:07 +0000 (03:43 +0000)]
crimson/os/seastore: validate node immediately prior to adding pin

Mostly, operating on an invalid extent is harmless by construction --
it'll be caught by the read set check in submit_transaction.  However,
prior to adding an extent to the lba pin set, we need to check that it's
really still live, which we can do by checking that it and its immediate
parent are still valid.  Mutating the target extent would have
invalidated it, and replacing the target extent would necessarily have
involved a mutation to the parent, which would have invalidated it.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore: expand error type for reads to include eagain
Samuel Just [Thu, 14 Jan 2021 07:42:36 +0000 (23:42 -0800)]
crimson/os/seastore: expand error type for reads to include eagain

There are cases where reads may detect an invalid cached extent and require
the user to restart the transaction.

As a side effect, clean up errorators to assert cases where construction
is invalid (invalid refcounts, enoent or invarg on node read, etc).  In
such cases, we may eventually want to introduce an internal_error error
type, but asserting is fine for now as we do not expect users to handle
these cases.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/common/errorator: add extend_ertr helper for merging errorators
Samuel Just [Thu, 14 Jan 2021 07:40:17 +0000 (23:40 -0800)]
crimson/common/errorator: add extend_ertr helper for merging errorators

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/cache: put root in t.mutated_extents and avoid special behavior
Samuel Just [Thu, 14 Jan 2021 01:54:42 +0000 (17:54 -0800)]
crimson/os/seastore/cache: put root in t.mutated_extents and avoid special behavior

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/common/operation.h: permit moving Handle objects
Samuel Just [Wed, 13 Jan 2021 06:00:57 +0000 (22:00 -0800)]
crimson/common/operation.h: permit moving Handle objects

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agotest/crimson/seastore/test_transaction_manager: add tests for concurrent IO
Samuel Just [Mon, 11 Jan 2021 23:03:24 +0000 (15:03 -0800)]
test/crimson/seastore/test_transaction_manager: add tests for concurrent IO

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/cached_extent: add asserts for debugging
Samuel Just [Mon, 11 Jan 2021 23:01:26 +0000 (15:01 -0800)]
crimson/os/seastore/cached_extent: add asserts for debugging

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agoMerge pull request #36518 from yongseokoh/fix-dashboard
Ernesto Puerta [Mon, 1 Feb 2021 20:46:44 +0000 (21:46 +0100)]
Merge pull request #36518 from yongseokoh/fix-dashboard

mgr/dashboard: Fix missing root path of each session for CephFS

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
4 years agoMerge pull request #38805 from kamoltat/wip-mgr-pg-autoscaler-improve-out-of-box...
Josh Durgin [Mon, 1 Feb 2021 19:33:55 +0000 (11:33 -0800)]
Merge pull request #38805 from kamoltat/wip-mgr-pg-autoscaler-improve-out-of-box-experience

pybind/mgr/pg_autoscaler: avoid scale-down until there is pressure

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agodoc/PendingReleaseNotes: grammar and wording 38956/head
Zac Dover [Mon, 18 Jan 2021 16:38:59 +0000 (02:38 +1000)]
doc/PendingReleaseNotes: grammar and wording

This commit vets the PendingReleaseNotes for Octopus.
This might not be the only commit that updates the
release notes, but it is the first by me.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
4 years agocrimson: make the number of alien threads configurable. 39205/head
Radoslaw Zarzynski [Mon, 1 Feb 2021 13:59:49 +0000 (14:59 +0100)]
crimson: make the number of alien threads configurable.

It's particularly important for reads to have large-enough
thread pool in `AlienStore` as they are synchronous; that
is, e.g. `BlueStore` blocks on IO when handling reads.

This commit introduces a configurable allowing operators
to increase the number from `1` which we were limited to
before the change.

Naming similarity with `osd_op_num_threads_per_shard` is
intentional.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agomgr/pg_autoscaler: avoid scale-down until there is pressure 38805/head
Kamoltat [Thu, 7 Jan 2021 15:39:19 +0000 (15:39 +0000)]
mgr/pg_autoscaler: avoid scale-down until there is pressure

The autoscaler will start out with scaling each
pools to have a full complements of pgs from the start
and will only decrease it when pools need more due to
increased usage.

Introduced a unit test that tests only the
function get_final_pg_target_and_ratio() which
deals with the distrubtion of pgs amongst the
pools

Edited workunit script to reflect the change
of how pgs are calculated and distrubted.

Signed-off-by: Kamoltat <ksirivad@redhat.com>
4 years agoMerge pull request #39200 from mitsu-ko/mypatch
Sebastian Wagner [Mon, 1 Feb 2021 12:22:50 +0000 (13:22 +0100)]
Merge pull request #39200 from mitsu-ko/mypatch

doc/mgr/orchestrator: Unify the content of command and yaml

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39201 from tchaikov/wip-sphinx-openapi
Kefu Chai [Mon, 1 Feb 2021 12:15:23 +0000 (20:15 +0800)]
Merge pull request #39201 from tchaikov/wip-sphinx-openapi

doc: silence warnings from openapi sphinx extension

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
4 years agoMerge pull request #39194 from tchaikov/wip-dashboard-enum
Kefu Chai [Mon, 1 Feb 2021 11:11:32 +0000 (19:11 +0800)]
Merge pull request #39194 from tchaikov/wip-dashboard-enum

pybind/mgr/dashboard: do not install enum34

Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
4 years agodoc/mgr/orchestrator: Unify the content of command and yaml 39200/head
Mitsumasa KONDO [Mon, 1 Feb 2021 09:44:49 +0000 (18:44 +0900)]
doc/mgr/orchestrator: Unify the content of command and yaml

Signed-off-by: Mitsumasa KONDO <kondo.mitsumasa@gmail.com>
4 years agodoc: silence warnings from openapi sphinx extension 39201/head
Kefu Chai [Mon, 1 Feb 2021 09:53:27 +0000 (17:53 +0800)]
doc: silence warnings from openapi sphinx extension

it prints out

skipping non-JSON example generation.

if an API does not contains example while ":example:" is specified for
openapi extension, and if this API is not a GET request, openapi
extention complains.

see also
https://github.com/sphinx-contrib/openapi/blob/9dbae9c9a65291c44b27041c63ded1b20611a2fc/sphinxcontrib/openapi/openapi30.py#L191

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39198 from tchaikov/wip-mypy.ini
Sebastian Wagner [Mon, 1 Feb 2021 08:48:04 +0000 (09:48 +0100)]
Merge pull request #39198 from tchaikov/wip-mypy.ini

mypy.ini: fix the unresolve conflict

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agoMerge pull request #39196 from badone/wip-doc-python3-api
zdover23 [Mon, 1 Feb 2021 07:18:35 +0000 (17:18 +1000)]
Merge pull request #39196 from badone/wip-doc-python3-api

doc/rados/api: Update code samples to python3

Reviewed-by: Zac Dover <zac.dover@gmail.com>
4 years agomypy.ini: fix the unresolved conflict 39198/head
Kefu Chai [Mon, 1 Feb 2021 06:53:03 +0000 (14:53 +0800)]
mypy.ini: fix the unresolved conflict

it was introduced by a0930a63106e9f0d556e18bd70ffca6566388742, i failed
to resolve this conflict when resolving the merge confliction.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agodoc/rados/api: Update code samples to python3 39196/head
Brad Hubbard [Mon, 1 Feb 2021 01:11:17 +0000 (11:11 +1000)]
doc/rados/api: Update code samples to python3

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
4 years agoMerge pull request #39106 from mgfritch/cephadm-apt-get
Kefu Chai [Sun, 31 Jan 2021 09:23:10 +0000 (17:23 +0800)]
Merge pull request #39106 from mgfritch/cephadm-apt-get

cephadm: use `apt-get` for package install/update

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
4 years agoMerge pull request #39131 from sebastian-philipp/rook-disable-untyped
Kefu Chai [Sun, 31 Jan 2021 09:22:20 +0000 (17:22 +0800)]
Merge pull request #39131 from sebastian-philipp/rook-disable-untyped

mgr/rook: disallow_untyped_defs = True

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Varsha Rao <varao@redhat.com>
4 years agopybind/mgr/dashboard: do not install enum34 39194/head
Kefu Chai [Sun, 31 Jan 2021 04:03:07 +0000 (12:03 +0800)]
pybind/mgr/dashboard: do not install enum34

enum was introduced by python 3.4, but we require python3.6 and up.
so drop it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agodoc: add rook_client._helper to mock_imports 39131/head
Sebastian Wagner [Thu, 28 Jan 2021 14:13:53 +0000 (15:13 +0100)]
doc: add rook_client._helper to mock_imports

This is due to `mgr/rook` now also includes `._helper`

Co-authored-by Kefu Chai <kchai@redhat.com>

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agomgr/rook: disallow_untyped_defs = True
Sebastian Wagner [Thu, 28 Jan 2021 11:44:07 +0000 (12:44 +0100)]
mgr/rook: disallow_untyped_defs = True

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agomgr/rook: Fix possibly infinite loop in _execute_blight_job
Sebastian Wagner [Thu, 28 Jan 2021 12:13:20 +0000 (13:13 +0100)]
mgr/rook: Fix possibly infinite loop in _execute_blight_job

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agoMerge pull request #39143 from adk3798/ha-rgw-data-dir
Kefu Chai [Sun, 31 Jan 2021 02:34:46 +0000 (10:34 +0800)]
Merge pull request #39143 from adk3798/ha-rgw-data-dir

cephadm: fix get_data_dir calls for ha-rgw daemons

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Daniel-Pivonka <dpivonka@redhat.com>
4 years agoMerge pull request #39081 from ifed01/wip-ifed-perpg-instrumentation
Kefu Chai [Sun, 31 Jan 2021 02:31:13 +0000 (10:31 +0800)]
Merge pull request #39081 from ifed01/wip-ifed-perpg-instrumentation

os/bluestore: be more verbose when fsck detects stray per-pg omaps

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #39095 from tchaikov/wip-cephadm-fsid
Kefu Chai [Sun, 31 Jan 2021 02:29:59 +0000 (10:29 +0800)]
Merge pull request #39095 from tchaikov/wip-cephadm-fsid

cephadm: add fsid if --name is not specified

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agoMerge pull request #39056 from sebastian-philipp/alerts-percent-d
Kefu Chai [Sun, 31 Jan 2021 02:28:54 +0000 (10:28 +0800)]
Merge pull request #39056 from sebastian-philipp/alerts-percent-d

mgr/alerts: interval can be None

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #38930 from vbashkirtsev/master
Kefu Chai [Sun, 31 Jan 2021 02:28:13 +0000 (10:28 +0800)]
Merge pull request #38930 from vbashkirtsev/master

client/fuse_ll.cc: use uint64_t for fuse_ll_forget() nlookup argument

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39132 from rzarzynski/wip-blk-ptr_node-for-aio
Kefu Chai [Sun, 31 Jan 2021 02:26:38 +0000 (10:26 +0800)]
Merge pull request #39132 from rzarzynski/wip-blk-ptr_node-for-aio

blk: avoid temporary bptrs on aio paths; use ptr_node instead.

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agoMerge pull request #39151 from batrick/radosstriper-refactor
Kefu Chai [Sun, 31 Jan 2021 02:25:46 +0000 (10:25 +0800)]
Merge pull request #39151 from batrick/radosstriper-refactor

libradosstriper: make default layout const and static

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39116 from tchaikov/wip-crimson-pgstat
Kefu Chai [Sun, 31 Jan 2021 02:24:36 +0000 (10:24 +0800)]
Merge pull request #39116 from tchaikov/wip-crimson-pgstat

crimson/osd: keep a local copy of pg_stat and cleanups

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agoMerge pull request #39158 from tchaikov/wip-mgr-snap-stat-ann
Kefu Chai [Sun, 31 Jan 2021 02:17:54 +0000 (10:17 +0800)]
Merge pull request #39158 from tchaikov/wip-mgr-snap-stat-ann

pybind/mgr/{snap-schedule,status,iostat}: add type annotations

Reviewed-by: Sebastian Wagner <swagner@suse.com>
4 years agoMerge pull request #39187 from tchaikov/wip-standalone-mon-misc.sh
Kefu Chai [Sun, 31 Jan 2021 02:09:27 +0000 (10:09 +0800)]
Merge pull request #39187 from tchaikov/wip-standalone-mon-misc.sh

qa/standalone/mon/misc: verify that len(monmap.features.persistent) == 9

Reviewed-by: Sage Weil <sage@redhat.com>
4 years agoMerge PR #39097 into master
Sage Weil [Sat, 30 Jan 2021 16:14:43 +0000 (10:14 -0600)]
Merge PR #39097 into master

* refs/pull/39097/head:
qa/workunits/cephadm/test_cephadm: fix argument
qa/workunits/cephadm/test_cephadm: show exporter output
qa/workunits/cephadm/test_cephadm: don't bother pulling octopus
qa/workunits/cephadm/test_cephadm: behave on terminal
qa/workunits/cepham/test_cephadm: pull only recent images, from quay.ceph.io
qa/workunits/cephadm/test_cephadm: don't respawn for python versions

Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
4 years agoMerge PR #39172 into master
Sage Weil [Sat, 30 Jan 2021 16:12:43 +0000 (10:12 -0600)]
Merge PR #39172 into master

* refs/pull/39172/head:
mgr/orchestrator: remove 'host' arg for 'orch ls'

Reviewed-by: Sebastian Wagner <swagner@suse.com>
4 years agoMerge PR #39173 into master
Sage Weil [Sat, 30 Jan 2021 16:09:48 +0000 (10:09 -0600)]
Merge PR #39173 into master

* refs/pull/39173/head:
mgr/devicehealth: make CLI commands error when pool doesn't exist
mgr/devicehealth: only create pool when we have some osds

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sunny Kumar <sunkumar@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoqa/standalone/mon/misc: verify that len(monmap.features.persistent) == 9 39187/head
Kefu Chai [Sat, 30 Jan 2021 14:45:20 +0000 (22:45 +0800)]
qa/standalone/mon/misc: verify that len(monmap.features.persistent) == 9

in beb62c029abcf1d596ed624d58cbcb094ee6a292, FEATURE_QUINCY was added to
ceph::features::mon::get_persistent(), so update the test accordingly.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #38892 from ceph/update_s3select_add_zero_segment_log
Matt Benjamin [Fri, 29 Jan 2021 20:50:18 +0000 (15:50 -0500)]
Merge pull request #38892 from ceph/update_s3select_add_zero_segment_log

s3select: update s3select submodule to last commit ; add zero segment log

4 years agoMerge pull request #38767 from myoungwon/wip-manifest-chunk-scrub
Samuel Just [Fri, 29 Jan 2021 20:25:38 +0000 (12:25 -0800)]
Merge pull request #38767 from myoungwon/wip-manifest-chunk-scrub

osd: add has_manifest_chunk to count chunks in snapshot

Reviewed-by: Samuel Just <sjust@redhat.com>
4 years agoMerge PR #39039 into master
Sage Weil [Fri, 29 Jan 2021 20:01:26 +0000 (14:01 -0600)]
Merge PR #39039 into master

* refs/pull/39039/head:
src/test/cli/monmaptool: adjust for new monmap features
qa/tasks/cephadm: allow custom git_url for cephadm_branch pull
qa/suites/rados/upgrade: include pacific-x
qa/suites/upgrade/pacific-x/parallel
qa/suites: some clean up for quincy
mon: updates for quincy
mon: update for quincy ondisk features
script: add pacific
doc/dev/release-checklist: we tagged v17.0.0
ceph-volume: change to quincy
include/ceph_features: retire MON_SINGLE_PAXOS
include/ceph_features: define FEATURE_SERVER_QUINCY
mon/MgrMonitor: add always_on_modules for quincy
add feature/release name quincy
kickoff v17 quincy
doc/dev/release-checklists: uncheck everything!

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoqa/workunits/cephadm/test_cephadm: fix argument 39097/head
Sage Weil [Fri, 29 Jan 2021 15:07:15 +0000 (09:07 -0600)]
qa/workunits/cephadm/test_cephadm: fix argument

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge pull request #37144 from jmolmo/storage_devices_mgmt
Sebastian Wagner [Fri, 29 Jan 2021 18:16:54 +0000 (19:16 +0100)]
Merge pull request #37144 from jmolmo/storage_devices_mgmt

doc: High level workflow for storage devices

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Jan Fajerski <jfajerski@suse.com>
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Zac Dover <zac.dover@gmail.com>
4 years agosrc/test/cli/monmaptool: adjust for new monmap features 39039/head
Sage Weil [Fri, 29 Jan 2021 17:45:11 +0000 (11:45 -0600)]
src/test/cli/monmaptool: adjust for new monmap features

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoqa/tasks/cephadm: allow custom git_url for cephadm_branch pull
Sage Weil [Fri, 29 Jan 2021 15:01:37 +0000 (09:01 -0600)]
qa/tasks/cephadm: allow custom git_url for cephadm_branch pull

Normally the git_url is git://git.ceph.com/ceph-ci.git, which mirrors
upstream ceph-ci.git.  However, the release branches aren't present there.
Allow a custom git_url so we can pull these from the main ceph.git.

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agomgr/devicehealth: make CLI commands error when pool doesn't exist 39173/head
Sage Weil [Fri, 29 Jan 2021 16:40:44 +0000 (10:40 -0600)]
mgr/devicehealth: make CLI commands error when pool doesn't exist

This is better than silently failing to do anything.

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agomgr/devicehealth: only create pool when we have some osds
Sage Weil [Fri, 29 Jan 2021 16:36:39 +0000 (10:36 -0600)]
mgr/devicehealth: only create pool when we have some osds

If we create the pool before we have OSDs, the PGs won't be active+clean
and we'll raise a health warning that we shouldn't.  This will annoy
a new users deploying a new cluster, and (more importantly?) make
qa tests fail while deploying initial clusters due to the health
warning.

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge pull request #39025 from yuvalif/wip-yuval-fix-48963
Casey Bodley [Fri, 29 Jan 2021 16:01:14 +0000 (11:01 -0500)]
Merge pull request #39025 from yuvalif/wip-yuval-fix-48963

rgw: fix valgrind errors when protected_fixedsize_stack is used

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
4 years agomgr/orchestrator: remove 'host' arg for 'orch ls' 39172/head
Sage Weil [Fri, 29 Jan 2021 15:45:09 +0000 (09:45 -0600)]
mgr/orchestrator: remove 'host' arg for 'orch ls'

The host arg is unused, and also missing from the documentation.

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge pull request #39152 from neha-ojha/wip-46323
Neha Ojha [Fri, 29 Jan 2021 15:37:52 +0000 (07:37 -0800)]
Merge pull request #39152 from neha-ojha/wip-46323

qa/*/thrash_cache_writeback_proxy_none.yaml: disable writeback overlay tests

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agoMerge pull request #39118 from tchaikov/wip-cmake-rook-client
Kefu Chai [Fri, 29 Jan 2021 11:49:06 +0000 (19:49 +0800)]
Merge pull request #39118 from tchaikov/wip-cmake-rook-client

cmake: install rook-client-python using ExternalProject

Reviewed-by: Sebastian Wagner <swagner@suse.com>
4 years agopybind/mgr/snap-schedule: silence flake8 warnings 39158/head
Kefu Chai [Fri, 29 Jan 2021 11:35:02 +0000 (19:35 +0800)]
pybind/mgr/snap-schedule: silence flake8 warnings

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr/snap-schedule: use use_fs if fs is not specified
Kefu Chai [Fri, 29 Jan 2021 06:52:25 +0000 (14:52 +0800)]
pybind/mgr/snap-schedule: use use_fs if fs is not specified

the "vol_name" parameter of "fs subvolume getpath" command is not
optional, so we have to pass an fs name to it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr/snap-schedule: close a string with single quote
Kefu Chai [Fri, 29 Jan 2021 05:38:20 +0000 (13:38 +0800)]
pybind/mgr/snap-schedule: close a string with single quote

if it starts with single quote, we should close it with a single quote
also.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr/snap-schedule: add typing annotations
Kefu Chai [Fri, 29 Jan 2021 05:37:54 +0000 (13:37 +0800)]
pybind/mgr/snap-schedule: add typing annotations

please note, the behavior of `updates_schedule_db()` is changed so that
it now returns the return value of the decorated function. this change
makes it a real decorator which keeps the signature of the decorated
function unchanged. the reason why we need this change is that mypy does
not allow us to match the parameter pack of a Callable at the time of
writing.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr/status: flake8 cleanup
Kefu Chai [Fri, 29 Jan 2021 05:03:32 +0000 (13:03 +0800)]
pybind/mgr/status: flake8 cleanup

* remove unused import
* wrap long lines
* remove comments which do not start with "# "

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr/status: add typing annotations
Kefu Chai [Fri, 29 Jan 2021 03:26:15 +0000 (11:26 +0800)]
pybind/mgr/status: add typing annotations

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr/status: always map 'mds_version' to a list of dict
Kefu Chai [Fri, 29 Jan 2021 04:41:56 +0000 (12:41 +0800)]
pybind/mgr/status: always map 'mds_version' to a list of dict

more consistent this way, as json format is supposed to be consumed by a
parser not human being.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr/status: construct defaultdict without key
Kefu Chai [Fri, 29 Jan 2021 04:10:52 +0000 (12:10 +0800)]
pybind/mgr/status: construct defaultdict without key

it's simply wrong to construct defaultdict with the key which does not
have the mapped value, what we should do is to specify the
"default_factory" which construct the default value whose key does not
exist in the dict when being accessed.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr/status: cast return value to int
Kefu Chai [Fri, 29 Jan 2021 03:42:05 +0000 (11:42 +0800)]
pybind/mgr/status: cast return value to int

the return value of get_rate() is fed to mgr_util.format_dimless(),
which always cast the formatted value to int.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr: correct a MgrModule annotation
Kefu Chai [Fri, 29 Jan 2021 03:25:31 +0000 (11:25 +0800)]
pybind/mgr: correct a MgrModule annotation

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr/status: use CLIReadCommand for defining commands
Kefu Chai [Fri, 29 Jan 2021 02:52:39 +0000 (10:52 +0800)]
pybind/mgr/status: use CLIReadCommand for defining commands

simpler this way. and will be more consistent with other mgr modules

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr/iostat: add typing annotations
Kefu Chai [Fri, 29 Jan 2021 02:31:04 +0000 (10:31 +0800)]
pybind/mgr/iostat: add typing annotations

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr: silence flake8 warnings
Kefu Chai [Fri, 29 Jan 2021 02:30:19 +0000 (10:30 +0800)]
pybind/mgr: silence flake8 warnings

silence following warnings from flake8

* line too long (107 > 100 characters) [E501]

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #38686 from wornet-mwo/wip-doc-add-section-declarative-orch-cmd
Sebastian Wagner [Fri, 29 Jan 2021 11:37:15 +0000 (12:37 +0100)]
Merge pull request #38686 from wornet-mwo/wip-doc-add-section-declarative-orch-cmd

doc: added section about retival of Service Specication

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Zac Dover <zac.dover@gmail.com>
4 years agoMerge pull request #38875 from pcuzner/new-host-to-maintenance
Sebastian Wagner [Fri, 29 Jan 2021 09:27:11 +0000 (10:27 +0100)]
Merge pull request #38875 from pcuzner/new-host-to-maintenance

mgr/orchestrator: add maintenance mode for new hosts

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agoMerge pull request #39083 from genesiscloud/orch-non-rotational-filter-fix
Sebastian Wagner [Fri, 29 Jan 2021 09:26:27 +0000 (10:26 +0100)]
Merge pull request #39083 from genesiscloud/orch-non-rotational-filter-fix

python-common/drivegroups: avoid dropping "rotational: 0" from Device Selection

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agoMerge pull request #39007 from mgfritch/cephadm-podman-2.0
Sebastian Wagner [Fri, 29 Jan 2021 09:26:03 +0000 (10:26 +0100)]
Merge pull request #39007 from mgfritch/cephadm-podman-2.0

 cephadm: require podman >= 2.0.0

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agoMerge pull request #39157 from xxhdx1985126/wip-crimson-bug-fix
Kefu Chai [Fri, 29 Jan 2021 08:24:19 +0000 (16:24 +0800)]
Merge pull request #39157 from xxhdx1985126/wip-crimson-bug-fix

crimson/osd: capture "intervals_included" by value in ReplicatedRecoveryBackend::submit_push_data

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39057 from aclamk/wip-mempool-shards-check-random
Kefu Chai [Fri, 29 Jan 2021 07:21:51 +0000 (15:21 +0800)]
Merge pull request #39057 from aclamk/wip-mempool-shards-check-random

common/mempool: Improve mempool shard selection

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agocrimson/osd: capture "intervals_included" by value in ReplicatedRecoveryBackend:... 39157/head
Xuehan Xu [Fri, 29 Jan 2021 06:44:36 +0000 (14:44 +0800)]
crimson/osd: capture "intervals_included" by value in ReplicatedRecoveryBackend::submit_push_data

ReplicatedRecoveryBackend::submit_push_data()'s parameter "intervals_included" might be an
local varaiable in the outer method, so we should capture it by value to avoid a dangling
reference in the inner lambda

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
4 years agodiagnose zero segment while s3select 38892/head
galsalomon66 [Sun, 10 Jan 2021 21:30:46 +0000 (23:30 +0200)]
diagnose zero segment while s3select

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
using s3-test with the fix fix_test_file_permission_add_attrib

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
update s3select{1ea37ae459f957786b9d198510637dfa12f83350} ; add log tracing zero segments locations

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
s3select submodule update

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
fix comments

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
updating the s3select new features; covering the gap between latest documentation and latest faetures update

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
add some more examples; fixes

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
add between expression to doc; typo

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
typo

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
skipping empty segments

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
skip empty segments to the next segments

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
4 years agoqa/*/thrash_cache_writeback_proxy_none.yaml: disable writeback overlay tests 39152/head
Neha Ojha [Thu, 28 Jan 2021 19:54:54 +0000 (19:54 +0000)]
qa/*/thrash_cache_writeback_proxy_none.yaml: disable writeback overlay tests

thrash_cache_writeback_proxy_none tests have been failing consistently. Some investigation
shows that the writeback overlay tests are reponsible for it. Instead of removing these
cache tiering tests entirely, we'll disable them for now.

Related to: https://tracker.ceph.com/issues/46323
Signed-off-by: Neha Ojha <nojha@redhat.com>
4 years agolibradosstriper: make default layout const and static 39151/head
Patrick Donnelly [Sat, 2 Jan 2021 23:54:23 +0000 (15:54 -0800)]
libradosstriper: make default layout const and static

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #39112 from pcuzner/fix-gather-facts
pcuzner [Thu, 28 Jan 2021 21:35:33 +0000 (10:35 +1300)]
Merge pull request #39112 from pcuzner/fix-gather-facts

cephadm:add missing kernel_security property

4 years agoqa/workunits/cephadm/test_cephadm: show exporter output
Sage Weil [Thu, 28 Jan 2021 21:15:02 +0000 (15:15 -0600)]
qa/workunits/cephadm/test_cephadm: show exporter output

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoqa/suites/rados/upgrade: include pacific-x
Sage Weil [Thu, 28 Jan 2021 14:25:54 +0000 (08:25 -0600)]
qa/suites/rados/upgrade: include pacific-x

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoqa/suites/upgrade/pacific-x/parallel
Sage Weil [Wed, 27 Jan 2021 22:01:20 +0000 (16:01 -0600)]
qa/suites/upgrade/pacific-x/parallel

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoqa/suites: some clean up for quincy
Sage Weil [Wed, 27 Jan 2021 22:00:13 +0000 (16:00 -0600)]
qa/suites: some clean up for quincy

- remove upgrades from nautilus
- stubs for completing upgrade to quincy

Still missing the pacific-x upgrade tests.

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agomon: updates for quincy
Sage Weil [Wed, 27 Jan 2021 21:45:32 +0000 (15:45 -0600)]
mon: updates for quincy

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agomon: update for quincy ondisk features
Sage Weil [Wed, 27 Jan 2021 20:32:31 +0000 (14:32 -0600)]
mon: update for quincy ondisk features

Signed-off-by: Sage Weil <sage@newdream.net>