]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
4 years agocrimson/osd: make sure PGBackend's modification operations not change osd_op state 38728/head
Xuehan Xu [Tue, 29 Dec 2020 07:19:52 +0000 (15:19 +0800)]
crimson/osd: make sure PGBackend's modification operations not change osd_op state

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
4 years agocrimson/osd: do not splice osd_op indata
Xuehan Xu [Tue, 29 Dec 2020 04:06:43 +0000 (12:06 +0800)]
crimson/osd: do not splice osd_op indata

As each osd_op's indata holds only its own data, there's no need to drop their it.
On the other hand, indata is still needed when osd_op needs to be redone in case of
acting set change.

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
4 years agoMerge pull request #38633 from rhcs-dashboard/fix-logs-copy-button
Kiefer Chang [Mon, 28 Dec 2020 13:12:14 +0000 (21:12 +0800)]
Merge pull request #38633 from rhcs-dashboard/fix-logs-copy-button

mgr/dashboard: Fix for copy2Clipboard failing to copy on the first time

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Aashish Sharma <aasharma@redhat.com>
4 years agomgr/dashboard: Fix for copy2Clipboard failing to copy on the first time. 38633/head
Avan Thakkar [Thu, 17 Dec 2020 09:44:46 +0000 (15:14 +0530)]
mgr/dashboard: Fix for copy2Clipboard failing to copy on the first time.

Fixes: https://tracker.ceph.com/issues/48601
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
Fix for the copy2Clipboard button to work on the first click itself.

4 years agoMerge pull request #37267 from TheJJ/fix-up-acting-docs
Kefu Chai [Mon, 28 Dec 2020 06:38:12 +0000 (14:38 +0800)]
Merge pull request #37267 from TheJJ/fix-up-acting-docs

doc: fix up and acting set explanation

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agodoc: fix and improve the explainations of up and acting osd sets 37267/head
Jonas Jelten [Sun, 20 Sep 2020 21:05:33 +0000 (23:05 +0200)]
doc: fix and improve the explainations of up and acting osd sets

acting = where clients requests are processed
up = where pgs were planned to be by crush+upmap

Fixes: https://tracker.ceph.com/issues/48718
Signed-off-by: Jonas Jelten <jj@sft.lol>
4 years agomailmap: update mail for Jonas Jelten
Jonas Jelten [Sun, 20 Sep 2020 21:07:54 +0000 (23:07 +0200)]
mailmap: update mail for Jonas Jelten

Signed-off-by: Jonas Jelten <jj@sft.lol>
4 years agoMerge pull request #38719 from fengchunsong/master
Kefu Chai [Sat, 26 Dec 2020 17:11:53 +0000 (01:11 +0800)]
Merge pull request #38719 from fengchunsong/master

test/perf_local: Add div32,prefetch,memory barrier bench for arm64

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #38568 from batrick/i48594
Sebastian Wagner [Sat, 26 Dec 2020 12:08:33 +0000 (13:08 +0100)]
Merge pull request #38568 from batrick/i48594

pybind/mgr/cephadm: limit rgw osd caps

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agoMerge pull request #38644 from pcuzner/fix-missing-py3-error
Sebastian Wagner [Sat, 26 Dec 2020 12:04:16 +0000 (13:04 +0100)]
Merge pull request #38644 from pcuzner/fix-missing-py3-error

mgr/cephadm: correct connection failure message

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agoMerge pull request #38654 from Daniel-Pivonka/osddryrunbug
Sebastian Wagner [Sat, 26 Dec 2020 12:03:07 +0000 (13:03 +0100)]
Merge pull request #38654 from Daniel-Pivonka/osddryrunbug

mgr/cephadm:fix bug in orch apply osd --dry-run where empty table printed

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agotest/perf_local: Add div32,prefetch,memory barrier bench for arm64 38719/head
Chunsong Feng [Sat, 26 Dec 2020 09:06:06 +0000 (17:06 +0800)]
test/perf_local: Add div32,prefetch,memory barrier bench for arm64

arm64 support div32,prefetch,memory barrier, so add them to benchmark.

Signed-off-by: Chunsong Feng <fengchunsong@huawei.com>
Signed-off-by: luo rixin <luorixin@huawei.com>
4 years agoMerge pull request #38717 from swinds24/fix_compile_error
Kefu Chai [Sat, 26 Dec 2020 01:58:15 +0000 (09:58 +0800)]
Merge pull request #38717 from swinds24/fix_compile_error

kv/LevelDBStore: fix incorrect ceph_abort_msg() usage

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agokv/LevelDBStore: fix incorrect ceph_abort_msg() usage 38717/head
Jerry Lee [Fri, 25 Dec 2020 09:00:22 +0000 (17:00 +0800)]
kv/LevelDBStore: fix incorrect ceph_abort_msg() usage

Compile error is encountered when HAVE_LEVELDB_FILTER_POLICY is not
defined.

/ceph/src/kv/LevelDBStore.cc: In member function 'int LevelDBStore::load_leveldb_options(bool, leveldb::Options&)':
/ceph/src/kv/LevelDBStore.cc:96:22: error: invalid initialization of reference of type 'const string& {aka const std::__cxx11::basic_string<char>&}' from expression of type 'bool'ceph_abort_msg(0 == "bloom size set but installed leveldb doesn't support bloom filters");
                    ~~^~~~
/ceph/src/include/ceph_assert.h:90:69: note: in definition of macro 'ceph_abort_msg'
   ::ceph::__ceph_abort( __FILE__, __LINE__, __CEPH_ASSERT_FUNCTION, msg)
                                                                     ^~~
/ceph/src/include/ceph_assert.h:62:19: note: in passing argument 4 of 'void ceph::__ceph_abort(const char*, int, const char*, const string&)'
 [[noreturn]] void __ceph_abort(const char *file, int line, const char *func,
                   ^~~~~~~~~~~~
src/kv/CMakeFiles/kv.dir/build.make:130: recipe for target 'src/kv/CMakeFiles/kv.dir/LevelDBStore.cc.o' failed

Signed-off-by: Jerry Lee <leisurelysw24@gmail.com>
4 years agoMerge pull request #38702 from mkogan1/wip-fix-vstart-o
Kefu Chai [Thu, 24 Dec 2020 11:50:50 +0000 (19:50 +0800)]
Merge pull request #38702 from mkogan1/wip-fix-vstart-o

vstart: fix -o ceph.conf options processing

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #38711 from Rethan/fix-osdmap-message-max-bytes-comments
Kefu Chai [Thu, 24 Dec 2020 11:47:07 +0000 (19:47 +0800)]
Merge pull request #38711 from Rethan/fix-osdmap-message-max-bytes-comments

option: update comments of option osd_map_message_max_bytes

4 years agooption: update comments of option osd_map_message_max_bytes 38711/head
haoyixing [Thu, 24 Dec 2020 10:22:30 +0000 (18:22 +0800)]
option: update comments of option osd_map_message_max_bytes

Option osd_map_message_max_bytes indicates the max bytes of MOSDMap message, not maps count
as osd_map_message_max.

Signed-off-by: haoyixing <haoyixing@kuaishou.com>
4 years agoMerge pull request #38700 from tchaikov/wip-seastar-msgr-test-timeout
Kefu Chai [Thu, 24 Dec 2020 06:23:32 +0000 (14:23 +0800)]
Merge pull request #38700 from tchaikov/wip-seastar-msgr-test-timeout

test/crimson: add abort timer to messenger test

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agoMerge pull request #38576 from myoungwon/wip-fix-seg-fault-manifest-count
Kefu Chai [Thu, 24 Dec 2020 06:10:03 +0000 (14:10 +0800)]
Merge pull request #38576 from myoungwon/wip-fix-seg-fault-manifest-count

osd : prevent accessing deleted reference

Reviewed-by: Samuel Just <sjust@redhat.com>
4 years agoMerge pull request #38662 from Songweibin/wip-121918
Kefu Chai [Thu, 24 Dec 2020 06:08:48 +0000 (14:08 +0800)]
Merge pull request #38662 from Songweibin/wip-121918

osd/ReplicatedBackend: handle tailing zeros of recovering objects nicer

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agoMerge pull request #38665 from tchaikov/wip-arm32-cleanups
Kefu Chai [Thu, 24 Dec 2020 06:06:19 +0000 (14:06 +0800)]
Merge pull request #38665 from tchaikov/wip-arm32-cleanups

erasure-code, test, pybind: various arm32 related cleanups.

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agoMerge pull request #38677 from ilanddev/mgr-deadlock-fix
Kefu Chai [Thu, 24 Dec 2020 06:02:48 +0000 (14:02 +0800)]
Merge pull request #38677 from ilanddev/mgr-deadlock-fix

mgr/ActivePyModules.cc: always release GIL before attempting to acquire a lock

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #38678 from tchaikov/wip-denc
Kefu Chai [Thu, 24 Dec 2020 06:00:42 +0000 (14:00 +0800)]
Merge pull request #38678 from tchaikov/wip-denc

include/denc: use pair<const K,V> in range-based for loop

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
4 years agoMerge PR #37428 into master
Patrick Donnelly [Thu, 24 Dec 2020 04:35:39 +0000 (20:35 -0800)]
Merge PR #37428 into master

* refs/pull/37428/head:
mds: move duplicated inner loop out
mds: try to replicate hot dir to restarted MDS

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Sidharth Anupkrishnan <sanupkri@redhat.com>
4 years agoMerge PR #36597 into master
Patrick Donnelly [Thu, 24 Dec 2020 04:34:25 +0000 (20:34 -0800)]
Merge PR #36597 into master

* refs/pull/36597/head:
client: make the send_to_auth display of mds_requests more accurate

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #38037 into master
Patrick Donnelly [Thu, 24 Dec 2020 04:33:47 +0000 (20:33 -0800)]
Merge PR #38037 into master

* refs/pull/38037/head:
qa: test_readahead add kernel client support

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #38631 into master
Patrick Donnelly [Thu, 24 Dec 2020 04:33:05 +0000 (20:33 -0800)]
Merge PR #38631 into master

* refs/pull/38631/head:
MDSLogContext: fix typo in MDSLogContextBase and add more comments

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #38672 into master
Patrick Donnelly [Thu, 24 Dec 2020 04:32:34 +0000 (20:32 -0800)]
Merge PR #38672 into master

* refs/pull/38672/head:
mds: increase the l_mds_openino_backtrace_fetch when fetching the backtrace

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #38692 into master
Patrick Donnelly [Thu, 24 Dec 2020 04:30:35 +0000 (20:30 -0800)]
Merge PR #38692 into master

* refs/pull/38692/head:
pybind/cephfs: pass command as size-1 array of strings

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge PR #38668 into master
Patrick Donnelly [Thu, 24 Dec 2020 04:20:09 +0000 (20:20 -0800)]
Merge PR #38668 into master

* refs/pull/38668/head:
osdc: Fix return type of map waiting functions
monc: Use post rather than defer
common/async: Hold lock in constructor of blocked_result
osdc: Don't keep wrapping completion in wait_for_latest_osdmap
neorados: Replace unsafe uses of dispatch with post

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #38707 from ceph/wip-yuriw-octopus-x-4-master
Yuri Weinstein [Wed, 23 Dec 2020 21:09:51 +0000 (13:09 -0800)]
Merge pull request #38707 from ceph/wip-yuriw-octopus-x-4-master

qa/tests: initial check in for octopus-x/parallel tests (try 2)

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agoqa/tasks/cephadm: include first mgr host when applying mgrs 38707/head
Josh Durgin [Wed, 23 Dec 2020 00:25:48 +0000 (19:25 -0500)]
qa/tasks/cephadm: include first mgr host when applying mgrs

This prevents the first mgr from being shut down due to lack of
appropriate placements.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
4 years agovstart: fix -o ceph.conf options processing 38702/head
Mark Kogan [Wed, 23 Dec 2020 11:54:32 +0000 (13:54 +0200)]
vstart: fix -o ceph.conf options processing

options passed to vstart.sh via the -o param and bunched on the same
line without line termination between them
hence not being parsed.

ex:
```
cat ./ceph.conf
...
debug_ms=0 debug_objecter=0 bluestore_debug_enforce_settings=ssd
bluestore_block_size=214748364800
...
```

Fixes: https://tracker.ceph.com/issues/48708
Signed-off-by: Mark Kogan <mkogan@redhat.com>
4 years agotest/crimson: add abort timer to messenger test 38700/head
Kefu Chai [Wed, 23 Dec 2020 09:21:35 +0000 (17:21 +0800)]
test/crimson: add abort timer to messenger test

Use a 120s timer to force abort the messenger test which should normally
succeeds in 60s, in order to:
* Fail the make check to print logs about where it is blocking;
* Free the listening IP address for the next make check;

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoqa/tests: add light octopus-x/copy (cephadm based)
Yuri Weinstein [Fri, 18 Dec 2020 19:30:29 +0000 (11:30 -0800)]
qa/tests: add light octopus-x/copy (cephadm based)

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
4 years agoMerge PR #37721 into master
Patrick Donnelly [Tue, 22 Dec 2020 20:58:11 +0000 (12:58 -0800)]
Merge PR #37721 into master

* refs/pull/37721/head:
test: add tests for new snapshot APIs
pybind/cephfs: python bindings for new snapshot APIs
client: Snapshot cephfs APIs
mds: include snapshot metadata in trace reply to client
mds: include snap metadata on-disk on snapshot creation
mds: include metadata in SnapInfo structure

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #38468 from IlsooByun/fix_lc_mp_iter
Harish Munjulur [Tue, 22 Dec 2020 19:15:05 +0000 (11:15 -0800)]
Merge pull request #38468 from IlsooByun/fix_lc_mp_iter

rgw: lc: fix multipart iteration problem

4 years agoMerge PR #38611 into master
Patrick Donnelly [Tue, 22 Dec 2020 18:25:54 +0000 (10:25 -0800)]
Merge PR #38611 into master

* refs/pull/38611/head:
qa/cephfs/nfs: Add test for readonly export

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agopybind/cephfs: pass command as size-1 array of strings 38692/head
Patrick Donnelly [Tue, 22 Dec 2020 17:28:58 +0000 (09:28 -0800)]
pybind/cephfs: pass command as size-1 array of strings

Fixes: https://tracker.ceph.com/issues/48701
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #38187 from zdover23/wip-doc-dev-unit-tests-5-of-7
zdover23 [Tue, 22 Dec 2020 16:07:59 +0000 (02:07 +1000)]
Merge pull request #38187 from zdover23/wip-doc-dev-unit-tests-5-of-7

doc/dev: update unit-tests tox section

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
4 years agoMerge pull request #38414 from pcuzner/fix-drivegroup-example
Sebastian Wagner [Tue, 22 Dec 2020 12:30:54 +0000 (13:30 +0100)]
Merge pull request #38414 from pcuzner/fix-drivegroup-example

doc: Update drivegroup spec examples

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
4 years agodoc/dev: update unit-tests tox section 38187/head
Zac Dover [Thu, 19 Nov 2020 14:18:51 +0000 (00:18 +1000)]
doc/dev: update unit-tests tox section

This commit
- alters the structure of the
  unit-test section of the Developer Guide
  that discusses the tox tool, which is
  used to run certain unit tests
- corrects some grammar
- updates the list of locations of tox.ini
  files
- This also incorporates N. Cutler's suggestions.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
4 years agoMerge pull request #38621 from anthonyeleven/anthonyeleven/bluestore-doc-cleanup
zdover23 [Tue, 22 Dec 2020 12:05:17 +0000 (22:05 +1000)]
Merge pull request #38621 from anthonyeleven/anthonyeleven/bluestore-doc-cleanup

doc/rados/configuration: clean up BlueStore config and enhance DB sizing

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
4 years agoqa/cephfs/nfs: Add test for readonly export 38611/head
Varsha Rao [Tue, 15 Dec 2020 10:53:03 +0000 (10:53 +0000)]
qa/cephfs/nfs: Add test for readonly export

Fixes: https://tracker.ceph.com/issues/48622
Signed-off-by: Varsha Rao <varao@redhat.com>
4 years agoMerge pull request #38499 from aclamk/wip-bs-onode-prune-deleted
Igor Fedotov [Tue, 22 Dec 2020 08:42:38 +0000 (11:42 +0300)]
Merge pull request #38499 from aclamk/wip-bs-onode-prune-deleted

os/bluestore: Prune deleted onodes

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agoMerge pull request #38650 from dmick/wip-dmick-docker-mirror
Sebastian Wagner [Tue, 22 Dec 2020 00:08:18 +0000 (01:08 +0100)]
Merge pull request #38650 from dmick/wip-dmick-docker-mirror

qa/distros: configure podman to pull from docker-mirror

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agoinclude/denc: use pair<const K,V> in range-based for loop 38678/head
Kefu Chai [Mon, 21 Dec 2020 17:07:37 +0000 (01:07 +0800)]
include/denc: use pair<const K,V> in range-based for loop

map<K,V>::value_type is pair<const K, V>, so if we use range-based for
loop when iterating through a map, we should use pair<const K,V> instead
of pair<K,V>, the latter also compiles, but it might create a temporary
object of pair<K,V> from pair<const K,V>. GCC-11 complains at seeing
this:

../src/include/denc.h:1002:21: warning: loop variable ‘e’ of type ‘const T&’ {aka ‘const std::pair<OSDPerfMetricQuery, OSDPerfMetricReport>&’} binds to a tem\
porary constructed from type ‘const std::pair<const OSDPerfMetricQuery, OSDPerfMetricReport>’ [-Wrange-loop-constru
ct]
 1002 |       for (const T& e : s) {
      |                     ^

this change

* use the value_type of container in `maplike_details<Container>`,
  so we can avoid the overhead of creating temporay objects when
  encoding a map
* define denc_traits for std::pair<const A, B> as well, so the elements
  of a map can be encoded using denc facility

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge PR #38666 into master
Patrick Donnelly [Mon, 21 Dec 2020 17:06:00 +0000 (09:06 -0800)]
Merge PR #38666 into master

* refs/pull/38666/head:
doc: Fix mds capabilities for manual deployment

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #37156 from CloudFerro/wip-allow-dynamic-levels
Kefu Chai [Mon, 21 Dec 2020 17:04:48 +0000 (01:04 +0800)]
Merge pull request #37156 from CloudFerro/wip-allow-dynamic-levels

os/bluestore: allow dynamic levels

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
Reviewed-by: Mark Nelson <mnelson@redhat.com>
4 years agoMerge PR #38669 into master
Patrick Donnelly [Mon, 21 Dec 2020 17:01:53 +0000 (09:01 -0800)]
Merge PR #38669 into master

* refs/pull/38669/head:
mds: fix typo in debug logs

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Varsha Rao <varao@redhat.com>
4 years agoMerge pull request #38674 from mkogan1/rgw-fix-t48688
Casey Bodley [Mon, 21 Dec 2020 16:26:33 +0000 (11:26 -0500)]
Merge pull request #38674 from mkogan1/rgw-fix-t48688

rgw: fix 'this->ondisk_version' will always evaluate to 'true'

Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
4 years agomgr/ActivePyModules.cc: always release GIL before attempting to acquire a lock 38677/head
Cory Snyder [Mon, 21 Dec 2020 14:33:22 +0000 (09:33 -0500)]
mgr/ActivePyModules.cc: always release GIL before attempting to acquire a lock

A thread that holds the GIL while attempting to acquire a mutex will cause a deadlock
if another thread owns the mutex and is waiting on the GIL. The GIL must not be treated
like an ordinary mutex since it may be preempted at any time or released when doing
blocking I/O. Such deadlocks are severe since they starve all threads from access to the
GIL and therefore prevent any Python code from running until the mgr process is restarted.

Fixes: https://tracker.ceph.com/issues/39264
Signed-off-by: Cory Snyder <csnyder@iland.com>
4 years agoMerge pull request #38653 from dillaman/wip-48647
Mykola Golub [Mon, 21 Dec 2020 14:56:33 +0000 (16:56 +0200)]
Merge pull request #38653 from dillaman/wip-48647

librbd: clear implicitly enabled feature bits when creating images

Reviewed-by: Mykola Golub <mgolub@suse.com>
4 years agoMerge pull request #38670 from Rethan/doc-fix-max_part-description
Jason Dillaman [Mon, 21 Dec 2020 14:13:37 +0000 (09:13 -0500)]
Merge pull request #38670 from Rethan/doc-fix-max_part-description

doc/rbd-nbd: fix description for command rbd-nbd's parameter --max_part

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agorgw: fix 'this->ondisk_version' will always evaluate to 'true' 38674/head
Mark Kogan [Mon, 21 Dec 2020 11:36:16 +0000 (13:36 +0200)]
rgw: fix 'this->ondisk_version' will always evaluate to 'true'

fix:
```
src/rgw/CMakeFiles/radosgw.dir/rgw_rest_metadata.cc.o
../src/rgw/rgw_rest_metadata.cc:267:13: warning: address of
'this->ondisk_version' will always evaluate to 'true'
[-Wpointer-bool-conversion]
                                       &ondisk_version);
```
Fixes: https://tracker.ceph.com/issues/48688
Signed-off-by: Mark Kogan <mkogan@redhat.com>
4 years agoMerge pull request #38259 from rhcs-dashboard/fix-jwt-token
Ernesto Puerta [Mon, 21 Dec 2020 10:23:53 +0000 (11:23 +0100)]
Merge pull request #38259 from rhcs-dashboard/fix-jwt-token

mgr/dashboard: Use secure cookies to store JWT Token

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
4 years agomds: increase the l_mds_openino_backtrace_fetch when fetching the backtrace 38672/head
Xiubo Li [Mon, 21 Dec 2020 08:25:14 +0000 (16:25 +0800)]
mds: increase the l_mds_openino_backtrace_fetch when fetching the backtrace

Signed-off-by: Xiubo Li <xiubli@redhat.com>
4 years agoosd/ReplicatedBackend: handle tailing zeros of recovering objects nicer 38662/head
songweibin [Sat, 19 Dec 2020 10:50:31 +0000 (18:50 +0800)]
osd/ReplicatedBackend: handle tailing zeros of recovering objects nicer

E.g.,
(1) recovery_info.copy_subset = [0, 4194304]
(2) copy_subset(fiemap) = [0, 8192]
(3) out_op->data_included.span_of(copy_subset, 0, 4194304) = [0, 8192]

We'll set new_progress.data_recovered_to = 8192 as a result, and
fail to complete the push in one go.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
4 years agodoc/rbd-nbd: fix description for command rbd-nbd's parameter --max_part 38670/head
haoyixing [Mon, 21 Dec 2020 08:44:50 +0000 (16:44 +0800)]
doc/rbd-nbd: fix description for command rbd-nbd's parameter --max_part

The parameter --max_part should actually override module param max_part,
not as nbds_max as it said.

Signed-off-by: haoyixing <haoyixing@kuaishou.com>
4 years agomds: fix typo in debug logs 38669/head
Xiubo Li [Mon, 21 Dec 2020 02:55:46 +0000 (10:55 +0800)]
mds: fix typo in debug logs

Signed-off-by: Xiubo Li <xiubli@redhat.com>
4 years agoosdc: Fix return type of map waiting functions 38668/head
Adam C. Emerson [Mon, 21 Dec 2020 02:41:10 +0000 (21:41 -0500)]
osdc: Fix return type of map waiting functions

Fixes: https://tracker.ceph.com/issues/47294
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
4 years agoMerge pull request #38573 from batrick/i48600
Kefu Chai [Mon, 21 Dec 2020 03:40:36 +0000 (11:40 +0800)]
Merge pull request #38573 from batrick/i48600

osd: remove invalid put on message

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agomonc: Use post rather than defer
Adam C. Emerson [Fri, 20 Nov 2020 19:27:25 +0000 (14:27 -0500)]
monc: Use post rather than defer

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
4 years agocommon/async: Hold lock in constructor of blocked_result
Adam C. Emerson [Tue, 10 Nov 2020 01:59:13 +0000 (20:59 -0500)]
common/async: Hold lock in constructor of blocked_result

More correct, though not the cause of error.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
4 years agoosdc: Don't keep wrapping completion in wait_for_latest_osdmap
Adam C. Emerson [Tue, 10 Nov 2020 03:14:24 +0000 (22:14 -0500)]
osdc: Don't keep wrapping completion in wait_for_latest_osdmap

Also remove unsafe use of dispatch.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
4 years agoneorados: Replace unsafe uses of dispatch with post
Adam C. Emerson [Tue, 10 Nov 2020 02:07:32 +0000 (21:07 -0500)]
neorados: Replace unsafe uses of dispatch with post

Dispatch may block the calling thread, so don't use it directly in a
called function. (In handlers is okay, though.)

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
4 years agocmake: install python scripts into /usr/sbin even if DESTDIR is empty 38665/head
Kefu Chai [Sun, 20 Dec 2020 05:16:17 +0000 (13:16 +0800)]
cmake: install python scripts into /usr/sbin even if DESTDIR is empty

it's reported that on Alphine, "make install" installs
`ceph-volume-systemd` into `/usr/bin` instead of `/usr/sbin`, and this
breaks `systemd/ceph-volume@.service`. so in this change, we always
install this script into `/usr/sbin`, even if `DESTDIR` is not defined.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/ceph_argparse.py: use a safe value for timeout
Kefu Chai [Sun, 20 Dec 2020 05:10:16 +0000 (13:10 +0800)]
pybind/ceph_argparse.py: use a safe value for timeout

we have reports that on arm32 machines, it timed out immediately, so
to prevent it from int overflow, use a safer value instead of
(1 << (32 - 1)) - 1.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/ceph_argparse.py: drop unused variable
Kefu Chai [Sun, 20 Dec 2020 05:04:59 +0000 (13:04 +0800)]
pybind/ceph_argparse.py: drop unused variable

and other PEP8 compliance cleanups

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoerasure-code: bail out early if chunks to be decoded is empty
Kefu Chai [Sun, 20 Dec 2020 05:02:46 +0000 (13:02 +0800)]
erasure-code: bail out early if chunks to be decoded is empty

otherwise we will read from uninitialized memory for blocksize.

update tests accordingly, as the number of decoded chunks is 0 if

* the number of available chunks is 0 and
* the number of requested chunks is not 0

after this change, because, in that case, the decode fails before any
chunk is allocated. but otherwise, the output chunks are still
allocated. so instead checking the number of output chunks, the test is
removed.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agodoc: Fix mds capabilities for manual deployment 38666/head
Ivan Jager [Mon, 14 Dec 2020 12:39:00 +0000 (06:39 -0600)]
doc: Fix mds capabilities for manual deployment

Now matches auth-config-ref.rst, and actually works.

Signed-off-by: Ivan Jager <aij+git@mrph.org>
4 years agotest/erasure-code: fold variables with the same values
Kefu Chai [Sun, 20 Dec 2020 04:42:10 +0000 (12:42 +0800)]
test/erasure-code: fold variables with the same values

for better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agotest/erasure-code: define variables closer to where they are used
Kefu Chai [Sun, 20 Dec 2020 04:15:06 +0000 (12:15 +0800)]
test/erasure-code: define variables closer to where they are used

for better readability.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoerasure-code: print warnings using dout(10)
Kefu Chai [Sun, 20 Dec 2020 03:39:49 +0000 (11:39 +0800)]
erasure-code: print warnings using dout(10)

stderr is closed once the process is daemonized, while `derr` is for
fatal error or logic error in program. dout(10) is more appropriate in
this case, as it is an expected error from callee's perspective.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #38646 from xxhdx1985126/wip-crimson-bug-fix
Kefu Chai [Sat, 19 Dec 2020 12:00:42 +0000 (20:00 +0800)]
Merge pull request #38646 from xxhdx1985126/wip-crimson-bug-fix

crimson/osd: don't get recovery read lock in PGRecvery::on_local_recover()

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: make sure the read lock is acquired when trying to get recovery read 38646/head
Xuehan Xu [Sat, 19 Dec 2020 10:21:21 +0000 (18:21 +0800)]
crimson/osd: make sure the read lock is acquired when trying to get recovery read

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
4 years agocrimson/osd: don't get recovery read lock in PGRecvery::on_local_recover()
Xuehan Xu [Fri, 18 Dec 2020 04:20:48 +0000 (12:20 +0800)]
crimson/osd: don't get recovery read lock in PGRecvery::on_local_recover()

Now we've changed drop_recovery_read to only care about the recovery_read flag, so
we shouldn't get read lock when acquiring recovery read, otherwise there would be
a chance in which the read lock can't get released

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
4 years agoMerge pull request #38291 from aserdean/windows_common_proccess_name
Kefu Chai [Sat, 19 Dec 2020 05:41:14 +0000 (13:41 +0800)]
Merge pull request #38291 from aserdean/windows_common_proccess_name

common: Add get_process_name implementation for Windows

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #38630 from tchaikov/wip-crimson-cleanups
Kefu Chai [Sat, 19 Dec 2020 05:24:31 +0000 (13:24 +0800)]
Merge pull request #38630 from tchaikov/wip-crimson-cleanups

crimson/osd: cleanups to drop some do_with() calls

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agoMerge pull request #38522 from tchaikov/wip-mon-health-cleanup
Kefu Chai [Sat, 19 Dec 2020 03:11:36 +0000 (11:11 +0800)]
Merge pull request #38522 from tchaikov/wip-mon-health-cleanup

mon/HealthMonitor: split large method into smaller ones and cleanups

Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge PR #38579 into master
Patrick Donnelly [Fri, 18 Dec 2020 21:26:46 +0000 (13:26 -0800)]
Merge PR #38579 into master

* refs/pull/38579/head:
mds: ensure dirfrags are fetched once
mds: refactor variable names

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #38540 into master
Patrick Donnelly [Fri, 18 Dec 2020 21:26:19 +0000 (13:26 -0800)]
Merge PR #38540 into master

* refs/pull/38540/head:
client: support client oc's options can update at runtime

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #38495 into master
Patrick Donnelly [Fri, 18 Dec 2020 21:24:43 +0000 (13:24 -0800)]
Merge PR #38495 into master

* refs/pull/38495/head:
doc: add documentation for new multifs feature
qa: update tests concerning setting of multifs
mon,mds: mark multifs stable

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
4 years agodoc/rados/configuration: clean up BlueStore config and enhance DB sizing guidance 38621/head
Anthony D'Atri [Wed, 16 Dec 2020 17:59:14 +0000 (09:59 -0800)]
doc/rados/configuration: clean up BlueStore config and enhance DB sizing guidance

4 years agomgr/cephadm: fix bug in orch apply osd --dry-run where empty table printed 38654/head
Daniel-Pivonka [Fri, 18 Dec 2020 15:51:31 +0000 (10:51 -0500)]
mgr/cephadm: fix bug in orch apply osd --dry-run where empty table printed

Signed-off-by: Daniel-Pivonka <dpivonka@redhat.com>
4 years agolibrbd: drop explicit masking of implicit feature bits 38653/head
Jason Dillaman [Fri, 18 Dec 2020 15:14:13 +0000 (10:14 -0500)]
librbd: drop explicit masking of implicit feature bits

Now that the create image state machine is handling the masking
of implicit features, all callers to the state machine can skip
the need to perform the masking themselves.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agolibrbd/image: mask out all implicit features when creating an image
Jason Dillaman [Fri, 18 Dec 2020 14:55:30 +0000 (09:55 -0500)]
librbd/image: mask out all implicit features when creating an image

This will ensure that all paths to the create image state machine
properly handle this condition. Previously, it was up to the callers
of the state machine to clear the implicit feature bits.

Fixes: https://tracker.ceph.com/issues/48647
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agolibrbd/image: use internal feature flag mask when creating images
Jason Dillaman [Fri, 18 Dec 2020 14:48:58 +0000 (09:48 -0500)]
librbd/image: use internal feature flag mask when creating images

When validating the provided features for an image, utilize the
RBD_FEATURES_INTERNAL flag instead of just RBD_FEATURE_OPERATION.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agolibrbd/api: do not explicitly add the MIGRATION feature bit
Jason Dillaman [Fri, 18 Dec 2020 14:42:51 +0000 (09:42 -0500)]
librbd/api: do not explicitly add the MIGRATION feature bit

This feature bit is automatically added to the source and destination
images via the cls method on the OSD.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #38613 from dillaman/wip-48522
Mykola Golub [Fri, 18 Dec 2020 14:29:18 +0000 (16:29 +0200)]
Merge pull request #38613 from dillaman/wip-48522

librbd/api: avoid retrieving more than max mirror image info records

Reviewed-by: Mykola Golub <mgolub@suse.com>
4 years agomgr/dashboard: Use secure cookies to store JWT Token 38259/head
Aashish Sharma [Tue, 24 Nov 2020 05:58:28 +0000 (11:28 +0530)]
mgr/dashboard: Use secure cookies to store JWT Token

This PR intends to store the jwt token in secure cookies instead of local storage

Fixes: https://tracker.ceph.com/issues/44591
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
(cherry picked from commit 36703c63381e6723fff57266235f8230e6af1d92)

4 years agoMerge pull request #38643 from tchaikov/wip-doc-dev
Kefu Chai [Fri, 18 Dec 2020 09:58:51 +0000 (17:58 +0800)]
Merge pull request #38643 from tchaikov/wip-doc-dev

doc/dev/generatedocs.rst: fix highlight syntax

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agoqa/distros: configure podman to pull from docker-mirror 38650/head
Dan Mick [Thu, 17 Dec 2020 02:06:31 +0000 (02:06 +0000)]
qa/distros: configure podman to pull from docker-mirror

This also requires a change to cephadm.py to search for
registry entries for docker.io by 'prefix' or 'location',
and to only add the mirror if a mirror isn't already present

Signed-off-by: Dan Mick <dmick@redhat.com>
4 years agoMerge pull request #38638 from idryomov/wip-krbd-stable-writes-attr
Ilya Dryomov [Fri, 18 Dec 2020 09:30:34 +0000 (10:30 +0100)]
Merge pull request #38638 from idryomov/wip-krbd-stable-writes-attr

qa: krbd_stable_pages_required.sh: move to stable_writes attribute

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #38635 from ronen-fr/wip-ronenf-crimsclang-tree
Ronen Friedman [Fri, 18 Dec 2020 09:27:59 +0000 (11:27 +0200)]
Merge pull request #38635 from ronen-fr/wip-ronenf-crimsclang-tree

crimson/seastore: fixing Clang errors and warnings

4 years agoMerge pull request #38602 from dillaman/wip-48486
Mykola Golub [Fri, 18 Dec 2020 08:59:08 +0000 (10:59 +0200)]
Merge pull request #38602 from dillaman/wip-48486

librbd: explicitly disable readahead for writearound cache

Reviewed-by: Mykola Golub <mgolub@suse.com>
4 years agoMerge pull request #38645 from cyx1231st/wip-seastar-onode-tree-fix-clang-link
Yingxin [Fri, 18 Dec 2020 07:27:13 +0000 (15:27 +0800)]
Merge pull request #38645 from cyx1231st/wip-seastar-onode-tree-fix-clang-link

crimson/onode-staged-tree: fix explicit template instantiation for clang

4 years agoMDSLogContext: fix typo in MDSLogContextBase and add more comments 38631/head
haoyixing [Thu, 17 Dec 2020 08:07:47 +0000 (16:07 +0800)]
MDSLogContext: fix typo in MDSLogContextBase and add more comments

Fix typos in MDSLogContextBase's definition and function '::complete',
also add more comments about setting safe_pos.

Signed-off-by: haoyixing <haoyixing@kuaishou.com>
4 years agocommon: Add get_process_name implementation for Windows 38291/head
Alin Gabriel Serdean [Thu, 12 Nov 2020 21:34:46 +0000 (21:34 +0000)]
common: Add get_process_name implementation for Windows

This patch adds get_process_name for Windows based on
GetModuleFileName.

Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
4 years agocrimson/onode-staged-tree: fix explicit template instantiation for clang 38645/head
Yingxin Cheng [Fri, 18 Dec 2020 02:55:43 +0000 (10:55 +0800)]
crimson/onode-staged-tree: fix explicit template instantiation for clang

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>