]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/log
ceph.git
3 years agoclient: fix incorrectly showing the .snap size for stat 48413/head
Xiubo Li [Wed, 31 Aug 2022 07:27:01 +0000 (15:27 +0800)]
client: fix incorrectly showing the .snap size for stat

We should set the 'stat->size' to the real number of snapshots for
snapdirs.

Fixes: https://tracker.ceph.com/issues/57344
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit aa918d2e383eb9da2f6f837d731cc18bbad21e44)

3 years agoMerge pull request #48404 from zdover23/wip-doc-2022-10-10-pacific-releases-cleanup
zdover23 [Sun, 9 Oct 2022 15:39:26 +0000 (01:39 +1000)]
Merge pull request #48404 from zdover23/wip-doc-2022-10-10-pacific-releases-cleanup

pacific: doc/releases: update pacific release notes

Reviewed-by: Cole Mitchell <cole.mitchell@gmail.com>
3 years agodoc/releases: update pacific release notes 48404/head
Zac Dover [Sun, 9 Oct 2022 14:56:37 +0000 (00:56 +1000)]
doc/releases: update pacific release notes

This commit updates the Pacific release notes, which were
not present until now.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
3 years agoMerge pull request #48403 from zdover23/wip-doc-2022-10-09-backport-48401-to-pacific
zdover23 [Sun, 9 Oct 2022 07:53:10 +0000 (17:53 +1000)]
Merge pull request #48403 from zdover23/wip-doc-2022-10-09-backport-48401-to-pacific

pacific: doc/various: update link to CRUSH pdf

Reviewed-by: Cole Mitchell <cole.mitchell@gmail.com>
3 years agodoc/various: update link to CRUSH pdf 48403/head
Zac Dover [Sun, 9 Oct 2022 07:09:30 +0000 (17:09 +1000)]
doc/various: update link to CRUSH pdf

This commit updates link to the research paper that announces and
explains the CRUSH algorithm. This link was broken in the migration from
the old Ceph website to ceph.io.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
(cherry picked from commit 6877b592a289cb473f16daa79d5112f5b2d8006c)

3 years agoMerge pull request #48392 from zdover23/wip-doc-2022-10-02-backport-44433-to-pacific
zdover23 [Fri, 7 Oct 2022 05:34:38 +0000 (15:34 +1000)]
Merge pull request #48392 from zdover23/wip-doc-2022-10-02-backport-44433-to-pacific

pacific: docs/start: fixes typo and empty headline in hardware recommendation …

Reviewed-by: Cole Mitchell <cole.mitchell@gmail.com>
3 years agodocs/start: fixes typo and empty headline in hardware recommendation docs 48392/head
Sebastian Schmid [Sat, 1 Jan 2022 16:33:10 +0000 (17:33 +0100)]
docs/start: fixes typo and empty headline in hardware recommendation docs

fixes typo and empty headline in hardware recommendation docs

Signed-off-by: Sebastian Schmid <mail@sebastian-schmid.de>
(cherry picked from commit 48421403119c87d4bfc62c76de7c5598ccabb0a2)

3 years agoMerge pull request #48031 from idryomov/wip-50378-pacific
Yuri Weinstein [Thu, 6 Oct 2022 17:09:38 +0000 (10:09 -0700)]
Merge pull request #48031 from idryomov/wip-50378-pacific

pacific: test: bump DecayCounter.steady acceptable error

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Laura Flores <lflores@redhat.com>
3 years agoMerge pull request #48165 from kotreshhr/wip-57555-pacific
Yuri Weinstein [Thu, 6 Oct 2022 16:51:31 +0000 (09:51 -0700)]
Merge pull request #48165 from kotreshhr/wip-57555-pacific

pacific: qa: ignore disk quota exceeded failure in test

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #48142 from rhcs-dashboard/wip-57582-pacific
Yuri Weinstein [Thu, 6 Oct 2022 16:50:35 +0000 (09:50 -0700)]
Merge pull request #48142 from rhcs-dashboard/wip-57582-pacific

pacific: mgr/dashboard: fix Expected to find element: `cd-modal .badge but never found it

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Francesco Torchia <francesco.torchia@suse.com>
3 years agoMerge pull request #48112 from NitzanMordhai/wip-57544-pacific
Yuri Weinstein [Thu, 6 Oct 2022 16:47:31 +0000 (09:47 -0700)]
Merge pull request #48112 from NitzanMordhai/wip-57544-pacific

pacific: pybind/rados: notify callback reconnect

Reviewed-by: Laura Flores <lflores@redhat.com>
3 years agoMerge pull request #47112 from nmshelke/wip-56468-pacific
Yuri Weinstein [Thu, 6 Oct 2022 16:44:35 +0000 (09:44 -0700)]
Merge pull request #47112 from nmshelke/wip-56468-pacific

pacific: mgr/volumes: A few dependent mgr volumes PRs

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Kotresh HR khiremat@redhat.com
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
3 years agoMerge pull request #47721 from rhcs-dashboard/wip-55468-pacific
Nizamudeen A [Thu, 6 Oct 2022 05:51:07 +0000 (11:21 +0530)]
Merge pull request #47721 from rhcs-dashboard/wip-55468-pacific

pacific: mgr/dashboard: grafana frontend e2e testing and update cypress

Reviewed-by: Pegonzal <NOT@FOUND>
Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Adam King <adking@redhat.com>
3 years agoMerge pull request #48381 from zdover23/wip-doc-2022-10-06-backport-48379-to-pacific
zdover23 [Thu, 6 Oct 2022 05:17:28 +0000 (15:17 +1000)]
Merge pull request #48381 from zdover23/wip-doc-2022-10-06-backport-48379-to-pacific

pacific: doc/install: clone-source.rst s/master/main

Reviewed-by: Cole Mitchell <cole.mitchell@gmail.com>
3 years agodoc/install: clone-source.rst s/master/main 48381/head
Zac Dover [Thu, 6 Oct 2022 04:30:07 +0000 (14:30 +1000)]
doc/install: clone-source.rst s/master/main

s/master/main in doc/install/clone-source.rst.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
(cherry picked from commit 5c17509b0a3402ca4a3ee574ed7e73949d51c72a)

3 years agoMerge pull request #48371 from zdover23/wip-doc-2022-10-05-backport-44564-to-pacific
zdover23 [Wed, 5 Oct 2022 11:16:01 +0000 (21:16 +1000)]
Merge pull request #48371 from zdover23/wip-doc-2022-10-05-backport-44564-to-pacific

pacific: doc/mgr: name data source in "Man Install & Config"

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
3 years agodoc/mgr: name data source in "Man Install & Config" 48371/head
Zac Dover [Wed, 12 Jan 2022 22:46:20 +0000 (08:46 +1000)]
doc/mgr: name data source in "Man Install & Config"

This PR specifies that the data source must be set to
be "Dashboard1" when you configure Grafana and Prometheus
manually.

This is a fixup of another PR which was created by Dr
Jake Grimmett. This is that PR:

Credit goes to Dr Jake Grimmett of Cambridge.

https://github.com/ceph/ceph/pull/44150/

Signed-off-by: Zac Dover <zac.dover@gmail.com>
(cherry picked from commit 987713da331e941c05d114f1e167c21d1e7896eb)

3 years agoMerge pull request #48366 from zdover23/wip-doc-2022-10-05-backport-48362-to-pacific
zdover23 [Wed, 5 Oct 2022 07:26:11 +0000 (17:26 +1000)]
Merge pull request #48366 from zdover23/wip-doc-2022-10-05-backport-48362-to-pacific

pacific: doc/rados: refine English in crush-map-edits.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
3 years agodoc/rados: refine English in crush-map-edits.rst 48366/head
Zac Dover [Wed, 14 Sep 2022 05:19:44 +0000 (15:19 +1000)]
doc/rados: refine English in crush-map-edits.rst

This commit makes several refinements to the English in
rados/operations/crush-map-edits.rst, which refinements were suggested
by Cole Mitchell and Anthony D'Atri in the discussion of PR#48085.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
(cherry picked from commit a70b720032876386d7fbebfb649849fa34e9da5f)

3 years agoMerge pull request #48364 from zdover23/wip-doc-2022-10-05-backport-48085-to-pacific
zdover23 [Wed, 5 Oct 2022 01:47:39 +0000 (11:47 +1000)]
Merge pull request #48364 from zdover23/wip-doc-2022-10-05-backport-48085-to-pacific

pacific: doc/rados: update prompts in crush-map-edits.rst

Reviewed-by: Cole Mitchell <cole.mitchell@gmail.com>
3 years agodoc/rados: update prompts in crush-map-edits.rst 48364/head
Zac Dover [Wed, 14 Sep 2022 05:19:44 +0000 (15:19 +1000)]
doc/rados: update prompts in crush-map-edits.rst

This PR updates the prompts in crush-map-edits.rst
to make them unselectable.

There remains no good known way to render parts of
a file if the first line of that file begins with a
hash (#). Sphinx italicizes such a first line, which
is not what I want. Two examples of this are present
in the file crush-maps-rst under the section called
"CRUSH Map Bucket Types". I set this down here for
my own records, in case it is helpful in finding a
way to make these sections render as I would prefer.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
(cherry picked from commit 7484b7c10a3f762e6649fb304fd0f7a5da5e418f)

3 years agoMerge pull request #48048 from aaSharma14/wip-57498-pacific
Pere Diaz Bou [Tue, 4 Oct 2022 17:36:34 +0000 (19:36 +0200)]
Merge pull request #48048 from aaSharma14/wip-57498-pacific

pacific: mgr/dashboard: fix snapshot creation with duplicate name

3 years agoMerge pull request #48358 from zdover23/wip-doc-2022-10-04-backport-48346-to-pacific-3
zdover23 [Tue, 4 Oct 2022 14:27:54 +0000 (00:27 +1000)]
Merge pull request #48358 from zdover23/wip-doc-2022-10-04-backport-48346-to-pacific-3

pacific: doc/glossary.rst: remove duplicates

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
3 years agodoc/glossary.rst: remove duplicates 48358/head
Zac Dover [Mon, 3 Oct 2022 12:51:35 +0000 (22:51 +1000)]
doc/glossary.rst: remove duplicates

This commit removes similar but distinct entries for the following:
   * CephFS
   * Ceph Client

Removal of a glossary term that is referred to in the body of the
documentation suite requires the alteration of the text string
that refers to the glossary term. Alterations of this kind have
been made to doc/architecture.rst and doc/rados/api/index.rst.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
(cherry picked from commit 0692b223540143cdb4a60b54595a7069284b5481)

3 years agoMerge pull request #48339 from zdover23/wip-doc-2022-10-02-backport-48333-to-pacific
zdover23 [Mon, 3 Oct 2022 03:58:12 +0000 (13:58 +1000)]
Merge pull request #48339 from zdover23/wip-doc-2022-10-02-backport-48333-to-pacific

pacific: doc/glossary.rst: alphabetize glossary terms

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
3 years agodoc/glossary.rst: alphabetize glossary terms 48339/head
Zac Dover [Sun, 2 Oct 2022 10:48:36 +0000 (20:48 +1000)]
doc/glossary.rst: alphabetize glossary terms

This commit (finally) alphabetizes the terms in the glossary.
This is not a grammar-correcting or usage-correcting commit.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
3 years agoMerge pull request #48335 from zdover23/wip-doc-2022-10-02-backport-48332-to-pacific
zdover23 [Sun, 2 Oct 2022 23:42:17 +0000 (09:42 +1000)]
Merge pull request #48335 from zdover23/wip-doc-2022-10-02-backport-48332-to-pacific

pacific: doc/rados: fix prompts in erasure-code.rst

Reviewed-by: Cole Mitchell <cole.mitchell@gmail.com>
3 years agodoc/rados: fix prompts in erasure-code.rst 48335/head
Zac Dover [Sun, 2 Oct 2022 04:55:46 +0000 (14:55 +1000)]
doc/rados: fix prompts in erasure-code.rst

This commit adds unselectable prompts to doc/rados/
erasure-code.rst.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
3 years agoMerge pull request #48324 from zdover23/wip-doc-2022-10-01-backport-48322-to-pacific
zdover23 [Sat, 1 Oct 2022 07:01:40 +0000 (17:01 +1000)]
Merge pull request #48324 from zdover23/wip-doc-2022-10-01-backport-48322-to-pacific

pacific: doc/rados: rewrite EC intro

Reviewed-by: Cole Mitchell <cole.mitchell@gmail.com>
3 years agodoc/rados: rewrite EC intro 48324/head
Zac Dover [Thu, 1 Sep 2022 19:08:00 +0000 (05:08 +1000)]
doc/rados: rewrite EC intro

This PR rewrites the front matter in the "Erasure Code"
section of the RADOS documentation. Previously, the information
in this section was syntactically confused. I have also fleshed
out the distinction between erasure coding and replication.

Co-Author: Cole Mitchell <cole.mitchell@gmail.com>
Signed-off-by: Zac Dover <zac.dover@gmail.com>
3 years agoMerge pull request #48276 from torchiaf/wip-57681-pacific
Nizamudeen A [Fri, 30 Sep 2022 14:36:01 +0000 (20:06 +0530)]
Merge pull request #48276 from torchiaf/wip-57681-pacific

pacific: mgr/dashboard: Add text to empty life expectancy column

3 years agoMerge pull request #48106 from pdvian/wip-57313-pacific
Prashant [Thu, 29 Sep 2022 13:01:09 +0000 (23:01 +1000)]
Merge pull request #48106 from pdvian/wip-57313-pacific

pacific: osd, mds: fix the "heap" admin cmd printing always to error stream

3 years agomgr/dashboard: Add text to empty life expectancy column 48276/head
Francesco Torchia [Tue, 30 Aug 2022 14:46:03 +0000 (16:46 +0200)]
mgr/dashboard: Add text to empty life expectancy column

- Add life_expectancy_enabled field to /api/osd/{svc_id}/devices
- Add new value 'n/a' for 'Life Expectancy' column

Fixes: https://tracker.ceph.com/issues/43116
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
(cherry picked from commit 811bba7e083919cf3b21ed01ac29a107b5bd006d)

3 years agoMerge pull request #48056 from adk3798/pacific-staggered-version-pacific
Adam King [Tue, 27 Sep 2022 17:18:16 +0000 (13:18 -0400)]
Merge pull request #48056 from adk3798/pacific-staggered-version-pacific

pacific: doc/cephadm: correct version staggered upgrade got in pacific

Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
3 years agoMerge pull request #48069 from adk3798/pacific-docs-eca-mounts
Adam King [Tue, 27 Sep 2022 17:16:06 +0000 (13:16 -0400)]
Merge pull request #48069 from adk3798/pacific-docs-eca-mounts

pacific: doc/cephadm: document recommended syntax for mounting files with ECA

Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
3 years agoMerge pull request #48109 from lxbsz/wip-57393
Yuri Weinstein [Tue, 27 Sep 2022 14:13:59 +0000 (07:13 -0700)]
Merge pull request #48109 from lxbsz/wip-57393

pacific: client: abort the client if we couldn't invalidate dentry caches

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #47868 from MrFreezeex/pacific-ceph-mixin-backports
Arthur Outhenin-Chalandre [Tue, 27 Sep 2022 14:13:24 +0000 (16:13 +0200)]
Merge pull request #47868 from MrFreezeex/pacific-ceph-mixin-backports

Pacific ceph mixin backports

3 years agoMerge pull request #48108 from lxbsz/wip-57395
Yuri Weinstein [Tue, 27 Sep 2022 14:12:59 +0000 (07:12 -0700)]
Merge pull request #48108 from lxbsz/wip-57395

pacific: client: stop the remount_finisher thread in the Client::unmount()

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #47998 from neesingh-rh/wip-57282-pacific
Yuri Weinstein [Tue, 27 Sep 2022 14:12:24 +0000 (07:12 -0700)]
Merge pull request #47998 from neesingh-rh/wip-57282-pacific

pacific: cephfs-top: adding filesystem menu option

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #48020 from rzarzynski/wip-doc-dups-trimming-relnotes-pacific
Radoslaw Zarzynski [Mon, 26 Sep 2022 10:22:50 +0000 (12:22 +0200)]
Merge pull request #48020 from rzarzynski/wip-doc-dups-trimming-relnotes-pacific

pacific: PendingReleaseNotes: document online and offline trimming of PG Log's…

Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agoMerge pull request #48236 from zdover23/wip-doc-2022-09-12-backport-48235-to-pacific
zdover23 [Sun, 25 Sep 2022 20:38:48 +0000 (06:38 +1000)]
Merge pull request #48236 from zdover23/wip-doc-2022-09-12-backport-48235-to-pacific

pacific: doc/dev: improve presentation of note (git remote)

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
3 years agodoc/dev: improve presentation of note (git remote) 48236/head
Zac Dover [Sun, 25 Sep 2022 03:41:35 +0000 (13:41 +1000)]
doc/dev: improve presentation of note (git remote)

This commit corrects the formatting of a note that previously
did not make console output and commands as clear as this commit
makes them.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
3 years agoMerge pull request #48176 from torchiaf/wip-57584-pacific
Nizamudeen A [Fri, 23 Sep 2022 05:30:19 +0000 (11:00 +0530)]
Merge pull request #48176 from torchiaf/wip-57584-pacific

pacific: mgr/dashboard: Add details to the modal which displays the `safe-to-d…

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
3 years agoPendingReleaseNotes: document online and offline trimming of PG Log's dups 48020/head
Radoslaw Zarzynski [Tue, 23 Aug 2022 19:50:48 +0000 (19:50 +0000)]
PendingReleaseNotes: document online and offline trimming of PG Log's dups

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
(cherry picked from commit dbfb50453c2f7fe5b0a06d846dd38693cceb63fe)

Conflicts:
    PendingReleaseNotes
- Moved the note under the new ">=16.2.11" section

3 years agoMerge pull request #47764 from rzarzynski/wip-get_or_fail-debug-louder-pacific
Yuri Weinstein [Thu, 22 Sep 2022 20:30:14 +0000 (13:30 -0700)]
Merge pull request #47764 from rzarzynski/wip-get_or_fail-debug-louder-pacific

pacific: msg: Log at higher level when Throttle::get_or_fail() fails

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: Vikhyat Umrao <vikhyat@redhat.com>
3 years agoMerge pull request #48189 from rhcs-dashboard/wip-57224-pacific
Pedro Gonzalez Gomez [Thu, 22 Sep 2022 12:00:03 +0000 (14:00 +0200)]
Merge pull request #48189 from rhcs-dashboard/wip-57224-pacific

pacific: mgr/dashboard: fix rgw connect when using ssl

Reviewed-by: Pegonzal <pegonzal@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
3 years agoMerge pull request #47701 from rzarzynski/wip-dup-trimming-test2-pacific
Yuri Weinstein [Wed, 21 Sep 2022 22:35:31 +0000 (15:35 -0700)]
Merge pull request #47701 from rzarzynski/wip-dup-trimming-test2-pacific

pacific: osd, tools, kv: non-aggressive, on-line trimming of accumulated dups

Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agoMerge pull request #47303 from petrutlucian94/wip-56729-pacific
Yuri Weinstein [Wed, 21 Sep 2022 22:34:39 +0000 (15:34 -0700)]
Merge pull request #47303 from petrutlucian94/wip-56729-pacific

pacific: msg: Fix Windows IPv6 support

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
3 years agoMerge pull request #47939 from idryomov/wip-56703-pacific
Yuri Weinstein [Wed, 21 Sep 2022 15:35:57 +0000 (08:35 -0700)]
Merge pull request #47939 from idryomov/wip-56703-pacific

pacific: librbd/cache/pwl: narrow the scope of m_lock in write_image_cache_state()

Reviewed-by: Christopher Hoffman <choffman@redhat.com>
3 years agoMerge pull request #47990 from guits/wip-57381-pacific
Guillaume Abrioux [Wed, 21 Sep 2022 04:37:41 +0000 (06:37 +0200)]
Merge pull request #47990 from guits/wip-57381-pacific

pacific: ceph-volume: add a retry in util.disk.remove_partition

3 years agoMerge pull request #48158 from zdover23/wip-doc-2022-09-18-backport-48157-to-pacific
zdover23 [Tue, 20 Sep 2022 20:55:14 +0000 (06:55 +1000)]
Merge pull request #48158 from zdover23/wip-doc-2022-09-18-backport-48157-to-pacific

pacific: doc/rados: update prompts in network-config-ref

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
3 years agoceph-mixin: fix CephNodeNetworkPacket alerts 47868/head
Aswin Toni [Tue, 23 Aug 2022 08:30:12 +0000 (10:30 +0200)]
ceph-mixin: fix CephNodeNetworkPacket alerts

Signed-off-by: Aswin Toni <aswin.toni@cern.ch>
(cherry picked from commit 351e1ac63950164ea5f08a6bfc7c14af586bb208)

3 years agoceph-mixin: fix config inheritance
Aswin Toni [Thu, 18 Aug 2022 14:21:36 +0000 (16:21 +0200)]
ceph-mixin: fix config inheritance

Signed-off-by: Aswin Toni <aswin.toni@cern.ch>
(cherry picked from commit 35183140f60fe445de8d256fa08639b288b6e768)

3 years agoceph-mixin: Remove jsonnet building
Aswin Toni [Tue, 16 Aug 2022 14:17:21 +0000 (16:17 +0200)]
ceph-mixin: Remove jsonnet building

Signed-off-by: Aswin Toni <aswin.toni@cern.ch>
(cherry picked from commit 2e0e684fc20cbf6c2e48215b431419c8573b3863)

3 years agocmake: set $PATH for tests using jsonnet tools
Kefu Chai [Tue, 16 Aug 2022 02:52:53 +0000 (10:52 +0800)]
cmake: set $PATH for tests using jsonnet tools

otherwise they would not able to find executables installed into
${CMAKE_CURRENT_BINARY_DIR}.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit 4a3afcf27769a512fba7e0194d2e3b6a55e06bca)

3 years agoprometheus: add multicluster support to alerts
Aswin Toni [Tue, 16 Aug 2022 13:38:18 +0000 (15:38 +0200)]
prometheus: add multicluster support to alerts

Signed-off-by: Aswin Toni <aswin.toni@cern.ch>
(cherry picked from commit 5cdc1c62c5de52a1f777f3d83fc85c3fc144db38)

3 years agomonitoring/ceph-mixin: clean up prometheus_alerts.yml
Anthony D'Atri [Tue, 26 Jul 2022 16:06:27 +0000 (09:06 -0700)]
monitoring/ceph-mixin: clean up prometheus_alerts.yml

Signed-off-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
(cherry picked from commit 9b6597446814ebced6ee6d963af18ce1a915e0bf)

3 years agoMerge pull request #48099 from adk3798/wip-57376-pacific
Adam King [Tue, 20 Sep 2022 19:17:58 +0000 (15:17 -0400)]
Merge pull request #48099 from adk3798/wip-57376-pacific

pacific: mgr/dashboard: enable addition of custom Prometheus alerts

Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
3 years agoMerge pull request #48101 from adk3798/wip-57398-pacific
Adam King [Tue, 20 Sep 2022 14:06:37 +0000 (10:06 -0400)]
Merge pull request #48101 from adk3798/wip-57398-pacific

pacific: qa/cephadm: remove fsid dir before bootstrap in test_cephadm.sh

Reviewed-by: Redouane Kachach <rkachach@redhat.com>
3 years agoMerge pull request #48097 from adk3798/wip-57503-pacific
Adam King [Tue, 20 Sep 2022 14:05:29 +0000 (10:05 -0400)]
Merge pull request #48097 from adk3798/wip-57503-pacific

pacific: qa/tasks/kubeadm: set up tigera resources via kubectl create

Reviewed-by: John Mulligan <jmulligan@redhat.com>
3 years agoMerge pull request #48096 from adk3798/wip-57528-pacific
Adam King [Tue, 20 Sep 2022 13:33:08 +0000 (09:33 -0400)]
Merge pull request #48096 from adk3798/wip-57528-pacific

pacific: mgr/cephadm: reconfig iscsi daemons if trusted_ip_list changes

Reviewed-by: Guillaume Abrioux <gabrioux@redhat.com>
3 years agomgr/dashboard: enable addition custom Prometheus alerts 48099/head
Patrick Seidensal [Thu, 25 Aug 2022 12:47:52 +0000 (14:47 +0200)]
mgr/dashboard: enable addition custom Prometheus alerts

Fixes: https://tracker.ceph.com/issues/57294
Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
(cherry picked from commit 3551d7f8b36d883a72b85f0bd5568a33ac00e62c)

Conflicts:
doc/cephadm/services/monitoring.rst
src/pybind/mgr/cephadm/services/monitoring.py
src/pybind/mgr/cephadm/tests/test_services.py

3 years agoMerge pull request #48098 from adk3798/wip-57424-pacific
Adam King [Tue, 20 Sep 2022 13:11:06 +0000 (09:11 -0400)]
Merge pull request #48098 from adk3798/wip-57424-pacific

pacific: cephadm: Fix disk size calculation

Reviewed-by: Redouane Kachach <rkachach@redhat.com>
3 years agoMerge pull request #48100 from adk3798/wip-57427-pacific
Adam King [Tue, 20 Sep 2022 13:09:30 +0000 (09:09 -0400)]
Merge pull request #48100 from adk3798/wip-57427-pacific

pacific: mgr/cephadm: allow setting prometheus retention time

Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
3 years agoMerge pull request #48102 from adk3798/wip-57379-pacific
Adam King [Tue, 20 Sep 2022 13:07:48 +0000 (09:07 -0400)]
Merge pull request #48102 from adk3798/wip-57379-pacific

pacific: cephadm: return nonzero exit code when applying spec fails in bootstrap

Reviewed-by: Redouane Kachach <rkachach@redhat.com>
3 years agoMerge pull request #48103 from adk3798/wip-57384-pacific
Adam King [Tue, 20 Sep 2022 13:06:50 +0000 (09:06 -0400)]
Merge pull request #48103 from adk3798/wip-57384-pacific

pacific: mgr/cephadm: Adding logic to store grafana cert/key per node

Reviewed-by: Redouane Kachach <rkachach@redhat.com>
3 years agomgr/dashboard: fix rgw connect when using ssl 48189/head
Henry Hirsch [Wed, 20 Jul 2022 08:11:00 +0000 (10:11 +0200)]
mgr/dashboard: fix rgw connect when using ssl

connecting with the hostname instead of the ip address when using ssl

Fixes: http://tracker.ceph.com/issues/56970
Signed-off-by: Henry Hirsch <henry.hirsch@1und1.de>
(cherry picked from commit ca8f77d6a7fa361328a942e3f37c81dd9577d4de)

3 years agoMerge pull request #47888 from rhcs-dashboard/wip-57357-pacific
Pere Diaz Bou [Tue, 20 Sep 2022 08:19:12 +0000 (10:19 +0200)]
Merge pull request #47888 from rhcs-dashboard/wip-57357-pacific

pacific: mgr/dashboard: ensure limit 0 returns 0 images

Reviewed-by: Nizamudeen A <nia@redhat.com>
3 years agoMerge pull request #47636 from rhcs-dashboard/wip-57143-pacific
Nizamudeen A [Mon, 19 Sep 2022 19:30:10 +0000 (01:00 +0530)]
Merge pull request #47636 from rhcs-dashboard/wip-57143-pacific

pacific: mgr/dashboard: fix _rbd_image_refs caching

Reviewed-by: Nizamudeen A <nia@redhat.com>
3 years agodoc/cephfs-top: adding doc for menu options 47998/head
Neeraj Pratap Singh [Fri, 6 May 2022 09:53:31 +0000 (15:23 +0530)]
doc/cephfs-top: adding doc for menu options

Fixes: https://tracker.ceph.com/issues/54978
Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
(cherry picked from commit e9d43d783829397bed054047d16ffee9f316f4fc)

3 years agocephfs-top: adding filesystem menu
Neeraj Pratap Singh [Tue, 31 May 2022 12:55:00 +0000 (18:25 +0530)]
cephfs-top: adding filesystem menu

Cephfs-top now contains two options 'm' for filesystem
selection and 'q' to go back.The home screen displays
the clients belonging to a particular filesystem as a group.

Fixes: https://tracker.ceph.com/issues/54978
Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
(cherry picked from commit 527737d8c3aa40eacac460d702c9359fc5545c4d)

3 years agocephfs-top: fixed flake8 errors
Neeraj Pratap Singh [Fri, 6 May 2022 07:46:28 +0000 (13:16 +0530)]
cephfs-top: fixed flake8 errors

Fixes: https://tracker.ceph.com/issues/54978
Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
(cherry picked from commit 65b03d658ce033683717786418b621335e9e6587)

3 years agoMerge pull request #47978 from neesingh-rh/wip-57439-pacific
Yuri Weinstein [Mon, 19 Sep 2022 16:24:04 +0000 (09:24 -0700)]
Merge pull request #47978 from neesingh-rh/wip-57439-pacific

pacific: cephfs-top: display average read/write/metadata latency

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
3 years agoMerge pull request #48045 from rhcs-dashboard/wip-57493-pacific
Pere Diaz Bou [Mon, 19 Sep 2022 16:14:12 +0000 (18:14 +0200)]
Merge pull request #48045 from rhcs-dashboard/wip-57493-pacific

pacific: mgr/dashboard: fix openapi-check

Reviewed-by: Nizamudeen A <nia@redhat.com>
3 years agoMerge pull request #47995 from idryomov/wip-52810-pacific
Yuri Weinstein [Mon, 19 Sep 2022 15:50:38 +0000 (08:50 -0700)]
Merge pull request #47995 from idryomov/wip-52810-pacific

pacific: librbd: retry ENOENT in V2_REFRESH_PARENT as well

Reviewed-by: Christopher Hoffman <choffman@redhat.com>
3 years agoMerge pull request #47866 from neesingh-rh/wip-57274-pacific
Yuri Weinstein [Mon, 19 Sep 2022 15:48:59 +0000 (08:48 -0700)]
Merge pull request #47866 from neesingh-rh/wip-57274-pacific

pacific: mgr/stats: missing clients in perf stats command output.

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Nikhilkumar Shelke <nshelke@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com
3 years agoMerge pull request #47769 from neesingh-rh/wip-57263-pacific
Yuri Weinstein [Mon, 19 Sep 2022 15:46:39 +0000 (08:46 -0700)]
Merge pull request #47769 from neesingh-rh/wip-57263-pacific

pacific: mgr/volumes: Add volume info command

Reviewed-by: Neeraj Pratap Singh <neesingh@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
3 years agoMerge pull request #47647 from joscollin/wip-57155-pacific
Yuri Weinstein [Mon, 19 Sep 2022 15:45:26 +0000 (08:45 -0700)]
Merge pull request #47647 from joscollin/wip-57155-pacific

pacific: cephfs-top: fix the rsp/wsp display

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Neeraj Pratap Singh <neesingh@redhat.com>
3 years agomgr/dashboard: Add details to the modal which displays the `safe-to-destroy` result 48176/head
Francesco Torchia [Fri, 26 Aug 2022 15:39:43 +0000 (17:39 +0200)]
mgr/dashboard: Add details to the modal which displays the `safe-to-destroy` result

- Add warnings type information in the case of the OSDs are not safe to destroy
- Add info type information in the case of the OSDs are safe to destroy

Fixes: https://tracker.ceph.com/issues/37327
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
(cherry picked from commit 0d6100bbf99ffa8da0e099343ede050f1cca509c)

3 years agoMerge pull request #47386 from s0nea/wip-56990-pacific
Nizamudeen A [Mon, 19 Sep 2022 09:15:12 +0000 (14:45 +0530)]
Merge pull request #47386 from s0nea/wip-56990-pacific

pacific: monitoring/ceph-mixin: OSD overview typo fix

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
3 years agoqa: ignore disk quota exceeded failure in test 48165/head
Nikhilkumar Shelke [Tue, 9 Aug 2022 12:47:38 +0000 (18:17 +0530)]
qa: ignore disk quota exceeded failure in test

Quota enforcement takes some time. It is documented.
Test should ignore 'Disk Quota Exceeded' failure.

Fixes: https://tracker.ceph.com/issues/56632
Signed-off-by: Nikhilkumar Shelke <nshelke@redhat.com>
(cherry picked from commit 41b0cb70e0c1b3d46ed94862b3065ed1d6e80097)

3 years agodoc/rados: update prompts in network-config-ref 48158/head
Zac Dover [Sat, 17 Sep 2022 20:59:47 +0000 (06:59 +1000)]
doc/rados: update prompts in network-config-ref

This PR adds unselectable prompts to network-config-
ref.rst.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
(cherry picked from commit e26c1d8574a27e97cbc2ef5e65d6b679b25cd710)

3 years agomgr/dashboard: fix Expected to find element: `cd-modal .badge but never found it 48142/head
Nizamudeen A [Sun, 4 Sep 2022 05:06:40 +0000 (10:36 +0530)]
mgr/dashboard: fix Expected to find element: `cd-modal .badge but never found it

This looks related to https://github.com/ceph/ceph/pull/46323, but i am
not sure why it started failing recently in the teuthology.

The error is fixed by deselecting the row manually, so that it won't
accidentally get deselected when we actually want it to select it.

Fixes: https://tracker.ceph.com/issues/57207
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit dcbf179106273b85361dd6067239c4e826d1f3bb)

3 years agoMerge pull request #47528 from lxbsz/wip-57083
Yuri Weinstein [Fri, 16 Sep 2022 11:52:16 +0000 (04:52 -0700)]
Merge pull request #47528 from lxbsz/wip-57083

pacific: qa/import-legacy: install python3 package for nautilus ceph

Reviewed-by: Kotresh HR khiremat@redhat.com
3 years agoqa/cephfs: omit_sudo must be passed to underlying method... 47112/head
Rishabh Dave [Fri, 6 May 2022 16:06:28 +0000 (21:36 +0530)]
qa/cephfs: omit_sudo must be passed to underlying method...

so that it can have it's intended effect.

Fixes: https://tracker.ceph.com/issues/55572
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 02f0a3f136f85e472f3657a4af2b94e8af33c46b)

Conflicts:
   qa/tasks/cephfs/mount.py: timeout change wasn't backported

3 years agoqa: Validate cleaning of the stale snapshot metadata
Kotresh HR [Thu, 7 Jul 2022 08:00:56 +0000 (13:30 +0530)]
qa: Validate cleaning of the stale snapshot metadata

Fixes: https://tracker.ceph.com/issues/55976
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit aece3b9b28fccb6cad77e81fd3e4b84c333f1609)

3 years agomgr/volumes: Remove stale snapshot user metadata
Kotresh HR [Tue, 16 Aug 2022 11:41:33 +0000 (17:11 +0530)]
mgr/volumes: Remove stale snapshot user metadata

This patch adds the capability to remove the stale snapshot user
metadata while loading the subvolume if it is present. It can't
be done in 'SubvolumeBase.discover' since v1 and v2 snapshot paths
are different. This is done just after the discover before returning
the specific version object.

Fixes: https://tracker.ceph.com/issues/55976
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 65af2d123a1f1ef9c4b370e908ece588eec19a1f)

3 years agomgr/volumes: Allow forceful snapshot removal on osd full
Kotresh HR [Wed, 6 Jul 2022 11:59:39 +0000 (17:29 +0530)]
mgr/volumes: Allow forceful snapshot removal on osd full

When the osd is full, if the snapshot has metadata set, it
can't be removed as user metadata can't be removed when osd
is full. This patch provides a way to remove the snapshot
with 'force' option while keeping the corresponding metadata
which gets removed on subvolume discover when it finds space.

Fixes: https://tracker.ceph.com/issues/55976
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 0687f78650dd348619b06e20c299f82f2a0c1bf5)

3 years agoqa: Add subvolume clone and snapshot rm tests when osd is full
Kotresh HR [Wed, 15 Jun 2022 10:35:40 +0000 (16:05 +0530)]
qa: Add subvolume clone and snapshot rm tests when osd is full

Fixes: https://tracker.ceph.com/issues/55976
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit a64f049614454e98920e2abcb685ca61fa49a148)

3 years agomgr/volumes: Better handle config file on osd full scenario
Kotresh HR [Tue, 16 Aug 2022 11:38:16 +0000 (17:08 +0530)]
mgr/volumes: Better handle config file on osd full scenario

The 'metadata_mgr.flush()' used to truncate the config file
before flushing the new config data. This could lead to an
empty config file when there is no space to write new config
data. This patch handles this scenario by writing it to
temporary file and rename it to config file. This would
retain the config file without truncating it.

Also, there are bunch of places which wasn't handling
'MetadataMgrException' because of this. Fixed those.

Fixes: https://tracker.ceph.com/issues/55976
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit ec57215d508e6cb5b3a4d84fd6a3a5b0c9b96c71)

3 years agomgr/volumes: drop pre-python 3.2 version checks
John Mulligan [Tue, 2 Aug 2022 13:45:59 +0000 (09:45 -0400)]
mgr/volumes: drop pre-python 3.2 version checks

Based on other conversations we believe that there is no need to support
python versions lower than Python 3.6 for pacific and later.  This means
it is safe to drop the remaining version checks for python
3.2.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 47162e4996a511d399809516a4890d72e6f84a44)

3 years agomgr/volumes: a lock to guard against races reading/writing config
John Mulligan [Mon, 11 Jul 2022 20:44:00 +0000 (16:44 -0400)]
mgr/volumes: a lock to guard against races reading/writing config

Fixes: https://tracker.ceph.com/issues/55583
Use a python threading lock to avoid race conditions where the
config file is being both read and written to at the same time.

Before this change, the content of the config file being parsed could be
'corrupted' by the MetadataManager racing with itself.  Along with the
previous two patches, additional logging was added to the mgr code to
produce the simplified version of the mgr log below:

```
[volumes INFO volumes.fs.operations.versions.metadata_manager] READ: b'[GLOBAL]\nversion = 2\ntype = clone\npath = /volumes/Park/babydino2/c9f773af-5221-49c6-846c-d65c0920ae3f\nstate = pending\n\n[source]\nvolume = cephfs\ngroup = Park\nsubvolume = Jurrasic\nsnapshot = dinodna0\n\n'
[volumes INFO volumes.fs.operations.versions.metadata_manager] READ: b''
[volumes INFO volumes.fs.operations.versions.metadata_manager] READ: b'[GLOBAL]\nversion = 2\ntype = clone\npath = /volumes/Park/babydino2/c9f773af-5221-49c6-846c-d65c0920ae3f\nstate = pending\n\n[source]\nvolume = cephfs\ngroup = Park\nsubvolume = Jurrasic\nsnapshot = dinodna0\n\n'
[volumes INFO volumes.fs.operations.versions.metadata_manager] wrote 203 bytes to config b'/volumes/Park/babydino2/.meta'
[volumes INFO volumes.fs.operations.versions.metadata_manager] READ: b'a0\n\n'
[volumes INFO volumes.fs.operations.versions.metadata_manager] READ: b''
[volumes ERROR volumes.module] Failed _cmd_fs_clone_cancel(clone_name:babydino2, format:json, group_name:Park, prefix:fs clone cancel, vol_name:cephfs) < "":
Traceback (most recent call last):
  ...
  File "/usr/lib64/python3.6/configparser.py", line 1111, in _read
    raise e
configparser.ParsingError: Source contains parsing errors: b'/volumes/Park/babydino2/.meta'
[line 13]: 'a0\n'
```

Looking at the above you can see that the log indicates a write to the
config file (of 203 bytes). This happens before the file has finished
reading and thus instead of getting an empty string indicating EOF, it
gets that last four bytes of the new content of the file. The lock
prevents the MetadataManager from both reading and writing the config
file at the same time.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 2fe83d72d94d1e0939d390554a833cd93b4dd965)

3 years agomgr/volumes: write volume metadata with shim class
John Mulligan [Tue, 12 Jul 2022 22:33:07 +0000 (18:33 -0400)]
mgr/volumes: write volume metadata with shim class

Add a class that works a bit like a python file object so that we
can simplify the flush function. Providing a file-like object to
the ConfigParser's write function avoids unnecessary copies to
a StringIO object and makes the code easier to read.

With no more uses of StringIO, the StringIO imports are removed.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit d06d8a1f5255b5da9106cd70acc0de99f89d2b96)

3 years agomgr/volumes: read volume metadata file using read_string
John Mulligan [Tue, 12 Jul 2022 22:32:54 +0000 (18:32 -0400)]
mgr/volumes: read volume metadata file using read_string

The read_string method, available in Python 3.2 (we assume Python 3.6 as
our current minimum python versino), supports parsing a provided string
for ini-style configuration parameters. Refactoring the reading of the
config file from cephfs into a simple iterator function and then
providing it to the ConfigParser as a single string, allows us to avoid
using StringIO and  simplifies the refresh function.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit dc1b4aac90beb82fd994ad7fa8ccf3b72b9936ac)

3 years agoqa: display in-progress clones for a snapshot
Nikhilkumar Shelke [Thu, 5 May 2022 07:02:31 +0000 (12:32 +0530)]
qa: display in-progress clones for a snapshot

If any clone is in pending or in-progress state then
show these clones in 'fs subvolume snapshot info'
command output.

Fixes: https://tracker.ceph.com/issues/55041
Signed-off-by: Nikhilkumar Shelke <nshelke@redhat.com>
(cherry picked from commit f4c6bdb3c6418efbf261bdce6e7f1b5753a61d7c)

3 years agodocs: display in-progress clones for a snapshot
Nikhilkumar Shelke [Thu, 5 May 2022 08:01:24 +0000 (13:31 +0530)]
docs: display in-progress clones for a snapshot

If any clone is in pending or in-progress state then
show these clones in 'fs subvolume snapshot info'
command output. This field only exists if clones are
in pending or in progress state.

Fixes: https://tracker.ceph.com/issues/55041
Signed-off-by: Nikhilkumar Shelke <nshelke@redhat.com>
(cherry picked from commit a8b819da71804868d83bd9775c41ede39b1b65a7)

3 years agomgr/volumes: display in-progress clones for a snapshot
Nikhilkumar Shelke [Thu, 5 May 2022 06:56:03 +0000 (12:26 +0530)]
mgr/volumes: display in-progress clones for a snapshot

If any clone is in pending or in-progress state then
show these clones in 'fs subvolume snapshot info'
command output.

Fixes: https://tracker.ceph.com/issues/55041
Signed-off-by: Nikhilkumar Shelke <nshelke@redhat.com>
(cherry picked from commit 099efb424977f86597826e3f56734b3deddfd0dc)

3 years agodoc: include read, write, metadata average latencies in doc/man. 47978/head
Venky Shankar [Wed, 19 May 2021 07:03:49 +0000 (03:03 -0400)]
doc: include read, write, metadata average latencies in doc/man.

Also, the sample cephfs-top image in the doc is outdated. Update that!

Fixes: http://tracker.ceph.com/issues/48619
Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit aa04f3faedb6edcb0897e802a8390904deb6f936)

3 years agocephfs-top: display latency in milliseconds
Venky Shankar [Wed, 19 May 2021 05:29:15 +0000 (01:29 -0400)]
cephfs-top: display latency in milliseconds

Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit bf261f2a07111361ec8db36a7a4b13b54ff5d891)

3 years agocephfs-top: switch to displaying average latencies and stdev
Venky Shankar [Wed, 19 May 2021 05:27:12 +0000 (01:27 -0400)]
cephfs-top: switch to displaying average latencies and stdev

Do away with cumulative latencies -- those are not much useful.
However, these types need to be maintained since `perf stats`
command (via mgr/stats plugin) includes them. So, maintain a
legacy metrics list which is ignored when choosing metrics to
display.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit 60f33a8ca3055ec5ae5c8d67fd03f571bcec8892)