]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
2 years agoMerge pull request #50743 from phlogistonjohn/jjm-update-mypy
Adam King [Tue, 4 Apr 2023 17:15:33 +0000 (13:15 -0400)]
Merge pull request #50743 from phlogistonjohn/jjm-update-mypy

update pinned mypy version

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
2 years agoMerge pull request #50600 from rhcs-dashboard/delete-rgw-multisite
Pedro Gonzalez Gomez [Tue, 4 Apr 2023 14:43:16 +0000 (16:43 +0200)]
Merge pull request #50600 from rhcs-dashboard/delete-rgw-multisite

mgr/dashboard: delete rgw multisite

Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
2 years agoMerge pull request #50279 from cfsnyder/wip-58857-ceph-volume-fast-allocs
Guillaume Abrioux [Tue, 4 Apr 2023 13:08:52 +0000 (15:08 +0200)]
Merge pull request #50279 from cfsnyder/wip-58857-ceph-volume-fast-allocs

ceph-volume: fix issue with fast device allocs when there are multiple PVs per VG

2 years agoMerge pull request #50819 from bluikko/bluikko-cephfs-volumes-prompts
Anthony D'Atri [Tue, 4 Apr 2023 11:45:01 +0000 (07:45 -0400)]
Merge pull request #50819 from bluikko/bluikko-cephfs-volumes-prompts

doc/cephfs: fix prompts in fs-volumes.rst

2 years agoMerge pull request #50845 from rhcs-dashboard/update-grafana-version
Nizamudeen A [Tue, 4 Apr 2023 06:01:23 +0000 (11:31 +0530)]
Merge pull request #50845 from rhcs-dashboard/update-grafana-version

monitoring/grafana: update the grafana version

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
2 years agoMerge pull request #50851 from zdover23/wip-doc-2023-04-04-rados-operations-monitorin...
Anthony D'Atri [Mon, 3 Apr 2023 21:19:32 +0000 (17:19 -0400)]
Merge pull request #50851 from zdover23/wip-doc-2023-04-04-rados-operations-monitoring-ceph-medic-link

doc/rados/ops: add ceph-medic documentation

2 years agodoc/rados/ops: add ceph-medic documentation 50851/head
Zac Dover [Mon, 3 Apr 2023 20:57:27 +0000 (06:57 +1000)]
doc/rados/ops: add ceph-medic documentation

Add a link to the ceph-medic documentation to
doc/rados/operations/monitoring.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
2 years agoMerge pull request #50834 from zdover23/wip-doc-2023-04-03-rados-operations-monitorin...
zdover23 [Mon, 3 Apr 2023 19:59:19 +0000 (05:59 +1000)]
Merge pull request #50834 from zdover23/wip-doc-2023-04-03-rados-operations-monitoring-2-of-3

doc/rados: edit ops/monitoring.rst (2 of 3)

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agodoc/rados: edit ops/monitoring.rst (2 of 3) 50834/head
Zac Dover [Sun, 2 Apr 2023 22:03:29 +0000 (08:03 +1000)]
doc/rados: edit ops/monitoring.rst (2 of 3)

Line-edit the second third of doc/rados/operations/monitoring.rst.

Follows https://github.com/ceph/ceph/pull/50670.

https://tracker.ceph.com/issues/58485

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
2 years agoMerge pull request #50548 from adk3798/incompatible-apply
Adam King [Mon, 3 Apr 2023 19:19:12 +0000 (15:19 -0400)]
Merge pull request #50548 from adk3798/incompatible-apply

cephadm: handle exceptions applying extra services during bootstrap

Reviewed-by: John Mulligan <jmulligan@redhat.com>
Reviewed-by: Redouane Kachach <rkachach@redhat.com>
2 years agoMerge pull request #50759 from ceph/wip-yuriw-fix-upgrades-main
Yuri Weinstein [Mon, 3 Apr 2023 18:30:56 +0000 (11:30 -0700)]
Merge pull request #50759 from ceph/wip-yuriw-fix-upgrades-main

qa/upgrade: consistently use the tip of the branch as the start version

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Laura Flores <lflores@redhat.com>
2 years agomonitoring/grafana: update the grafana version 50845/head
Nizamudeen A [Mon, 3 Apr 2023 16:23:39 +0000 (21:53 +0530)]
monitoring/grafana: update the grafana version

Signed-off-by: Nizamudeen A <nia@redhat.com>
2 years agoMerge pull request #50404 from batrick/i58923
Ilya Dryomov [Mon, 3 Apr 2023 15:53:03 +0000 (17:53 +0200)]
Merge pull request #50404 from batrick/i58923

mon/MgrMonitor: plug PAXOS for batched MgrMap/OSDMap

Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
2 years agoqa/upgrade: consistently use the tip of the branch as the start version 50759/head
Yuri Weinstein [Wed, 29 Mar 2023 21:32:38 +0000 (14:32 -0700)]
qa/upgrade: consistently use the tip of the branch as the start version

Also corrected line to use image: quay.ceph.io/ceph-ci/ceph:*
In order to make sure that latest versions of ceph is used as initial install

Fixes: https://tracker.ceph.com/issues/58914
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
2 years agodoc/cephfs: fix prompts in fs-volumes.rst 50819/head
Ville Ojamo [Fri, 31 Mar 2023 14:11:59 +0000 (21:11 +0700)]
doc/cephfs: fix prompts in fs-volumes.rst

Modernize prompts in example commands in file
fs-volume.rst and use a root prompt correctly instead
of using a non-privileged prompt when privileges
are needed.

Indent all JSON in example command outputs with
four spaces consistently instead of a mix of four and
two spaces.

Signed-off-by: Ville Ojamo <14869000+bluikko@users.noreply.github.com>
2 years agoMerge pull request #50818 from anthonyeleven/anthonyeleven/tweak-fs-volumes.rst
Anthony D'Atri [Sun, 2 Apr 2023 05:47:36 +0000 (01:47 -0400)]
Merge pull request #50818 from anthonyeleven/anthonyeleven/tweak-fs-volumes.rst

doc/cephfs: Improve fs-volumes.rst

2 years agodoc/cephfs: Improve fs-volumes.rst 50818/head
Anthony D'Atri [Fri, 31 Mar 2023 13:37:52 +0000 (09:37 -0400)]
doc/cephfs: Improve fs-volumes.rst

Signed-off-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
2 years agoMerge pull request #50670 from zdover23/wip-doc-2023-03-26-rados-operations-monitorin...
zdover23 [Fri, 31 Mar 2023 19:48:39 +0000 (05:48 +1000)]
Merge pull request #50670 from zdover23/wip-doc-2023-03-26-rados-operations-monitoring-1-of-3

doc/rados: edit ops/monitoring.rst (1 of 3)

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agodoc/rados: edit ops/monitoring.rst (1 of 3) 50670/head
Zac Dover [Sat, 25 Mar 2023 18:51:50 +0000 (04:51 +1000)]
doc/rados: edit ops/monitoring.rst (1 of 3)

Line-edit the first third of doc/rados/operations/monitoring.rst.

https://tracker.ceph.com/issues/58485

Signed-off-by: Zac Dover <zac.dover@proton.me>
2 years agoMerge pull request #46905 from lxbsz/wip-quota
Rishabh Dave [Fri, 31 Mar 2023 18:42:19 +0000 (00:12 +0530)]
Merge pull request #46905 from lxbsz/wip-quota

mds: align quota.max_bytes to 4MB or 4KB

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Milind Changire <mchangir@redhat.com>
Reviewed-by: Kotresh HR <khiremat@redhat.com>
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
2 years agoMerge pull request #49882 from zhsgao/dump_resolve_status
Rishabh Dave [Fri, 31 Mar 2023 18:40:05 +0000 (00:10 +0530)]
Merge pull request #49882 from zhsgao/dump_resolve_status

mds: fix bug of dump_resolve_status

Reviewed-by: Kotresh HR <khiremat@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
2 years agoMerge pull request #50024 from kotreshhr/mds-unused-function-removal
Rishabh Dave [Fri, 31 Mar 2023 18:36:49 +0000 (00:06 +0530)]
Merge pull request #50024 from kotreshhr/mds-unused-function-removal

mds: Remove unused declaration of the function

Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
2 years agoMerge pull request #50746 from cbodley/wip-rgw-bucket-full-sync-compat
Casey Bodley [Fri, 31 Mar 2023 18:34:42 +0000 (14:34 -0400)]
Merge pull request #50746 from cbodley/wip-rgw-bucket-full-sync-compat

rgw: set init_check_compat when bucket sync status doesn't exist

Reviewed-by: Shilpa Jagannath <smanjara@redhat.com>
Reviewed-by: Mark Kogan <mkogan@redhat.com>
2 years agoMerge pull request #50644 from cbodley/wip-59135
Ali Maredia [Fri, 31 Mar 2023 18:27:26 +0000 (14:27 -0400)]
Merge pull request #50644 from cbodley/wip-59135

qa/rgw: upgrade tests restrict supported distros

2 years agomgr/dashboard: delete rgw multisite 50600/head
Pedro Gonzalez Gomez [Mon, 20 Mar 2023 18:53:06 +0000 (19:53 +0100)]
mgr/dashboard: delete rgw multisite

Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
2 years agoMerge pull request #50690 from cbodley/wip-59174
Casey Bodley [Fri, 31 Mar 2023 17:48:52 +0000 (13:48 -0400)]
Merge pull request #50690 from cbodley/wip-59174

rgw/admin: 'data sync status' formats binary error repo entries

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
2 years agoMerge pull request #50462 from matutter/main
Casey Bodley [Fri, 31 Mar 2023 17:47:48 +0000 (13:47 -0400)]
Merge pull request #50462 from matutter/main

sts: Fixes get_cert_url improper url path concatenation

Reviewed-by: Pritha Srivastava <prsrivas@redhat.com>
2 years agoMerge pull request #50623 from VVoidV/fix-rgw_admin
Casey Bodley [Fri, 31 Mar 2023 17:47:18 +0000 (13:47 -0400)]
Merge pull request #50623 from VVoidV/fix-rgw_admin

[RGW]fix minor bug in rgw_admin

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
2 years agoMerge pull request #50648 from cbodley/wip-58035
Casey Bodley [Fri, 31 Mar 2023 17:43:01 +0000 (13:43 -0400)]
Merge pull request #50648 from cbodley/wip-58035

rgw: fix CopyObj crash after admin override

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Mark Kogan <mkogan@redhat.com>
2 years agoMerge pull request #50817 from bluikko/patch-10
Anthony D'Atri [Fri, 31 Mar 2023 13:18:15 +0000 (09:18 -0400)]
Merge pull request #50817 from bluikko/patch-10

doc/cephfs: refer to placement of MDS and not NFS in fs-volumes.rst

2 years agodoc/cephfs: refer to MDS and not NFS in fs-volumes.rst 50817/head
Ville Ojamo [Fri, 31 Mar 2023 12:01:39 +0000 (19:01 +0700)]
doc/cephfs: refer to MDS and not NFS in fs-volumes.rst

Placement should talk about MDS placement and not NFS Ganesha placement.

Signed-off-by: Ville Ojamo <14869000+bluikko@users.noreply.github.com>
2 years agoMerge pull request #50793 from petrutlucian94/allperms 49838/head
Ilya Dryomov [Fri, 31 Mar 2023 08:54:45 +0000 (10:54 +0200)]
Merge pull request #50793 from petrutlucian94/allperms

include: move ALLPERMS definition to compat.h

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
2 years agoinclude: move ALLPERMS definition to compat.h 50793/head
Lucian Petrut [Thu, 30 Mar 2023 12:14:10 +0000 (12:14 +0000)]
include: move ALLPERMS definition to compat.h

The Windows CI job started to fail as some libcephfs tests that use
ALLPERMS have been moved [1] to a separate file which doesn't have
the ALLPERMS definition.

  /ceph/src/test/libcephfs/suidsgid.cc:240:36: error: ‘ALLPERMS’ was
  not declared in this scope
  240 |   ASSERT_EQ(stx.stx_mode & (mode_t)ALLPERMS, before_mode);

We'll move this definition to compat.h so that we won't have to
redefine it in each file that uses it.

Note that we're moving the Windows "fs_compat.h" include up,
ensuring that the constants used by ALLPERMS are defined.

[1] https://github.com/ceph/ceph/commit/254eeb2730881ee48b4743e1422749d5b643f52a

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
2 years agoMerge pull request #49586 from mohan7427/mohan/batch_args-issue
Guillaume Abrioux [Fri, 31 Mar 2023 07:07:43 +0000 (09:07 +0200)]
Merge pull request #49586 from mohan7427/mohan/batch_args-issue

ceph-volume: fix drive-group issue that expects the batch_args to be a string

2 years agoMerge pull request #50554 from zdover23/wip-doc-2023-03-16-rados-operations-pg-repair
zdover23 [Fri, 31 Mar 2023 06:45:06 +0000 (16:45 +1000)]
Merge pull request #50554 from zdover23/wip-doc-2023-03-16-rados-operations-pg-repair

doc/rados: line-edit pg-repair.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agoMerge pull request #45354 from dvanders/dualdoc
zdover23 [Fri, 31 Mar 2023 06:25:31 +0000 (16:25 +1000)]
Merge pull request #45354 from dvanders/dualdoc

doc/msgr2: update dual stack status

Reviewed-by: Zac Dover <zac.dover@proton.me>
2 years agoMerge pull request #50426 from rhcs-dashboard/role-create
Nizamudeen A [Fri, 31 Mar 2023 05:12:09 +0000 (10:42 +0530)]
Merge pull request #50426 from rhcs-dashboard/role-create

mgr/dashboard: creation of rgw roles

Reviewed-by: Pegonzal <NOT@FOUND>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
2 years agoMerge PR #49460 into main
Venky Shankar [Fri, 31 Mar 2023 04:02:37 +0000 (09:32 +0530)]
Merge PR #49460 into main

* refs/pull/49460/head:
qa: fix issue with fn unable to fetch port and ip
qa: fix helper function _check_nfs_cluster_status()
qa: fix testcase 'test_cluster_set_user_config_with_non_existing_clusterid'
qa: fix cluster creation failure in test_nfs.py
qa: test export creation at filepath and symlink
qa: added test case test_nfs_export_with_invalid_path
mgr/nfs: disallow non-existent paths when creating export
mgr/nfs/tests: mock check_cephfs_path
mgr/nfs/utils: add helper func to check cephfs path

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
2 years agoMerge pull request #50674 from zdover23/wip-doc-2023-03-26-rados-operations-health...
zdover23 [Thu, 30 Mar 2023 23:38:03 +0000 (09:38 +1000)]
Merge pull request #50674 from zdover23/wip-doc-2023-03-26-rados-operations-health-checks-1-of-5

doc/rados/ops: edit health-checks.rst (1 of 5)

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agopython-common: add a dedicated tox env to run mypy 50743/head
John Mulligan [Thu, 30 Mar 2023 20:49:27 +0000 (16:49 -0400)]
python-common: add a dedicated tox env to run mypy

IMO it's not a good practice to overload a tox rule with multiple
different test tools. It forces the tools to share the same virtualenvs
and makes it impossible to run the tools individually. A separate mypy
env also better matches the other tox.ini files in the ceph tree.
Since the new 'mypy' env is in the default env list it will continue
to get run automatically when no specific envs are selected.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agomypy: update pinned mypy version to 0.981
John Mulligan [Tue, 28 Mar 2023 20:42:41 +0000 (16:42 -0400)]
mypy: update pinned mypy version to 0.981

mypy version 0.981 fixes a bug where on newer python versions mypy
doesn't properly load pyi files with keyword only arguments.
As noted in the src/mypy-constrains.txt mypy version needs to be
manually bumped periodically, and ceph is overdue for an update too.
It's never been updated since the file was added in June 2021.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agopython-common: fix variable name reuse to make mypy happy
John Mulligan [Thu, 30 Mar 2023 20:48:02 +0000 (16:48 -0400)]
python-common: fix variable name reuse to make mypy happy

The variables high and low were being used as both `str`s and regex
match objects. Rename the vars in the if block to avoid this problem.
This change makes this file pass mypy checking on mypy 0.981.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agosrc/pybind: fix type annotations for signal handler function
John Mulligan [Wed, 29 Mar 2023 14:15:10 +0000 (10:15 -0400)]
src/pybind: fix type annotations for signal handler function

This change makes this file pass mypy checking on mypy 0.981.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agocephadm: fix type annotation for list containing IP addresses
John Mulligan [Wed, 29 Mar 2023 14:14:33 +0000 (10:14 -0400)]
cephadm: fix type annotation for list containing IP addresses

This change makes this file pass mypy checking on mypy 0.981.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agomgr/dashboard: ignore type checking on mgr proxy object assignments
John Mulligan [Tue, 28 Mar 2023 21:09:30 +0000 (17:09 -0400)]
mgr/dashboard: ignore type checking on mgr proxy object assignments

Add `# type: ignore` comments to two dashboard functions that attempt
to set manager properties. There appear to be two approaches to fixing
the problem:

1. The _MgrProxy object that the dashboard uses has a __getattr__ method
for pulling value from the underlying mgr object. It does not have a
__setattr__ method. This means the setting values on _MgrProxy do not
propogate down to the original mgr.
mypy detects the fact that the object doesn't have __setattr__ and
complains. One could add a __setattr__ to the proxy type and mypy
is satisfied.

2. We can just suppress the type check with the comment.

Because I have no idea why the _MgrProxy exists or why it's implemented
the way it is, I feel that 2 is simpler. It is easy enough to go back
later and clean up the comments rather than me investing a lot of time
to understand the dashboard's approach just to bump up the version of
mypy.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agomgr/dashboard: ignore type checking for exception handling module
John Mulligan [Tue, 28 Mar 2023 21:07:20 +0000 (17:07 -0400)]
mgr/dashboard: ignore type checking for exception handling module

Add a `# type: ignore` comment to the exception handling dashboard
module just like the instance to lines below. This module does not
already import typing, so I'm not going to add it.
This change is needed in order to run mypy 0.981.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agopybind/mgr: add a type annotation to the extra_args dict
John Mulligan [Tue, 28 Mar 2023 21:07:04 +0000 (17:07 -0400)]
pybind/mgr: add a type annotation to the extra_args dict

This change makes this file pass mypy checking on mypy 0.981.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agomgr/dashboard: add an assertion for type narrowing
John Mulligan [Tue, 28 Mar 2023 21:06:51 +0000 (17:06 -0400)]
mgr/dashboard: add an assertion for type narrowing

This change makes this file pass mypy checking on mypy 0.981.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agomgr/cephadm: add a type annotation to the ganesha conf template context
John Mulligan [Tue, 28 Mar 2023 17:49:21 +0000 (13:49 -0400)]
mgr/cephadm: add a type annotation to the ganesha conf template context

This change makes this file pass mypy checking on mypy 0.981.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agoMerge pull request #50794 from ljflores/wip-crontab
Laura Flores [Thu, 30 Mar 2023 20:42:28 +0000 (15:42 -0500)]
Merge pull request #50794 from ljflores/wip-crontab

qa/crontab: check older builds on teuthology/nop when necessary

2 years agoMerge pull request #49824 from adk3798/iscsi-etc-hosts
Adam King [Thu, 30 Mar 2023 16:24:32 +0000 (12:24 -0400)]
Merge pull request #49824 from adk3798/iscsi-etc-hosts

cephadm: mount host /etc/hosts for daemon containers in podman deployments

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
2 years agoMerge pull request #50328 from adk3798/maintenance-mode-force
Adam King [Thu, 30 Mar 2023 16:20:58 +0000 (12:20 -0400)]
Merge pull request #50328 from adk3798/maintenance-mode-force

mgr/cephadm: add more aggressive force flag for host maintenance enter

Reviewed-by: John Mulligan <jmulligan@redhat.com>
2 years agoMerge pull request #50547 from adk3798/ssh-denied-error-handling
Adam King [Thu, 30 Mar 2023 16:18:53 +0000 (12:18 -0400)]
Merge pull request #50547 from adk3798/ssh-denied-error-handling

mgr/cephadm: handle HostConnectionError when checking for valid addr

Reviewed-by: John Mulligan <jmulligan@redhat.com>
Reviewed-by: Redouane Kachach <rkachach@redhat.com>
2 years agoMerge pull request #50607 from adk3798/keepalive-2-2-4
Adam King [Thu, 30 Mar 2023 16:16:29 +0000 (12:16 -0400)]
Merge pull request #50607 from adk3798/keepalive-2-2-4

cephadm: bump default keepalived image to 2.2.4

Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Redouane Kachach <rkachach@redhat.com>
2 years agoMerge pull request #50655 from rkachach/fix_issue_58158
Adam King [Thu, 30 Mar 2023 16:14:33 +0000 (12:14 -0400)]
Merge pull request #50655 from rkachach/fix_issue_58158

mgr/cephadm: increasing container stop timeout for OSDs

Reviewed-by: Adam King <adking@redhat.com>
2 years agoMerge pull request #50685 from rkachach/fix_issue_59170
Adam King [Thu, 30 Mar 2023 15:54:52 +0000 (11:54 -0400)]
Merge pull request #50685 from rkachach/fix_issue_59170

mgr/cephadm: fixing ceph-exporter prometheus's job section

Reviewed-by: avanthakkar <avanjohn@gmail.com>
2 years agoqa/crontab: check older builds on teuthology/nop when necessary 50794/head
Laura Flores [Thu, 30 Mar 2023 15:38:14 +0000 (10:38 -0500)]
qa/crontab: check older builds on teuthology/nop when necessary

Today's scheduled run failed since the newest build of main
had failed. If we add `-n 10` to the command, this will
make it so we start at the newest build and backtrack
up to 10 older builds if necessary.

A higher number than that is not necessary, as the suite
failing to run will signal to us that more than the last
10 main builds are broken in Shaman.

Signed-off-by: Laura Flores <lflores@redhat.com>
2 years agotest/rgw: ceph_test_librgw_file target also builds associated tests 50648/head
Casey Bodley [Thu, 30 Mar 2023 15:13:37 +0000 (11:13 -0400)]
test/rgw: ceph_test_librgw_file target also builds associated tests

this just makes it easier to build all of the tests needed by the
test_librgw_file.sh workunit

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #50684 from yuvalif/wip-yuval-fix-59136
Matt Benjamin [Thu, 30 Mar 2023 14:25:16 +0000 (10:25 -0400)]
Merge pull request #50684 from yuvalif/wip-yuval-fix-59136

rgw/notifications: support bucket notification with bucket policy

2 years agoqa: fix issue with fn unable to fetch port and ip 49460/head
dparmar18 [Fri, 24 Feb 2023 21:29:24 +0000 (02:59 +0530)]
qa: fix issue with fn unable to fetch port and ip

_get_port_ip_info() fails to fetch port and ip due to empty 'backend' key:

2023-02-24T20:49:09.084 DEBUG:teuthology.orchestra.run.smithi042:> sudo adjust-ulimits ceph-coverage /home/ubuntu/cephtest/archive/coverage timeout 120 ceph --cluster ceph nfs cluster info test
2023-02-24T20:49:09.471 INFO:teuthology.orchestra.run.smithi042.stdout:{
2023-02-24T20:49:09.472 INFO:teuthology.orchestra.run.smithi042.stdout:  "test": {
2023-02-24T20:49:09.472 INFO:teuthology.orchestra.run.smithi042.stdout:    "backend": [],
2023-02-24T20:49:09.472 INFO:teuthology.orchestra.run.smithi042.stdout:    "virtual_ip": null
2023-02-24T20:49:09.472 INFO:teuthology.orchestra.run.smithi042.stdout:  }
2023-02-24T20:49:09.472 INFO:teuthology.orchestra.run.smithi042.stdout:}

it then raises:

2023-02-24T20:49:10.323 INFO:tasks.cephfs_test_runner:    info_output = json.loads(self._nfs_cmd('cluster', 'info', self.cluster_id))['test']['backend'][0]
2023-02-24T20:49:10.323 INFO:tasks.cephfs_test_runner:IndexError: list index out of range

Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
2 years agoqa: fix helper function _check_nfs_cluster_status()
dparmar18 [Tue, 21 Feb 2023 18:08:42 +0000 (23:38 +0530)]
qa: fix helper function _check_nfs_cluster_status()

Comment in the code says to wait for two minutes as cluster
creation takes time but actually it's waiting for thirteen
minutes, it's not required to wait this long, i think a minute
here is more than enough, also switched to using safe_while().

Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
2 years agoqa: fix testcase 'test_cluster_set_user_config_with_non_existing_clusterid'
dparmar18 [Fri, 17 Feb 2023 18:35:19 +0000 (00:05 +0530)]
qa: fix testcase 'test_cluster_set_user_config_with_non_existing_clusterid'

Fixes: https://tracker.ceph.com/issues/58758
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
2 years agoqa: fix cluster creation failure in test_nfs.py
dparmar18 [Mon, 13 Feb 2023 14:32:06 +0000 (20:02 +0530)]
qa: fix cluster creation failure in test_nfs.py

Also adds a function _nfs_complete_cmd() that returns process obj so that stdout/stderr
can be used for evaluation(_nfs_cmd() uses raw_cluster_cmd() that returns just stdout
and it became difficult to time cluster creation errors in _test_create_cluster()).

It takes sometime to update the cluster data, therefore running the command set
(check nfs server status -> nfs cluster create test -> check cluster status) in
a loop (max six iteration with sleep of 5 secs at each iteration) fixes the issue.

Fixes: https://tracker.ceph.com/issues/58744
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
2 years agoqa: test export creation at filepath and symlink
dparmar18 [Tue, 7 Feb 2023 11:52:56 +0000 (17:22 +0530)]
qa: test export creation at filepath and symlink

Fixes: https://tracker.ceph.com/issues/58228
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
2 years agoqa: added test case test_nfs_export_with_invalid_path
dparmar18 [Thu, 15 Dec 2022 12:00:07 +0000 (17:30 +0530)]
qa: added test case test_nfs_export_with_invalid_path

Fixes: https://tracker.ceph.com/issues/58228
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
2 years agomgr/nfs: disallow non-existent paths when creating export
dparmar18 [Thu, 15 Dec 2022 11:24:27 +0000 (16:54 +0530)]
mgr/nfs: disallow non-existent paths when creating export

Fixes: https://tracker.ceph.com/issues/58228
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
2 years agomgr/nfs/tests: mock check_cephfs_path
Dhairya Parmar [Wed, 29 Mar 2023 17:58:59 +0000 (23:28 +0530)]
mgr/nfs/tests: mock check_cephfs_path

Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
2 years agoMerge pull request #45693 from cbodley/wip-qa-rgw-scrub
Casey Bodley [Thu, 30 Mar 2023 12:50:30 +0000 (08:50 -0400)]
Merge pull request #45693 from cbodley/wip-qa-rgw-scrub

qa/rgw: reenable wait-for-scrub

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2 years agoMerge PR #47649 into main
Venky Shankar [Thu, 30 Mar 2023 10:43:48 +0000 (16:13 +0530)]
Merge PR #47649 into main

* refs/pull/47649/head:
mds: adjust MDSRank::command_tag_path invocation of enqueue_scrub()
doc/scrub: documented stray evaluation using recursive scrub
qa: added testcases
mds: make `scrub status` print flag `scrub_mdsdir`
mds: add scrub_mdsdir to ScrubHeader
mds: do not dump multiple JSON obj
mds: evaluate strays while performing scrub on root path
mds: remove inode from scrub_stack if being purged
mds: do not scrub inode if it is purging

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2 years agoMerge PR #50053 into main
Venky Shankar [Thu, 30 Mar 2023 09:18:26 +0000 (14:48 +0530)]
Merge PR #50053 into main

* refs/pull/50053/head:
libcephfs: move ClearSetuid to suidsgid.cc
libcephfs: add test cases for dropping the suid/sgid in write/truncate
libcephfs: add test cases for dropping the suid/sgid in fallocate
libcephfs: fix ClearSetuid incorrectly using SETATTR_MODE mask
client: switch to clear_suid_sgid for ftruncate
client: switch to clear_suid_sgid for _write()
mds/client: clear the suid/sgid in fallocate path
client: allow unprivileged users to clear suid/sgid

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Milind Changire <mchangir@redhat.com>
2 years agoMerge pull request #50687 from rishabh-d-dave/fs-qa-kernel-untar-tar
Rishabh Dave [Thu, 30 Mar 2023 09:13:49 +0000 (14:43 +0530)]
Merge pull request #50687 from rishabh-d-dave/fs-qa-kernel-untar-tar

qa/workunit/fs: print commands for making debugging easier

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2 years agoMerge pull request #50764 from zdover23/wip-doc-2023-03-230-start-documenting-ceph...
Anthony D'Atri [Thu, 30 Mar 2023 04:59:11 +0000 (00:59 -0400)]
Merge pull request #50764 from zdover23/wip-doc-2023-03-230-start-documenting-ceph-squash-formatting

doc/start: format procedure in documenting-ceph

2 years agoMerge PR #50692 into main
Patrick Donnelly [Thu, 30 Mar 2023 03:01:33 +0000 (23:01 -0400)]
Merge PR #50692 into main

* refs/pull/50692/head:
tools/cephfs: include lost+found in scan_links

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2 years agodoc/rados/ops: edit health-checks.rst (1 of x) 50674/head
Zac Dover [Sat, 25 Mar 2023 20:02:19 +0000 (06:02 +1000)]
doc/rados/ops: edit health-checks.rst (1 of x)

Edit docs/rados/operations/health-checks.rst (1 of x).

https://tracker.ceph.com/issues/58485

Signed-off-by: Zac Dover <zac.dover@proton.me>
2 years agoMerge pull request #50742 from zdover23/wip-doc-2023-03-29-start-documenting-ceph...
zdover23 [Thu, 30 Mar 2023 01:01:29 +0000 (11:01 +1000)]
Merge pull request #50742 from zdover23/wip-doc-2023-03-29-start-documenting-ceph-notify-us

doc/start: update "notify us" section

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agodoc/start: format procedure in documenting-ceph 50764/head
Zac Dover [Thu, 30 Mar 2023 00:54:52 +0000 (10:54 +1000)]
doc/start: format procedure in documenting-ceph

Organize three steps in a procedure into one step with three sub-steps.

Signed-off-by: Zac Dover <zac.dover@proton.me>
2 years agoMerge pull request #50744 from zdover23/wip-doc-2023-03-29-rados-ops-health-checks
Anthony D'Atri [Wed, 29 Mar 2023 21:53:29 +0000 (17:53 -0400)]
Merge pull request #50744 from zdover23/wip-doc-2023-03-29-rados-ops-health-checks

doc/rados: add link to ops/health-checks.rst

2 years agoMerge PR #49773 into main
Patrick Donnelly [Wed, 29 Mar 2023 20:15:47 +0000 (16:15 -0400)]
Merge PR #49773 into main

* refs/pull/49773/head:
mds: add config to decide whether to mark dentry bad
qa: add missing scan_links step for data scan recovery
qa/tasks/cephfs: test damage to dentry's first is caught
qa/tasks/cephfs: use rank_asok and allow specifying rank
qa/tasks: allow specifying timeout command prefix to ceph
mds: provide test configs for creating first corruption
mds: catch damage to dentry's first field
mds: add debugging for pre_cow_old_inode
mds: cleanup code

Reviewed-by: Kotresh Hiremath Ravishankar <khiremat@redhat.com>
2 years agomgr/nfs/utils: add helper func to check cephfs path
Dhairya Parmar [Wed, 29 Mar 2023 17:50:50 +0000 (23:20 +0530)]
mgr/nfs/utils: add helper func to check cephfs path

this helper instantiates CephfsClient, however this was
initially planned in ExportMgr class in export.py but
due to make check failure where main python thread
experienced a dead lock which after several efforts
pointed at instantiation of CephfsClient in ExportMgr
was problematic, it was decided in order to achieve
singleton behavior, func has been added inside this
helper func that restricts instantiation using functool's
lru_cache.

Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
2 years agoMerge pull request #50750 from Sainithin-bit/main
zdover23 [Wed, 29 Mar 2023 19:09:15 +0000 (05:09 +1000)]
Merge pull request #50750 from Sainithin-bit/main

 doc/rados/operations: Fix typo in erasure-code.rst

Reviewed-by: Zac Dover <zac.dover@proton.me>
2 years agodoc/rados/operations: Fix typo in erasure-code.rst 50750/head
SAINITHIN.ARTHAM [Wed, 29 Mar 2023 18:16:32 +0000 (23:46 +0530)]
doc/rados/operations: Fix typo in erasure-code.rst

Signed-off-by: Sainithin Artham <sai.artham.19cse@bmu.edu.in>
2 years agoMerge pull request #50633 from cbodley/wip-54102
Casey Bodley [Wed, 29 Mar 2023 18:16:15 +0000 (14:16 -0400)]
Merge pull request #50633 from cbodley/wip-54102

qa/rgw: unpin centos for verify suite

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2 years agomds: add config to decide whether to mark dentry bad 49773/head
Patrick Donnelly [Wed, 29 Mar 2023 13:05:25 +0000 (09:05 -0400)]
mds: add config to decide whether to mark dentry bad

So admin can restore access to files if necessary.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2 years agoqa: add missing scan_links step for data scan recovery
Patrick Donnelly [Fri, 24 Mar 2023 21:54:35 +0000 (17:54 -0400)]
qa: add missing scan_links step for data scan recovery

Without, the first field remains corrupt (HEAD).

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2 years agoqa/tasks/cephfs: test damage to dentry's first is caught
Patrick Donnelly [Wed, 18 Jan 2023 02:22:10 +0000 (21:22 -0500)]
qa/tasks/cephfs: test damage to dentry's first is caught

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2 years agoqa/tasks/cephfs: use rank_asok and allow specifying rank
Patrick Donnelly [Fri, 20 Jan 2023 23:20:15 +0000 (18:20 -0500)]
qa/tasks/cephfs: use rank_asok and allow specifying rank

This will use the more efficient:

    ceph tell mds.<fsname>:<rank> ...

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2 years agoqa/tasks: allow specifying timeout command prefix to ceph
Patrick Donnelly [Wed, 18 Jan 2023 02:21:08 +0000 (21:21 -0500)]
qa/tasks: allow specifying timeout command prefix to ceph

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2 years agomds: provide test configs for creating first corruption
Patrick Donnelly [Wed, 18 Jan 2023 02:30:04 +0000 (21:30 -0500)]
mds: provide test configs for creating first corruption

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2 years agomds: catch damage to dentry's first field
Patrick Donnelly [Wed, 18 Jan 2023 02:29:39 +0000 (21:29 -0500)]
mds: catch damage to dentry's first field

When possible. Abort the MDS before it can be written to the
journal/directory.

This is part of a series to address corruption first observed in [1].
How the corruption is introduced is yet unknown.

[1] https://tracker.ceph.com/issues/38452#note-10

Fixes: http://tracker.ceph.com/issues/58482
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2 years agomds: add debugging for pre_cow_old_inode
Patrick Donnelly [Wed, 15 Mar 2023 18:06:11 +0000 (14:06 -0400)]
mds: add debugging for pre_cow_old_inode

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2 years agomds: cleanup code
Patrick Donnelly [Tue, 10 Jan 2023 20:35:04 +0000 (15:35 -0500)]
mds: cleanup code

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2 years agoMerge pull request #50553 from ljflores/wip-reef-crontab 50659/head
Laura Flores [Wed, 29 Mar 2023 16:59:21 +0000 (11:59 -0500)]
Merge pull request #50553 from ljflores/wip-reef-crontab

qa/crontab: add reef upgrade tests and teuthology/nop

2 years agoMerge pull request #50686 from rishabh-d-dave/fs-qa-client-upgrade
Rishabh Dave [Wed, 29 Mar 2023 16:49:35 +0000 (22:19 +0530)]
Merge pull request #50686 from rishabh-d-dave/fs-qa-client-upgrade

qa/suites/fs: check if cluster is healthy after upgrade

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2 years agoMerge pull request #50307 from dparmar18/fix_pendingreleasenotes
Rishabh Dave [Wed, 29 Mar 2023 16:12:14 +0000 (21:42 +0530)]
Merge pull request #50307 from dparmar18/fix_pendingreleasenotes

PendingReleaseNotes: remove duplicate note and unwanted tracker link

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
2 years agoMerge pull request #50735 from yangdongsheng/rbd_quiesce
Ilya Dryomov [Wed, 29 Mar 2023 15:19:02 +0000 (17:19 +0200)]
Merge pull request #50735 from yangdongsheng/rbd_quiesce

librbd: fix wrong attribute for rbd_quiesce_complete api

Reviewed-by: Mykola Golub <mgolub@suse.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
2 years agorgw: set init_check_compat when bucket sync status doesn't exist 50746/head
Casey Bodley [Wed, 29 Mar 2023 14:57:04 +0000 (10:57 -0400)]
rgw: set init_check_compat when bucket sync status doesn't exist

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoqa/suites/fs: check if cluster is healthy after upgrade 50686/head
Rishabh Dave [Mon, 27 Mar 2023 12:36:28 +0000 (18:06 +0530)]
qa/suites/fs: check if cluster is healthy after upgrade

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2 years agodoc/rados: add link to ops/health-checks.rst 50744/head
Zac Dover [Wed, 29 Mar 2023 14:25:23 +0000 (00:25 +1000)]
doc/rados: add link to ops/health-checks.rst

Add an internal navigation link to
doc/rados/operations/health-checks.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit f2f968f65bd1f1a6975fd340c66703cea335dcf6)

2 years agodoc/start: update "notify us" section 50742/head
Zac Dover [Wed, 29 Mar 2023 13:47:38 +0000 (23:47 +1000)]
doc/start: update "notify us" section

Rewrite the "Notify Us" section in doc/start/documenting-ceph.rst so
that it is written in English sentences.

Signed-off-by: Zac Dover <zac.dover@proton.me>
2 years agoMerge pull request #50723 from zdover23/wip-doc-2023-03-28-documenting-ceph-squashing
zdover23 [Wed, 29 Mar 2023 12:54:58 +0000 (22:54 +1000)]
Merge pull request #50723 from zdover23/wip-doc-2023-03-28-documenting-ceph-squashing

doc/start: documenting-ceph - add squash procedure

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>