]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
3 years agoMerge pull request #46669 from tchaikov/wip-crimson-deferred
Kefu Chai [Wed, 15 Jun 2022 14:24:36 +0000 (22:24 +0800)]
Merge pull request #46669 from tchaikov/wip-crimson-deferred

crimson/osd: use seastar::deferred_stop()

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agoMerge pull request #45614 from lxbsz/wip-54653
Venky Shankar [Wed, 15 Jun 2022 07:03:06 +0000 (12:33 +0530)]
Merge pull request #45614 from lxbsz/wip-54653

ceph-fuse: add dedicated snap stag map for each directory

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Milind Changire <mchangir@redhat.com>
Reviewed-by: Neeraj Pratap Singh <neesingh@redhat.com>
3 years agoceph-fuse: add dedicated snap stag map for each directory 45614/head
Xiubo Li [Wed, 6 Apr 2022 00:12:26 +0000 (08:12 +0800)]
ceph-fuse: add dedicated snap stag map for each directory

This will fix the fino colliding bug, which is caused when the
snapid is later than 0xffff.

From mds 'mds_max_snaps_per_dir' option, we can see that the max
snapshots for each directory is 4_K, and in ceph-fuse we have
around 64_K, which is from 0xffff - 2, stags could be used to make
the fake fuse inode numbers for each directory.

Fixes: https://tracker.ceph.com/issues/54653
Signed-off-by: Xiubo Li <xiubli@redhat.com>
3 years agoceph-fuse: return EINVAL if get invalid fino instead of assert
Xiubo Li [Thu, 24 Mar 2022 02:01:57 +0000 (10:01 +0800)]
ceph-fuse: return EINVAL if get invalid fino instead of assert

All the snap ids of the finos returned to libfuse from libcephfs
will be recorded in the map of 'stag_snap_map', and will never be
erased before unmounting. So if libfuse passes invalid fino the
ceph-fuse should return EINVAL errno instead of crash itself.

Fixes: https://tracker.ceph.com/issues/54653
Signed-off-by: Xiubo Li <xiubli@redhat.com>
3 years agoceph-fuse: reserve stag number 1 for snapdirs
Xiubo Li [Wed, 23 Mar 2022 06:30:07 +0000 (14:30 +0800)]
ceph-fuse: reserve stag number 1 for snapdirs

There have two stags will be reserved, 0 for CEPH_NOSNAP and 1 for
CPEH_SNAPDIR.

This will always make sure that for the nonsnap and snapdir inode
numbers to be consistent for all the ceph-fuse mounts.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
3 years agomds-client: make the fake inos option unchangeable in runtime
Xiubo Li [Wed, 23 Mar 2022 02:05:32 +0000 (10:05 +0800)]
mds-client: make the fake inos option unchangeable in runtime

If the flags is empty then in option.h in can_update_at_runtime()
it will return true. That means this opetion could be changed in
runtime, which is buggy. Because if this is false, ceph-fuse will
use its own fake inos instead of libcephfs'. If this is changed
during runtime, we will hit inos dosn't exist assert bugs.

Fixes: https://tracker.ceph.com/issues/54653
Signed-off-by: Xiubo Li <xiubli@redhat.com>
3 years agoMerge pull request #46629 from anthonyeleven/anthonyeleven/46195_formatting
Anthony D'Atri [Wed, 15 Jun 2022 01:03:05 +0000 (18:03 -0700)]
Merge pull request #46629 from anthonyeleven/anthonyeleven/46195_formatting

doc/man/8: Tweak formatting and wording in ceph.rst

3 years agoMerge pull request #46362 from pdvian/wip-logm-mgrstat
Yuri Weinstein [Tue, 14 Jun 2022 20:43:42 +0000 (13:43 -0700)]
Merge pull request #46362 from pdvian/wip-logm-mgrstat

mon/LogMonitor, MgrStat: Report logm and mgrstat committed version

Reviewed-by: Laura Flores <lflores@redhat.com>
3 years agoMerge pull request #46279 from jianwei1216/osd-peering-complete-log-patch
Yuri Weinstein [Tue, 14 Jun 2022 20:43:10 +0000 (13:43 -0700)]
Merge pull request #46279 from jianwei1216/osd-peering-complete-log-patch

osd: add log for pg peering and activiting complete

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd: use seastar::deferred_stop() 46669/head
Kefu Chai [Tue, 14 Jun 2022 16:31:09 +0000 (00:31 +0800)]
crimson/osd: use seastar::deferred_stop()

trade `seastar::defer()` for `seastar::deferred_stop()` to
simplify the code a little bit.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
3 years agoMerge pull request #46509 from aclamk/wip-pglog-test-leak
Yuri Weinstein [Tue, 14 Jun 2022 15:27:57 +0000 (08:27 -0700)]
Merge pull request #46509 from aclamk/wip-pglog-test-leak

test/pglog: Fix memory leak

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
3 years agoMerge pull request #46438 from pdvian/wip-scrub-starts
Yuri Weinstein [Tue, 14 Jun 2022 15:27:05 +0000 (08:27 -0700)]
Merge pull request #46438 from pdvian/wip-scrub-starts

osd/scrub: Reintroduce scrub starts message

Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
3 years agoMerge pull request #46428 from sseshasa/wip-fix-55773-have-pending
Yuri Weinstein [Tue, 14 Jun 2022 15:26:23 +0000 (08:26 -0700)]
Merge pull request #46428 from sseshasa/wip-fix-55773-have-pending

mon/OSDMonitor: Ensure kvmon() is writeable before handling "osd new" cmd

Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agoMerge pull request #45984 from trociny/wip-51835
Yuri Weinstein [Tue, 14 Jun 2022 15:25:25 +0000 (08:25 -0700)]
Merge pull request #45984 from trociny/wip-51835

mgr: relax "pending_service_map.epoch > service_map.epoch" assert

Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agoMerge pull request #46285 from s0nea/config-fqdn-active
Adam King [Tue, 14 Jun 2022 14:01:08 +0000 (10:01 -0400)]
Merge pull request #46285 from s0nea/config-fqdn-active

mgr/cephadm: try to get FQDN for active instance

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Paul Cuzner <pcuzner@redhat.com>
3 years agoMerge pull request #46506 from asm0deuz/mod_iscsi_systemd
Adam King [Tue, 14 Jun 2022 13:56:49 +0000 (09:56 -0400)]
Merge pull request #46506 from asm0deuz/mod_iscsi_systemd

Modify how Iscsi tcmu-runner container is started within systemd

Reviewed-by: Adam King <adking@redhat.com>
3 years agoMerge pull request #44894 from guits/add_dockerfile_keepalived
Adam King [Tue, 14 Jun 2022 13:52:53 +0000 (09:52 -0400)]
Merge pull request #44894 from guits/add_dockerfile_keepalived

cephadm: change default keepalived/haproxy container images

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
3 years agoMerge pull request #46588 from guits/cluster-fsid-common
Adam King [Tue, 14 Jun 2022 13:48:53 +0000 (09:48 -0400)]
Merge pull request #46588 from guits/cluster-fsid-common

ceph-volume: make is_valid() optional

Reviewed-by: Teoman ONAY <tonay@redhat.com>
3 years agoMerge pull request #46586 from SUSE/wip-suse-default-jaeger-off
Deepika Upadhyay [Tue, 14 Jun 2022 12:46:27 +0000 (18:16 +0530)]
Merge pull request #46586 from SUSE/wip-suse-default-jaeger-off

ceph.spec.in: turn jaeger off by default for SUSE distros

Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
3 years agoMerge pull request #46370 from rhcs-dashboard/stop-poll-page-inactive
Ernesto Puerta [Tue, 14 Jun 2022 11:23:59 +0000 (13:23 +0200)]
Merge pull request #46370 from rhcs-dashboard/stop-poll-page-inactive

mgr/dashboard: stop polling when page is not visible

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
3 years agoMerge pull request #46475 from rhcs-dashboard/01-hosts-failure
Ernesto Puerta [Tue, 14 Jun 2022 11:21:26 +0000 (13:21 +0200)]
Merge pull request #46475 from rhcs-dashboard/01-hosts-failure

mgr/dashboard: fix drain e2e failure

Reviewed-by: Sarthak Gupta <sarthak.dev.0702@gmail.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
3 years agoMerge pull request #44567 from lxbsz/client_reply
Venky Shankar [Tue, 14 Jun 2022 09:46:27 +0000 (15:16 +0530)]
Merge pull request #44567 from lxbsz/client_reply

client: do nothing when get a stale reply

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
3 years agoMerge pull request #46313 from zenomri/wip-omri-tracing-lua
Yuval Lifshitz [Tue, 14 Jun 2022 09:22:21 +0000 (12:22 +0300)]
Merge pull request #46313 from zenomri/wip-omri-tracing-lua

rgw: add SetAttribute and AddEvent functions for TraceMetaTable in Lua

Reviewed-by: yuvalif
3 years agoMerge pull request #46407 from melissa-kun-li/disable-create-image
Ernesto Puerta [Tue, 14 Jun 2022 09:00:21 +0000 (11:00 +0200)]
Merge pull request #46407 from melissa-kun-li/disable-create-image

mgr/dashboard: add rbd status endpoint and error page

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: sunilangadi2 <NOT@FOUND>
3 years agoMerge pull request #46651 from zdover23/wip-doc-2022-06-13-dev-guide-essentials-maste...
zdover23 [Tue, 14 Jun 2022 06:27:14 +0000 (16:27 +1000)]
Merge pull request #46651 from zdover23/wip-doc-2022-06-13-dev-guide-essentials-master-to-main

doc/dev: s/master/main/ essentials.rst dev guide

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
3 years agoMerge pull request #46659 from anthonyeleven/anthonyeleven-46637-followup
Anthony D'Atri [Mon, 13 Jun 2022 23:58:08 +0000 (16:58 -0700)]
Merge pull request #46659 from anthonyeleven/anthonyeleven-46637-followup

doc/start: Polish network section of hardware-recommendations.rst

3 years agodoc/start: Polish network section of hardware-recommendations.rst 46659/head
Anthony D'Atri [Mon, 13 Jun 2022 23:06:12 +0000 (16:06 -0700)]
doc/start: Polish network section of hardware-recommendations.rst

Harmonize network throughput notation, minor tweaks to wording.
Followup to #46637

Signed-off-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
3 years agodoc/dev: s/master/main/ essentials.rst dev guide 46651/head
Zac Dover [Mon, 13 Jun 2022 21:48:46 +0000 (07:48 +1000)]
doc/dev: s/master/main/ essentials.rst dev guide

This PR changes all reference to the "master" branch
to references to the "main" branch (because we renamed
"master" to main", and the docs now need to reflect that).

Signed-off-by: Zac Dover <zac.dover@gmail.com>
3 years agoMerge pull request #46637 from zdover23/wip-doc-2022-06-12-start-intro-networks-rewrite
zdover23 [Mon, 13 Jun 2022 21:11:12 +0000 (07:11 +1000)]
Merge pull request #46637 from zdover23/wip-doc-2022-06-12-start-intro-networks-rewrite

doc/start: rewrite hardware-recs networks section

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
3 years agoMerge pull request #43597 from pritha-srivastava/wip-rgw-sts-role-multisite
Casey Bodley [Mon, 13 Jun 2022 16:04:12 +0000 (12:04 -0400)]
Merge pull request #43597 from pritha-srivastava/wip-rgw-sts-role-multisite

rgw multisite: replicate metadata for iam roles

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #46568 from yuvalif/wip-yuval-lua-counters
Yuval Lifshitz [Mon, 13 Jun 2022 15:18:56 +0000 (18:18 +0300)]
Merge pull request #46568 from yuvalif/wip-yuval-lua-counters

rgw/lua: add counters to background table

Reviewed-by: mattbenjamin
Reviewed-by: Matan-b
3 years agomgr/dashboard: fix drain e2e failure 46475/head
Nizamudeen A [Wed, 1 Jun 2022 07:40:14 +0000 (13:10 +0530)]
mgr/dashboard: fix drain e2e failure

Cypress sometimes fail to register the click and that causes the
deselect/select to not happen properly. Deselecting the row immediately
after performing the action makes it pass from cypress.

Fixes: https://tracker.ceph.com/issues/55741
Signed-off-by: Nizamudeen A <nia@redhat.com>
3 years agoclient: do nothing when get a stale reply 44567/head
Xiubo Li [Thu, 13 Jan 2022 04:03:39 +0000 (12:03 +0800)]
client: do nothing when get a stale reply

In theory when we get a stale reply from incorrect session, that
means it's buggy in MDS. Anyway we should discard it without doing
anything.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
3 years agoMerge pull request #44655 from lxbsz/wip-53741
Venky Shankar [Mon, 13 Jun 2022 08:10:04 +0000 (13:40 +0530)]
Merge pull request #44655 from lxbsz/wip-53741

mds: clear MDCache::rejoin_*_q queues before recovering file inodes

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Kotresh HR <khiremat@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Nikhilkumar Shelke <nshelke@redhat.com>
3 years agoMerge pull request #45556 from mchangir/qa-add-subvolume-option-flavors
Venky Shankar [Mon, 13 Jun 2022 06:59:43 +0000 (12:29 +0530)]
Merge pull request #45556 from mchangir/qa-add-subvolume-option-flavors

qa: add subvolume option flavors

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kotresh HR <khiremat@redhat.com>
3 years agoMerge pull request #44347 from kotreshhr/subvolumegroup-quotas
Venky Shankar [Mon, 13 Jun 2022 06:56:59 +0000 (12:26 +0530)]
Merge pull request #44347 from kotreshhr/subvolumegroup-quotas

mgr/volumes: subvolumegroup quotas

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
3 years agoMerge pull request #46332 from lxbsz/qa-snap
Venky Shankar [Mon, 13 Jun 2022 06:55:44 +0000 (12:25 +0530)]
Merge pull request #46332 from lxbsz/qa-snap

qa: enlarge the tag number and test more for the snapshot

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agodoc: add explanation about the new two functions and example 46313/head
Omri Zeneva [Tue, 24 May 2022 09:08:17 +0000 (05:08 -0400)]
doc: add explanation about the new two functions and example

Signed-off-by: Omri Zeneva <ozeneva@redhat.com>
3 years agotest: add unit tests
Omri Zeneva [Mon, 23 May 2022 15:50:05 +0000 (11:50 -0400)]
test: add unit tests

- added trace initialization
- opentelemetry linking when needed
- conditional ASSERT on SetBadAttribute, when we don't have opentelemetry (tracing sdk), we expect different result from the execute function.

Signed-off-by: Omri Zeneva <ozeneva@redhat.com>
3 years agorgw: add functionality of SetAttribute and AddEvent method in postRequest context
Omri Zeneva [Wed, 11 May 2022 13:39:49 +0000 (09:39 -0400)]
rgw: add functionality of SetAttribute and AddEvent method in postRequest context

opentelemetry supports mainly string, int64, double and boolean for values of trace's Attributes,
so we should validate those types and static cast to the proper type, which is different than Lua types

SetAttribute Closure will be returned to lua only if the request's trace is real and not noop span or even null like what happens in preRequest Context

AddEvent method comes to give us the ability to record an event. the event can be a single string that represents the event, or event name and key-value pairs.

Signed-off-by: Omri Zeneva <ozeneva@redhat.com>
3 years agodoc/start: rewrite hardware-recs networks section 46637/head
Zac Dover [Mon, 13 Jun 2022 04:34:36 +0000 (14:34 +1000)]
doc/start: rewrite hardware-recs networks section

This rewrites the first two-thirds of the "Networks"
section of the Hardware Recommendations page in the
Intro to Ceph document. I have tried to divide the
techincal content in this section into subsections
that foreground the various subjects covered.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
3 years agoMerge pull request #46634 from Huber-ming/pr_target_main
Anthony D'Atri [Mon, 13 Jun 2022 03:47:48 +0000 (20:47 -0700)]
Merge pull request #46634 from Huber-ming/pr_target_main

SubmittingPatches.rst: PRs should target "main"

3 years agoMerge pull request #46583 from zdover23/wip-doc-2022-06-08-intro-hardware-recs-osd...
Anthony D'Atri [Mon, 13 Jun 2022 03:32:05 +0000 (20:32 -0700)]
Merge pull request #46583 from zdover23/wip-doc-2022-06-08-intro-hardware-recs-osd-acro-fix

doc/start: make OSD and MDS structures parallel

3 years agoMerge pull request #46633 from zdover23/wip-doc-2022-06-12-start-intro-crush-para-fix
Anthony D'Atri [Mon, 13 Jun 2022 03:26:02 +0000 (20:26 -0700)]
Merge pull request #46633 from zdover23/wip-doc-2022-06-12-start-intro-crush-para-fix

doc/start: rewrite CRUSH para

3 years agoSubmittingPatches.rst: PRs should target "main" 46634/head
Huber-ming [Mon, 13 Jun 2022 01:36:39 +0000 (09:36 +0800)]
SubmittingPatches.rst: PRs should target "main"

Signed-off-by: Huber-ming <zhangsm01@inspur.com>
3 years agodoc/start: make OSD and MDS structures parallel 46583/head
Zac Dover [Wed, 8 Jun 2022 19:19:16 +0000 (05:19 +1000)]
doc/start: make OSD and MDS structures parallel

This PR makes the "Ceph OSDs" and "MDSs" bullet points
parallel by naming "object storage daemon" before referring
to the (admittedly more common and colloquial, but surely
unknown to people who genuinely require a document called
'Intro') acronym "OSD".

Signed-off-by: Zac Dover <zac.dover@gmail.com>
3 years agodoc/start: rewrite CRUSH para 46633/head
Zac Dover [Sun, 12 Jun 2022 23:41:28 +0000 (09:41 +1000)]
doc/start: rewrite CRUSH para

This PR supersedes https://github.com/ceph/ceph/pull/46584
and makes changes suggested by Anthony D'Atri that improve
the coherence and consistency of the paragraph that explains
the basics of the CRUSH algorithm.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
3 years agodoc/man/8: Tweak formatting and wording in ceph.rst 46629/head
Anthony D'Atri [Sat, 11 Jun 2022 21:21:50 +0000 (14:21 -0700)]
doc/man/8: Tweak formatting and wording in ceph.rst

Signed-off-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
3 years agoMerge pull request #46200 from elacunza/doc-man-ceph-add-enable_stretch_mode
Anthony D'Atri [Sat, 11 Jun 2022 21:02:32 +0000 (14:02 -0700)]
Merge pull request #46200 from elacunza/doc-man-ceph-add-enable_stretch_mode

doc/man/8: Add enable_stretch_mode docs

3 years agoMerge pull request #46462 from Thingee/update-foundation-mems-202205
Anthony D'Atri [Sat, 11 Jun 2022 20:43:48 +0000 (13:43 -0700)]
Merge pull request #46462 from Thingee/update-foundation-mems-202205

doc: Updating Ceph Foundation members for May

3 years agoMerge pull request #46195 from snosratiershad/fix-docs-double-dash-convertion-to...
Anthony D'Atri [Sat, 11 Jun 2022 20:32:15 +0000 (13:32 -0700)]
Merge pull request #46195 from snosratiershad/fix-docs-double-dash-convertion-to-em-dash

doc: Disable double dashes "--" smartquotes conversion to en-dashes

3 years agodoc: Disable double dashes "--" smartquotes conversion to en-dashes 46195/head
Salar Nosrati-Ershad [Sun, 8 May 2022 06:49:06 +0000 (11:19 +0430)]
doc: Disable double dashes "--" smartquotes conversion to en-dashes

3 years agoMerge pull request #46604 from ljflores/wip-librados-test-fix
Laura Flores [Fri, 10 Jun 2022 16:56:19 +0000 (11:56 -0500)]
Merge pull request #46604 from ljflores/wip-librados-test-fix

test/librados: modify LibRadosMiscConnectFailure.ConnectFailure to comply with new seconds unit

3 years agoMerge pull request #46606 from rzarzynski/wip-55982
Yuri Weinstein [Fri, 10 Jun 2022 16:39:24 +0000 (09:39 -0700)]
Merge pull request #46606 from rzarzynski/wip-55982

osd: log the number of 'dups' entries in a PG Log

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Laura Flores <lflores@redhat.com>
3 years agoMerge pull request #46600 from idryomov/wip-pmdk-wno-error
Ilya Dryomov [Fri, 10 Jun 2022 16:28:18 +0000 (18:28 +0200)]
Merge pull request #46600 from idryomov/wip-pmdk-wno-error

cmake: pass -Wno-error when building PMDK

Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
Reviewed-by: Kefu Chai <tchaikov@gmail.com>
3 years agoMerge pull request #46617 from yuvalif/wip-yuval-fix-55978
Casey Bodley [Fri, 10 Jun 2022 13:36:38 +0000 (09:36 -0400)]
Merge pull request #46617 from yuvalif/wip-yuval-fix-55978

rgw/lua: pass correct value to "toplevel" param

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #44648 from Huber-ming/index_cancel
Casey Bodley [Fri, 10 Jun 2022 13:36:00 +0000 (09:36 -0400)]
Merge pull request #44648 from Huber-ming/index_cancel

rgw: delete redundant brackets

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
3 years agoMerge PR #46421 into main
Patrick Donnelly [Fri, 10 Jun 2022 00:12:49 +0000 (20:12 -0400)]
Merge PR #46421 into main

* refs/pull/46421/head:
doc/dev: move option -R to a different section of doc

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Anthony D Atri <anthony.datri@gmail.com>
3 years agoosd: log the number of 'dups' entries in a PG Log 46606/head
Radoslaw Zarzynski [Thu, 9 Jun 2022 18:44:10 +0000 (18:44 +0000)]
osd: log the number of 'dups' entries in a PG Log

We really want to have the ability to know how many
entries `PGLog::IndexedLog::dups` has inside.
The current ways are either invasive (stopping an OSD)
or indirect (examination of `dump_mempools`).

The code comes from Nitzan Mordechai (part of
ede37edd79a9d5560dfb417ec176327edfc0e4a3).

Fixes: https://tracker.ceph.com/issues/55982
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
3 years agorgw/lua: pass correct value to "toplevel" param 46617/head
yuval Lifshitz [Thu, 9 Jun 2022 19:51:50 +0000 (22:51 +0300)]
rgw/lua: pass correct value to "toplevel" param

Fixes: https://tracker.ceph.com/issues/55978
Signed-off-by: yuval Lifshitz <ylifshit@redhat.com>
3 years agotest/librados: modify LibRadosMiscConnectFailure.ConnectFailure to comply with new... 46604/head
Laura Flores [Thu, 9 Jun 2022 18:55:48 +0000 (18:55 +0000)]
test/librados: modify LibRadosMiscConnectFailure.ConnectFailure to comply with new seconds unit

The unit type for `client_mount_timeout` was changed from "float" to "secs" in
983b10506dc8466a0e47ff0d320d480dd09999ec. To make this test comply with the new
seconds unit change, we need to change the value to an integer, as seconds
does not accept float values.

Fixes: https://tracker.ceph.com/issues/55971
Signed-off-by: Laura Flores <lflores@redhat.com>
3 years agorgw/lua: replace int64_t with "long long int" for the background table 46568/head
yuval Lifshitz [Thu, 9 Jun 2022 15:57:07 +0000 (18:57 +0300)]
rgw/lua: replace int64_t with "long long int" for the background table

lua integer is "long long int" which works with GCC 11.2.1 (fedora 36)
but fails to compile on centos8 and ubuntu focal

Signed-off-by: yuval Lifshitz <ylifshit@redhat.com>
3 years agorgw/lua: use constants for upvalue indexes
yuval Lifshitz [Thu, 9 Jun 2022 13:29:48 +0000 (16:29 +0300)]
rgw/lua: use constants for upvalue indexes

Signed-off-by: yuval Lifshitz <ylifshit@redhat.com>
3 years agorgw/lua: add atomic increment/decrement to RGW table
Yuval Lifshitz [Mon, 23 May 2022 11:38:34 +0000 (14:38 +0300)]
rgw/lua: add atomic increment/decrement to RGW table

Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
3 years agorgw/lua: support multiple types in lua background table
Yuval Lifshitz [Wed, 18 May 2022 14:18:14 +0000 (17:18 +0300)]
rgw/lua: support multiple types in lua background table

Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
3 years agoMerge pull request #45806 from hualongfeng/qat_error_fix1
Casey Bodley [Thu, 9 Jun 2022 14:50:24 +0000 (10:50 -0400)]
Merge pull request #45806 from hualongfeng/qat_error_fix1

common/compressor: fix the issue that read more data

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agocmake: pass -Wno-error when building PMDK 46600/head
Ilya Dryomov [Thu, 9 Jun 2022 11:42:01 +0000 (13:42 +0200)]
cmake: pass -Wno-error when building PMDK

It's hitting pacific with a nuisance -Werror=array-parameter= const
char * vs const char[37] mismatch.  Follow commit 91a616b26e83 ("cmake:
pass RTE_DEVEL_BUILD=n when building dpdk") and just disable -Werror.

Fixes: https://tracker.ceph.com/issues/55977
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
3 years agoceph-volume: make is_valid() optional 46588/head
Guillaume Abrioux [Thu, 9 Jun 2022 08:33:31 +0000 (10:33 +0200)]
ceph-volume: make is_valid() optional

There are cases where `ceph-volume` doesn't have to require
a `ceph.conf` file that has the `fsid` parameter.

See: https://github.com/rook/rook/pull/10333#pullrequestreview-994958873

Fixes: https://tracker.ceph.com/issues/55970
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
3 years agomgr/dashboard: stop polling when page is not visible 46370/head
Sarthak0702 [Mon, 23 May 2022 16:01:45 +0000 (21:31 +0530)]
mgr/dashboard: stop polling when page is not visible

Signed-off-by: Sarthak0702 <sarthak.dev.0702@gmail.com>
3 years agoMerge pull request #45937 from faithuniterh/adding_go_examples
Yuval Lifshitz [Thu, 9 Jun 2022 07:36:17 +0000 (10:36 +0300)]
Merge pull request #45937 from faithuniterh/adding_go_examples

examples: Add Golang code showing object upload to Ceph RGW bucket

Reviwed-by: anthonyeleven
Reviwed-by: yuvalif
3 years agoMerge pull request #45970 from faithuniterh/adding_java_examples
Yuval Lifshitz [Thu, 9 Jun 2022 07:33:18 +0000 (10:33 +0300)]
Merge pull request #45970 from faithuniterh/adding_java_examples

examples: Add Java code showing object upload to Ceph RGW bucket

Reviewed-by: anthonyeleven
Reviewed-by: yuvalif
3 years agoceph.spec.in: turn jaeger off by default for SUSE distros 46586/head
Tim Serong [Thu, 9 Jun 2022 05:20:10 +0000 (15:20 +1000)]
ceph.spec.in: turn jaeger off by default for SUSE distros

Building with jaeger by default pulls in opentelemetry, and
cmake/modules/BuildOpentelemetry.cmake tries to go get
https://github.com/ideepika/opentelemetry-cpp.git at build
time, which doesn't work on SUSE's build service (no internet
access at build time).  Also, since WITH_JAEGER now defaults
to ON in CMakeLists.txt, we need to flip the logic when
setting -DWITH_JAEGER.

Fixes: 644c99826d73174e6609aa24b7297443358488b1
Fixes: 7be8be63501ba03da9b705238a9d3d3a518969ab
Signed-off-by: Tim Serong <tserong@suse.com>
3 years agoMerge pull request #46564 from liu-chunmei/crimson-return-direct
Kefu Chai [Thu, 9 Jun 2022 06:08:59 +0000 (14:08 +0800)]
Merge pull request #46564 from liu-chunmei/crimson-return-direct

crimson/osd: return directly when obc not exists.

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <tchaikov@gmail.com>
3 years agoMerge pull request #46585 from ceph/schedule
David Galloway [Wed, 8 Jun 2022 22:19:15 +0000 (18:19 -0400)]
Merge pull request #46585 from ceph/schedule

schedule_subset.sh: Default to ceph.git

3 years agocrimson/osd: return directly when obc not exists. 46564/head
chunmei-liu [Wed, 8 Jun 2022 08:01:43 +0000 (01:01 -0700)]
crimson/osd: return directly when obc not exists.

if goest into do_osd_ops, will set osd_op.rval, but it
is not reuqired in some tests, this follow classic ceph do_op logic.

Signed-off-by: chunmei-liu <chunmei.liu@intel.com>
3 years agoexamples: Add Java code showing object upload to Ceph RGW bucket 45970/head
faithuniterh [Wed, 8 Jun 2022 20:21:03 +0000 (23:21 +0300)]
examples: Add Java code showing object upload to Ceph RGW bucket

Signed-off-by: faithuniterh <faithuniterh@tutanota.com>
3 years agoschedule_subset.sh: Default to ceph.git 46585/head
David Galloway [Wed, 8 Jun 2022 20:13:29 +0000 (16:13 -0400)]
schedule_subset.sh: Default to ceph.git

https://github.com/ceph/teuthology/pull/999 never got overridden in ceph.git.  We've been using a years-old checkout of teuthology for the `teuthology` user.

With the master->main change, that checkout needed to go.  Then when trying to schedule new nightlies, teuthology-suite was defaulting to ceph-ci.git which either has very old versions of the release branches (octopus, pacific, etc.) or they don't exist at all.

Signed-off-by: David Galloway <dgallowa@redhat.com>
3 years agoexamples: Add Golang code showing object upload to Ceph RGW bucket 45937/head
faithuniterh [Wed, 8 Jun 2022 20:02:15 +0000 (23:02 +0300)]
examples: Add Golang code showing object upload to Ceph RGW bucket

Signed-off-by: faithuniterh <faithuniterh@tutanota.com>
3 years agodoc/dev: move option -R to a different section of doc 46421/head
Rishabh Dave [Mon, 30 May 2022 05:09:42 +0000 (10:39 +0530)]
doc/dev: move option -R to a different section of doc

It's incorrect to pass option "-R fail" to the teuthology-suite command
meant for triggering tests for first time. teuthology-suite command will
fail if "-R" is passed without "-r". Therefore, move this option and its
description from the section meant for triggering tests for first time
to the section dedicated to re-running of tests.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
3 years agoMerge pull request #46526 from cyx1231st/wip-seastore-fix-cache
Samuel Just [Wed, 8 Jun 2022 19:03:12 +0000 (12:03 -0700)]
Merge pull request #46526 from cyx1231st/wip-seastore-fix-cache

crimson/os/seastore/cache: fix a potential leak when replace placeholder

Reviewed-by: Xuehan Xu <xxhdx1985126@gmail.com>
3 years agoMerge pull request #46172 from cbodley/wip-54405
Casey Bodley [Wed, 8 Jun 2022 18:41:20 +0000 (14:41 -0400)]
Merge pull request #46172 from cbodley/wip-54405

rgw: add 'rgw_access' log subsys for frontend http access log

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
3 years agoMerge PR #46572 into main
Patrick Donnelly [Wed, 8 Jun 2022 18:12:45 +0000 (14:12 -0400)]
Merge PR #46572 into main

* refs/pull/46572/head:
script/ptl-tool: update main branch name

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
3 years agoMerge pull request #46330 from adamemerson/wip-openssl3-deprecation-warnings
Casey Bodley [Wed, 8 Jun 2022 15:25:31 +0000 (11:25 -0400)]
Merge pull request #46330 from adamemerson/wip-openssl3-deprecation-warnings

build: Silence deprecation warnings from OpenSSL 3

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
Reviewed-by: Pritha Srivastava <prsrivas@redhat.com>
3 years agoMerge pull request #46238 from Huber-ming/storage_class_in_checkdiskstate
Casey Bodley [Wed, 8 Jun 2022 15:16:02 +0000 (11:16 -0400)]
Merge pull request #46238 from Huber-ming/storage_class_in_checkdiskstate

rgw: check object storage_class when check_disk_state

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #44052 from cfsnyder/wip-53367-log-access-key-ops-logs
Casey Bodley [Wed, 8 Jun 2022 15:15:53 +0000 (11:15 -0400)]
Merge pull request #44052 from cfsnyder/wip-53367-log-access-key-ops-logs

rgw: log access key id in ops logs

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: add 'rgw_access' log subsys for frontend http access log 46172/head
Casey Bodley [Thu, 5 May 2022 15:36:34 +0000 (11:36 -0400)]
rgw: add 'rgw_access' log subsys for frontend http access log

this allows the log level of this http access log to be configured
separately from the 'rgw' subsystem, though the defaults are the same

Fixes: https://tracker.ceph.com/issues/54405
Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agocommon: remove log subsys for deprecated 'civetweb'
Casey Bodley [Thu, 5 May 2022 15:31:51 +0000 (11:31 -0400)]
common: remove log subsys for deprecated 'civetweb'

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #46540 from yaarith/rook-telemetry-release-notes
Neha Ojha [Wed, 8 Jun 2022 14:33:41 +0000 (07:33 -0700)]
Merge pull request #46540 from yaarith/rook-telemetry-release-notes

PendingReleaseNotes: add a note about Rook telemetry

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Laura Flores <lflores@redhat.com>
3 years agoscript/ptl-tool: update main branch name 46572/head
Patrick Donnelly [Wed, 8 Jun 2022 14:11:09 +0000 (10:11 -0400)]
script/ptl-tool: update main branch name

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agocephadm/tests: decrease number of docker.io occurances 44894/head
Guillaume Abrioux [Tue, 15 Feb 2022 17:09:03 +0000 (18:09 +0100)]
cephadm/tests: decrease number of docker.io occurances

with haproxy/keepalived default images change, this check needs to be updated.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
3 years agocephadm: change default keepalived/haproxy container img
Guillaume Abrioux [Thu, 3 Feb 2022 15:39:18 +0000 (16:39 +0100)]
cephadm: change default keepalived/haproxy container img

given that we now host haproxy and keepalived container images at
`quay.io/ceph` (keepalived and haproxy) let's use them as
defaults in cephadm.

Fixes: https://tracker.ceph.com/issues/54287
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
3 years agocontainers: add keepalived container image
Guillaume Abrioux [Thu, 3 Feb 2022 15:03:28 +0000 (16:03 +0100)]
containers: add keepalived container image

we need to maintain a fork of keepalived container image in order
to push it to quay.io so we can get around the docker rate limitation

Fixes: https://tracker.ceph.com/issues/54287
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
3 years agoMerge pull request #46482 from ceph/feature-54330-osd-creation-workflow
Ernesto Puerta [Wed, 8 Jun 2022 12:04:48 +0000 (14:04 +0200)]
Merge pull request #46482 from ceph/feature-54330-osd-creation-workflow

mgr/dashboard: Feature 54330 osd creation workflow

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
3 years agoMerge pull request #46458 from yuvalif/wip-yuval-objecter-latency
Yuval Lifshitz [Wed, 8 Jun 2022 07:59:35 +0000 (10:59 +0300)]
Merge pull request #46458 from yuvalif/wip-yuval-objecter-latency

objecter: add op latency stat and in-flight count
Reviwed-by: cbodley, adamemerson
3 years agoMerge pull request #42779 from Matan-B/lua-rgw-map
Yuval Lifshitz [Wed, 8 Jun 2022 05:32:35 +0000 (08:32 +0300)]
Merge pull request #42779 from Matan-B/lua-rgw-map

rgw: Lua scripting global map feature
Reviwed-by: dang, cbodley, yuvalif, anthonyeleven, tchaikov, mattbenjamin, batrick
3 years agorgw: adding a test to check if role metadata syncs fine. 43597/head
Pritha Srivastava [Tue, 22 Mar 2022 07:47:42 +0000 (13:17 +0530)]
rgw: adding a test to check if role metadata syncs fine.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
3 years agomgr/dashboard: add rbd status endpoint 46407/head
Melissa Li [Thu, 26 May 2022 18:07:30 +0000 (14:07 -0400)]
mgr/dashboard: add rbd status endpoint

Show "No RBD pools available" error page when accessing block/rbd if there are no rbd pools.
Add a "button_name" and "button_route" property to `ModuleStatusGuardService` config to customize the button on the error page.
Modify `ModuleStatusGuardService` to execute API calls to `/ui-api/<uiApiPath>/status` which uses the `UIRouter`.

Fixes: https://tracker.ceph.com/issues/42109
Signed-off-by: Melissa Li <melissali@redhat.com>
3 years agoMerge pull request #46514 from adk3798/fqdn-autotune
Adam King [Wed, 8 Jun 2022 00:54:02 +0000 (20:54 -0400)]
Merge pull request #46514 from adk3798/fqdn-autotune

mgr/cephadm: use host shortname for osd memory autotuning

Reviewed-by: Guillaume Abrioux <gabrioux@redhat.com>
Reviewed-by: Redouane Kachach <rkachach@redhat.com>
3 years agoMerge pull request #46517 from guits/cephadm-upgrade-status-is_paused
Adam King [Wed, 8 Jun 2022 00:52:40 +0000 (20:52 -0400)]
Merge pull request #46517 from guits/cephadm-upgrade-status-is_paused

cephadm: add 'is_paused' field in orch status output

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
3 years agoMerge pull request #46539 from adk3798/master-main-cleanup2
Adam King [Wed, 8 Jun 2022 00:51:06 +0000 (20:51 -0400)]
Merge pull request #46539 from adk3798/master-main-cleanup2

mgr/cephadm: some master -> main cleanup

Reviewed-by: David Galloway <dgallowa@redhat.com>
Reviewed-by: Redouane Kachach <rkachach@redhat.com>