1
0
mirror of https://github.com/ceph/ceph synced 2025-03-09 01:38:58 +00:00
Commit Graph

139985 Commits

Author SHA1 Message Date
Matan Breizman
cc4b75718f qa/suites/rados/thrash/thrashers/mapgap: Increase trimming probability
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
2023-09-13 15:29:35 +00:00
Matan Breizman
95a44bf087 osd/OSD: add log line on mapgaps
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
2023-09-10 14:39:56 +00:00
Matan Breizman
9897164265 osd/OSD: remove skip_maps
the superblock now stores an interval_set which supports non-contiguous osdmap history.

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
2023-09-10 14:39:56 +00:00
Matan Breizman
05aeeeebe6 osd/OSD: remove skip_maps comment
Now that oldest/newest maps are stored as an interval set we no longer
move the oldest_map forward to `first` epoch. We simply add the new osdmap range
from `first` to `last` regardless of `skip_maps`.
trim_maps now erases the oldest_map each iteration and support epoch gaps.

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
2023-09-10 14:39:56 +00:00
Matan Breizman
9215996586 osd/osd_types: Introduce OSDSuperblock::maps
replace oldest/newest_map members with an interval_set in order to
support the tracking of an osdmap range gap.

Map gap example:
```
2023-08-28T18:21:05.452+0000 7f409bce2640  3 osd.4 84 handle_osd_map epochs [85,86], i have 84, src has [1,86]
2023-08-28T18:26:25.829+0000 7fcfea0c1640  3 osd.4 86 handle_osd_map epochs [208,208], i have 86, src has [208,400]
2023-08-28T18:26:25.829+0000 7fcfea0c1640 10 osd.4 86  superblock cluster_osdmap_trim_lower_bound new epoch is: 208
2023-08-28T18:26:25.829+0000 7fcfea0c1640 10 osd.4 86 handle_osd_map osd map gap [16~71,208~1]
2023-08-28T18:26:25.829+0000 7fcfea0c1640  3 osd.4 86 handle_osd_map epochs [209,248], i have 208, src has [208,400]
2023-08-28T18:26:25.833+0000 7fcfea0c1640 10 osd.4 86 handle_osd_map osd map gap [31~56,208~4]
2023-08-28T18:26:25.941+0000 7fcfea0c1640  3 osd.4 211 handle_osd_map epochs [212,248], i have 211, src has [208,400]
2023-08-28T18:26:25.945+0000 7fcfea0c1640 10 osd.4 211 handle_osd_map osd map gap [46~41,208~41]
2023-08-28T18:26:25.949+0000 7fcfea0c1640  3 osd.4 211 handle_osd_map epochs [209,248], i have 248, src has [208,400]
2023-08-28T18:26:25.949+0000 7fcfea0c1640  3 osd.4 211 handle_osd_map epochs [212,251], i have 248, src has [208,400]
2023-08-28T18:26:25.953+0000 7fcfea0c1640 10 osd.4 211 handle_osd_map osd map gap [61~26,208~44]
2023-08-28T18:26:26.073+0000 7fcfea0c1640  3 osd.4 251 handle_osd_map epochs [249,288], i have 251, src has [208,400]
2023-08-28T18:26:26.081+0000 7fcfea0c1640 10 osd.4 251 handle_osd_map osd map gap [76~11,208~48]
2023-08-28T18:26:26.081+0000 7fcfea0c1640  3 osd.4 251 handle_osd_map epochs [252,291], i have 255, src has [208,400]
```

Full example: https://gist.github.com/Matan-B/9b0eed8daee3bd6c3216bd3b6d11e8fb

Fixes: https://tracker.ceph.com/issues/61962

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
2023-09-10 14:39:13 +00:00
zdover23
e900cf5f32
Merge pull request from zdover23/wip-doc-2023-09-10-architecture-1-of-x
doc/architecture.rst - edit up to "Cluster Map"

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2023-09-10 21:43:44 +10:00
Zac Dover
b3538f8ade doc/architecture.rst - edit up to "Cluster Map"
Edit doc/architecture.rst up to "Cluster Map", but not including
"Cluster Map".

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
2023-09-10 21:16:33 +10:00
Anthony D'Atri
1de6ea7c8f
Merge pull request from alvinowyong/wip-doc-create-osd-warning
doc/cephadm/services: Add package conflict warning to osd.rst
2023-09-09 16:08:59 -04:00
Patrick Donnelly
7264120b26
Merge PR into main
* refs/pull/53331/head:
	Revert "Revert "Merge PR  into main""

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2023-09-09 10:50:22 -04:00
zdover23
c51628ae66
Merge pull request from zdover23/wip-doc-2023-09-08-README-md-test-cluster-commands
doc: update test cluster commands in README.md

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2023-09-09 21:14:31 +10:00
zdover23
d787dd7e94
Merge pull request from zdover23/wip-doc-2023-09-08-rados-config-mon-config-ref-background
doc/configuration: edit "bg" in mon-config-ref.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2023-09-09 11:45:35 +10:00
Laura Flores
2810d1a5f8
Merge pull request from Matan-B/wip-matanb-61820
ceph_mon: Fix MonitorDBStore usage
2023-09-08 18:12:53 -04:00
Laura Flores
9c671cdbf9
Merge pull request from ifed01/wip-ifed-fix-btree-allocator
os/bluestore: fix btree allocator
2023-09-08 18:11:13 -04:00
Laura Flores
81c209d92b
Merge pull request from rzarzynski/wip-crimson-ec-classical-refactor
osd: dissect and abstract RMWPipeline from ECBackend for sharing it with crimson
2023-09-08 18:10:54 -04:00
Laura Flores
2ac39816dd
Merge pull request from cbodley/wip-blkdev-nodiscard
blkdev: fix nodiscard warning in get_device_metadata()
2023-09-08 18:10:33 -04:00
Alvin Owyong
38ec8e0692
docs: update warning message
truncated warning message according to comments

Signed-off-by: Alvin Owyong <70066269+alvinowyong@users.noreply.github.com>
2023-09-09 01:21:42 +08:00
Alvin Owyong
5e803567c7
docs: add warning about potential package conflict
Add warning for "creating new osds" section under cephadm services.

Signed-off-by: Alvin Owyong <70066269+alvinowyong@users.noreply.github.com>
2023-09-09 00:25:04 +08:00
Ilya Dryomov
bb8745e032
Merge pull request from idryomov/wip-61505
qa/suites/upgrade: enable default RBD image features

Reviewed-by: Mykola Golub <mgolub@suse.com>
2023-09-08 16:19:05 +02:00
Zac Dover
d009f0757c doc/configuration: edit "bg" in mon-config-ref.rst
Edit the English in the section "Background" in
doc/rados/configuration/mon-config-ref.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
2023-09-08 22:03:54 +10:00
Zac Dover
8d606003af doc: update test cluster commands in README.md
The "rbd" pool has not been created by default since Luminous. This
commit removes a command that assumed the existence of the "rbd" pool.

Signed-off-by: Zac Dover <zac.dover@proton.me>
2023-09-08 21:00:38 +10:00
Venky Shankar
7d5795dc37 Revert "Revert "Merge PR into main""
This reverts commit af4558f0ac.

Fixes: http://tracker.ceph.com/issues/62482
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2023-09-08 14:15:35 +05:30
Pedro Gonzalez Gomez
73fb5c76e4
Merge pull request from rhcs-dashboard/fix-62665-main
mgr/dashboard: Object gateway sync status cards keeps loading when multisite is not configured


Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
2023-09-08 10:21:26 +02:00
Pedro Gonzalez Gomez
db902eb0c7
Merge pull request from rhcs-dashboard/fix-62565-main
mgr/dashboard: Object gateway inventory card incorrect Buckets and user count

Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
2023-09-08 09:02:37 +02:00
Pedro Gonzalez Gomez
4ae1446a78
Merge pull request from rhcs-dashboard/fix-62684-main
mgr/dashboard: replace sync progress bar with last synced timestamp in rgw multisite sync status card


Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
Reviewed-by: Ali Maredia <amaredia@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
2023-09-08 08:59:20 +02:00
Pedro Gonzalez Gomez
15fae5adae
Merge pull request from rhcs-dashboard/fix-62677-main
mgr/dashboard: rgw multisite topology view shows blank table for multisite entities


Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
2023-09-08 08:56:40 +02:00
J. Eric Ivancich
e7ed10f4d6
Merge pull request from ivancich/wip-bad-multiparts-listing
rgw: when there are a large number of multiparts, the unorder list result may miss objects

 Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
2023-09-07 12:50:12 -04:00
J. Eric Ivancich
815481c637
Merge pull request from ivancich/wip-versioned-reindex
rgw: reindex of objects in versioned buckets

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2023-09-07 12:43:59 -04:00
J. Eric Ivancich
abfede8fb7
Merge pull request from imtzw/rm_op_ret
rgw: remove useless op ret assign

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2023-09-07 12:41:37 -04:00
J. Eric Ivancich
cbc4c2b30f
Merge pull request from ceph/wip-nitzan-ceph-dencoder-rgw-extend-types-available
ceph-dencoder: RGW - Add missing types

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2023-09-07 12:40:42 -04:00
J. Eric Ivancich
04e5c73ed9
Merge pull request from RickyMaRui/fix-2-null-versionID
rgw: fix 2 null versionID after convert_plain_entry_to_versioned

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2023-09-07 12:39:30 -04:00
J. Eric Ivancich
968573b3dd
Merge pull request from ivancich/wip-add-versioning-to-stats
rgw: add versioning status during `radosgw-admin bucket stats`

Reviewed-by: Adam Emerson <aemerson@redhat.com>
2023-09-07 12:36:10 -04:00
Yuval Lifshitz
7077a7f51d
Merge pull request from yuvalif/wip-yuval-fix-62449
test/cls_2pc_queue: fix race condition with producers

Reviewed-by: ljflores mattbenjamin
2023-09-07 18:25:08 +03:00
Rishabh Dave
200b4aba0d
Merge pull request from rishabh-d-dave/ior-make-failures
qa/cephfs: fix ior project build failure

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2023-09-07 20:16:44 +05:30
Rishabh Dave
849fbd1d5b
Merge pull request from rishabh-d-dave/fs-auth-subcmd
mon,osd,mds: allow fs authorize to update caps

Reviewed-by: Radosław Zarzyński <rzarzyns@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
2023-09-07 18:39:58 +05:30
NitzanMordhai
94021bb5f9 submodule: update ceph-object-corpus submodule
Signed-off-by: Nitzan Mordechai <nmordech@redhat.com>
2023-09-07 11:28:10 +00:00
Rishabh Dave
f4c5809eee
Merge pull request from rishabh-d-dave/fix-mon-fscmds
mon/FSCommands: fix variable names and function names in calls

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
2023-09-07 14:51:42 +05:30
NitzanMordhai
0bf8d645bb ceph-dencoder: Add missing rgw types to ceph-dencoder for accurate encode-decode comparison
Currently, ceph-dencoder lacks certain rgw types, preventing us from accurately checking the ceph corpus for encode-decode mismatches.
This pull request aims to address this issue by adding the missing types to ceph-dencoder.

To successfully incorporate these types into ceph-dencoder, we need to introduce the necessary `dump` and `generate_test_instances`
functions that was missing in some types. These functions are essential for proper encode and decode of the added types.

This PR will enhance the functionality of ceph-dencoder by including the missing types, enabling a comprehensive analysis of encode-decode consistency.
With the addition of these types, we can ensure the robustness and correctness of the ceph corpus.

This update will significantly contribute to improving the overall reliability and accuracy of ceph-dencoder.
It allows for a more comprehensive assessment of the encode-decode behavior, leading to enhanced data integrity and stability within the ceph ecosystem.

Fixes: https://tracker.ceph.com/issues/61788
Signed-off-by: Nitzan Mordechai <nmordech@redhat.com>
2023-09-07 07:53:56 +00:00
Ilya Dryomov
4c7d80ccb6
Merge pull request from orozery/remove-crypto-image-dispatch
librbd: remove crypto image dispatch

Reviewed-by: Mykola Golub <mgolub@suse.com>
Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
2023-09-07 09:51:39 +02:00
Rishabh Dave
4738f3fb8e src/test: fix test_bluefs.cc
BlueFS.add_block_device() doesn't accept an integer in parameters.

Introduced-by: 3cc75e8670
Fixes: https://tracker.ceph.com/issues/62734
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2023-09-07 11:40:45 +05:30
Rishabh Dave
8e39a00ed1 mon/FSCommands: fix variable names and function names in calls
PR  today and PR  was merged last week. Latter PR changed
"fs" to "fsp" and made mds_map and fscid private and introduced
get_mds_map() and get_fsicd() methods instead.

Combination of former and latter PR introduced compilation errors & made
it impossible to build the binaries on the latest main branch. This
commit attemps to fix this issue.

Fixes: https://tracker.ceph.com/issues/62729
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2023-09-07 11:39:11 +05:30
Rishabh Dave
c9058dc7a5 qa/cephfs: CephFSTestCase.create_client() must keyring
Replace call to run_ceph_cmd() by call to get_ceph_cmd_stdout() in
method qa.tasks.cephfs.cephfs_test_case.CephFSTestCase.create_client().
run_ceph_cmd() will not return keyring which is wrong.
get_ceph_cmd_stdout() will return the stdout of "ceph auth add"
command, which is the keyring that is expected to be returned by
CephFSTestCase.create_client().

Fixes: https://tracker.ceph.com/issues/62246
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2023-09-07 11:37:17 +05:30
Rishabh Dave
f203542c3e doc/cephfs: add doc for fs authorize since it can now also update caps
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2023-09-07 11:37:17 +05:30
Ronen Friedman
e27e75ab90
Merge pull request from ronen-fr/wip-rf-hour
osd/scrub: fixing the length of a day

Reviewed-by: Matan Breizman <mbreizma@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
2023-09-07 07:49:12 +03:00
Rishabh Dave
5dd0601a45
Merge pull request from batrick/mds-stray-space
mds: remove stray space

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
2023-09-07 02:15:03 +05:30
Rishabh Dave
78be602422
Merge pull request from batrick/i62057
mds: add event for batching getattr/lookup

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
2023-09-07 02:14:09 +05:30
Laura Flores
bd5c0f4e4c
Merge pull request from athanatos/sjust/wip-62338
osd: ensure async recovery does not drop a pg below min_size
2023-09-06 14:17:12 -04:00
Laura Flores
d1921e6845
Merge pull request from rzarzynski/wip-osd-unused-msg-includes
osd: drop includes of messages that are not longer used in OSD.cc
2023-09-06 14:16:51 -04:00
Laura Flores
5b6777bbcb
Merge pull request from rzarzynski/wip-ec-static_encode_and_write
osd: make encode_and_write() in ECTransaction.cc static
2023-09-06 13:18:39 -04:00
Laura Flores
536e8f582f
Merge pull request from ideepika/wip-tracing-debug-quincy
src/common: add debug logs to opentelementry tracing
2023-09-06 13:18:18 -04:00
Laura Flores
a9c9b34cf4
Merge pull request from ifed01/wip-ifed-reserved-by-bluefs
os/bluestore: make BlueFS an exclusive selector for volume reserved
2023-09-06 13:17:57 -04:00