]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/log
ceph-ci.git
2 years agotest/libcephfs: fix rebasing issues
Rishabh Dave [Thu, 15 Dec 2022 14:20:11 +0000 (19:50 +0530)]
test/libcephfs: fix rebasing issues

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2 years agolibcephfs: replace errno.h errors with CEPHFS_E*
Lucian Petrut [Mon, 21 Nov 2022 13:18:09 +0000 (15:18 +0200)]
libcephfs: replace errno.h errors with CEPHFS_E*

libcephfs and the associated tests were still using errno.h
values in a few places, which we're now going to replace with
portable CEPHFS_E* values.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
2 years agomessages: avoid converting ceph errors on Windows
Lucian Petrut [Mon, 12 Sep 2022 14:13:38 +0000 (14:13 +0000)]
messages: avoid converting ceph errors on Windows

libclient and libcephfs return CEPHFS_E* errors, which are basically
Linux errno codes. If we convert mds errors to host errno values, we
end up mixing error codes.

For Windows, we'll preserve the original error value, which is expected
to be a Linux (CEPHFS_E*) error.

It may be worth doing the same for other platforms eventually.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
2 years agoclient: use CEPHFS_E*
Lucian Petrut [Mon, 12 Sep 2022 13:05:33 +0000 (13:05 +0000)]
client: use CEPHFS_E*

The cephfs client uses CEPHFS_E* errors, except for a few methods
that are still using errno values.

We're addressing this inconsistency.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
2 years agotest/libcephfs: use CEPHFS_E* errors
Lucian Petrut [Mon, 12 Sep 2022 13:00:39 +0000 (13:00 +0000)]
test/libcephfs: use CEPHFS_E* errors

The cephfs client now uses CEPHFS_E errors (based on Linux)
instead of the platform specific errno values.

This change updates the libcephfs tests accordingly.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
2 years agolibcephfs: switch to CEPHFS_E* errors
Lucian Petrut [Mon, 12 Sep 2022 12:08:49 +0000 (12:08 +0000)]
libcephfs: switch to CEPHFS_E* errors

The cephfs client errors have been switched from errno values
(OS specific) to CEPHFS_E* errors (based on the Linux codes) [1][2].

The issue is that libcephfs still uses errno, which means that
non-Linux clients will get inconsistent errors.

This change updates libcephfs to use CEPHFS_E* errors and stay
consistent with the underlying client library.

[1] https://github.com/ceph/ceph/blob/6ef176b6745199224b62482a1241752826a5be14/src/libcephfs.cc#L203
[2] https://tracker.ceph.com/issues/48802

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
2 years agotest/libcephfs: disable flaky timestamp assertion on Windows
Lucian Petrut [Mon, 12 Sep 2022 08:34:06 +0000 (08:34 +0000)]
test/libcephfs: disable flaky timestamp assertion on Windows

The LibCephFS.SnapXattrs test takes two snapshots and then
compares the timestamps, expecting the latter one to be newer.

On Windows, the snapshot timestamps are sometimes the same,
in which case the test fails.

For now, we'll disable this check on Windows.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
2 years agoclient: use _setattrx when changing timestamps
Lucian Petrut [Fri, 9 Sep 2022 14:33:16 +0000 (14:33 +0000)]
client: use _setattrx when changing timestamps

_setattrx uses the ceph_statx structure while _setattr uses "stat",
which on some platforms (Windows) has lower time precision.

We'll switch some client.cc methods to using _setattrx on all
platforms since there's no downside in doing so and it improves
Windows timestamp precision.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
2 years agoclient: set nsec to 0 when converting stat struct on Windows
Lucian Petrut [Fri, 9 Sep 2022 13:51:44 +0000 (13:51 +0000)]
client: set nsec to 0 when converting stat struct on Windows

The Windows stat structure has limitted timestamp precision.
We'll ensure that the nsec field is properly initialized with 0.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
2 years agotest/libcephfs: skip dirent inode check on Windows
Lucian Petrut [Wed, 7 Sep 2022 07:40:58 +0000 (07:40 +0000)]
test/libcephfs: skip dirent inode check on Windows

The LibCephFS.DirLs test calls ceph_readdirplus_r and expects
the returning dirent.d_ino value to match the ceph_statx.stx_ino
inode.

The issue is that on Windows, "dirent" uses long (4B) inodes, which
isn't large enough to hold the ceph inodes (uint64_t).

For now, we'll drop this specific assertion. On Windows, the
ceph_statx inode should be used instead of the dirent one.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
2 years agoclient: avoid trimming inodes on Windows
Lucian Petrut [Tue, 6 Sep 2022 14:53:14 +0000 (14:53 +0000)]
client: avoid trimming inodes on Windows

On Windows, ino_t is defined as "unsigned short" (2B), which
isn't large enough to hold the Ceph inodes (uint64_t).

For this reason, we'll avoid using ino_t on Windows.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
2 years agotest/libcephfs: address windows issues
Lucian Petrut [Mon, 5 Sep 2022 13:13:46 +0000 (13:13 +0000)]
test/libcephfs: address windows issues

This commit addresses a few issues that prevent the libcephfs from running
on Windows:

* added missing definitions to fs_compat.h
* the "nobody" user is ignored on Windows, which is why we'll skip the tests
  that rely on it
* sys/mman.h and sys/resource.h are not available on Windows and will be skipped
* skip rlimit, not available on Windows
* fork is not available on Windows, for now we'll avoid compiling those tests
  when targetting Windows. For what is worth, those are skipped on other
  platforms anyway but currently fail at compile time when using mingw.
* use "strchr" instead of "index" or "strchrnul"

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
2 years agotest/libcephfs: include compat.h
Lucian Petrut [Mon, 5 Sep 2022 08:47:34 +0000 (08:47 +0000)]
test/libcephfs: include compat.h

Some type definitions are missing on Windows, which is why we'll
have to include the ceph compat.h header.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
2 years agotest/libcephfs: enable the tests on Windows
Lucian Petrut [Fri, 2 Sep 2022 12:53:33 +0000 (12:53 +0000)]
test/libcephfs: enable the tests on Windows

This patch series enables the libcephfs tests to run on Windows,
addressing all the incompatibilities that we have encountered.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
2 years agoMerge pull request #48823 from zdover23/wip-doc-2022-11-10-glossary-ceph-manager...
zdover23 [Thu, 10 Nov 2022 02:58:53 +0000 (12:58 +1000)]
Merge pull request #48823 from zdover23/wip-doc-2022-11-10-glossary-ceph-manager-dashboard

doc/glossary: improve "Ceph Manager Dashboard"

Reviewed-by: Cole Mitchell <cole.mitchell@gmail.com>
2 years agodoc/glossary: improve "Ceph Manager Dashboard"
Zac Dover [Thu, 10 Nov 2022 02:24:12 +0000 (12:24 +1000)]
doc/glossary: improve "Ceph Manager Dashboard"

Redirect "Ceph Manager Dashboard" to the glossary term "Ceph Dashboard".

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agoMerge pull request #48819 from zdover23/wip-doc-2022-11-10-glossary-ceph
zdover23 [Thu, 10 Nov 2022 00:12:54 +0000 (10:12 +1000)]
Merge pull request #48819 from zdover23/wip-doc-2022-11-10-glossary-ceph

doc/glossary: improve "ceph" term

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agodoc/glossary: improve "ceph" term
Zac Dover [Wed, 9 Nov 2022 22:39:31 +0000 (08:39 +1000)]
doc/glossary: improve "ceph" term

Define "ceph" in glossary.rst.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agoMerge pull request #48809 from zdover23/wip-doc-2022-11-09-glossary-cluster-map-link...
zdover23 [Wed, 9 Nov 2022 14:01:56 +0000 (00:01 +1000)]
Merge pull request #48809 from zdover23/wip-doc-2022-11-09-glossary-cluster-map-link-improvement

doc/glossary: improve "Ceph Manager" term

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agodoc/glossary: improve "Ceph Manager" term
Zac Dover [Wed, 9 Nov 2022 13:12:54 +0000 (23:12 +1000)]
doc/glossary: improve "Ceph Manager" term

Improve the glossary entry "Ceph Manager" by correcting the grammar and
properly linking to the "Ceph Manager" section of the Architecture
Guide.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agoMerge pull request #48735 from stefan-chivu/ceph-dokan-tests
Venky Shankar [Wed, 9 Nov 2022 12:35:05 +0000 (18:05 +0530)]
Merge pull request #48735 from stefan-chivu/ceph-dokan-tests

test/dokan: Added ceph-dokan tests

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2 years agoMerge pull request #48762 from cyx1231st/wip-seastore-define-generation
Yingxin [Wed, 9 Nov 2022 08:10:01 +0000 (16:10 +0800)]
Merge pull request #48762 from cyx1231st/wip-seastore-define-generation

crimson/os/seastore: define the usage of generation

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Xuehan Xu <xxhdx1985126@gmail.com>
Reviewed-by: Zhang Song <zhangsong325@gmail.com>
Reviewed-by: Myoungwon Oh <myoungwon.oh@samsung.com>
2 years agoMerge pull request #48793 from joscollin/wip-cephfs-top-version-revert
Venky Shankar [Wed, 9 Nov 2022 07:56:31 +0000 (13:26 +0530)]
Merge pull request #48793 from joscollin/wip-cephfs-top-version-revert

cephfs-top: revert add version in header

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2 years agoMerge pull request #48713 from SUSE/wip-fix-CVE-2022-3650
Dan Mick [Tue, 8 Nov 2022 20:19:28 +0000 (12:19 -0800)]
Merge pull request #48713 from SUSE/wip-fix-CVE-2022-3650

ceph-crash: drop privleges to run as "ceph" user, rather than root (CVE-2022-3650)

2 years agoMerge pull request #48792 from zdover23/wip-doc-2022-11-08-glossary-ceph-cluster-map
zdover23 [Tue, 8 Nov 2022 16:27:34 +0000 (02:27 +1000)]
Merge pull request #48792 from zdover23/wip-doc-2022-11-08-glossary-ceph-cluster-map

doc/glossary: update "Cluster Map"

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agoMerge pull request #48787 from zdover23/wip-doc-2022-11-08-architecture-RADOS-pdf...
zdover23 [Tue, 8 Nov 2022 15:21:09 +0000 (01:21 +1000)]
Merge pull request #48787 from zdover23/wip-doc-2022-11-08-architecture-RADOS-pdf-URL-correction

doc/architecture: correct PDF link

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agoRevert "doc: update cephfs-top.png"
Jos Collin [Tue, 8 Nov 2022 14:30:55 +0000 (20:00 +0530)]
Revert "doc: update cephfs-top.png"

This reverts commit 2233b68fe0efa3666f90296fd5df249a3f56bbe5.

Signed-off-by: Jos Collin <jcollin@redhat.com>
2 years agoRevert "cephfs-top: add version in header"
Jos Collin [Tue, 8 Nov 2022 14:30:30 +0000 (20:00 +0530)]
Revert "cephfs-top: add version in header"

This reverts commit 7d2deda2b212a4b5c1b81737321fb4ac2ef10347.

Signed-off-by: Jos Collin <jcollin@redhat.com>
2 years agodoc/glossary: update "Cluster Map"
Zac Dover [Tue, 8 Nov 2022 13:11:15 +0000 (23:11 +1000)]
doc/glossary: update "Cluster Map"

Improve "Cluster Map" in the glossary.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agoMerge pull request #48769 from zdover23/wip-doc-2022-11-08-glossary-OSD
zdover23 [Tue, 8 Nov 2022 12:34:41 +0000 (22:34 +1000)]
Merge pull request #48769 from zdover23/wip-doc-2022-11-08-glossary-OSD

doc/glossary: disambiguate "OSD"

Reviewed-by: Cole Mitchell <cole.mitchell@gmail.com>
2 years agodoc/architecture: correct PDF link
Zac Dover [Tue, 8 Nov 2022 08:24:29 +0000 (18:24 +1000)]
doc/architecture: correct PDF link

Correct PDF link from ceph.com website (old) to ceph.io website
(current).

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agoMerge pull request #48137 from nSedrickm/color-contrast-accessibility-update
Nizamudeen A [Tue, 8 Nov 2022 04:51:03 +0000 (10:21 +0530)]
Merge pull request #48137 from nSedrickm/color-contrast-accessibility-update

mgr/dashboard: improve level AA color contrast accessibility for dashboard pages and components

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
2 years agoMerge pull request #48776 from zdover23/wip-doc-2022-11-08-rados-config-storage-devic...
zdover23 [Tue, 8 Nov 2022 03:05:56 +0000 (13:05 +1000)]
Merge pull request #48776 from zdover23/wip-doc-2022-11-08-rados-config-storage-devices-backend-correction

doc/rados: s/backend/back end/

Reviewed-by: Cole Mitchell <cole.mitchell@gmail.com>
2 years agoMerge pull request #48775 from zdover23/wip-doc-2022-11-08-glossary-OSD-link
zdover23 [Tue, 8 Nov 2022 02:58:08 +0000 (12:58 +1000)]
Merge pull request #48775 from zdover23/wip-doc-2022-11-08-glossary-OSD-link

doc/glossary: link to OSD material

Reviewed-by: Cole Mitchell <cole.mitchell@gmail.com>
2 years agoMerge pull request #48774 from zdover23/wip-doc-2022-11-08-glossary-BlueStore
zdover23 [Tue, 8 Nov 2022 02:55:33 +0000 (12:55 +1000)]
Merge pull request #48774 from zdover23/wip-doc-2022-11-08-glossary-BlueStore

doc/glossary: add "BlueStore"

Reviewed-by: Cole Mitchell <cole.mitchell@gmail.com>
2 years agodoc/rados: s/backend/back end/
Zac Dover [Tue, 8 Nov 2022 02:35:57 +0000 (12:35 +1000)]
doc/rados: s/backend/back end/

s/backend/back end/ in storage-devices.rst.
(IBM Style Guide, 305).

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agodoc/glossary: link to OSD material
Zac Dover [Tue, 8 Nov 2022 02:33:18 +0000 (12:33 +1000)]
doc/glossary: link to OSD material

Link to the OSD material in RADOS Configuration
"Storage Devices".

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agodoc/glossary: add "BlueStore"
Zac Dover [Tue, 8 Nov 2022 02:25:35 +0000 (12:25 +1000)]
doc/glossary: add "BlueStore"

Define "BlueStore" in the glossary and link to the BlueStore
section in the RADOS Configuration "Storage Devices" chapter.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agoMerge pull request #48768 from zdover23/wip-doc-2022-11-07-glossary-ceph-osd
zdover23 [Mon, 7 Nov 2022 23:32:58 +0000 (09:32 +1000)]
Merge pull request #48768 from zdover23/wip-doc-2022-11-07-glossary-ceph-osd

doc/glossary: define "Ceph OSD"

Reviewed-by: Cole Mitchell <cole.mitchell@gmail.com>
2 years agodoc/glossary: disambiguate "OSD"
Zac Dover [Mon, 7 Nov 2022 23:22:07 +0000 (09:22 +1000)]
doc/glossary: disambiguate "OSD"

Distinguish "object storage device" from "object storage daemon".

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agodoc/glossary: define "Ceph OSD"
Zac Dover [Mon, 7 Nov 2022 22:58:35 +0000 (08:58 +1000)]
doc/glossary: define "Ceph OSD"

Define "Ceph OSD", using Sage's own description.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agoMerge pull request #48022 from rhcs-dashboard/paginate-services
Pere Diaz Bou [Mon, 7 Nov 2022 17:12:06 +0000 (18:12 +0100)]
Merge pull request #48022 from rhcs-dashboard/paginate-services

mgr/dashboard: paginate services

Reviewed-by: Pegonzal <NOT@FOUND>
Reviewed-by: Nizamudeen A <nia@redhat.com>
2 years agoMerge pull request #48763 from zdover23/wip-doc-2022-11-07-glossary-ceph-manager
zdover23 [Mon, 7 Nov 2022 14:19:43 +0000 (00:19 +1000)]
Merge pull request #48763 from zdover23/wip-doc-2022-11-07-glossary-ceph-manager

doc/glossary.rst: define "Ceph Manager"

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agodoc/glossary.rst: define "Ceph Manager"
Zac Dover [Mon, 7 Nov 2022 13:55:53 +0000 (23:55 +1000)]
doc/glossary.rst: define "Ceph Manager"

Add a definition for Ceph Manager (ceph-mgr).

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agocrimson/os/seastore: rename reclaim_gen_t to rewrite_gen_t
Yingxin Cheng [Mon, 7 Nov 2022 08:30:04 +0000 (16:30 +0800)]
crimson/os/seastore: rename reclaim_gen_t to rewrite_gen_t

Generation is counting rewrites, not reclaims.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/os/seastore: define the usage of generation
Yingxin Cheng [Mon, 7 Nov 2022 08:42:58 +0000 (16:42 +0800)]
crimson/os/seastore: define the usage of generation

Unify the definition of the reclaim generation, cleanup and explain its
intentions and usages. Please refer to the comments in seastore_types.h.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agoceph-dokan: Exposed --win-vol-serial CLI option for ceph-dokan
Stefan Chivu [Wed, 2 Nov 2022 12:32:40 +0000 (14:32 +0200)]
ceph-dokan: Exposed --win-vol-serial CLI option for ceph-dokan

Signed-off-by: Stefan Chivu <schivu@cloudbasesolutions.com>
2 years agotest: Added ceph-dokan tests
Stefan Chivu [Thu, 27 Oct 2022 13:04:27 +0000 (13:04 +0000)]
test: Added ceph-dokan tests

Added tests for the following ceph-dokan functionalities:

- mounting a CephFS volume
- creating files & folders
- r/w from files
- find files
- move files
- get file type
- get/set file timestamps
- set file eof/allocation size
- get volume information
- get volume space information
- file create dispositions
- file delete disposition

Signed-off-by: Stefan Chivu <schivu@cloudbasesolutions.com>
2 years agoMerge pull request #48616 from rhcs-dashboard/mirror-promote-demote-bug
Nizamudeen A [Mon, 7 Nov 2022 06:24:44 +0000 (11:54 +0530)]
Merge pull request #48616 from rhcs-dashboard/mirror-promote-demote-bug

mgr/dashboard: bug fixes for rbd mirroring edit and promotion/demotion

Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
2 years agoMerge pull request #48538 from Syphdias/add-bonding-alert
Nizamudeen A [Mon, 7 Nov 2022 06:17:43 +0000 (11:47 +0530)]
Merge pull request #48538 from Syphdias/add-bonding-alert

ceph-mixin: Add Prometheus Alert for Degraded Bond

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2 years agoMerge pull request #48693 from ljx023/seastore-device-size-detect
Yingxin [Mon, 7 Nov 2022 01:55:08 +0000 (09:55 +0800)]
Merge pull request #48693 from ljx023/seastore-device-size-detect

crimson/os/seastore/segment_manager/block: get block device size

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
2 years agoMerge pull request #48757 from zdover23/wip-doc-2022-11-07-glossary-OSD
zdover23 [Sun, 6 Nov 2022 18:29:47 +0000 (04:29 +1000)]
Merge pull request #48757 from zdover23/wip-doc-2022-11-07-glossary-OSD

doc/glossary: define "OSD"

Reviewed-by: Cole Mitchell <cole.mitchell@gmail.com>
2 years agodoc/glossary: define "OSD"
Zac Dover [Sun, 6 Nov 2022 17:45:24 +0000 (03:45 +1000)]
doc/glossary: define "OSD"

Define "OSD" as "Object Storage Device", distinct from
"object storage daemon".

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agomgr/dashboard: improve level AA color contrast accessibility for dashboard pages...
nsedrickm [Fri, 16 Sep 2022 12:33:28 +0000 (13:33 +0100)]
mgr/dashboard: improve level AA color contrast accessibility for dashboard pages and components
Use more accessible colors for dashboard components, text and table columns

Fixes: https://tracker.ceph.com/issues/56023
Signed-off-by: nsedrickm <nsedrick101@gmail.com>
2 years agoMerge pull request #48753 from zdover23/wip-doc-2022-11-06-glossary-remove-front...
zdover23 [Sun, 6 Nov 2022 08:29:51 +0000 (18:29 +1000)]
Merge pull request #48753 from zdover23/wip-doc-2022-11-06-glossary-remove-front-matter

doc/glossary.rst: remove old front matter

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agodoc/glossary.rst: remove old front matter
Zac Dover [Sun, 6 Nov 2022 07:41:20 +0000 (17:41 +1000)]
doc/glossary.rst: remove old front matter

Remove two paragraphs from May 2013 that no longer apply.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agoMerge pull request #48750 from zdover23/wip-doc-2022-11-06-glossary-various
zdover23 [Sat, 5 Nov 2022 17:12:07 +0000 (03:12 +1000)]
Merge pull request #48750 from zdover23/wip-doc-2022-11-06-glossary-various

doc/glossary: improve wording

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agodoc/glossary: improve wording
Zac Dover [Sat, 5 Nov 2022 16:59:23 +0000 (02:59 +1000)]
doc/glossary: improve wording

Remove "e.g." and "etc." and improve the wording of a definition.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agoMerge pull request #48747 from zdover23/wip-doc-2022-11-05-glossary-dashboard
zdover23 [Sat, 5 Nov 2022 16:49:39 +0000 (02:49 +1000)]
Merge pull request #48747 from zdover23/wip-doc-2022-11-05-glossary-dashboard

doc/glossary.rst: add "Ceph Dashboard" term

Reviewed-by: Cole Mitchell <cole.mitchell@gmail.com>
2 years agodoc/glossary.rst: add "Ceph Dashboard" term
Zac Dover [Sat, 5 Nov 2022 16:22:25 +0000 (02:22 +1000)]
doc/glossary.rst: add "Ceph Dashboard" term

Add a definition for "Ceph Dashboard".

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agoMerge pull request #48744 from zdover23/wip-doc-2022-11-05-glossary-rbd
zdover23 [Sat, 5 Nov 2022 05:59:22 +0000 (15:59 +1000)]
Merge pull request #48744 from zdover23/wip-doc-2022-11-05-glossary-rbd

doc/glosary.rst: add "Ceph Block Device" term

Reviewed-by: Cole Mitchell <cole.mitchell@gmail.com>
2 years agodoc/glosary.rst: add "Ceph Block Device" term
Zac Dover [Sat, 5 Nov 2022 05:34:20 +0000 (15:34 +1000)]
doc/glosary.rst: add "Ceph Block Device" term

Add a definition for "Ceph Block Device".

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agoMerge pull request #48666 from joscollin/wip-cephfs-top-version
Jos Collin [Sat, 5 Nov 2022 02:29:28 +0000 (07:59 +0530)]
Merge pull request #48666 from joscollin/wip-cephfs-top-version

cephfs-top: add version in header

Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
2 years agoMerge pull request #48291 from ljflores/wip-upgrade-telemetry
Laura Flores [Sat, 5 Nov 2022 01:00:30 +0000 (20:00 -0500)]
Merge pull request #48291 from ljflores/wip-upgrade-telemetry

2 years agodoc: update cephfs-top.png
Jos Collin [Fri, 4 Nov 2022 04:41:19 +0000 (10:11 +0530)]
doc: update cephfs-top.png

Signed-off-by: Jos Collin <jcollin@redhat.com>
2 years agocephfs-top: add version in header
Jos Collin [Thu, 27 Oct 2022 06:42:41 +0000 (12:12 +0530)]
cephfs-top: add version in header

Signed-off-by: Jos Collin <jcollin@redhat.com>
2 years agoMerge pull request #48739 from zdover23/wip-doc-2022-11-05-dev-guide-lone-sentence
zdover23 [Fri, 4 Nov 2022 17:25:54 +0000 (03:25 +1000)]
Merge pull request #48739 from zdover23/wip-doc-2022-11-05-dev-guide-lone-sentence

doc/dev: improve lone sentence

Reviewed-by: Cole Mitchell <cole.mitchell@gmail.com>
2 years agodoc/dev: improve lone sentence
Zac Dover [Fri, 4 Nov 2022 17:11:04 +0000 (03:11 +1000)]
doc/dev: improve lone sentence

Improve a lone sentence to make it less ambiguous, and at the same
time permit the testing of a script.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agoMerge pull request #48736 from zdover23/wip-doc-2022-11-05-cephadm-host-management...
zdover23 [Fri, 4 Nov 2022 16:55:32 +0000 (02:55 +1000)]
Merge pull request #48736 from zdover23/wip-doc-2022-11-05-cephadm-host-management-removing-hosts

doc/cephadm: improve lone sentence

Reviewed-by: Cole Mitchell <cole.mitchell@gmail.com>
2 years agodoc/cephadm: improve lone sentence
Zac Dover [Fri, 4 Nov 2022 16:38:13 +0000 (02:38 +1000)]
doc/cephadm: improve lone sentence

Improve a lone sentence, both to make the cephadm documentation better
and to test a script that is under development.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agoMerge pull request #48716 from tchaikov/crimson-cpuset
Kefu Chai [Fri, 4 Nov 2022 06:31:49 +0000 (14:31 +0800)]
Merge pull request #48716 from tchaikov/crimson-cpuset

crimson/os/alienstore: parse crimson_alien_thread_cpu_cores in cpuset(7)'s list format

Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
Reviewed-by: Xuehan Xu <xxhdx1985126@gmail.com>
2 years agoMerge pull request #48111 from neesingh-rh/feature_55121
Jos Collin [Fri, 4 Nov 2022 03:24:10 +0000 (08:54 +0530)]
Merge pull request #48111 from neesingh-rh/feature_55121

cephfs-top: addition of sort feature and limit option

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
2 years agoMerge pull request #48722 from zdover23/wip-doc-2022-11-04-cephadm-index-list-alphabe...
zdover23 [Thu, 3 Nov 2022 14:33:02 +0000 (00:33 +1000)]
Merge pull request #48722 from zdover23/wip-doc-2022-11-04-cephadm-index-list-alphabetizing

doc/cephadm: alphabetize external tools list

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agoMerge pull request #48721 from zdover23/wip-doc-2022-11-04-cephadm-host-management...
zdover23 [Thu, 3 Nov 2022 14:27:57 +0000 (00:27 +1000)]
Merge pull request #48721 from zdover23/wip-doc-2022-11-04-cephadm-host-management-listing-hosts

doc/cephadm: arrange "listing hosts" section

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agodoc/cephadm: alphabetize external tools list
Zac Dover [Thu, 3 Nov 2022 14:16:34 +0000 (00:16 +1000)]
doc/cephadm: alphabetize external tools list

Alphabetize "Ansible", "Rook", and "Salt", so that
the items in the list match the items in the sentence
that precedes the list.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agodoc/cephadm: arrange "listing hosts" section
Zac Dover [Thu, 3 Nov 2022 14:12:25 +0000 (00:12 +1000)]
doc/cephadm: arrange "listing hosts" section

Collect the material at the top of this page into a
"Listing Hosts" section and clean the English so that
it is clearer.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agodoc: addition of sort and limit features in doc
Neeraj Pratap Singh [Thu, 15 Sep 2022 18:06:35 +0000 (23:36 +0530)]
doc: addition of sort and limit features in doc

Fixes: https://tracker.ceph.com/issues/55121
Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
2 years agocephfs-top: addition of sort and limit feature
Neeraj Pratap Singh [Tue, 26 Jul 2022 19:35:37 +0000 (01:05 +0530)]
cephfs-top: addition of sort and limit feature

This commit intends to add:
- sort-by field value feature to cephfs-top.
- feature to limit number of clients displayed

Fixes: https://tracker.ceph.com/issues/55121
Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
2 years agoMerge pull request #48661 from thesamesam/gcc-13
Ilya Dryomov [Thu, 3 Nov 2022 10:57:41 +0000 (11:57 +0100)]
Merge pull request #48661 from thesamesam/gcc-13

common: Fix build with GCC 13 (missing <cstdint> include)

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
2 years agomgr/dashboard: bug fixes for rbd mirroring edit and promotion/demotion
Pedro Gonzalez Gomez [Tue, 25 Oct 2022 13:43:42 +0000 (15:43 +0200)]
mgr/dashboard: bug fixes for rbd mirroring edit and promotion/demotion

Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
2 years agocrimson/os/alienstore: use boost::counting_iterator for setting cpuset
Kefu Chai [Thu, 3 Nov 2022 06:27:11 +0000 (14:27 +0800)]
crimson/os/alienstore: use boost::counting_iterator for setting cpuset

less repeatings this way.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agocrimson/os/alienstore: parse crimson_alien_thread_cpu_cores as a cpuset(7)
Kefu Chai [Thu, 3 Nov 2022 06:04:30 +0000 (14:04 +0800)]
crimson/os/alienstore: parse crimson_alien_thread_cpu_cores as a cpuset(7)

the "List format" listed in cpuset(7) allows us to specify a range of
CPU cores in a comma-separated list. and the upper bound of the range
is optional. before this change, the upper bound is not optional.

before this change, the upper bound of the range is not optional. and
the upper bound is not inclusive. so we don't support the list format
of cpuset(7). Take cores "1,2,3,5,7,8" for example, we need to set the
option to "1-4,5-6,7-9" to represent this cpuset.
after this change, the upper bound is optional, so we can properly
support the list format defined by cpuset(7). and the upper bound is
inclusive. so we can use "1-3,5,7-8", which is compatible with
notation defined by cpuset(7).

in this change, the cpuset option is parsed using a seastar helper,
which is implemented using a regex. so we don't need to manually parse
it. as Seastar's parser returns an `std::optional<std::set<unsigned>>`.
if the string does not match with the regex of comma-separated list,
the returned cpuset does not have a value. this design is more explicit.
so in this change, instead of using `std::vector<uint64_t>`,
`std::optional<cpuset>` is used.

Signed-off-by: Jianxin Li <jianxin1.li@intel.com>
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agoMerge pull request #48712 from zdover23/wip-doc-2022-11-03-cephadm-compatibility...
zdover23 [Thu, 3 Nov 2022 05:38:31 +0000 (15:38 +1000)]
Merge pull request #48712 from zdover23/wip-doc-2022-11-03-cephadm-compatibility-grammar

doc/cephadm: fix grammar in compatibility.rst

Reviewed-by: Cole Mitchell <cole.mitchell@gmail.com>
2 years agodoc/cephadm: fix grammar in compatibility.rst
Zac Dover [Thu, 3 Nov 2022 05:13:49 +0000 (15:13 +1000)]
doc/cephadm: fix grammar in compatibility.rst

Fix grammar in doc/cephadm/compatibility.rst.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agoceph-crash: drop privleges to run as "ceph" user, rather than root
Tim Serong [Wed, 2 Nov 2022 03:27:47 +0000 (14:27 +1100)]
ceph-crash: drop privleges to run as "ceph" user, rather than root

If privileges cannot be dropped, log an error and exit.  This commit
also catches and logs exceptions when scraping the crash path, without
which ceph-crash would just exit if it encountered an error.

Fixes: CVE-2022-3650
Fixes: https://tracker.ceph.com/issues/57967
Signed-off-by: Tim Serong <tserong@suse.com>
2 years agoceph-crash: fix stderr handling
Tim Serong [Wed, 2 Nov 2022 03:23:20 +0000 (14:23 +1100)]
ceph-crash: fix stderr handling

Popen.communicate() returns a tuple (stdout, stderr), and stderr
will be of type bytes, hence the need to decode it before checking
if it's an empty string or not.

Fixes: a77b47eeeb5770eeefcf4619ab2105ee7a6a003e
Signed-off-by: Tim Serong <tserong@suse.com>
2 years agoceph-mixin: Add Prometheus Alert for Degraded Bond
Christian Kugler [Sun, 16 Oct 2022 17:21:01 +0000 (19:21 +0200)]
ceph-mixin: Add Prometheus Alert for Degraded Bond

Currently there is no alert for a network interface card to be misconfigured or
failed which is part of a network bond.

This could lead to redundancies and performance being degraded unnoticed.

To solve this, I use node exporter metrics to look at the number of total peers
of the bond and the ones that are active. If the numbers differ, something is up
and should be looked at.

Fixes: https://tracker.ceph.com/issues/57962
Signed-off-by: Christian Kugler <syphdias+git@gmail.com>
2 years agocrimson/os/seastore/segment_manager/block: get block device size
Jianxin Li [Mon, 31 Oct 2022 08:03:01 +0000 (08:03 +0000)]
crimson/os/seastore/segment_manager/block: get block device size

Previously the file_stat(::stat) can not get correct size for block devices.
Now call the file.size(using ::lseek) to replace it.

Signed-off-by: Jianxin Li <jianxin1.li@intel.com>
2 years agoMerge pull request #48699 from zdover23/wip-doc-2022-11-02-dev-osd-internals-ec-gloss...
zdover23 [Wed, 2 Nov 2022 05:15:02 +0000 (15:15 +1000)]
Merge pull request #48699 from zdover23/wip-doc-2022-11-02-dev-osd-internals-ec-glossary-fixes

doc/dev: refine erasure_coding.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agodoc/dev: refine erasure_coding.rst
Zac Dover [Wed, 2 Nov 2022 03:45:48 +0000 (13:45 +1000)]
doc/dev: refine erasure_coding.rst

Improve the readability and clarity of
erasure_coding.rst.

Co-author: Cole Mitchell <cole.mitchell@gmail.com>
Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agoMerge pull request #48687 from StevenWash/bugfix/fix_command_error_blank
Anthony D'Atri [Tue, 1 Nov 2022 13:55:19 +0000 (09:55 -0400)]
Merge pull request #48687 from StevenWash/bugfix/fix_command_error_blank

doc/radosgw: fix command error blank

2 years agodoc/radosgw: fix command error blank
stevenhua [Tue, 1 Nov 2022 01:53:02 +0000 (09:53 +0800)]
doc/radosgw: fix command error blank

2 years agoMerge pull request #48684 from zdover23/wip-doc-2022-11-01-dev-osd-internals-ec-gloss...
zdover23 [Tue, 1 Nov 2022 00:57:30 +0000 (10:57 +1000)]
Merge pull request #48684 from zdover23/wip-doc-2022-11-01-dev-osd-internals-ec-glossary-alphabetize

doc/dev: alphabetize EC glossary

Reviewed-by: Cole Mitchell <cole.mitchell@gmail.com>
2 years agodoc/dev: alphabetize EC glossary
Zac Dover [Tue, 1 Nov 2022 00:47:52 +0000 (10:47 +1000)]
doc/dev: alphabetize EC glossary

Alphabetize the glossary in
doc/dev/osd_internals/erasure_coding.rst.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agoMerge pull request #48673 from idryomov/wip-49947
Ilya Dryomov [Mon, 31 Oct 2022 18:33:30 +0000 (19:33 +0100)]
Merge pull request #48673 from idryomov/wip-49947

doc: note architecture availability for PMEM mode of PWL cache

Reviewed-by: Christopher Hoffman <choffman@redhat.com>
2 years agoMerge pull request #48548 from dparmar18/update_debug_script
Matan [Mon, 31 Oct 2022 12:57:08 +0000 (14:57 +0200)]
Merge pull request #48548 from dparmar18/update_debug_script

script/ceph-debug-docker.sh: change default branch to main

Reviewed-by: Matan Breizman <mbreizma@redhat.com>
2 years agoMerge pull request #48674 from zdover23/doc-2022-10-31-dev-osd-internals-ec-glossary
zdover23 [Mon, 31 Oct 2022 03:43:46 +0000 (13:43 +1000)]
Merge pull request #48674 from zdover23/doc-2022-10-31-dev-osd-internals-ec-glossary

doc/dev: improve EC glossary

Reviewed-by: Cole Mitchell <cole.mitchell@gmail.com>
2 years agodoc/dev: improve EC glossary
Zac Dover [Mon, 31 Oct 2022 03:17:45 +0000 (13:17 +1000)]
doc/dev: improve EC glossary

Improve the clarity and syntax of the text in
doc/dev/osd_internals/erasure_coding.rst.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agodoc: note architecture availability for PMEM mode of PWL cache
Ilya Dryomov [Sun, 30 Oct 2022 17:06:57 +0000 (18:06 +0100)]
doc: note architecture availability for PMEM mode of PWL cache

Fixes: https://tracker.ceph.com/issues/49947
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2 years agoMerge pull request #48667 from zdover23/wip-doc-2022-10-30-ceph-volume-lvm-prepare...
zdover23 [Sun, 30 Oct 2022 06:07:38 +0000 (16:07 +1000)]
Merge pull request #48667 from zdover23/wip-doc-2022-10-30-ceph-volume-lvm-prepare-colemitchell-notes

doc/ceph-volume: refine Filestore docs

Reviewed-by: Cole Mitchell <cole.mitchell@gmail.com>