]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
4 years agocrimson/osd: mark Operation::dump_detail() private 37532/head
Kefu Chai [Sat, 3 Oct 2020 11:05:15 +0000 (19:05 +0800)]
crimson/osd: mark Operation::dump_detail() private

Operation::dump_detail() is called by Operation::dump(), the latter is a
member of Blocker. so there is no need to mark dump_detail() protected
or public to grant the access Operation::dump() the access to this method.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: mark md_config_obs_t a private parent class
Kefu Chai [Sat, 3 Oct 2020 10:56:30 +0000 (18:56 +0800)]
crimson/osd: mark md_config_obs_t a private parent class

it registers itself as an observer in its ctor, so there is no need to
mark md_config_obs_t a public parent class.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: mark dump_detail() private
Kefu Chai [Sat, 3 Oct 2020 10:53:23 +0000 (18:53 +0800)]
crimson/osd: mark dump_detail() private

Blocker::dump_detail() is called by Blocker::dump(), the latter is a
member of Blocker. so there is no need to mark dump_detail() protected
or public to grant the access Blocker::dump() the access to this method.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: make OrderedPipelinePhase::mutex private
Kefu Chai [Sat, 3 Oct 2020 10:19:04 +0000 (18:19 +0800)]
crimson/osd: make OrderedPipelinePhase::mutex private

as inner class has access to all outers class's members, even if they
are private.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #37527 from tchaikov/wip-admin-use-feature
Kefu Chai [Sat, 3 Oct 2020 02:15:34 +0000 (10:15 +0800)]
Merge pull request #37527 from tchaikov/wip-admin-use-feature

admin: be compatible with pip shipped by distro older than v20.2

Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #37502 from neha-ojha/wip-symlink-cephadm
Sebastian Wagner [Fri, 2 Oct 2020 23:07:10 +0000 (01:07 +0200)]
Merge pull request #37502 from neha-ojha/wip-symlink-cephadm

qa/suites/rados: move thrash-old-clients under cephadm

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoadmin: be compatible with pip shipped by distro older than v20.2 37527/head
Kefu Chai [Fri, 2 Oct 2020 16:41:06 +0000 (00:41 +0800)]
admin: be compatible with pip shipped by distro older than v20.2

pip v20.2 introduced a new option named --use-feature, which is not
available with <20.2. so we need to check for it before using it. see
also
https://pip.pypa.io/en/stable/user_guide/#changes-to-the-pip-dependency-resolver-in-20-2-2020

Fixes: https://tracker.ceph.com/issues/47636
Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #34770 from Exotelis/wip-42963
Lenz Grimmer [Fri, 2 Oct 2020 08:23:18 +0000 (10:23 +0200)]
Merge pull request #34770 from Exotelis/wip-42963

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
4 years agoMerge pull request #37448 from anthonyeleven/patch-1
Kefu Chai [Fri, 2 Oct 2020 03:29:14 +0000 (11:29 +0800)]
Merge pull request #37448 from anthonyeleven/patch-1

doc/rados: erasure-code-lrc corrections

Reviewed-by: Zac Dover <zac.dover@gmail.com>
4 years agoqa/suites/rados: move thrash-old-clients under cephadm 37502/head
Neha Ojha [Thu, 1 Oct 2020 21:57:57 +0000 (21:57 +0000)]
qa/suites/rados: move thrash-old-clients under cephadm

Since it uses cephadm, at the moment it makes sense to run it as a part of
rados/cephadm. This gives better test coverage for developers and has exposed
bugs such as https://tracker.ceph.com/issues/45421 and
https://tracker.ceph.com/issues/47709. We can always restructure this later.

Signed-off-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #37501 from linuxbox2/wip-file-hang
Matt Benjamin [Thu, 1 Oct 2020 21:35:21 +0000 (17:35 -0400)]
Merge pull request #37501 from linuxbox2/wip-file-hang

rgw_file: avoid long-ish delay on shutdown

4 years agoMerge PR #36473 into master
Patrick Donnelly [Thu, 1 Oct 2020 20:03:52 +0000 (13:03 -0700)]
Merge PR #36473 into master

* refs/pull/36473/head:
mds: remove snap past parents compat code

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #37392 from tchaikov/wip-doc-pip
Kefu Chai [Thu, 1 Oct 2020 17:54:07 +0000 (01:54 +0800)]
Merge pull request #37392 from tchaikov/wip-doc-pip

admin: pass --use-feature=2020-resolver to pip

Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #37406 from MahatiC/wip-refactor-rwl
Jason Dillaman [Thu, 1 Oct 2020 15:39:01 +0000 (11:39 -0400)]
Merge pull request #37406 from MahatiC/wip-refactor-rwl

librbd/cache: Refactor common code for RWL and SSD

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #37238 from cbodley/wip-rgw-sync-etag-verify
Casey Bodley [Thu, 1 Oct 2020 15:38:01 +0000 (11:38 -0400)]
Merge pull request #37238 from cbodley/wip-rgw-sync-etag-verify

rgw: rgw_sync_obj_etag_verify accounts for compressed multipart uploads

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
4 years agoMerge pull request #37316 from trociny/wip-46803-2
Jason Dillaman [Thu, 1 Oct 2020 15:01:28 +0000 (11:01 -0400)]
Merge pull request #37316 from trociny/wip-46803-2

librbd: track complete async operation return code

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #37499 from tspmelo/wip-ng-profiler
Lenz Grimmer [Thu, 1 Oct 2020 14:38:32 +0000 (16:38 +0200)]
Merge pull request #37499 from tspmelo/wip-ng-profiler

mgr/dashboard: Enable Angular's debug tools when using dev mode

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
4 years agolibrbd/cache: Refactor common code for RWL and SSD 37406/head
Mahati Chamarthy [Wed, 23 Sep 2020 09:32:17 +0000 (15:02 +0530)]
librbd/cache: Refactor common code for RWL and SSD

... from AbstractWriteLog class

Signed-off-by: Lisa Li <xiaoyan.li@intel.com>
Signed-off-by: Mahati Chamarthy <mahati.chamarthy@intel.com>
Signed-off-by: Changcheng Liu <changcheng.liu@intel.com>
4 years agomgr/dashboard: Enable Angular's debug tools when using dev mode 37499/head
Tiago Melo [Wed, 30 Sep 2020 14:34:27 +0000 (14:34 +0000)]
mgr/dashboard: Enable Angular's debug tools when using dev mode

Enabling this will allows us to run `ng.profiler.timeChangeDetection();`
in the browser.

Fixes: https://tracker.ceph.com/issues/47699
Signed-off-by: Tiago Melo <tmelo@suse.com>
4 years agomgr/dashboard: improve logs 34770/head
Sebastian Krah [Fri, 20 Mar 2020 09:27:08 +0000 (10:27 +0100)]
mgr/dashboard: improve logs

Changes the text that is being displayed when no log entry was found.
Also changes the log level to debug.
User can no longer select a date in the future to filter log entries.

Fixes: https://tracker.ceph.com/issues/42963
Signed-off-by: Sebastian Krah <skrah@suse.com>
4 years agorgw_file: avoid long-ish delay on shutdown 37501/head
Matt Benjamin [Wed, 30 Sep 2020 19:13:04 +0000 (15:13 -0400)]
rgw_file: avoid long-ish delay on shutdown

Normal shutdown was likely to be delayed a substantial fraction
of rgw_nfs_namespace_expire_secs due to an ill-advised use of
this_thread::sleep_for.

Fixes: https://tracker.ceph.com/issues/47710
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
4 years agolibrbd: reset complete async request expiration time 37316/head
Mykola Golub [Tue, 29 Sep 2020 09:07:56 +0000 (10:07 +0100)]
librbd: reset complete async request expiration time

Signed-off-by: Mykola Golub <mgolub@suse.com>
4 years agolibrbd: mark quiesce notification complete after quiesce complete
Mykola Golub [Tue, 29 Sep 2020 08:16:56 +0000 (09:16 +0100)]
librbd: mark quiesce notification complete after quiesce complete

Previoulsy it was marked complete only after unqiesce was
complete, which did not allow us to use the error code stored in
m_async_complete for a quiesce dup coming between the quiesce was
complete and unqiesce was complete.

Signed-off-by: Mykola Golub <mgolub@suse.com>
4 years agoMerge pull request #37443 from ktdreyer/node-12.18.2
Lenz Grimmer [Wed, 30 Sep 2020 15:07:56 +0000 (17:07 +0200)]
Merge pull request #37443 from ktdreyer/node-12.18.2

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
4 years agoMerge pull request #36771 from rhcs-dashboard/wip-47118-master
Lenz Grimmer [Wed, 30 Sep 2020 15:06:06 +0000 (17:06 +0200)]
Merge pull request #36771 from rhcs-dashboard/wip-47118-master

mgr/dashboard: add JUnit reports to Dashboard e2e tests

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
4 years agoMerge pull request #34740 from jan--f/c-v-refactor-batch-use-create
Jan Fajerski [Wed, 30 Sep 2020 13:37:52 +0000 (15:37 +0200)]
Merge pull request #34740 from jan--f/c-v-refactor-batch-use-create

ceph-volume: major batch refactor

4 years agoMerge pull request #37014 from lixiaoy1/rwl_plugin
Jason Dillaman [Wed, 30 Sep 2020 13:33:03 +0000 (09:33 -0400)]
Merge pull request #37014 from lixiaoy1/rwl_plugin

rbd/cache: update RWL as ImageDispatch

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #37030 from Amrita42/wip-doc-Amy-radosgw
Yuval Lifshitz [Wed, 30 Sep 2020 10:51:52 +0000 (13:51 +0300)]
Merge pull request #37030 from Amrita42/wip-doc-Amy-radosgw

doc: Bucket notifications in the radosgateway-the usage of 'if not'

4 years agoMerge pull request #37312 from votdev/issue_47578_clipboard_firefox
Lenz Grimmer [Wed, 30 Sep 2020 09:49:41 +0000 (11:49 +0200)]
Merge pull request #37312 from votdev/issue_47578_clipboard_firefox

mgr/dashboard: Copy to clipboard does not work in Firefox

Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
4 years agomgr/dashboard: add JUnit reports to tests 36771/head
Ernesto Puerta [Mon, 24 Aug 2020 15:50:28 +0000 (17:50 +0200)]
mgr/dashboard: add JUnit reports to tests

Fixes: https://tracker.ceph.com/issues/47118
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
4 years agoMerge pull request #37411 from p-se/fix-cephadm-custom-template-escaping
Joshua Schmid [Wed, 30 Sep 2020 07:57:58 +0000 (09:57 +0200)]
Merge pull request #37411 from p-se/fix-cephadm-custom-template-escaping

mgr/cephadm: do not escape HTML for custom templates

4 years agoMerge pull request #36622 from dmick/wip-46665
Joshua Schmid [Wed, 30 Sep 2020 07:57:27 +0000 (09:57 +0200)]
Merge pull request #36622 from dmick/wip-46665

mgr/cephadm: continue trying all hosts for service deployment

4 years agorbd/cache: update RWL as ImageDispatch 37014/head
lixiaoy1 [Mon, 21 Sep 2020 15:05:43 +0000 (11:05 -0400)]
rbd/cache: update RWL as ImageDispatch

This is a preparation work to make ReplicatedWriteLog as a plugin.

Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
4 years agorbd/io: split IO check
lixiaoy1 [Mon, 21 Sep 2020 15:03:09 +0000 (11:03 -0400)]
rbd/io: split IO check

Move IO check to interfaces in Utils.

Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
4 years agoMerge pull request #37112 from sebastian-philipp/cephadm-services-types-mandatory
Joshua Schmid [Wed, 30 Sep 2020 07:56:20 +0000 (09:56 +0200)]
Merge pull request #37112 from sebastian-philipp/cephadm-services-types-mandatory

mgr/cephadm: Make type annotations for cephadm.services mandatory

4 years agoMerge pull request #37397 from adk3798/mirror
Joshua Schmid [Wed, 30 Sep 2020 07:56:12 +0000 (09:56 +0200)]
Merge pull request #37397 from adk3798/mirror

mgr/cephadm: get rbd-mirror daemon-id when checking for strays

4 years agoMerge pull request #37432 from sebastian-philipp/cephadm-upgrade-state-none
Joshua Schmid [Wed, 30 Sep 2020 07:55:57 +0000 (09:55 +0200)]
Merge pull request #37432 from sebastian-philipp/cephadm-upgrade-state-none

mgr/cephadm: upgrade_state can be literally "null"

4 years agoceph-volume batch: fix very_fast_allocation plan and add tests 34740/head
Jan Fajerski [Fri, 25 Sep 2020 09:35:19 +0000 (11:35 +0200)]
ceph-volume batch: fix very_fast_allocation plan and add tests

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
4 years agoceph-volume: batch: call the right prepare method
Jan Fajerski [Wed, 16 Sep 2020 13:43:00 +0000 (15:43 +0200)]
ceph-volume: batch: call the right prepare method

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
4 years agopython-common drive-groups: allow strings for wal and db size
Jan Fajerski [Mon, 14 Sep 2020 09:32:38 +0000 (11:32 +0200)]
python-common drive-groups: allow strings for wal and db size

This enables user to pass sizes like "10G", which batch now understands.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
4 years agoceph-volume inventory: add option to filter unwanted devices
Jan Fajerski [Fri, 11 Sep 2020 14:35:00 +0000 (16:35 +0200)]
ceph-volume inventory: add option to filter unwanted devices

Some device we never want to pass to the batch subcommand. For now this
includes devices that have a partition or are mounted on the machine.
One goal is to filter the root device, so it is not included on a batch
command and thus would contribute to its implicit sizing calculation.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
4 years agoceph-volume: address review comments
Jan Fajerski [Fri, 11 Sep 2020 08:36:43 +0000 (10:36 +0200)]
ceph-volume: address review comments

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
4 years agoMerge pull request #36392 from Devp00l/wip-46375
Lenz Grimmer [Tue, 29 Sep 2020 11:08:17 +0000 (13:08 +0200)]
Merge pull request #36392 from Devp00l/wip-46375

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
4 years agomgr/cephadm: upgrade_state can be literally "null" 37432/head
Sebastian Wagner [Mon, 28 Sep 2020 13:09:16 +0000 (15:09 +0200)]
mgr/cephadm: upgrade_state can be literally "null"

Fixes: https://tracker.ceph.com/issues/47580
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agomgr/dashboard: Speed improvements of pool details 36392/head
Stephan Müller [Thu, 10 Sep 2020 12:28:47 +0000 (14:28 +0200)]
mgr/dashboard: Speed improvements of pool details

Now all variables that are shown in a listing that trigger a
more complex render cycle will only be updated if pool properties have
changed and not only the time series data, which isn't shown anymore,
as it can be seen graphically enhanced in the pool listing.

The pool detail component now uses the `onPush` change detection
strategy, to only call `ngOnChanges` if one of the input variables
have changed.

The function that only updates variables if they have changed is
now available through a helper class in order to provide this
useful functionality through out the dashboard.

Fixes: https://tracker.ceph.com/issues/46375
Signed-off-by: Stephan Müller <smueller@suse.com>
4 years agodoc/rados: erasure-code-lrc corrections 37448/head
Anthony D'Atri [Tue, 29 Sep 2020 06:42:10 +0000 (23:42 -0700)]
doc/rados: erasure-code-lrc corrections

doc/rados: erasure-code-lrc corrections

- Clarified / corrected jerasure recovery characterization cf. https://library.eecs.utk.edu/storage/125phpw0xFqAut-cs-07-603.pdf
- Capitalization
- Word choice:  OSDs are discrete / cardinal, so "fewer" instead of  "less"
- Reworked a few phrases to be less stilted

Signed-off-by: Anthony D'Atri <anthony.datri@gmail.com>
4 years agoMerge pull request #37286 from dillaman/wip-46822
Mykola Golub [Tue, 29 Sep 2020 06:18:55 +0000 (09:18 +0300)]
Merge pull request #37286 from dillaman/wip-46822

osdc/ObjectCacher: overwrite might cause stray read request callbacks

Reviewed-by: Mykola Golub <mgolub@suse.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #37074 from dillaman/wip-librbd-list-snaps-api
Mykola Golub [Tue, 29 Sep 2020 05:45:13 +0000 (08:45 +0300)]
Merge pull request #37074 from dillaman/wip-librbd-list-snaps-api

librbd: generic internal API for computing snapshot deltas

Reviewed-by: Mykola Golub <mgolub@suse.com>
4 years agoMerge pull request #37281 from tchaikov/wip-fmt
Kefu Chai [Tue, 29 Sep 2020 00:14:34 +0000 (08:14 +0800)]
Merge pull request #37281 from tchaikov/wip-fmt

rpm: add fmt-devel as build deps

Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #37417 from Songweibin/wip-rbd-metadata-update
Jason Dillaman [Mon, 28 Sep 2020 23:44:23 +0000 (19:44 -0400)]
Merge pull request #37417 from Songweibin/wip-rbd-metadata-update

librbd: should not permit update image metadata via snapshot

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #37429 from trociny/wip-47665
Jason Dillaman [Mon, 28 Sep 2020 23:43:53 +0000 (19:43 -0400)]
Merge pull request #37429 from trociny/wip-47665

rbd-nbd: don't ignore namespace when unmapping by image spec

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agomgr/dashboard: build with NodeJS 12.18.2 37443/head
Ken Dreyer [Mon, 28 Sep 2020 23:25:48 +0000 (17:25 -0600)]
mgr/dashboard: build with NodeJS 12.18.2

Update the version of NodeJS that we use to build the dashboard.

RHEL 8 and CentOS 8 ship NodeJS 12.18.2, so I've picked this version to
make it easier to build outside of nodeenv.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
4 years agoMerge pull request #37399 from smithfarm/wip-relax-backporting-rule
Nathan Cutler [Mon, 28 Sep 2020 18:56:08 +0000 (20:56 +0200)]
Merge pull request #37399 from smithfarm/wip-relax-backporting-rule

doc/SubmittingPatches-backports.rst: clarify where to explain

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge PR #37359 into master
Patrick Donnelly [Mon, 28 Sep 2020 18:49:27 +0000 (11:49 -0700)]
Merge PR #37359 into master

* refs/pull/37359/head:
mon: test before adding/removing required_client_features

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #36912 into master
Patrick Donnelly [Mon, 28 Sep 2020 18:47:54 +0000 (11:47 -0700)]
Merge PR #36912 into master

* refs/pull/36912/head:
mds: defer encoding and storing the inode backtrace
mds: defer encoding and storing the CDir dentries
mds: add error handler with lock support

Reviewed-by: Zheng Yan <zyan@redhat.com>
4 years agoMerge PR #36730 into master
Patrick Donnelly [Mon, 28 Sep 2020 18:45:44 +0000 (11:45 -0700)]
Merge PR #36730 into master

* refs/pull/36730/head:
client: switch to unique_lock to avoid use the client_lock directly
client: unlock client_lock when copying data to bufferlist
client: do more check for the client_lock
client: simplify the iterating related code to make it more readable

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #37424 from ronen-fr/rf_neo_comp
Jason Dillaman [Mon, 28 Sep 2020 15:50:52 +0000 (11:50 -0400)]
Merge pull request #37424 from ronen-fr/rf_neo_comp

neorados: removing an unused captured variable

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #36016 from rhcs-dashboard/wip-45863-master
Lenz Grimmer [Mon, 28 Sep 2020 14:48:25 +0000 (16:48 +0200)]
Merge pull request #36016 from rhcs-dashboard/wip-45863-master

mgr/dashboard/api: generate static API documentation

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Courtney Caldwell <ccaldwel@redhat.com>
Reviewed-by: Karen Norteman <knortema@redhat.com>
4 years agoMerge pull request #37387 from rhcs-dashboard/expose-always-on
Lenz Grimmer [Mon, 28 Sep 2020 13:35:44 +0000 (15:35 +0200)]
Merge pull request #37387 from rhcs-dashboard/expose-always-on

mgr/dashboard: cluster > manager modules

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
4 years agomgr/dashboard/api: generate offline API docs 36016/head
Courtney Caldwell [Tue, 8 Sep 2020 15:06:33 +0000 (11:06 -0400)]
mgr/dashboard/api: generate offline API docs

Generate Sphinx documentation from OpenAPI YAML spec:
- Fixed Docs controller doc generation
- Now dashboard Python doesn't fails if dashboard/frontend/dist doesn't exist
- OpenAPI added to @ceph/api CODEOWNERS
- Renamed Ceph-Dashboard API to Ceph REST or RESTful API.
- OpenAPI Docs: fixed decorators and docstrings.
- Sphinx Docs: updated dashboard and dev ones.

Co-authored-by: Ernesto Puerta <epuertat@redhat.com>
Fixes: https://tracker.ceph.com/issues/45863
Signed-off-by: Courtney Caldwell <ccaldwel@redhat.com>
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
4 years agoMerge pull request #37328 from badone/wip-npm-cache-config-changes
Kefu Chai [Mon, 28 Sep 2020 01:35:36 +0000 (09:35 +0800)]
Merge pull request #37328 from badone/wip-npm-cache-config-changes

cmake: Don't try to access users' home directory

Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agocmake: Don't try to access users' home directory 37328/head
Brad Hubbard [Tue, 22 Sep 2020 21:59:58 +0000 (07:59 +1000)]
cmake: Don't try to access users' home directory

Don't store .npmrc or cache directory in a user's home directory.

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
4 years agorbd-nbd: don't ignore namespace when unmapping by image spec 37429/head
Mykola Golub [Sun, 27 Sep 2020 16:59:49 +0000 (17:59 +0100)]
rbd-nbd: don't ignore namespace when unmapping by image spec

Fixes: https://tracker.ceph.com/issues/47665
Signed-off-by: Mykola Golub <mgolub@suse.com>
4 years agoMerge pull request #37282 from neha-ojha/wip-46323
Kefu Chai [Sun, 27 Sep 2020 16:17:49 +0000 (00:17 +0800)]
Merge pull request #37282 from neha-ojha/wip-46323

qa/*/thrash_cache_writeback_proxy_none.yaml: remove cache-mode proxy

Reviewed-by: Nathan Cutler <ncutler@suse.com>
4 years agoMerge pull request #37077 from wjwithagen/wjw-fix-cls_fifo.cc-__lea64
Kefu Chai [Sun, 27 Sep 2020 16:15:59 +0000 (00:15 +0800)]
Merge pull request #37077 from wjwithagen/wjw-fix-cls_fifo.cc-__lea64

cls: replace __le{32,64} types by their Ceph counterparts

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #37149 from ifed01/wip-ifed-fix-alloc-cmd-multi-reg
Kefu Chai [Sun, 27 Sep 2020 16:13:46 +0000 (00:13 +0800)]
Merge pull request #37149 from ifed01/wip-ifed-fix-alloc-cmd-multi-reg

os/bluestore: provide a different name for fallback allocator

Reviewed-by: Adam Kupczyk <akucpzyk@redhat.com>
4 years agoMerge pull request #37150 from pdvian/wip-crush-failure-domain
Kefu Chai [Sun, 27 Sep 2020 16:12:44 +0000 (00:12 +0800)]
Merge pull request #37150 from pdvian/wip-crush-failure-domain

mon: validate crush-failure-domain

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #37263 from ifed01/wip-ifed-more-structs-to-mempool
Kefu Chai [Sun, 27 Sep 2020 16:11:31 +0000 (00:11 +0800)]
Merge pull request #37263 from ifed01/wip-ifed-more-structs-to-mempool

os/bluestore: add missing structs to bluestore_cache_other mempool

Reviewed-by: Adam Kupczyk <akucpzyk@redhat.com>
4 years agoMerge pull request #37153 from tchaikov/wip-46124
Kefu Chai [Sun, 27 Sep 2020 16:10:26 +0000 (00:10 +0800)]
Merge pull request #37153 from tchaikov/wip-46124

blk/kernel: use open file description lock if available

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
Reviewed-by: Niklas Hambüchen <mail@nh2.me>
4 years agoMerge pull request #37329 from changchengx/add_conn
Kefu Chai [Sun, 27 Sep 2020 16:05:40 +0000 (00:05 +0800)]
Merge pull request #37329 from changchengx/add_conn

mon: set MonClient::_add_conn return type to void

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #37321 from changchengx/mon_make
Kefu Chai [Sun, 27 Sep 2020 02:49:22 +0000 (10:49 +0800)]
Merge pull request #37321 from changchengx/mon_make

cmake: remove undefined source file lists

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agocmake: remove undefined source file lists 37321/head
Changcheng Liu [Wed, 23 Sep 2020 01:33:33 +0000 (09:33 +0800)]
cmake: remove undefined source file lists

Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
4 years agolibrbd: should not permit update image metadata via snapshot 37417/head
songweibin [Thu, 24 Sep 2020 11:48:28 +0000 (19:48 +0800)]
librbd: should not permit update image metadata via snapshot

Fixes: https://github.com/ceph/ceph/pull/37121
Signed-off-by: songweibin <song.weibin@zte.com.cn>
4 years agoneorados: removing an unused captured variable 37424/head
Ronen Friedman [Sat, 26 Sep 2020 08:41:17 +0000 (11:41 +0300)]
neorados: removing an unused captured variable

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
4 years agoMerge pull request #37388 from johscheuer/add-missing-python-dependency
Kefu Chai [Sat, 26 Sep 2020 05:25:54 +0000 (13:25 +0800)]
Merge pull request #37388 from johscheuer/add-missing-python-dependency

debian: Add missing Python dependency for ceph-mgr

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #37380 from changchengx/ceph_port
Kefu Chai [Sat, 26 Sep 2020 05:02:35 +0000 (13:02 +0800)]
Merge pull request #37380 from changchengx/ceph_port

msgr: remove the macro not referenced anywhere

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
4 years agoMerge pull request #36779 from athanatos/sjust/wip-dirty-writeout
Kefu Chai [Sat, 26 Sep 2020 04:52:42 +0000 (12:52 +0800)]
Merge pull request #36779 from athanatos/sjust/wip-dirty-writeout

crimson/seastore: add dirty extent writeout

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agotest/crimson/seastore/test_transaction_manager: add random overwrite test 36779/head
Samuel Just [Thu, 20 Aug 2020 21:17:31 +0000 (14:17 -0700)]
test/crimson/seastore/test_transaction_manager: add random overwrite test

Also improves replay() by recycling all structures except for the
segment_manager.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore: add segment_cleaner
Samuel Just [Tue, 18 Aug 2020 00:20:07 +0000 (17:20 -0700)]
crimson/os/seastore: add segment_cleaner

Adds SegmentCleaner component to manage rewriting
dirty segments.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/lba_manager: add rewrite_extent
Samuel Just [Tue, 11 Aug 2020 17:47:28 +0000 (10:47 -0700)]
crimson/os/seastore/lba_manager: add rewrite_extent

Adds support for writing out an extent to a new location and updating
lba mappings.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/journal: add more debugging for replay
Samuel Just [Fri, 21 Aug 2020 21:38:32 +0000 (14:38 -0700)]
crimson/os/seastore/journal: add more debugging for replay

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/journal: initialize current_journal_segment in find_replay_segments
Samuel Just [Fri, 21 Aug 2020 21:14:56 +0000 (14:14 -0700)]
crimson/os/seastore/journal: initialize current_journal_segment in find_replay_segments

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/journal: return next write location from open_for_write
Samuel Just [Thu, 20 Aug 2020 20:54:38 +0000 (13:54 -0700)]
crimson/os/seastore/journal: return next write location from open_for_write

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/cache: replay_delta handle obsolete extents properly
Samuel Just [Fri, 21 Aug 2020 21:32:55 +0000 (14:32 -0700)]
crimson/os/seastore/cache: replay_delta handle obsolete extents properly

If we see a delta at verison v (v != 0) and we haven't seen version v-1,
we know that the extent is obsolete and can be ignored (presuming that
journal trimming is behaving).

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/journal: pass journal_seq with each replay delta
Samuel Just [Thu, 20 Aug 2020 21:15:08 +0000 (14:15 -0700)]
crimson/os/seastore/journal: pass journal_seq with each replay delta

We'll need this to track where extents became dirty during replay.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore: maintain dirty_from value on dirty CachedExtents
Samuel Just [Thu, 20 Aug 2020 21:34:55 +0000 (14:34 -0700)]
crimson/os/seastore: maintain dirty_from value on dirty CachedExtents

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agolibrbd: list-snaps needs to writeout fancy-striped extents 37074/head
Jason Dillaman [Tue, 22 Sep 2020 19:24:38 +0000 (15:24 -0400)]
librbd: list-snaps needs to writeout fancy-striped extents

If the delta is being generated for a fancy-stiped extent such that
the provided object extents are not within the actual snapshot deltas,
we still need to indicate that the object exists (as a whiteout) to
prevent the possibility of an incorrect read request to the parent.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agomgr/cephadm: get rbd-mirror daemon-id when checking for strays 37397/head
Adam King [Wed, 23 Sep 2020 16:52:37 +0000 (12:52 -0400)]
mgr/cephadm: get rbd-mirror daemon-id when checking for strays

Currently, list_servers() gets the rbd-mirror service-id instead
of the daemon-id so the daemon is marked as stray. This PR uses
that service-id to find the daemon-id and uses that to check if
the daemon is stray.

Fixes: https://tracker.ceph.com/issues/47639
Signed-off-by: Adam King <adking@redhat.com>
4 years agoMerge pull request #37400 from cbodley/wip-rgw-DatalogTrimImplCR-logging
Casey Bodley [Fri, 25 Sep 2020 14:52:55 +0000 (10:52 -0400)]
Merge pull request #37400 from cbodley/wip-rgw-DatalogTrimImplCR-logging

rgw: raise debug level of DatalogTrimImplCR message

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
4 years agoMerge pull request #36482 from cbodley/wip-rgw-bucket-sync-checkpoint
Casey Bodley [Fri, 25 Sep 2020 14:42:29 +0000 (10:42 -0400)]
Merge pull request #36482 from cbodley/wip-rgw-bucket-sync-checkpoint

rgw: add 'bucket sync checkpoint' command to radosgw-admin

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
4 years agomgr/cephadm: do not escape HTML for custom templates 37411/head
Patrick Seidensal [Fri, 25 Sep 2020 12:05:17 +0000 (14:05 +0200)]
mgr/cephadm: do not escape HTML for custom templates

Fixes: https://tracker.ceph.com/issues/47648
Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
4 years agoceph-volume: batch: fix size retrieval for lvs
Jan Fajerski [Thu, 10 Sep 2020 14:45:34 +0000 (16:45 +0200)]
ceph-volume: batch: fix size retrieval for lvs

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
4 years agoceph-volume: include encryption in batch report
Jan Fajerski [Wed, 9 Sep 2020 11:04:14 +0000 (13:04 +0200)]
ceph-volume: include encryption in batch report

Fixes: https://tracker.ceph.com/issues/44783
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
4 years agoceph-volume lvm batch: use namedtuple instead of tuple
Jan Fajerski [Wed, 9 Sep 2020 07:41:15 +0000 (09:41 +0200)]
ceph-volume lvm batch: use namedtuple instead of tuple

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
4 years agoceph-volume: address review comments, mostly tidying, clarification
Jan Fajerski [Tue, 8 Sep 2020 14:53:53 +0000 (16:53 +0200)]
ceph-volume: address review comments, mostly tidying, clarification

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
4 years agoidempotency must result in the same outcome
Jan Fajerski [Tue, 8 Sep 2020 12:11:15 +0000 (14:11 +0200)]
idempotency must result in the same outcome

...not should

Co-authored-by: Joshua Schmid <jschmid@suse.de>
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
4 years agoceph-volume: batch test should pass --journal-devices with filestore
Jan Fajerski [Mon, 7 Sep 2020 12:54:40 +0000 (14:54 +0200)]
ceph-volume: batch test should pass --journal-devices with filestore

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
4 years agoceph-volume: make --journal optional, add --journal-slots
Jan Fajerski [Mon, 7 Sep 2020 12:54:01 +0000 (14:54 +0200)]
ceph-volume: make --journal optional, add --journal-slots

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
4 years agodoc: update ceph-volume lvm batch docs
Jan Fajerski [Mon, 29 Jun 2020 15:42:26 +0000 (17:42 +0200)]
doc: update ceph-volume lvm batch docs

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
4 years agopy-common/deployment: drop workarounds for old batch
Jan Fajerski [Fri, 26 Jun 2020 13:29:59 +0000 (15:29 +0200)]
py-common/deployment: drop workarounds for old batch

This commit drops two workarounds in drive groups for the old batch
behaviour. OSDs on LVs no longer need to be created individually by
create (related to functional testing) and ceph-volume batch now filters
unavailable drives itself.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>