Commit Graph

129504 Commits

Author SHA1 Message Date
Venky Shankar
e15a52997b
Merge pull request #44477 from SMIL-Infra/fix-expire_recursive-segfault
mds: fix seg fault in expire_recursive

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2022-02-09 11:38:58 +05:30
Venky Shankar
f33030c074
Merge pull request #44638 from yunfeiguan/wip-53911
mds: kill session state are open when mds do ms_handle_remote_reset

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2022-02-09 11:37:20 +05:30
Venky Shankar
b7af2a94a4
Merge pull request #42549 from ajarr/wip-add-volume-rename
mgr/volumes: Add `fs volume rename` command

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2022-02-09 11:34:32 +05:30
Venky Shankar
047d8faede
Merge pull request #44651 from nmshelke/fake-mount-53903
mount: add option to supports fake mounts in mount.ceph

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2022-02-09 11:30:27 +05:30
Soumya Koduri
9596630073
Merge pull request #44813 from soumyakoduri/wip-skoduri-dbstore-obj-id
rgw/dbstore: Use Object ID to handle I/O concurrency
2022-02-08 22:44:45 +05:30
Casey Bodley
48315ec623
Merge pull request #44678 from kipdoudou/master
rgw: CopyObject works with x-amz-copy-source-if-* headers

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2022-02-08 10:27:01 -05:00
Soumya Koduri
65ca2f53b8 rgw/dbstore: Handle read vs delete races
Now that tail objects are associated with objectID, they are not deleted
as part of this DeleteObj operation. Such tail objects (with no head object
in *.object.table are cleaned up later by GC thread.

To avoid races between writes/reads & GC delete, mtime is maintained for each
tail object. This mtime is updated when tail object is written and also when
its corresponding head object is deleted (like here in this case).

Also done some cleanup.

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
2022-02-08 20:56:30 +05:30
Laura Flores
e63f146d61
Merge pull request #44930 from rishabh-d-dave/py-req-fix 2022-02-08 07:53:02 -06:00
Venky Shankar
de489c203e
Merge pull request #44667 from dvanders/dvanders_oft
mds: mds_oft_prefetch_dirfrags default to false

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2022-02-08 18:36:56 +05:30
Ronen Friedman
f0eb33fd82
Merge pull request #44922 from ronen-fr/wip-rf-fix-bescrub-test
osd/scrub: fix unintended changes to scrub (cluster)logs

Reviewed-by: Matan Breizman <mbreizma@redhat.com>
2022-02-08 14:59:10 +02:00
Daniel Gryniewicz
88ce1caefb
Merge pull request #44927 from dang/wip-dang-cloud-tier
RGW - Move early return

Reviewed-by: Soumya Koduri <skoduri@redhat.com>
2022-02-08 07:29:25 -05:00
Ronen Friedman
e6a205a2bd osd/scrub: fix unintended changes to scrub (cluster)logs
OSD logs and cluster logs are monitored by some scrub tests:
some specific strings are required to either appear or not appear in
the logs. The Scrubber backend PR has unintentionally modified some
of these logs, and here we restore the exact logs text.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
2022-02-08 10:30:15 +00:00
Rishabh Dave
a6f5efb620 monitoring: mention PyYAML only once in requirements
Following error occurs while running "sudo install-deps.sh" -
ERROR: Double requirement given: PyYAML==6.0 (from -r requirements-lint.txt (line 5)) (already in pyyaml (from -r requirements-alerts.txt (line 1)), name='PyYAML')

PyYAML is mentioned twice as a requirement. It is mentioned once in both
the following files -
monitoring/ceph-mixin/requirements-lint.txt
monitoring/ceph-mixin/requirements-alerts.txt

These requirements were added in commits
44d3e4c264 and
4750ac0d77.

Fixes: https://tracker.ceph.com/issues/54185
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2022-02-08 11:19:15 +05:30
Samuel Just
21a4254d0e
Merge pull request #44921 from cyx1231st/wip-seastore-cleanup-lba
crimson/os/seastore/lba_manager: consolidate logs

Reviewed-by: Samuel Just <sjust@redhat.com>
2022-02-07 21:37:19 -08:00
Soumya Koduri
3349c6186b
Merge pull request #44916 from joke-lee/dbstore-test-init-env
rgw: fix dbstore test init env wrong
2022-02-08 09:30:41 +05:30
Yingxin Cheng
f2a1c7027c crimson/os/seastore/lba_manager: introduce subsys seastore_lba_details
We will share the lba tree implementation, so classify the related logs
and rename to seastore_lba_details for now.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2022-02-08 10:54:05 +08:00
Yingxin Cheng
798f00e7b4 crimson/os/seastore/lba_manager: consolidate logs
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2022-02-08 10:54:05 +08:00
Yuri Weinstein
d2b53aa1f7
Merge pull request #44713 from aclamk/fix-aclamk-vselector-53906
[BlueStore] Fix problem with volume selector

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
2022-02-07 14:49:05 -08:00
Samuel Just
9c3e280dee
Merge pull request #44261 from Matan-B/wip-matanb-c-msgr-network
test/crimson: Inject socket level random delays/failures msgr unit test

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
2022-02-07 13:09:12 -08:00
Ali Maredia
8de2884e06
Merge pull request #44856 from cbodley/wip-54103
qa/rgw: install s3cmd with extra_system_packages

Reviewed-by: Ali Maredia <amaredia@redhat.com>
2022-02-07 16:02:40 -05:00
Ilya Dryomov
56e348e4ad
Merge pull request #44886 from holzman/bugfix-54128
krbd: return error when no initial monitor address found

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
2022-02-07 21:41:06 +01:00
Burt Holzman
0076ffc86e krbd: return error when no initial monitor address found
Since we filter monitor addresses based on ms_mode, check that at
least one address was found.

Otherwise, we mismatch arguments when calling sysfs/add_single_major
which emits a misleading error message to dmesg:

  libceph: resolve 'name=user1' (ret=-3): failed
  libceph: parse_ips bad ip 'name=user1,key=client.user1'

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

Signed-off-by: Burt Holzman <burt@fnal.gov>
2022-02-07 10:47:31 -06:00
Daniel Gryniewicz
b82e3e68a9 RGW - Move early return
When transitioning an object to cloud, there was an early return,
skipping the removal of the cloud target.  Fix this to be in the right
place.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
2022-02-07 10:08:02 -05:00
Ernesto Puerta
80ae7c307e
Merge pull request #44825 from rhcs-dashboard/rgw-dashboard-test-hanging
mgr/dashboard: fix for cephadm e2e failing because of rgw commands getting stuck

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
2022-02-07 14:07:43 +01:00
Ernesto Puerta
792a03d7b1
Merge pull request #44920 from rhcs-dashboard/cephadm-bootstrap-fix
cephadm: change shared_folder directory for prometheus and grafana

Reviewed-by: MrFreezeex <NOT@FOUND>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
2022-02-07 14:02:20 +01:00
Yingxin Cheng
614088b684 crimson/os/seastore/lba_manager: convert to seastore logging
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2022-02-07 20:09:05 +08:00
Nizamudeen A
27592b7561 cephadm: change shared_folder directory for prometheus and grafana
After https://github.com/ceph/ceph/pull/44059 the monitoring/prometheus
and monitoring/grafana/dashboards directories are changed to
monitoring/ceph-mixins. That broke the shared_folders in the cephadm
bootstrap script.

Changed all the instances of monitoring/prometheus and
monitoring/grafana/dashboards to monitoring/ceph-mixins

Also, renaming all the instances of prometheus_alerts.yaml to
prometheus_alerts.yml.

Fixes: https://tracker.ceph.com/issues/54176
Signed-off-by: Nizamudeen A <nia@redhat.com>
2022-02-07 16:34:37 +05:30
Yingxin Cheng
c277fdecc5 crimson/os/seastore/lba_manager: move lba_tree_inner_stats into LBAManager
Cleanup, change stats from LBATree static member to BtreeLBAManager
class member.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2022-02-07 18:58:35 +08:00
yuliyang_yewu
3990337fad rgw: fix dbstore test init env wrong
fix https://tracker.ceph.com/issues/54174

Signed-off-by: yuliyang_yewu <yuliyang_yewu@cmss.chinamobile.com>
2022-02-07 14:39:38 +08:00
Venky Shankar
32faa6b2f5
Merge pull request #44503 from lxbsz/typo1
mds: fix a typo of inode version related comment

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2022-02-07 10:03:31 +05:30
Soumya Koduri
a5627d6039 rgw/dbstore: Create GC Thread to delete stale objects
Create a gc thread to cleanup the stale tail objects data

XXX: handle read + delete usecase, simple approach could be
to use locks or sqlite transactions in GC

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
2022-02-07 07:39:55 +05:30
Soumya Koduri
38052496c8 rgw/dbstore: Use Object ID to handle racing writes
Create unique ID for each object upload which will be
atomically updated in the head object at the end. This will
prevent data corruption during concurrent writes.
Incase of Multipart Uploads, upload_id is used as ObjectID.

XXX: The stale or obsolete tail data needs to be deleted

Also addressed invalid usage of CephContext in dbstore tests.

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
2022-02-07 07:39:55 +05:30
Ilya Dryomov
bad21fa497
Merge pull request #44842 from idryomov/wip-krbd-rxbounce-option
rbd: recognize rxbounce map option

Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
2022-02-06 20:37:31 +01:00
Ilya Dryomov
512f8da720
Merge pull request #43910 from sunnyku/wip-rbd-snap-sched
mgr/rbd_support: fix schedule remove

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
2022-02-06 20:32:09 +01:00
Matan Breizman
6455ee18a4 test/crimson: inject Socket layer delays/failures msgr utest
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
2022-02-06 08:45:49 +00:00
Casey Bodley
1d25e87ed3
Merge pull request #44893 from cfsnyder/wip-54130-oplog-segfault
rgw: fix segfault in OpsLogRados::log when realm is reloaded

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2022-02-05 08:54:57 -05:00
Venky Shankar
0e37e6a7be
Merge pull request #44851 from batrick/i54081
mds: add inline flag to MDS bootstrap compat in MDSMap

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2022-02-05 18:04:29 +05:30
Samuel Just
83200ce754
Merge pull request #44887 from josephsawaya/vstart-dev
src/vstart.sh: Add --no-restart to vstart & add mkfs logs to osd.stdout

Reviewed-by: Samuel Just <sjust@redhat.com>
2022-02-04 21:26:11 -08:00
wanghao72
9d8093311a rgw: CopyObject works with x-amz-copy-source-if-* headers
CopyObject api support condition headers, eg x-amz-copy-source-if-match, while radosgw miss out the 'source' keyword
Fixes: https://tracker.ceph.com/issues/53945

Signed-off-by: Wang Hao <wanghao72@baidu.com>
2022-02-05 12:07:45 +08:00
Joseph Sawaya
fc3b6273f3 src/vstart.sh: Add --no-restart to vstart & add mkfs logs to osd.stdout
The output of mkfs wasn't also being included in the OSD's log before this which
can make it more difficult to debug issues with mkfs.

ceph-run restarting every 5 seconds can make it difficult to read the osd's stdout.

Signed-off-by: Joseph Sawaya <jsawaya@redhat.com>
2022-02-04 16:07:35 -05:00
Neha Ojha
8a8945e640
Merge pull request #44868 from neha-ojha/wip-move-to-stream
qa/distros: remove centos8

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2022-02-04 11:56:08 -08:00
Casey Bodley
f692731e2a
Merge pull request #44866 from yuvalif/wip-yuval-fix-datalog-list
rgw/admin: fix radosgw-admin datalog list max-entries issue

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
2022-02-04 14:55:07 -05:00
Casey Bodley
ca8e0a64b1
Merge pull request #44386 from ivancich/wip-reshard-tentative-goal
rgw: in bucket reshard list, clarify new num shards is tentative

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
2022-02-04 14:54:36 -05:00
Casey Bodley
235b51b786
Merge pull request #42330 from SWJTU-ZhangLei/wip-rgw-postobj
rgw: RGWPostObj::execute() may lost data.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2022-02-04 14:50:45 -05:00
Casey Bodley
425100334b
Merge pull request #44743 from linuxbox2/wip-rgwlc-lcgetv
rgwlc: fix compat-decoding of cls_rgw_lc_get_entry_ret

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2022-02-04 14:50:27 -05:00
Casey Bodley
70630b9644
Merge pull request #44137 from ivancich/wip-fix-reshard-cancel
rgw: "reshard cancel" errors with "invalid argument"

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2022-02-04 14:50:10 -05:00
Casey Bodley
1762305bb4
Merge pull request #44892 from trociny/wip-54119
rgw: check bucket shard init status in RGWRadosBILogTrimCR

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2022-02-04 14:49:47 -05:00
Ilya Dryomov
fbf8c1d68b qa/suites/krbd: add legacy+rxbounce and crc+rxbounce coverage
For basic, rbd and rbd-nomount subsuites, replace legacy and crc
facets with "legacy or legacy+rxbounce" and "crc or crc+rxbounce"
facets (chosen at random).

For fsx, singleton and thrash subsuites, add legacy+rxbounce and
crc+rxbounce facets and drop prefer-crc facet.  The expected behaviour
of the latter depends on cluster configuration and should be tested
separately.

The total number of jobs remains the same.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2022-02-04 19:04:38 +01:00
Ilya Dryomov
95d30b534e qa: krbd rxbounce test
Lives in its own directory since ms_mode doesn't need to be permuted
here.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2022-02-04 19:04:37 +01:00
Ilya Dryomov
8d2a456d70 rbd: recognize rxbounce map option
Fixes: https://tracker.ceph.com/issues/54063
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2022-02-04 19:04:37 +01:00