]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
23 months agoqa: fix background exit condition
Patrick Donnelly [Wed, 8 Mar 2023 14:38:00 +0000 (09:38 -0500)]
qa: fix background exit condition

This change causes the program to exit gracefully when stdin is closed
rather than with a Python exception.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
23 months agoqa: add filesystem helper for setting transient config
Patrick Donnelly [Thu, 15 Sep 2022 13:55:28 +0000 (09:55 -0400)]
qa: add filesystem helper for setting transient config

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
23 months agoqa: add helper for waiting for a rank to fail
Patrick Donnelly [Thu, 15 Sep 2022 13:55:47 +0000 (09:55 -0400)]
qa: add helper for waiting for a rank to fail

For killpoint testing.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
23 months agomds: add incompat feature for minor log segments
Patrick Donnelly [Sat, 6 May 2023 19:52:55 +0000 (15:52 -0400)]
mds: add incompat feature for minor log segments

To prevent old MDS from joining a file system with the new log events.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
23 months agomds: introduce ELid event to create/close log
Patrick Donnelly [Tue, 7 Mar 2023 18:24:38 +0000 (13:24 -0500)]
mds: introduce ELid event to create/close log

Prior to this set of commits, the MDS would write the ESubtreeMap to the
journal, trim everything up to that segment, then finally force the
trimming of that last segment (`MDLog::trim(0)`). This is awkward in the
new code which preserves a major segment boundary at the beginning of
the journal during trimming. Instead of writing a special case for this
situation, it seems more natural to just use a new "lid" or "cap" event
to mark the beginning of the journal when no subtree map can yet be
written but we need sequence numbers to tie in other MDS tables.

Like ESegment, ELid doesn't actually contain any state. It's just a
marker for the beginning the log after rank deactivation or rank
creation. It can appear in the middle of the log if the shutdown
sequence is interrupted while writing the event but the MDS will skip it
during replay in that case.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
23 months agomds: change EResetJournal to major segment boundary
Patrick Donnelly [Tue, 7 Mar 2023 18:23:05 +0000 (13:23 -0500)]
mds: change EResetJournal to major segment boundary

When the MDS journal is wiped, EResetJournal is a major segment boundary
as it necessarily begins the journal.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
23 months agomds: add killpoints for MDS shutdown
Patrick Donnelly [Tue, 7 Mar 2023 18:20:19 +0000 (13:20 -0500)]
mds: add killpoints for MDS shutdown

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
23 months agoqa: add numerous subtree test
Patrick Donnelly [Mon, 30 Jan 2023 19:33:32 +0000 (14:33 -0500)]
qa: add numerous subtree test

When the ESubtreeMap is very large (~5k+ subtrees), the MDS will
end up logging only a few events (as bad as 1) per segment as the
subtree map dominates the segment size.

This test simply creates an artificially large subtree and confirms that
other file system activity completes in a timely manner. This is now
taking advantage of the minor segments which allows for a normal set of
events per log segment (and fewer subtree maps). The test fails on the
current main HEAD.

Historical note: when I first observed this abberant behavior, the
vstart cluster was actually using mds_debug_subtrees = True (the default
for every vstart cluster). This caused the MDS to write out the subtree
map (for debugging reasons) with every event. When testing the MDS with
large subtrees (distributed ephemeral pinning), this caused the MDS to
slow to a trickle of operations per second. Despite this unintentional
misconfiguration, the problem still exists but the number of auth
subtrees must be large for a particlar rank to replicate the behavior.

On main HEAD, the creation of 10k files (workload stage) takes ~110
seconds. On this branch, it takes ~30 seconds.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
23 months agomds: track larger log events in perf dump
Patrick Donnelly [Wed, 1 Feb 2023 20:01:37 +0000 (15:01 -0500)]
mds: track larger log events in perf dump

Fixes: https://tracker.ceph.com/issues/58550
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
23 months agomds: add minor LogSegment boundaries
Patrick Donnelly [Fri, 4 Nov 2022 17:50:13 +0000 (13:50 -0400)]
mds: add minor LogSegment boundaries

This commit adds a new ESegment event type which can delineate
LogSegments. This event can be used as an alternative to the heavy
weight ESubtreeMap which can be very expensive to generate when the MDS
has a large subtree map.

Fixes: https://tracker.ceph.com/issues/58154
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
23 months agomds: obviate MDLog::start_entry
Patrick Donnelly [Fri, 4 Nov 2022 12:58:46 +0000 (08:58 -0400)]
mds: obviate MDLog::start_entry

The major problem here is that the MDLog::_start_entry method puts the
current event sequence number in the EMetaBlob of the event (if
present). Because of this, no other event can be submitted as this would
invalidate the event sequence. Instead, fixup the event sequence during
submission and simplify related logic that uses it during EMetaBlob
construction.

Secondarily, for the purposes of this commit series, _start_entry
introduced recursive locks when generating the ESubtreeMap within
MDLog::_segment_upkeep. So, this commit is a necessary cleanup.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
23 months agomds: retype to properly sized unsigned ints
Patrick Donnelly [Fri, 4 Nov 2022 13:42:52 +0000 (09:42 -0400)]
mds: retype to properly sized unsigned ints

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
23 months agomds: use unsigned type for event count
Patrick Donnelly [Wed, 1 Feb 2023 19:14:52 +0000 (14:14 -0500)]
mds: use unsigned type for event count

To resolve comparison warnings in subsequent commit.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
23 months agomds: use base Context class for generalization
Patrick Donnelly [Fri, 4 Nov 2022 01:43:10 +0000 (21:43 -0400)]
mds: use base Context class for generalization

No reason to specialize to MDSContext.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
23 months agomds: optimize segment lookup
Patrick Donnelly [Fri, 4 Nov 2022 01:41:32 +0000 (21:41 -0400)]
mds: optimize segment lookup

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
23 months agomds: add stream dump for LogSegment
Patrick Donnelly [Thu, 3 Nov 2022 14:30:53 +0000 (10:30 -0400)]
mds: add stream dump for LogSegment

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
23 months agomds: handle conf changes in mdlog
Patrick Donnelly [Wed, 1 Feb 2023 15:08:19 +0000 (10:08 -0500)]
mds: handle conf changes in mdlog

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
23 months agomds: remove redundant comment
Patrick Donnelly [Wed, 2 Nov 2022 14:09:19 +0000 (10:09 -0400)]
mds: remove redundant comment

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
23 months agomds: remove unused method
Patrick Donnelly [Wed, 2 Nov 2022 16:53:52 +0000 (12:53 -0400)]
mds: remove unused method

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
23 months agomds: set a reasonable minimum number of segments
Patrick Donnelly [Wed, 1 Feb 2023 16:07:01 +0000 (11:07 -0500)]
mds: set a reasonable minimum number of segments

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
23 months agomds: sort configs
Patrick Donnelly [Wed, 1 Feb 2023 16:05:47 +0000 (11:05 -0500)]
mds: sort configs

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
23 months agoMerge PR #51995 into main
Venky Shankar [Tue, 1 Aug 2023 15:06:59 +0000 (20:36 +0530)]
Merge PR #51995 into main

* refs/pull/51995/head:
qa: wait for file to have correct size

Reviewed-by: Milind Changire <mchangir@redhat.com>
23 months agoMerge pull request #52305 from Posrabi/wip-disk-frag-sim-metrics
Adam Kupczyk [Tue, 1 Aug 2023 13:50:41 +0000 (15:50 +0200)]
Merge pull request #52305 from Posrabi/wip-disk-frag-sim-metrics

test/objectstore: Disk Fragmentation Simulator Metrics

23 months agoMerge pull request #52526 from rhcs-dashboard/volume-create
Pedro Gonzalez Gomez [Tue, 1 Aug 2023 11:17:13 +0000 (13:17 +0200)]
Merge pull request #52526 from rhcs-dashboard/volume-create

mgr/dashboard: cephfs volume creation form

Reviewed-by: Pegonzal <NOT@FOUND>
Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: cloudbehl <NOT@FOUND>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
23 months agoMerge pull request #52493 from rhcs-dashboard/cluster-upgrade-ui
Pedro Gonzalez Gomez [Tue, 1 Aug 2023 08:46:51 +0000 (10:46 +0200)]
Merge pull request #52493 from rhcs-dashboard/cluster-upgrade-ui

mgr/dashboard: cluster upgrade start UI

Reviewed-by: Pegonzal <pegonzal@redhat.com>
Reviewed-by: cloudbehl <NOT@FOUND>
Reviewed-by: Nizamudeen A <nia@redhat.com>
23 months agoMerge pull request #52701 from rhcs-dashboard/flake8-fix
Nizamudeen A [Tue, 1 Aug 2023 05:36:50 +0000 (11:06 +0530)]
Merge pull request #52701 from rhcs-dashboard/flake8-fix

mgr: fix flake8 compliants

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: phlogistonjohn <NOT@FOUND>
23 months agoMerge pull request #52341 from mkogan1/wip-T52363-xrmeng8756
Casey Bodley [Mon, 31 Jul 2023 22:15:05 +0000 (18:15 -0400)]
Merge pull request #52341 from mkogan1/wip-T52363-xrmeng8756

rgw: fix the Content-Length in response header of static website

Reviewed-by: Casey Bodley <cbodley@redhat.com>
23 months agoMerge pull request #52131 from cityofships/docs_radosgw
zdover23 [Mon, 31 Jul 2023 20:31:41 +0000 (06:31 +1000)]
Merge pull request #52131 from cityofships/docs_radosgw

doc/radosgw: correct emphasis in rate limit section

Reviewed-by: Zac Dover <zac.dover@proton.me>
23 months agodoc/radosgw: correct emphasis in rate limit section 52131/head
Piotr Parczewski [Mon, 31 Jul 2023 14:42:26 +0000 (16:42 +0200)]
doc/radosgw: correct emphasis in rate limit section

Signed-off-by: Piotr Parczewski <piotr@stackhpc.com>
23 months agoMerge pull request #52603 from cbodley/wip-62135
Casey Bodley [Mon, 31 Jul 2023 14:25:06 +0000 (10:25 -0400)]
Merge pull request #52603 from cbodley/wip-62135

qa/rgw: pacific upgrade disables centos9

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
23 months agoMerge pull request #51987 from rkachach/fix_issue_61628
Adam King [Mon, 31 Jul 2023 12:34:54 +0000 (08:34 -0400)]
Merge pull request #51987 from rkachach/fix_issue_61628

mgr/cephadm: storing prometheus/alertmanager credentials in monstore

Reviewed-by: Adam King <adking@redhat.com>
23 months agoMerge pull request #52622 from rhcs-dashboard/allow-put-cors
Nizamudeen A [Mon, 31 Jul 2023 09:24:49 +0000 (14:54 +0530)]
Merge pull request #52622 from rhcs-dashboard/allow-put-cors

mgr/dashboard: allow PUT in CORS

Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
23 months agomgr: fix some flake8 complaints 52701/head
Nizamudeen A [Mon, 31 Jul 2023 09:20:57 +0000 (14:50 +0530)]
mgr: fix some flake8 complaints

Signed-off-by: Nizamudeen A <nia@redhat.com>
23 months agomgr/dashboard: cluster upgrade start UI 52493/head
avanthakkar [Mon, 17 Jul 2023 18:11:51 +0000 (23:41 +0530)]
mgr/dashboard: cluster upgrade start UI

Fixes: https://tracker.ceph.com/issues/61928
Signed-off-by: avanthakkar <avanjohn@gmail.com>
23 months agomgr/dashboard: cephfs volume creation form 52526/head
Pere Diaz Bou [Tue, 18 Jul 2023 19:30:17 +0000 (21:30 +0200)]
mgr/dashboard: cephfs volume creation form

Fixes: https://tracker.ceph.com/issues/62085
Signed-off-by: Pere Diaz Bou <pere-altea@hotmail.com>
23 months agoMerge pull request #52317 from rhcs-dashboard/rgw-overview-dashboard
Aashish Sharma [Mon, 31 Jul 2023 05:36:44 +0000 (11:06 +0530)]
Merge pull request #52317 from rhcs-dashboard/rgw-overview-dashboard

mgr/dashboard: add inventory card  and single stat cards to rgw overview dashboard

Reviewed-by: Nizamudeen A <nia@redhat.com>
23 months agoMerge pull request #52435 from vedanshbhartia/coverity_invalid_typename
Yuval Lifshitz [Sun, 30 Jul 2023 12:58:16 +0000 (15:58 +0300)]
Merge pull request #52435 from vedanshbhartia/coverity_invalid_typename

rgw: typecast long long to int when passing length to format string

23 months agoMerge pull request #52688 from petrutlucian94/avoid_tzset
Ilya Dryomov [Fri, 28 Jul 2023 22:23:42 +0000 (00:23 +0200)]
Merge pull request #52688 from petrutlucian94/avoid_tzset

build: globally set FMT_USE_TZSET=0 for Windows

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
23 months agoMerge pull request #52668 from bluikko/patch-16
Anthony D'Atri [Fri, 28 Jul 2023 16:38:55 +0000 (12:38 -0400)]
Merge pull request #52668 from bluikko/patch-16

doc/radosgw: Add missing space to date option spec in admin.rst

23 months agoMerge pull request #52685 from bluikko/patch-17
Anthony D'Atri [Fri, 28 Jul 2023 15:15:19 +0000 (11:15 -0400)]
Merge pull request #52685 from bluikko/patch-17

doc/mgr/ceph_api: Promptify example commands in index.rst

23 months agobuild: globally set FMT_USE_TZSET=0 for Windows 52688/head
Lucian Petrut [Fri, 28 Jul 2023 11:27:56 +0000 (11:27 +0000)]
build: globally set FMT_USE_TZSET=0 for Windows

We're currently setting FMT_USE_TZSET=0 when building libfmt
in order to avoid the _tzset function, which is unavailable
under Mingw:
https://github.com/ceph/ceph/commit/aa5769ecf1d80fc9824280d2e90fd4c61a0e7769

The issue is that it still gets used by fmt/chrono.h, which is
why we'll move this definition to the top level cmake file.

Note that the Windows build is currently failing as a result of
a recent change: https://github.com/ceph/ceph/pull/52590/files

  In file included from ceph/src/common/ceph_time.h:22,
                   from ceph/src/include/encoding.h:31,
                   from ceph/src/include/uuid.h:9,
                   from ceph/src/include/types.h:21,
                   from ceph/src/crush/CrushWrapper.h:14,
                   from ceph/src/crush/CrushCompiler.h:7,
                   from ceph/src/crush/CrushCompiler.cc:4:
  ceph/src/fmt/include/fmt/chrono.h: In lambda function:
  ceph/src/fmt/include/fmt/chrono.h:953:5: error: ‘_tzset’ was
  not declared in this scope; did you mean ‘tzset’?
    953 |     _tzset();
        |     ^~~~~~
        |     tzset

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
23 months agoMerge pull request #52191 from rhcs-dashboard/fix-daemon-labels-exporter
Nizamudeen A [Fri, 28 Jul 2023 13:16:35 +0000 (18:46 +0530)]
Merge pull request #52191 from rhcs-dashboard/fix-daemon-labels-exporter

mgr/dashboard: empty grafana panels for performance of daemons

Reviewed-by: Pegonzal <NOT@FOUND>
Reviewed-by: cloudbehl <NOT@FOUND>
Reviewed-by: Juan Miguel Olmo <jolmomar@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
23 months agomgr/dashboard: allow PUT in CORS 52622/head
Nizamudeen A [Tue, 25 Jul 2023 09:21:40 +0000 (14:51 +0530)]
mgr/dashboard: allow PUT in CORS

Fixes: https://tracker.ceph.com/issues/62222
Signed-off-by: Nizamudeen A <nia@redhat.com>
23 months agomgr/dashboard: empty grafana panels for performance of daemons 52191/head
avanthakkar [Mon, 26 Jun 2023 07:11:24 +0000 (12:41 +0530)]
mgr/dashboard: empty grafana panels for performance of daemons

Fixes: https://tracker.ceph.com/issues/61792
Signed-off-by: avanthakkar <avanjohn@gmail.com>
Removing the `ceph-` prefix from ceph_daemon label to adopt it with the label
format used by queries in grafana dashboards. Also changing the
`instance_id` label for rgw to match the values coming from
exporter and prometheus module

23 months agodoc/mgr/ceph_api: Promptify example commands in index.rst 52685/head
Ville Ojamo [Fri, 28 Jul 2023 04:49:19 +0000 (11:49 +0700)]
doc/mgr/ceph_api: Promptify example commands in index.rst

Use the more modern prompt block instead of
using code blocks for example commands.

Signed-off-by: Ville Ojamo <14869000+bluikko@users.noreply.github.com>
23 months agodoc/radosgw: Add missing space to date option spec in admin.rst 52668/head
Ville Ojamo [Thu, 27 Jul 2023 07:56:58 +0000 (14:56 +0700)]
doc/radosgw: Add missing space to date option spec in admin.rst

The start time and end time CLI option specification is missing a space between the date and the optional time value. Also expand the text to talk about "optional time" after the date.

Signed-off-by: Ville Ojamo <14869000+bluikko@users.noreply.github.com>
23 months agoMerge pull request #52549 from cbodley/wip-qa-distros-centos9-no-copr
Ilya Dryomov [Thu, 27 Jul 2023 19:40:07 +0000 (21:40 +0200)]
Merge pull request #52549 from cbodley/wip-qa-distros-centos9-no-copr

qa/distros: disable ceph/el9 copr workaround for missing python deps

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
23 months agoMerge pull request #52671 from zdover23/wip-doc-2023-07-27-readmemd-2-of-x
zdover23 [Thu, 27 Jul 2023 19:11:44 +0000 (05:11 +1000)]
Merge pull request #52671 from zdover23/wip-doc-2023-07-27-readmemd-2-of-x

doc: update README.md install procedure

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
23 months agoMerge pull request #52591 from ronen-fr/wip-rf-cephx-init
Ronen Friedman [Thu, 27 Jul 2023 16:13:06 +0000 (19:13 +0300)]
Merge pull request #52591 from ronen-fr/wip-rf-cephx-init

cephx: initializing two member variables in the ctors

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
23 months agoMerge pull request #52590 from ronen-fr/wip-rf-res-type2
Ronen Friedman [Thu, 27 Jul 2023 15:24:06 +0000 (18:24 +0300)]
Merge pull request #52590 from ronen-fr/wip-rf-res-type2

osd/scrub: fixing & improving ReservationTimeout handler messages

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
23 months agoMerge pull request #52084 from rhcs-dashboard/fix-exporter-addrs
Adam King [Thu, 27 Jul 2023 13:58:51 +0000 (09:58 -0400)]
Merge pull request #52084 from rhcs-dashboard/fix-exporter-addrs

exporter: ceph-exporter scrapes failing on multi-homed server

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@ibm.com>
Reviewed-by: Redouane Kachach <rkachach@redhat.com>
23 months agodoc: update README.md install procedure 52671/head
Zac Dover [Thu, 27 Jul 2023 11:49:19 +0000 (21:49 +1000)]
doc: update README.md install procedure

Add instructions directing the reader to install the "python3-routes"
package. This package is required in order to launch the dashboard after
the installation procedure has completed, but is not yet included in the
install-deps.sh script.

Signed-off-by: Zac Dover <zac.dover@proton.me>
23 months agoMerge PR #52376 into main
Venky Shankar [Thu, 27 Jul 2023 11:08:36 +0000 (16:38 +0530)]
Merge PR #52376 into main

* refs/pull/52376/head:
mds: skip forwarding request if the session were removed

Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
23 months agoMerge PR #52176 into main
Venky Shankar [Thu, 27 Jul 2023 11:07:55 +0000 (16:37 +0530)]
Merge PR #52176 into main

* refs/pull/52176/head:
mds: remove calculating caps after adding revokes back

Reviewed-by: Venky Shankar <vshankar@redhat.com>
23 months agoMerge PR #51536 into main
Venky Shankar [Thu, 27 Jul 2023 08:08:54 +0000 (13:38 +0530)]
Merge PR #51536 into main

* refs/pull/51536/head:
mds: do not send split_realms for CEPH_SNAP_OP_UPDATE msg

Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
23 months agoMerge PR #52275 into main
Venky Shankar [Thu, 27 Jul 2023 08:07:29 +0000 (13:37 +0530)]
Merge PR #52275 into main

* refs/pull/52275/head:
mds: update mdlog perf counters during replay

Reviewed-by: Venky Shankar <vshankar@redhat.com>
23 months agomgr/dashboard: Add inventory card and two single stat panels to rgw 52317/head
Aashish Sharma [Thu, 20 Jul 2023 07:01:59 +0000 (12:31 +0530)]
mgr/dashboard: Add inventory card and two single stat panels to rgw
overview dashboard

Signed-off-by: Aashish Sharma <aasharma@redhat.com>
23 months agoMerge pull request #52624 from idryomov/wip-61565
Ilya Dryomov [Wed, 26 Jul 2023 16:23:29 +0000 (18:23 +0200)]
Merge pull request #52624 from idryomov/wip-61565

qa/workunits/rbd: use jammy version of qemu-iotests for centos 9

Reviewed-by: Ramana Raja <rraja@redhat.com>
23 months agoMerge pull request #52546 from rhcs-dashboard/node-16-main
Nizamudeen A [Wed, 26 Jul 2023 14:02:24 +0000 (19:32 +0530)]
Merge pull request #52546 from rhcs-dashboard/node-16-main

deps: increase the node version to 16

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
23 months agoMerge pull request #49810 from baergj/fix-create_time_event-header
Casey Bodley [Wed, 26 Jul 2023 12:24:55 +0000 (08:24 -0400)]
Merge pull request #49810 from baergj/fix-create_time_event-header

async: Fix units in the create_time_event() declaration.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
23 months agoMerge pull request #52644 from rhcs-dashboard/fix-62124-main
Aashish Sharma [Wed, 26 Jul 2023 11:46:10 +0000 (17:16 +0530)]
Merge pull request #52644 from rhcs-dashboard/fix-62124-main

mgr/dashboard: add validations to zone access/secret key in zone creation/edit form

Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
23 months agorgw: fix the Content-Length in response header is inconsistent with response body... 52341/head
mengxiangrui [Sat, 21 Aug 2021 07:20:00 +0000 (15:20 +0800)]
rgw: fix the Content-Length in response header is inconsistent with response body size when rgw returns default html error page in static website

The default html error page as response body should be built completely include three ending html symbols(/ul, /body and /html) before rgw computes Content-Length in response header. The Content-Length in response header will be consistent with response body size. Client can get complete page.

Fixes: https://tracker.ceph.com/issues/52363
(cherry picked from commit cbeaef9fbe96c930fc10b793773e7ecd137fde81)

Co-authored-by: aicun hu <huaicun@chinatelecom.cn>
Co-authored-by: yupeng chen <chenyupeng@chinatelecom.cn>
Signed-off-by: xiangrui meng <mengxr@chinatelecom.cn>
23 months agoMerge pull request #52570 from rhcs-dashboard/fix-62110-main
Aashish Sharma [Wed, 26 Jul 2023 11:38:41 +0000 (17:08 +0530)]
Merge pull request #52570 from rhcs-dashboard/fix-62110-main

mgr/dashboard: fix removal of non-master zone from the zone group via dashboard

Reviewed-by: Nizamudeen A <nia@redhat.com>
23 months agoMerge PR #52600 into main
Venky Shankar [Wed, 26 Jul 2023 10:31:05 +0000 (16:01 +0530)]
Merge PR #52600 into main

* refs/pull/52600/head:
qa: fix cephfs-mirror unwinding and 'fs volume create/rm' order

Reviewed-by: Venky Shankar <vshankar@redhat.com>
23 months agomgr/dashboard: add validations to zone access/secret key in zone creation/edit form 52644/head
Aashish Sharma [Wed, 26 Jul 2023 06:00:32 +0000 (11:30 +0530)]
mgr/dashboard: add validations to zone access/secret key in zone creation/edit form

Fixes: https://tracker.ceph.com/issues/62124
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
23 months agoqa: fix cephfs-mirror unwinding and 'fs volume create/rm' order 52600/head
Jos Collin [Mon, 24 Jul 2023 08:46:52 +0000 (14:16 +0530)]
qa: fix cephfs-mirror unwinding and 'fs volume create/rm' order

* Fixes the 'fs volume create' happens before the cephfs-mirror daemon start.
* Fixes the 'fs volume rm' happen only after the cephfs-mirror daemon unwinding.
  - This prevents the issue of mirror-daemon not returning from a libcephfs call, as
    the volumes were deleted during the cephfs_mirror_thrash ing.

Fixes: https://tracker.ceph.com/issues/61182
Signed-off-by: Jos Collin <jcollin@redhat.com>
23 months agoMerge pull request #52630 from zdover23/wip-doc-2023-07-25-readmemd-1-of-x
zdover23 [Tue, 25 Jul 2023 23:07:40 +0000 (09:07 +1000)]
Merge pull request #52630 from zdover23/wip-doc-2023-07-25-readmemd-1-of-x

doc: update README.md

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
23 months agoMerge pull request #52596 from yuvalif/wip-yuval-fix-61868-new
Yuval Lifshitz [Tue, 25 Jul 2023 18:59:23 +0000 (21:59 +0300)]
Merge pull request #52596 from yuvalif/wip-yuval-fix-61868-new

rgw/lua: allow passing tenant without uid to manage lua scripts

23 months agoasync: Fix units in the create_time_event() declaration. 49810/head
Joshua Baergen [Fri, 20 Jan 2023 16:19:30 +0000 (09:19 -0700)]
async: Fix units in the create_time_event() declaration.

Commit 19a9d9531fab4627cafbb2915566c512c41077a8 changed the definition
to microseconds but neglected to update the header.

Signed-off-by: Joshua Baergen <jbaergen@digitalocean.com>
23 months agoMerge pull request #52592 from xxhdx1985126/wip-62098
Matan Breizman [Tue, 25 Jul 2023 14:53:22 +0000 (17:53 +0300)]
Merge pull request #52592 from xxhdx1985126/wip-62098

crimson/net: set TCP_NODELAY according to ms_tcp_nodelay

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Kefu Chai <kefu.chai@scylladb.com>
23 months agodoc: update README.md 52630/head
Zac Dover [Tue, 25 Jul 2023 13:09:11 +0000 (23:09 +1000)]
doc: update README.md

Correct and improve ceph/README.md.

Signed-off-by: Zac Dover <zac.dover@proton.me>
23 months agousing json file to get alertmanager/prometheus credentials 51987/head
Redouane Kachach [Fri, 14 Jul 2023 11:06:50 +0000 (13:06 +0200)]
using json file to get alertmanager/prometheus credentials

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
23 months agomgr/cephadm: storing prometheus/alertmanager credentials in monstore
Redouane Kachach [Fri, 9 Jun 2023 13:22:14 +0000 (15:22 +0200)]
mgr/cephadm: storing prometheus/alertmanager credentials in monstore
Fixes: https://tracker.ceph.com/issues/61628
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
23 months agoMerge pull request #50423 from rkachach/fix_issue_nmveof
Adam King [Tue, 25 Jul 2023 12:56:31 +0000 (08:56 -0400)]
Merge pull request #50423 from rkachach/fix_issue_nmveof

mgr/cephadm: adding support for nvmeof

Reviewed-by: Adam King <adking@redhat.com>
23 months agoMerge pull request #51933 from aclamk/wip-aclamk-bs-onode-doc
Adam Kupczyk [Tue, 25 Jul 2023 12:06:02 +0000 (14:06 +0200)]
Merge pull request #51933 from aclamk/wip-aclamk-bs-onode-doc

os/bluestore: Some in-code documentation for Onode / blob

23 months agoMerge pull request #52218 from YiteGu/cephfs-get-statfs
Nizamudeen A [Tue, 25 Jul 2023 12:00:11 +0000 (17:30 +0530)]
Merge pull request #52218 from YiteGu/cephfs-get-statfs

mgr/dashboard: CephFS statfs REST API

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
23 months agoqa/workunits/rbd: use jammy version of qemu-iotests for centos 9 52624/head
Ilya Dryomov [Tue, 25 Jul 2023 11:31:25 +0000 (13:31 +0200)]
qa/workunits/rbd: use jammy version of qemu-iotests for centos 9

It's the one we are using for all recent distros.

While at it, get rid of custom bin directory -- it appears that both
v2.3.0 and v2.11.0 tests are happy with just symlinks in the current
directory.

Fixes: https://tracker.ceph.com/issues/61565
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
23 months agoMerge PR #52523 into main
Venky Shankar [Tue, 25 Jul 2023 10:53:23 +0000 (16:23 +0530)]
Merge PR #52523 into main

* refs/pull/52523/head:
mds: remove dead method

Reviewed-by: Venky Shankar <vshankar@redhat.com>
23 months agoMerge pull request #52429 from guits/fix-raw-list
Guillaume Abrioux [Tue, 25 Jul 2023 08:22:26 +0000 (10:22 +0200)]
Merge pull request #52429 from guits/fix-raw-list

ceph-volume: fix raw list for lvm devices

23 months agoMerge PR #52597 into main
Venky Shankar [Tue, 25 Jul 2023 07:23:45 +0000 (12:53 +0530)]
Merge PR #52597 into main

* refs/pull/52597/head:
qa: use centos 8.stream for fs:upgrade tests

Reviewed-by: Casey Bodley <cbodley@redhat.com>
23 months agoMerge pull request #52599 from Matan-B/wip-matanb-crimson-cbt-fix
Matan Breizman [Tue, 25 Jul 2023 06:58:58 +0000 (09:58 +0300)]
Merge pull request #52599 from Matan-B/wip-matanb-crimson-cbt-fix

qa: Fix cbt usage with Crimson

Reviewed-by: Samuel Just <sjust@redhat.com>
23 months agoMerge pull request #52598 from Matan-B/wip-matanb-crimson-centos-8
Matan Breizman [Tue, 25 Jul 2023 06:57:01 +0000 (09:57 +0300)]
Merge pull request #52598 from Matan-B/wip-matanb-crimson-centos-8

qa/suites/crimson-rados: Use centos8 for testing

Reviewed-by: Samuel Just <sjust@redhat.com>
23 months agoqa: use centos 8.stream for fs:upgrade tests 52597/head
Venky Shankar [Mon, 24 Jul 2023 06:54:35 +0000 (12:24 +0530)]
qa: use centos 8.stream for fs:upgrade tests

fs:upgrade tests use n/o/p release packages which aren't
available for centos 9.stream - switch using 8.stream instead.

Fixes: http://tracker.ceph.com/issues/62146
Signed-off-by: Venky Shankar <vshankar@redhat.com>
23 months agoMerge PR #48038 into main
Venky Shankar [Tue, 25 Jul 2023 04:04:36 +0000 (09:34 +0530)]
Merge PR #48038 into main

* refs/pull/48038/head:
client test: Add fsync to ll_preadv_pwritev test
libcephfs: Option to write + fsync via ceph_ll_nonblocking_readv_writev
Client: Hook nonblocking fsync into the write path of ll_preadv_pwritev
Client: Add non-blocking fsync
Client/Inode: wait_for_caps fixups
Client: change several waitfor_* to use Context list
test: Add nonblocking I/O client test
libcephfs: Add nonblocking readv/writev I/O interface
Client: Add ll_preadv_pwritev to expose non-blocking I/O to libcephfs
Client: Add non-blocking helper classes
Client: Break some code into new methods in prep for non-blocking I/O
Buffers: Add function to buffer.h to copy bufferlist to an iovec
ObjectCacher: Prepare file_write path for non-blocking I/O

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
23 months agoMerge pull request #52607 from zap51/patch-1
Ilya Dryomov [Tue, 25 Jul 2023 02:49:40 +0000 (04:49 +0200)]
Merge pull request #52607 from zap51/patch-1

doc/rbd/rbd-cloudstack.rst: include support for multiple monitors

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
23 months agoMerge pull request #49889 from bluikko/bluikko-doc-srv-lookup-link
Anthony D'Atri [Mon, 24 Jul 2023 22:39:53 +0000 (18:39 -0400)]
Merge pull request #49889 from bluikko/bluikko-doc-srv-lookup-link

doc/rados/configuration: add links to MON DNS

23 months agodoc/rbd/rbd-cloudstack.rst: include support for multiple monitors 52607/head
Jayanth Reddy [Mon, 24 Jul 2023 16:04:06 +0000 (21:34 +0530)]
doc/rbd/rbd-cloudstack.rst: include support for multiple monitors

Signed-off-by: Jayanth Reddy <45934027+zap51@users.noreply.github.com>
23 months agoclient test: Add fsync to ll_preadv_pwritev test nonblocking-io 48038/head
Frank S. Filz [Mon, 8 Aug 2022 23:48:37 +0000 (16:48 -0700)]
client test: Add fsync to ll_preadv_pwritev test

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
23 months agolibcephfs: Option to write + fsync via ceph_ll_nonblocking_readv_writev
Frank S. Filz [Thu, 14 Jul 2022 22:04:24 +0000 (15:04 -0700)]
libcephfs: Option to write + fsync via ceph_ll_nonblocking_readv_writev

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
23 months agoClient: Hook nonblocking fsync into the write path of ll_preadv_pwritev
Frank S. Filz [Thu, 14 Jul 2022 22:02:06 +0000 (15:02 -0700)]
Client: Hook nonblocking fsync into the write path of ll_preadv_pwritev

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
23 months agoClient: Add non-blocking fsync
Frank S. Filz [Fri, 1 Jul 2022 20:58:23 +0000 (13:58 -0700)]
Client: Add non-blocking fsync

We will need the ability to do an non-blocking write that finishes with
fsync so we need non-blocking fsync.

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
23 months agoClient/Inode: wait_for_caps fixups
Frank S. Filz [Tue, 6 Sep 2022 18:44:43 +0000 (11:44 -0700)]
Client/Inode: wait_for_caps fixups

The non-blocking flush requires us to be able to re-add to
wait_for_caps but if we simply add to the list, we get stuck in an
infinite loop. Add a wait_for_caps_pending list to add to, and then
when done signalling, we move the wait_for_caps_pending items onto the
wait_for_caps list.

Also in handle_cap_flush_ack(), we need to complete the caps flushing
before signalling since with non-blocking flush, we will be actually
examining the caps from the completion rather than signalling a
condition variable in the completion.

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
23 months agoClient: change several waitfor_* to use Context list
Frank S. Filz [Wed, 29 Jun 2022 22:39:12 +0000 (15:39 -0700)]
Client: change several waitfor_* to use Context list

Change waitfor_caps, waitfor_safe and waitfor_commit to Context list.

To make a non-blocking version of fsync (to be used for non-blocking write
and commit), we need to be able to signal an arbitrary Context on completion
of either of these lists.

add_nonblocking_onfinish_to_context_list Adds such a Context to the list.

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
23 months agotest: Add nonblocking I/O client test
Frank S. Filz [Wed, 11 May 2022 21:37:15 +0000 (14:37 -0700)]
test: Add nonblocking I/O client test

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
23 months agolibcephfs: Add nonblocking readv/writev I/O interface
Frank S. Filz [Wed, 11 May 2022 21:35:53 +0000 (14:35 -0700)]
libcephfs: Add nonblocking readv/writev I/O interface

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
23 months agoClient: Add ll_preadv_pwritev to expose non-blocking I/O to libcephfs
Frank S. Filz [Wed, 11 May 2022 21:34:35 +0000 (14:34 -0700)]
Client: Add ll_preadv_pwritev to expose non-blocking I/O to libcephfs

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
23 months agoClient: Add non-blocking helper classes
Frank S. Filz [Wed, 11 May 2022 21:22:55 +0000 (14:22 -0700)]
Client: Add non-blocking helper classes

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
23 months agoClient: Break some code into new methods in prep for non-blocking I/O
Frank S. Filz [Tue, 10 May 2022 22:02:15 +0000 (15:02 -0700)]
Client: Break some code into new methods in prep for non-blocking I/O

These bits of code need to be invoked from a separate spot when we
introduce non-blocking I/O, so break them out now.

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
23 months agoBuffers: Add function to buffer.h to copy bufferlist to an iovec
Frank S. Filz [Tue, 10 May 2022 21:15:05 +0000 (14:15 -0700)]
Buffers: Add function to buffer.h to copy bufferlist to an iovec

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
23 months agoObjectCacher: Prepare file_write path for non-blocking I/O
Frank S. Filz [Wed, 4 May 2022 20:35:44 +0000 (13:35 -0700)]
ObjectCacher: Prepare file_write path for non-blocking I/O

For non-blocking I/O, we will want to be able to override
block_writes_upfront so rename the member cfg_block_writes_upfront and add
an option to pass block_writes_upfront as a parameter along with a member
access method so caller can pass cfg_block_writes_upfront.

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>