]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
2 years agorbd-wnbd: optionally handle wnbd adapter restart events
Lucian Petrut [Wed, 16 Nov 2022 11:24:34 +0000 (13:24 +0200)]
rbd-wnbd: optionally handle wnbd adapter restart events

The WNBD adapter may be reset in certain situations (e.g. driver
upgrade, MS WHQL tests, etc).

We're going to monitor the WNBD adapter using WMI[1] events, restarting
the rbd-wnbd disk mappings whenever necessary. Adapter monitoring can be
enabled by passing the --adapter-monitoring-enabled flag to the service.

This feature is optional for the following reasons:

* it's mainly used during development / driver certification
* we had to use a relatively small polling interval, which might imply
  additional resource usage. WMI quotas also have to be considered.

While at it, we're updating two lambdas that are submitted to thread pools,
avoiding default reference capturing and explicitly specifying the variables
that get copied.

[1] https://learn.microsoft.com/en-us/windows/win32/wmisdk/wmi-start-page

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
2 years agocommon: add win32/wstring.h
Lucian Petrut [Wed, 16 Nov 2022 08:50:14 +0000 (10:50 +0200)]
common: add win32/wstring.h

Windows APIs heavily use wchar. ceph-dokan and rbd-wnbd
have some duplicated helpers that convert wstrings to/from
utf8 strings.

To avoid duplication and allow reusing those helpers, we're moving
them to common/win32/wstring.h.

We're using the "win32" subfolder because it's unlikely that this
will ever be used on other platforms.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
2 years agoMerge pull request #49328 from BryceCao/wip-fix-python-script-using-s3cmd-with-error...
Casey Bodley [Wed, 22 Mar 2023 12:59:19 +0000 (08:59 -0400)]
Merge pull request #49328 from BryceCao/wip-fix-python-script-using-s3cmd-with-error-code-403

rgw : fix python script using s3cmd with error code 403

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #50606 from zdover23/wip-doc-2023-03-21-rados-operations-erasure...
zdover23 [Tue, 21 Mar 2023 22:09:20 +0000 (08:09 +1000)]
Merge pull request #50606 from zdover23/wip-doc-2023-03-21-rados-operations-erasure-code

doc/rados: line-edit erasure-code.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agoMerge pull request #50486 from linuxbox2/wip-dedup-opsqs
Casey Bodley [Tue, 21 Mar 2023 21:52:28 +0000 (17:52 -0400)]
Merge pull request #50486 from linuxbox2/wip-dedup-opsqs

Do not duplicate query-string in ops-log

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #50468 from aclamk/wip-aclamk-harmonize-bluefs-log
Laura Flores [Tue, 21 Mar 2023 20:42:52 +0000 (15:42 -0500)]
Merge pull request #50468 from aclamk/wip-aclamk-harmonize-bluefs-log

os/bluestore: BlueFS: harmonize log read and writes modes

2 years agorgw : fix python script using s3cmd with error code 403 w/https 49328/head
Mark Kogan [Tue, 21 Mar 2023 16:30:12 +0000 (18:30 +0200)]
rgw : fix python script using s3cmd with error code 403 w/https

Fixes: https://tracker.ceph.com/issues/54104
Signed-off-by: Mark Kogan <mkogan@redhat.com>
2 years agodoc/rados: line-edit erasure-code.rst 50606/head
Zac Dover [Tue, 21 Mar 2023 12:27:15 +0000 (22:27 +1000)]
doc/rados: line-edit erasure-code.rst

Line-edit doc/rados/operations/erasure-code.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
2 years agoMerge pull request #50602 from xxhdx1985126/wip-invalid-clean-pending-extents
Yingxin [Tue, 21 Mar 2023 07:55:27 +0000 (15:55 +0800)]
Merge pull request #50602 from xxhdx1985126/wip-invalid-clean-pending-extents

crimson/os/seastore: don't set INVALID extents to CLEAN when reading extents

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/os/seastore: don't set INVALID extents to CLEAN when reading 50602/head
Xuehan Xu [Tue, 21 Mar 2023 05:52:43 +0000 (05:52 +0000)]
crimson/os/seastore: don't set INVALID extents to CLEAN when reading
extents

CLEAN_PENDING extents may be invalidated before read completes:

1. transaction A retired an laddr, which lead to a RetirePlaceHolder in
   Cache
2. transaction B try to read that extent, and replace A's
   RetirePlaceHolder with it;
3. transaction A commits and invalidate that extent;
4. transaction B complete reading that extent;

In this case, we shouldn't set the extent's state to CLEAN

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
2 years agoMerge pull request #50488 from zdover23/wip-doc-2023-03-13-rados-bluestore-migration...
zdover23 [Mon, 20 Mar 2023 00:59:21 +0000 (10:59 +1000)]
Merge pull request #50488 from zdover23/wip-doc-2023-03-13-rados-bluestore-migration-2-of-x

doc/rados: edit operations/bs-migration (2 of x)

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agoMerge pull request #50487 from zdover23/wip-doc-2023-03-12-rados-bluestore-migration
zdover23 [Mon, 20 Mar 2023 00:58:55 +0000 (10:58 +1000)]
Merge pull request #50487 from zdover23/wip-doc-2023-03-12-rados-bluestore-migration

doc/rados: edit operations/bs-migration (1 of x)

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agoMerge pull request #50579 from zdover23/wip-doc-2023-03-18-rados-configuration-mon...
zdover23 [Sun, 19 Mar 2023 07:56:22 +0000 (17:56 +1000)]
Merge pull request #50579 from zdover23/wip-doc-2023-03-18-rados-configuration-mon-lookup-dns

doc/rados: line edit mon-lookup-dns top matter

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agodoc/rados: line edit mon-lookup-dns top matter 50579/head
Zac Dover [Sat, 18 Mar 2023 05:27:54 +0000 (15:27 +1000)]
doc/rados: line edit mon-lookup-dns top matter

Improve the syntax of the top matter of
doc/rados/operations/mon-lookup-dns.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
2 years agoMerge pull request #49443 from cbodley/wip-qa-supported-distros
Casey Bodley [Fri, 17 Mar 2023 19:36:41 +0000 (15:36 -0400)]
Merge pull request #49443 from cbodley/wip-qa-supported-distros

qa/distros: add ubuntu 22 as supported distro

Reviewed-by: Yuri Weinstein <yuriw@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
2 years agoMerge pull request #50498 from rishabh-d-dave/fs-qa-caps-helper-minor
Rishabh Dave [Fri, 17 Mar 2023 18:23:27 +0000 (23:53 +0530)]
Merge pull request #50498 from rishabh-d-dave/fs-qa-caps-helper-minor

qa/cephfs: minor corrections in caps_helper.py

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
2 years agoMerge pull request #50556 from aravind-wdc/fix-header
Yingxin [Fri, 17 Mar 2023 14:07:40 +0000 (22:07 +0800)]
Merge pull request #50556 from aravind-wdc/fix-header

crimson: fix build error

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
2 years agoMerge pull request #50559 from petrutlucian94/improve_win32_clock_check
Ilya Dryomov [Fri, 17 Mar 2023 12:30:12 +0000 (13:30 +0100)]
Merge pull request #50559 from petrutlucian94/improve_win32_clock_check

common: avoid redefining clock type on Windows

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
2 years agoMerge PR #50544 into main
Venky Shankar [Fri, 17 Mar 2023 08:55:42 +0000 (14:25 +0530)]
Merge PR #50544 into main

* refs/pull/50544/head:
test/libcephfs: skip flaky timestamp assertion on Windows

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
2 years agoMerge pull request #50106 from rhcs-dashboard/new-landing-page-and-toggle-button
Nizamudeen A [Fri, 17 Mar 2023 08:31:29 +0000 (14:01 +0530)]
Merge pull request #50106 from rhcs-dashboard/new-landing-page-and-toggle-button

mgr/dashboard: add button toggle to switch between landing pages

2 years agocommon: avoid redefining clock type on Windows 50559/head
Lucian Petrut [Thu, 16 Mar 2023 14:25:50 +0000 (14:25 +0000)]
common: avoid redefining clock type on Windows

mingw >= 8.0.1 defines CLOCK_REALTIME_COARSE, so we'll avoid
overriding it if already set.

Clock precision [1]:

mingw < 8.0.1:
  * CLOCK_REALTIME: ~10-55ms (GetSystemTimeAsFileTime)
mingw >= 8.0.1:
  * CLOCK_REALTIME: <1us (GetSystemTimePreciseAsFileTime)
  * CLOCK_REALTIME_COARSE: ~10-55ms (GetSystemTimeAsFileTime)

* CLOCK_MONOTONIC: <1us if TSC is usable, ~10-55ms otherwise
                   (QueryPerformanceCounter)

[1] https://github.com/mirror/mingw-w64/commit/dcd990ed423381cf35702df9495d44f1979ebe50

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
2 years agoMerge pull request #50563 from zdover23/wip-doc-2023-03-17-rados-operations-upmap
zdover23 [Fri, 17 Mar 2023 05:54:32 +0000 (15:54 +1000)]
Merge pull request #50563 from zdover23/wip-doc-2023-03-17-rados-operations-upmap

doc/rados: line-edit upmap.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agodoc/rados: line-edit upmap.rst 50563/head
Zac Dover [Thu, 16 Mar 2023 17:41:08 +0000 (03:41 +1000)]
doc/rados: line-edit upmap.rst

Edit all of doc/rados/upmap.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
2 years agoMerge pull request #50564 from Thingee/update-foundation-202303
Anthony D'Atri [Thu, 16 Mar 2023 22:32:42 +0000 (18:32 -0400)]
Merge pull request #50564 from Thingee/update-foundation-202303

docs: Update Foundation members for March 2023

2 years agodocs: Update Foundation members for March 2023 50564/head
Mike Perez [Thu, 16 Mar 2023 22:23:55 +0000 (15:23 -0700)]
docs: Update Foundation members for March 2023

Signed-off-by: Mike Perez <thingee@gmail.com>
2 years agocrimson: fix build error 50556/head
Aravind Ramesh [Thu, 16 Mar 2023 07:02:39 +0000 (12:32 +0530)]
crimson: fix build error

With -DWITH_SEASTAR=ON, build is failing.

src/crimson/osd/osd_operations/snaptrim_event.cc:174:29: error: ‘sleep’ is not a member of ‘seastar’

Signed-off-by: Aravind Ramesh <Aravind.Ramesh@wdc.com>
2 years agotest/libcephfs: skip flaky timestamp assertion on Windows 50544/head
Lucian Petrut [Wed, 15 Mar 2023 09:04:40 +0000 (09:04 +0000)]
test/libcephfs: skip flaky timestamp assertion on Windows

There's a new libcephfs test that creates a snapshot and
compares ctime/mtime. The issue is that one of the assertion
fails on Windows, potentially due to reduced timestamp
precision.

For now, we'll skip those assertions on Windows.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
2 years agomgr/dashboard: add button toggle to switch between new and old landing page 50106/head
Pedro Gonzalez Gomez [Tue, 14 Feb 2023 10:21:57 +0000 (11:21 +0100)]
mgr/dashboard: add button toggle to switch between new and old landing page

Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
2 years agoMerge pull request #50534 from neha-ojha/wip-release-cl
Neha Ojha [Wed, 15 Mar 2023 19:50:42 +0000 (12:50 -0700)]
Merge pull request #50534 from neha-ojha/wip-release-cl

doc/dev/release-checklists.rst: add after dev freeze section

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agoqa/workunits/rbd: use bionic version of qemu-iotests for jammy 49443/head
Ilya Dryomov [Wed, 15 Mar 2023 16:12:36 +0000 (17:12 +0100)]
qa/workunits/rbd: use bionic version of qemu-iotests for jammy

Same as in commit 2de2146c300c ("qa/workunits/rbd: use bionic version
of qemu-iotests for focal").

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2 years agoMerge pull request #50214 from rhcs-dashboard/landing-page-prom-error-fix
Nizamudeen A [Wed, 15 Mar 2023 06:41:48 +0000 (12:11 +0530)]
Merge pull request #50214 from rhcs-dashboard/landing-page-prom-error-fix

mgr/dashboard: fix prometheus api issues on landing page v3

Reviewed-by: Pegonzal <NOT@FOUND>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
2 years agoMerge pull request #47974 from zhscn/wip-evict
Yingxin [Wed, 15 Mar 2023 03:02:43 +0000 (11:02 +0800)]
Merge pull request #47974 from zhscn/wip-evict

crimson/os/seastore: evict cold data to slower devices

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
2 years agotest/crimson/seasatore: add evction test 47974/head
Zhang Song [Fri, 17 Feb 2023 06:25:20 +0000 (14:25 +0800)]
test/crimson/seasatore: add evction test

Signed-off-by: Zhang Song <zhangsong325@gmail.com>
2 years agocrimson/os/seastore/EPM: cleanup alloc_new_extent
Zhang Song [Fri, 17 Feb 2023 06:23:36 +0000 (14:23 +0800)]
crimson/os/seastore/EPM: cleanup alloc_new_extent

Signed-off-by: Zhang Song <zhangsong325@gmail.com>
2 years agocrimson/os/seasotre/segment_manager_group: ensure the types of devices are same
Zhang Song [Wed, 1 Mar 2023 10:19:54 +0000 (18:19 +0800)]
crimson/os/seasotre/segment_manager_group: ensure the types of devices are same

Signed-off-by: Zhang Song <zhangsong325@gmail.com>
2 years agocrimson/os/seastore: add EPHEMERAL_COLD device type
Zhang Song [Tue, 14 Feb 2023 09:47:35 +0000 (17:47 +0800)]
crimson/os/seastore: add EPHEMERAL_COLD device type

rename SEGMENTED_EPHEMERAL to EPHEMERAL_MAIN

Signed-off-by: Zhang Song <zhangsong325@gmail.com>
2 years agocrimson/os/seastore/EPM/BackgroundProcess: introduce more eviction policy
Zhang Song [Wed, 11 Jan 2023 10:17:41 +0000 (18:17 +0800)]
crimson/os/seastore/EPM/BackgroundProcess: introduce more eviction policy

Signed-off-by: Zhang Song <zhangsong325@gmail.com>
2 years agocrimson/os/seastore/EPM/BackgroundProcess: reserve space on cold cleaner
Zhang Song [Tue, 10 Jan 2023 10:52:04 +0000 (18:52 +0800)]
crimson/os/seastore/EPM/BackgroundProcess: reserve space on cold cleaner

Signed-off-by: Zhang Song <zhangsong325@gmail.com>
2 years agocrimson/os/seastore: get segment info from cold segment provider
Zhang Song [Tue, 10 Jan 2023 10:02:50 +0000 (18:02 +0800)]
crimson/os/seastore: get segment info from cold segment provider

Signed-off-by: Zhang Song <zhangsong325@gmail.com>
2 years agocrimson/os/seastore: support mark_space_{free, used} on cold_cleaner
Zhang Song [Tue, 10 Jan 2023 10:01:25 +0000 (18:01 +0800)]
crimson/os/seastore: support mark_space_{free, used} on cold_cleaner

Signed-off-by: Zhang Song <zhangsong325@gmail.com>
2 years agosrc/vstart.sh: support specify the type of secondary device
Zhang Song [Tue, 10 Jan 2023 09:59:21 +0000 (17:59 +0800)]
src/vstart.sh: support specify the type of secondary device

doc/crimson: add options and example about SeaStore

Signed-off-by: Zhang Song <zhangsong325@gmail.com>
2 years agocrimson/os/seastore: change the category of COLL_BLOCK
Zhang Song [Tue, 10 Jan 2023 09:01:57 +0000 (17:01 +0800)]
crimson/os/seastore: change the category of COLL_BLOCK

Signed-off-by: Zhang Song <zhangsong325@gmail.com>
2 years agocrimson/os/seastore: specify the device type explicitly when constructing BlockSegmen...
Zhang Song [Mon, 6 Mar 2023 07:06:19 +0000 (15:06 +0800)]
crimson/os/seastore: specify the device type explicitly when constructing BlockSegmentManager

Signed-off-by: Zhang Song <zhangsong325@gmail.com>
2 years agocrimson/os/seastore: make segment_manager work with HDD
Zhang Song [Tue, 10 Jan 2023 09:01:30 +0000 (17:01 +0800)]
crimson/os/seastore: make segment_manager work with HDD

Signed-off-by: Zhang Song <zhangsong325@gmail.com>
2 years agocrimson/os/seasotre: add CLEANER_COLD transaction type
Zhang Song [Tue, 10 Jan 2023 09:00:12 +0000 (17:00 +0800)]
crimson/os/seasotre: add CLEANER_COLD transaction type

rename CLEANER to CLEANER_MAIN

Signed-off-by: Zhang Song <zhangsong325@gmail.com>
2 years agocrimson/os/seastore: init cold segment cleaner
Zhang Song [Tue, 10 Jan 2023 08:59:31 +0000 (16:59 +0800)]
crimson/os/seastore: init cold segment cleaner

Signed-off-by: Zhang Song <zhangsong325@gmail.com>
2 years agocrimson/os/seastore/SegmentCleaner: distinguish the cold cleaner from the normal
Zhang Song [Tue, 10 Jan 2023 08:58:58 +0000 (16:58 +0800)]
crimson/os/seastore/SegmentCleaner: distinguish the cold cleaner from the normal

Signed-off-by: Zhang Song <zhangsong325@gmail.com>
2 years agocrimson/os/seastore/EPM/BackgroundProcess: add cold_cleaner
Zhang Song [Tue, 10 Jan 2023 08:58:16 +0000 (16:58 +0800)]
crimson/os/seastore/EPM/BackgroundProcess: add cold_cleaner

Signed-off-by: Zhang Song <zhangsong325@gmail.com>
2 years agocrimson/os/seastore: move ool segment seq allocator to EPM
Zhang Song [Tue, 10 Jan 2023 08:49:22 +0000 (16:49 +0800)]
crimson/os/seastore: move ool segment seq allocator to EPM

Signed-off-by: Zhang Song <zhangsong325@gmail.com>
2 years agocrimson/os/seastore/EPM: refactor reserve process
Zhang Song [Tue, 10 Jan 2023 08:47:43 +0000 (16:47 +0800)]
crimson/os/seastore/EPM: refactor reserve process

Signed-off-by: Zhang Song <zhangsong325@gmail.com>
2 years agocrimson/os/seastore/EPM/BackgroundProcess: rename cleaner to main_cleaner
Zhang Song [Tue, 10 Jan 2023 08:19:38 +0000 (16:19 +0800)]
crimson/os/seastore/EPM/BackgroundProcess: rename cleaner to main_cleaner

Signed-off-by: Zhang Song <zhangsong325@gmail.com>
2 years agoDo not duplicate query-string in ops-log 50486/head
Matt Benjamin [Sat, 11 Mar 2023 19:58:54 +0000 (14:58 -0500)]
Do not duplicate query-string in ops-log

Fixes: https://tracker.ceph.com/issues/59059
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2 years agodoc/dev/release-checklists.rst: add after dev freeze section 50534/head
Neha Ojha [Tue, 14 Mar 2023 18:45:30 +0000 (18:45 +0000)]
doc/dev/release-checklists.rst: add after dev freeze section

- add release to redmine
- add milestone

Signed-off-by: Neha Ojha <nojha@redhat.com>
2 years agoMerge pull request #50339 from cbodley/wip-qa-rgw-reef-upgrade
Ali Maredia [Tue, 14 Mar 2023 17:59:34 +0000 (13:59 -0400)]
Merge pull request #50339 from cbodley/wip-qa-rgw-reef-upgrade

qa/rgw: add rgw/upgrade suite

Reviewed-by: Ali Maredia <amaredia@redhat.com>
2 years agoMerge pull request #50409 from rhcs-dashboard/formly
Pere Diaz Bou [Tue, 14 Mar 2023 15:41:16 +0000 (11:41 -0400)]
Merge pull request #50409 from rhcs-dashboard/formly

mgr/dashboard: replace ajsf with formly

Reviewed-by: Pegonzal <NOT@FOUND>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
2 years agoMerge pull request #45960 from rishabh-d-dave/xfstests-dev-run-more-tests
Rishabh Dave [Tue, 14 Mar 2023 14:43:02 +0000 (20:13 +0530)]
Merge pull request #45960 from rishabh-d-dave/xfstests-dev-run-more-tests

qa/cephfs: upgrade xfstests_dev.py to run more tests

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
2 years agoMerge pull request #50390 from Svelar/vstart-doc
zdover23 [Tue, 14 Mar 2023 14:23:02 +0000 (00:23 +1000)]
Merge pull request #50390 from Svelar/vstart-doc

doc/crimson: add SeaStore when using vstart.

Reviewed-by: Zac Dover <zac.dover@proton.me>
2 years agoMerge pull request #48411 from liangmingyuanneo/wip-rgw-reshard-collision
Casey Bodley [Tue, 14 Mar 2023 13:41:57 +0000 (09:41 -0400)]
Merge pull request #48411 from liangmingyuanneo/wip-rgw-reshard-collision

rgw/reshard: fix hold reshard lock collisions

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #48482 from cbodley/wip-rgw-site-config
Casey Bodley [Tue, 14 Mar 2023 13:41:20 +0000 (09:41 -0400)]
Merge pull request #48482 from cbodley/wip-rgw-site-config

rgw: add SiteConfig to load/create zonegroup configuration

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
2 years agoMerge pull request #50347 from cbodley/wip-rgw-sal-aio
Casey Bodley [Tue, 14 Mar 2023 13:40:45 +0000 (09:40 -0400)]
Merge pull request #50347 from cbodley/wip-rgw-sal-aio

rgw/aio: remove RGWSI_RADOS from generic Aio::get()

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
2 years agoMerge pull request #50343 from pkalever/fix-errormsg
Ilya Dryomov [Tue, 14 Mar 2023 13:28:26 +0000 (14:28 +0100)]
Merge pull request #50343 from pkalever/fix-errormsg

librbd: report better errors when failing to enable mirroring on an image

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
2 years agoMerge pull request #50500 from jdurgin/wip-release-checklist
zdover23 [Tue, 14 Mar 2023 01:40:53 +0000 (11:40 +1000)]
Merge pull request #50500 from jdurgin/wip-release-checklist

doc/dev/release-checklist: add another step for ceph-build

Reviewed-by: Neha Ojha <nojha@redhat.com>
2 years agoMerge pull request #50494 from rhcs-dashboard/fix-58942-main
Ernesto Puerta [Mon, 13 Mar 2023 19:01:01 +0000 (20:01 +0100)]
Merge pull request #50494 from rhcs-dashboard/fix-58942-main

mgr/dashboard: force TLS 1.3

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
2 years agomgr/dashboard: replace ajsf with formly 50409/head
Pere Diaz Bou [Mon, 6 Mar 2023 19:32:24 +0000 (20:32 +0100)]
mgr/dashboard: replace ajsf with formly

ajsf json schema library for angular doesn't seem to be actively
maintained. Instead, fromly is a well maintained replacement with extra
stuff like validators builtin, support for json schemas, custom
components, etc...

Textareas weren't supported on ajsf, therefore, it made sense to move to
this dep instead.

Signed-off-by: Pere Diaz Bou <pdiazbou@redhat.com>
Signed-off-by: Nizamudeen A <nia@redhat.com>
2 years agoMerge pull request #50147 from cbodley/wip-debian-mgr-pytest
Ernesto Puerta [Mon, 13 Mar 2023 16:00:10 +0000 (17:00 +0100)]
Merge pull request #50147 from cbodley/wip-debian-mgr-pytest

debian/mgr: remove pytest from debian/ceph-mgr-dashboard.requires

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
2 years agoMerge pull request #50282 from mhmdawnallah/fix-access-a-destructed-temporary-variabl...
Yuval Lifshitz [Mon, 13 Mar 2023 15:46:34 +0000 (17:46 +0200)]
Merge pull request #50282 from mhmdawnallah/fix-access-a-destructed-temporary-variable-in-rgw_sync_checkpoint

src/rgw/rgw_sync_checkpoint.cc: fix a destructed temporary variable access

reviewed-by: adamemerson, yuvalif

2 years agoMerge pull request #50482 from neha-ojha/wip-milestore
Laura Flores [Mon, 13 Mar 2023 14:59:50 +0000 (09:59 -0500)]
Merge pull request #50482 from neha-ojha/wip-milestore

.github/milestone.yml: add reef

2 years agodoc/dev/release-checklist: add another step for ceph-build 50500/head
Josh Durgin [Mon, 13 Mar 2023 14:45:07 +0000 (07:45 -0700)]
doc/dev/release-checklist: add another step for ceph-build

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2 years agoMerge PR #50493 into main
Venky Shankar [Mon, 13 Mar 2023 14:23:14 +0000 (19:53 +0530)]
Merge PR #50493 into main

* refs/pull/50493/head:
qa: fixup quota values exceeding 64 bit signed int value
qa, cleanup: no need to specify human readable quota values in comment

Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
2 years agoMerge PR #48382 into main
Venky Shankar [Mon, 13 Mar 2023 13:56:59 +0000 (19:26 +0530)]
Merge PR #48382 into main

* refs/pull/48382/head:
test: add test to validate attrs for snapdir after snap operations
client: update {m,c}time and change attr for snapdir from last modification time of a snap realm
mds: update last modification time and change attr for a snap realm node
mds: include last modification time and change attr of a snap realm node in snap trace reply
mds: use change_attr from closest ancestor when initializing a new snaprealm
mds: initialize last_modified to current timestamp for root inode snaprealm
mds: track last modification time and change attr for a snap realm node (srnode)

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Milind Changire <mchangir@redhat.com>
2 years agoMerge PR #49970 into main
Venky Shankar [Mon, 13 Mar 2023 13:54:38 +0000 (19:24 +0530)]
Merge PR #49970 into main

* refs/pull/49970/head:
mds: force replay sessionmap version

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2 years agoMerge PR #50049 into main
Venky Shankar [Mon, 13 Mar 2023 13:52:04 +0000 (19:22 +0530)]
Merge PR #50049 into main

* refs/pull/50049/head:
qa: add cephfs_mirror test case to check root dir modes
cephfs_mirror: sync snap dir root mode with remote dir

Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
2 years agorbd: improve log msgs when failing to enable mirroring on image 50343/head
Prasanna Kumar Kalever [Thu, 2 Mar 2023 10:29:19 +0000 (15:59 +0530)]
rbd: improve log msgs when failing to enable mirroring on image

Attempting to enable mirroring on an an image within a namespace bails
out without any useful msg.

$ rbd mirror image enable mi_pool/ns_0/big snapshot
2021-11-17T08:33:21.321+0000 7f4b36f9c2c0 -1 librbd::api::Mirror:
  image_enable: cannot enable mirroring in the current pool mirroring mode

Fixes: https://tracker.ceph.com/issues/58895
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2 years agoqa/cephfs: minor corrections in caps_helper.py 50498/head
Rishabh Dave [Mon, 13 Mar 2023 12:15:57 +0000 (17:45 +0530)]
qa/cephfs: minor corrections in caps_helper.py

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2 years agodoc/rados: edit operations/bs-migration (2 of x) 50488/head
Zac Dover [Sun, 12 Mar 2023 01:17:03 +0000 (11:17 +1000)]
doc/rados: edit operations/bs-migration (2 of x)

Disambiguate and improve the English language in
doc/rados/operations/bluestore-migration.rst up to but not including the
section called "Whole Host Replacement".

Co-authored-by: Cole Mitchell <cole.mitchell.ceph@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
2 years agomgr/dashboard: force TLS 1.3 50494/head
Ernesto Puerta [Mon, 13 Mar 2023 10:03:37 +0000 (11:03 +0100)]
mgr/dashboard: force TLS 1.3

Fixes: https://tracker.ceph.com/issues/58942
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
2 years agoqa: fixup quota values exceeding 64 bit signed int value 50493/head
Venky Shankar [Mon, 13 Mar 2023 06:20:31 +0000 (11:50 +0530)]
qa: fixup quota values exceeding 64 bit signed int value

The test does the following:

        setfattr -n ceph.quota.max_bytes -v 8388608Ti .

This failes since 8388608Ti exceeds 64 bit signed integer value.
Change that to the approprivate value and expect faliure when
quota is set for this exceeded value.

Fixes: http://tracker.ceph.com/issues/55940
Introduced-by: 733065148250e892fca941cdeaad3e3a8193b0d8
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2 years agoqa, cleanup: no need to specify human readable quota values in comment
Venky Shankar [Mon, 13 Mar 2023 06:25:18 +0000 (11:55 +0530)]
qa, cleanup: no need to specify human readable quota values in comment

... since the values themselves are self-explanatory.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
2 years agoqa/cephfs: run all generic tests from xfstests-dev 45960/head
Rishabh Dave [Fri, 6 May 2022 04:33:47 +0000 (10:03 +0530)]
qa/cephfs: run all generic tests from xfstests-dev

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2 years agodoc/crimson: add SeaStore when using vstart. 50390/head
Rongqi Sun [Mon, 6 Mar 2023 06:01:51 +0000 (14:01 +0800)]
doc/crimson: add SeaStore when using vstart.

Signed-off-by: Rongqi Sun <sunrongqi@huawei.com>
2 years agodoc/rados: edit operations/bs-migration (1 of x) 50487/head
Zac Dover [Sun, 12 Mar 2023 01:17:03 +0000 (11:17 +1000)]
doc/rados: edit operations/bs-migration (1 of x)

Disambiguate and improve the English language in
doc/rados/operations/bluestore-migration.rst up to but not including the
section called "Whole Host Replacement".

Co-authored-by: Cole Mitchell <cole.mitchell.ceph@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
2 years agorgw/rados: copy_obj_data() can use yielding throttle 50347/head
Casey Bodley [Sat, 11 Mar 2023 19:28:44 +0000 (14:28 -0500)]
rgw/rados: copy_obj_data() can use yielding throttle

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agorgw: RGWRealmReloader reloads rgw::SiteConfig 48482/head
Casey Bodley [Thu, 13 Oct 2022 20:43:02 +0000 (16:43 -0400)]
rgw: RGWRealmReloader reloads rgw::SiteConfig

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agorgw/main: init_storage() creates a ConfigStore and loads SiteConfig
Casey Bodley [Thu, 13 Oct 2022 19:09:54 +0000 (15:09 -0400)]
rgw/main: init_storage() creates a ConfigStore and loads SiteConfig

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agorgw: add SiteConfig to load/create zonegroup configuration
Casey Bodley [Thu, 13 Oct 2022 19:09:16 +0000 (15:09 -0400)]
rgw: add SiteConfig to load/create zonegroup configuration

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agorgw/main: null-initialize pointer members
Casey Bodley [Thu, 13 Oct 2022 19:08:39 +0000 (15:08 -0400)]
rgw/main: null-initialize pointer members

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #50383 from cbodley/wip-rgw-admin-formatter-v2
Casey Bodley [Sun, 12 Mar 2023 23:00:44 +0000 (19:00 -0400)]
Merge pull request #50383 from cbodley/wip-rgw-admin-formatter-v2

rgw/admin: fix formatter leaks again

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2 years agotest/rgw: ceph_test_rgw_throttle no longer needs rados
Casey Bodley [Thu, 2 Mar 2023 20:18:18 +0000 (15:18 -0500)]
test/rgw: ceph_test_rgw_throttle no longer needs rados

run it as a unittest instead of a workunit

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agorgw/aio: update Aio callers in rados and d3n
Casey Bodley [Thu, 2 Mar 2023 20:11:05 +0000 (15:11 -0500)]
rgw/aio: update Aio callers in rados and d3n

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agorgw/aio: remove RGWSI_RADOS from generic Aio::get()
Casey Bodley [Thu, 2 Mar 2023 15:06:36 +0000 (10:06 -0500)]
rgw/aio: remove RGWSI_RADOS from generic Aio::get()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agorgw/aio: librados_op() requires librados::IoCtx
Casey Bodley [Thu, 2 Mar 2023 15:06:06 +0000 (10:06 -0500)]
rgw/aio: librados_op() requires librados::IoCtx

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #50385 from cbodley/wip-cmake-asan
Casey Bodley [Sun, 12 Mar 2023 18:29:25 +0000 (14:29 -0400)]
Merge pull request #50385 from cbodley/wip-cmake-asan

cmake: some fixes and suppressions for WITH_ASAN under vstart.sh

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
2 years agoMerge pull request #50473 from guits/cv-fix-cv-tests
Guillaume Abrioux [Sun, 12 Mar 2023 07:11:19 +0000 (08:11 +0100)]
Merge pull request #50473 from guits/cv-fix-cv-tests

ceph-volume: update the OS before deploying Ceph

2 years agoMerge pull request #50483 from cbodley/wip-rgw-beast-server-name
Anthony D'Atri [Sun, 12 Mar 2023 00:07:33 +0000 (19:07 -0500)]
Merge pull request #50483 from cbodley/wip-rgw-beast-server-name

rgw/beast: add extra_response_headers for Server name

2 years agoMerge pull request #50168 from cbodley/wip-23838
Casey Bodley [Sat, 11 Mar 2023 20:09:02 +0000 (15:09 -0500)]
Merge pull request #50168 from cbodley/wip-23838

rgw: store torrent file for GetObjectTorrent in object attrs instead of omap

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2 years agoMerge pull request #50346 from vedanshbhartia/rm-57938
Casey Bodley [Sat, 11 Mar 2023 19:39:46 +0000 (14:39 -0500)]
Merge pull request #50346 from vedanshbhartia/rm-57938

rgw: use unique_ptr for flat_map emplace in BucketTrimWatche

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #50429 from cbodley/wip-58932
Casey Bodley [Sat, 11 Mar 2023 19:34:06 +0000 (14:34 -0500)]
Merge pull request #50429 from cbodley/wip-58932

rgw/admin: 'bucket stats' displays non-empty mtime

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2 years agoMerge pull request #50211 from bbc/add_quota_containers_rgw_rest_header
Casey Bodley [Sat, 11 Mar 2023 19:33:19 +0000 (14:33 -0500)]
Merge pull request #50211 from bbc/add_quota_containers_rgw_rest_header

rgw: add containers quota to swift rest headers

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #49466 from linuxbox2/wip-lc-size
Casey Bodley [Sat, 11 Mar 2023 19:32:47 +0000 (14:32 -0500)]
Merge pull request #49466 from linuxbox2/wip-lc-size

rgw/notifications: fetch object state to get size, in rgw_lc.cc

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Yuval Lifshitz <ylifshit@redhat.com>
2 years agoMerge pull request #47040 from hualongfeng/qat_batch_mode
Casey Bodley [Sat, 11 Mar 2023 19:31:47 +0000 (14:31 -0500)]
Merge pull request #47040 from hualongfeng/qat_batch_mode

Crypto: Add QAT batch mode

Reviewed-by: Casey Bodley <cbodley@redhat.com>