]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Ilya Dryomov [Tue, 29 Sep 2020 13:29:16 +0000 (15:29 +0200)]
mon: set session_timeout when adding to session_map
With msgr2, the session is added in Monitor::ms_handle_accept()
which is queued by ProtocolV2 at the end of handling CLIENT_IDENT
frame, before responding with SERVER_IDENT frame. session_timeout
is 0 and gets set only in Monitor::ms_dispatch(), so if the session
trimming code in Monitor::tick() gets to the session before the peer
receives our SERVER_IDENT, handles it, sends the first message and
we receive it, the session is wrongly closed.
This doesn't happen with msgr1, because there the session is added in
Monitor::ms_dispatch(), upon receive of the first message (MSG_AUTH).
Fixes: https://tracker.ceph.com/issues/47697
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Jan Fajerski [Fri, 25 Sep 2020 09:45:16 +0000 (11:45 +0200)]
Merge pull request #37311 from mgariepy/fix-47502
[ceph-volume]: remove unneeded call to get_devices()
Xiubo Li [Thu, 20 Aug 2020 05:12:51 +0000 (01:12 -0400)]
client: switch to unique_lock to avoid use the client_lock directly
Fixes: https://tracker.ceph.com/issues/47039
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Xiubo Li [Wed, 23 Sep 2020 01:06:05 +0000 (09:06 +0800)]
client: unlock client_lock when copying data to bufferlist
It's no need to hold the lock when copying the data, which may
take a long time.
Fixes: https://tracker.ceph.com/issues/47047
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Xiubo Li [Thu, 20 Aug 2020 05:12:51 +0000 (01:12 -0400)]
client: do more check for the client_lock
Fixes: https://tracker.ceph.com/issues/47039
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Xiubo Li [Wed, 23 Sep 2020 01:09:56 +0000 (09:09 +0800)]
client: simplify the iterating related code to make it more readable
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Patrick Donnelly [Fri, 25 Sep 2020 00:22:32 +0000 (17:22 -0700)]
Merge PR #36685 into master
* refs/pull/36685/head:
mds: allow quota for root directory
Reviewed-by: Zheng Yan <zyan@redhat.com>
Patrick Donnelly [Fri, 25 Sep 2020 00:21:36 +0000 (17:21 -0700)]
Merge PR #37009 into master
* refs/pull/37009/head:
client: remove the unecessary client_lock for objector->read/write()
client: fix the comment for RWRef
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Patrick Donnelly [Thu, 24 Sep 2020 21:37:08 +0000 (14:37 -0700)]
Merge PR #37266 into master
* refs/pull/37266/head:
qa: ignore logrotate state rename error
Reviewed-by: Rishabh Dave <ridave@redhat.com>
Marc Gariepy [Tue, 22 Sep 2020 13:01:33 +0000 (09:01 -0400)]
ceph-volume: remove unneeded call to get_devices()
there is no need to probe the device to generate the argparse help
message.
also removing the test on the function as it's not there anymore.
Signed-off-by: Marc Gariepy <gariepy.marc@gmail.com>
Fixes: https://tracker.ceph.com/issues/47502
Jason Dillaman [Thu, 24 Sep 2020 18:45:55 +0000 (14:45 -0400)]
Merge pull request #37374 from wjwithagen/wjw-fix-crypto-alloca
librbd: Use stdlib.h instead of alloca.h
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Nathan Cutler [Thu, 24 Sep 2020 17:54:17 +0000 (19:54 +0200)]
SubmittingPatches-backports.rst: clarify where to explain
The prevailing consensus is that rationales of direct fixes need
not be included in the commit messages. The matter must be
made clear to the reviewers, but it's not important how this is
accomplished.
(Perusers of the git history interested in finding out this information
are free to search for it by linking the commit in question to the PR it
originated from, and possibly from there to the related tracker issues.)
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Casey Bodley [Thu, 24 Sep 2020 18:02:30 +0000 (14:02 -0400)]
rgw: raise debug level of DatalogTrimImplCR message
the message was printed at level 0 even on success
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Willem Jan Withagen [Wed, 23 Sep 2020 15:49:08 +0000 (17:49 +0200)]
librbd: Use stdlib.h instead of alloca.h
src/librbd/crypto/BlockCrypto.cc:5:10: fatal error: 'alloca.h' file not found
^~~~~~~~~~
1 error generated.
Including <stdlib.h> is enough
fixes: https://tracker.ceph.com/issues/47614
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
Ilya Dryomov [Thu, 24 Sep 2020 16:20:48 +0000 (18:20 +0200)]
Merge pull request #37385 from idryomov/wip-krbd-read-only-override
rbd: make common options override krbd-specific options
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Kefu Chai [Thu, 24 Sep 2020 14:30:12 +0000 (22:30 +0800)]
Merge pull request #37384 from tchaikov/wip-crimson-doc
doc/dev/crimson: add instructions on how to build crimson
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Johannes M. Scheuermann [Thu, 24 Sep 2020 10:10:13 +0000 (12:10 +0200)]
debian: Add missing Python dependency for ceph-mgr
The file mgr/volumes/fs/operations/pin_util.py imports distutils.util for using
strtobool and thus the python package is required.
Signed-off-by: Johannes M. Scheuermann <joh.scheuer@gmail.com>
Avan Thakkar [Thu, 24 Sep 2020 09:15:19 +0000 (14:45 +0530)]
mgr/dashboard: cluster > manager modules
Fixes: https://tracker.ceph.com/issues/47484
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
Xiubo Li [Wed, 2 Sep 2020 04:25:20 +0000 (00:25 -0400)]
mds: defer encoding and storing the inode backtrace
When encoding the inode backtrace, it may take a bit longer time.
If we hold the mds_lock or other locks, it may cause other threads
to idle wait.
This will queue the encoding and storing work in the mds finisher
to get rid of the locks holded.
Fixes: https://tracker.ceph.com/issues/47148
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Xiubo Li [Mon, 31 Aug 2020 07:50:36 +0000 (03:50 -0400)]
mds: defer encoding and storing the CDir dentries
When encoding the dentries infomation to remove or update, it may
take a bit longer time. If we hold the mds_lock or other locks, it
may cause other threads to idle wait.
This will queue the encoding and storing work in the mds finisher
to get rid of the locks holded.
Fixes: https://tracker.ceph.com/issues/47148
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Ilya Dryomov [Thu, 24 Sep 2020 08:50:24 +0000 (10:50 +0200)]
rbd: make common options override krbd-specific options
ceph-csi has added support for passing custom map and unmap options via
mapOptions and unmapOptions storage class parameters. However, it also
uses --read-only for implementing ROX (ReadOnlyMany) PVs. If the user
supplies "mapOptions: rw", they will get around the intended read-only
restriction (at least on the block device).
ceph-csi could be patched to use "-o ro", but it actually makes sense
for common options to win over device type-specific equivalents.
Fixes: https://tracker.ceph.com/issues/47625
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Kefu Chai [Thu, 24 Sep 2020 07:51:05 +0000 (15:51 +0800)]
Merge pull request #37236 from jschmid1/osd_rm_doc_fix
docs: remove docs should say osd_id instead of svc_id
Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Thu, 24 Sep 2020 06:39:41 +0000 (14:39 +0800)]
doc/dev/crimson: add instructions on how to build crimson
and add a link to Scylla's document on debugging with GDB
Signed-off-by: Kefu Chai <kchai@redhat.com>
Xiubo Li [Wed, 9 Sep 2020 03:13:01 +0000 (23:13 -0400)]
mds: add error handler with lock support
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Lenz Grimmer [Thu, 24 Sep 2020 07:27:18 +0000 (09:27 +0200)]
Merge pull request #37275 from bk201/wip-47494
mgr/dashboard: display devices' health information within a tabset
Reviewed-by: Patrick Seidensal <pnawracay@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
zdover23 [Thu, 24 Sep 2020 05:11:50 +0000 (15:11 +1000)]
Merge pull request #37305 from zdover23/wip-doc-3-dev-guide-basic-workflow-date-update-sep-2020
doc/dev: updated date from 2016
Reviewed-by: Neha Ojha <nojha@redhat.com>
Changcheng Liu [Thu, 24 Sep 2020 01:25:38 +0000 (09:25 +0800)]
msgr: remove the macro not referenced anywhere
The default port range should be between:
[ms_bind_port_min, ms_bind_port_max]
Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
Jos Collin [Wed, 23 Sep 2020 11:58:55 +0000 (11:58 +0000)]
mon: test before adding/removing required_client_features
Fixes: https://tracker.ceph.com/issues/47006
Signed-off-by: Jos Collin <jcollin@redhat.com>
Zac Dover [Wed, 23 Sep 2020 23:49:36 +0000 (09:49 +1000)]
doc/dev: added the other four tests
This PR adds a list of tests that are performed
when a PR hits Github.
Signed-off-by: Zac Dover <zac.dover@gmail.com>
Samuel Just [Sat, 18 Jul 2020 00:29:44 +0000 (17:29 -0700)]
crimson/os/seastore/journal: return addr and seq from submit_record
Reworks journal_seq_t to be a monotonically increasing, but non-dense
value from the current segment_seq_t and segment offset.
Signed-off-by: Samuel Just <sjust@redhat.com>
Samuel Just [Fri, 7 Aug 2020 22:08:18 +0000 (15:08 -0700)]
crimson/os/seastore/journal: add interface for trimming the journal
Signed-off-by: Samuel Just <sjust@redhat.com>
Samuel Just [Thu, 23 Jul 2020 00:23:53 +0000 (17:23 -0700)]
crimson/os/seastore: rework pending extents
Previously, we simply added the old extent to the retired set and
treated the new instance seperately. Instead, let the new pending
instance reference the old instance via a prior_instance reference.
This has a few advantages:
- During commit, we swap cache hooks from the prior instance to
avoid traversal
- Extents in the retired set are only those extents that are no
longer mapped/valid.
- btree range pins can be swapped without a traversal
- position in the dirty list can be maintained
That last will be particularly important as the dirty list will
therefore be ordered from the extent with the oldest initial
delta forward.
Signed-off-by: Samuel Just <sjust@redhat.com>
Samuel Just [Wed, 22 Jul 2020 19:23:36 +0000 (12:23 -0700)]
crimson/os/seastore: factor out LogicalCachedExtent::on_delta_write
Signed-off-by: Samuel Just <sjust@redhat.com>
Samuel Just [Fri, 7 Aug 2020 19:44:34 +0000 (12:44 -0700)]
crimson/os/seastore/journal: rename journal_replay_lb to journal_tail
Signed-off-by: Samuel Just <sjust@redhat.com>
Samuel Just [Wed, 22 Jul 2020 23:32:12 +0000 (16:32 -0700)]
crimson/os/seastore/lba_manager/btree: factor out common LBANode helpers
Signed-off-by: Samuel Just <sjust@redhat.com>
Samuel Just [Wed, 12 Aug 2020 18:10:56 +0000 (11:10 -0700)]
crimson/os/seastore: remove CachedExtent move constructor
I'm not sure why I added this in the first place, there aren't really
any scenarios where invoking it wouldn't be a bug.
Signed-off-by: Samuel Just <sjust@redhat.com>
Samuel Just [Fri, 21 Aug 2020 21:53:36 +0000 (14:53 -0700)]
crimson/os/seastore/.../btree_lba_node_impl: mutate_mapping adjust addr for extent state
Addresses must always be adjusted depending on whether the extent will
be written as a block or as a delta.
Signed-off-by: Samuel Just <sjust@redhat.com>
Samuel Just [Tue, 18 Aug 2020 03:10:21 +0000 (20:10 -0700)]
crimson/os/seastore: improve misc debugging
Signed-off-by: Samuel Just <sjust@redhat.com>
Samuel Just [Thu, 20 Aug 2020 21:25:52 +0000 (14:25 -0700)]
crimson/os/seastore/seastore_types: permit paddr_t::operator- to operate on block relative addrs
Signed-off-by: Samuel Just <sjust@redhat.com>
Samuel Just [Thu, 20 Aug 2020 21:18:22 +0000 (14:18 -0700)]
crimson/os/seastore/segment_manager: use smaller segments for tests
This way, we'll roll segments more frequently.
Signed-off-by: Samuel Just <sjust@redhat.com>
Samuel Just [Thu, 20 Aug 2020 21:24:02 +0000 (14:24 -0700)]
crimson/os/seastore/lba_manager/btree/btree_lba_manager: manage pin in init
Signed-off-by: Samuel Just <sjust@redhat.com>
Samuel Just [Thu, 20 Aug 2020 21:23:14 +0000 (14:23 -0700)]
crimson/os/seastore/lba_manager: drop from cache directly during replay if dead
Dead extents can't go through the normal retire_extent path as they don't
have valid pins or other elements of a real extent. Instead, simply drop
them on the floor directly.
Signed-off-by: Samuel Just <sjust@redhat.com>
Samuel Just [Fri, 21 Aug 2020 19:57:39 +0000 (12:57 -0700)]
crimson/os/seastore/.../lba_btree_node_impl: fix find_hole
find_hole shouldn't check entries prior to min.
Signed-off-by: Samuel Just <sjust@redhat.com>
Samuel Just [Fri, 21 Aug 2020 20:15:21 +0000 (13:15 -0700)]
crimson/os/seastore: initialize crc *after* read
Previously, all extents ended up initialized to the same crc value
upon read -- the one for an empty buffer. This bug wasn't detected
because an extent was always evicted and reread following the first
write and subsequently kept in cache once initially written.
Also, add crc to operator<< for extents.
Signed-off-by: Samuel Just <sjust@redhat.com>
Samuel Just [Thu, 20 Aug 2020 19:38:20 +0000 (12:38 -0700)]
crimson/os/seastore/transaction_manager: only add pin if not already pending
If it's already pending, cache.duplicate_for_write is a noop and the extent
will already have a pin. Also, add some debugging.
Signed-off-by: Samuel Just <sjust@redhat.com>
Samuel Just [Fri, 21 Aug 2020 05:12:05 +0000 (22:12 -0700)]
crimson/os/seastore/cache: let root exist in the dirty list
Most handling remains special, but this way the dirty list we
work on will include root directly.
Signed-off-by: Samuel Just <sjust@redhat.com>
Samuel Just [Fri, 21 Aug 2020 21:24:26 +0000 (14:24 -0700)]
crimson/os/seastore: clarify crc initial state
Otherwise, different users may use different values complicating
debugging. We can re-add this in the future if it becomes
useful.
Signed-off-by: Samuel Just <sjust@redhat.com>
Samuel Just [Fri, 21 Aug 2020 21:28:50 +0000 (14:28 -0700)]
crimson/os/seastore/transaction: let get_extent signal retired extents
Signed-off-by: Samuel Just <sjust@redhat.com>
Samuel Just [Fri, 21 Aug 2020 23:06:55 +0000 (16:06 -0700)]
crimson/common/fixed_kv_node_layout: fix lower_bound
This went undetected because all existing users ensure that
the key does not already exist.
Signed-off-by: Samuel Just <sjust@redhat.com>
Michael Fritch [Wed, 23 Sep 2020 21:30:43 +0000 (15:30 -0600)]
Merge pull request #37186 from guits/guits-cephadm-filter-dangling-images
cephadm: filter dangling images in get_last_local_ceph_image()
Michael Fritch [Wed, 23 Sep 2020 21:29:30 +0000 (15:29 -0600)]
Merge pull request #37133 from jschmid1/ptrace_priv
cephadm: capadd and privileged are mutex with podman >= 2.0
Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Patrick Donnelly [Wed, 23 Sep 2020 15:05:47 +0000 (08:05 -0700)]
Merge PR #37310 into master
* refs/pull/37310/head:
client: refresh rstat for quota check of rename
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Lenz Grimmer [Wed, 23 Sep 2020 15:01:00 +0000 (17:01 +0200)]
Merge pull request #37041 from bk201/wip-47356
mgr/dashboard: fix security scopes of some NFS-Ganesha endpoints
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
Lenz Grimmer [Wed, 23 Sep 2020 14:26:09 +0000 (16:26 +0200)]
Merge pull request #37244 from ceph/47543-bucket-list-perf
mgr/dashboard: fix perf. issue when listing large amounts of buckets
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Daniel Gryniewicz [Wed, 23 Sep 2020 11:57:27 +0000 (07:57 -0400)]
Merge pull request #37242 from dang/wip-dang-47520
Fix missing req_state for librgw
Ilya Dryomov [Wed, 23 Sep 2020 11:39:59 +0000 (13:39 +0200)]
Merge pull request #37330 from idryomov/wip-backport-create-issue-key
doc: SubmittingPatches-backports.rst: backport scripts read key from file
Reviewed-by: Nathan Cutler <ncutler@suse.com>
Lenz Grimmer [Wed, 23 Sep 2020 10:59:06 +0000 (12:59 +0200)]
Merge pull request #37136 from p-se/cd-add-per-rbd-graphs
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Ilya Dryomov [Wed, 23 Sep 2020 09:37:17 +0000 (11:37 +0200)]
SubmittingPatches-backports.rst: backport scripts read key from file
The --key option was removed in commit
1b5f37bbcd4a
("backport-create-issue: read redmine key from file").
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Lenz Grimmer [Wed, 23 Sep 2020 09:01:06 +0000 (11:01 +0200)]
Merge pull request #37192 from rhcs-dashboard/fix-46898-master
mgr/dashboard/api: move/create OSD histogram in separate endpoint
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Kefu Chai [Wed, 23 Sep 2020 08:49:12 +0000 (16:49 +0800)]
Merge pull request #37303 from tchaikov/wip-crimson-osd
crimson: do not set_value() twice and fix Message leak
Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Kefu Chai [Wed, 23 Sep 2020 07:56:23 +0000 (15:56 +0800)]
crimson/mon: move handle_auth_done() to "v1 and v2" section
crimson::mon::Connection::handle_auth_done() is shared by both v1 and v2
authentication implementation, so move it to "v1 and v2" section
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Wed, 23 Sep 2020 07:11:04 +0000 (15:11 +0800)]
Merge pull request #37326 from tchaikov/wip-47324
test/crimson: better error message when bind fails
Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>