]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
3 years agomgr/dashboard: stabilizing the cephadm dashboard e2e 44468/head
Nizamudeen A [Thu, 30 Dec 2021 08:28:58 +0000 (13:58 +0530)]
mgr/dashboard: stabilizing the cephadm dashboard e2e

Reordering the tests and adding some more tests to verify the cluster is
healthy before proceeding to do some complex tasks like maintenance and
drain host

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

3 years agomgr/dashboard: dashboard cephadm e2e improvement
Nizamudeen A [Fri, 24 Dec 2021 05:39:37 +0000 (11:09 +0530)]
mgr/dashboard: dashboard cephadm e2e improvement

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

3 years agomgr/dashboard: fix timeout error in dashboard cephadm e2e job
Nizamudeen A [Mon, 20 Dec 2021 09:14:29 +0000 (14:44 +0530)]
mgr/dashboard: fix timeout error in dashboard cephadm e2e job

1. Fix the timeout error happening in the dashboard e2e job
2. Take care of the flaky force maintenance check

Most of the time our test is getting timed out while searching for an item
in the table. Its because `.clear().type()` is not clearing the content
in the search field sometimes and that creates a wrong data to be
entered into the search field and it starts searching based on this
wrong name. To avoid this I am explicitly clearing the search area
before typing.

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

3 years agoMerge pull request #44105 from rhcs-dashboard/wip-52571-pacific
Alfonso Martínez [Tue, 4 Jan 2022 08:52:40 +0000 (09:52 +0100)]
Merge pull request #44105 from rhcs-dashboard/wip-52571-pacific

pacific: mgr/dashboard: use -f for npm ci to skip fsevents error

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agoMerge pull request #44382 from rhcs-dashboard/wip-53690-pacific
Alfonso Martínez [Mon, 3 Jan 2022 15:58:27 +0000 (16:58 +0100)]
Merge pull request #44382 from rhcs-dashboard/wip-53690-pacific

pacific: mgr/dashboard: cephadm e2e job: improvements

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
3 years agoMerge pull request #44389 from aaSharma14/wip-53689-pacific
Alfonso Martínez [Mon, 3 Jan 2022 09:54:21 +0000 (10:54 +0100)]
Merge pull request #44389 from aaSharma14/wip-53689-pacific

pacific: mgr/dashboard: Cluster Expansion - Review Section: fixes and improvements

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agoMerge pull request #44400 from aaSharma14/wip-53717-pacific
Ernesto Puerta [Fri, 24 Dec 2021 11:53:30 +0000 (12:53 +0100)]
Merge pull request #44400 from aaSharma14/wip-53717-pacific

pacific: mgr/dashboard: introduce separate front-end component for API docs

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
3 years agomgr/dashboard: introduce seperate frontend component for API docs 44400/head
Aashish Sharma [Tue, 25 May 2021 08:40:50 +0000 (14:10 +0530)]
mgr/dashboard: introduce seperate frontend component for API docs

This PR intends to add a separate frontend component for the API docs that are currently being rendered from the python code.

Fixes: https://tracker.ceph.com/issues/50955
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit 2c396be7cc47762290199609b99fba09f3573899)

Conflicts:
src/pybind/mgr/dashboard/frontend/package-lock.json
src/pybind/mgr/dashboard/frontend/package.json (added new swagger packages)

3 years agomgr/dashboard: Cluster Expansion - Review Section: fixes and improvements 44389/head
Aashish Sharma [Mon, 8 Nov 2021 07:31:02 +0000 (13:01 +0530)]
mgr/dashboard: Cluster Expansion - Review Section: fixes and improvements

Ensure "Storage capacity" keeps the "Description : Value" approach ("Number of devices: X" and "Raw Capacity: Y" in different lines).Correct issue with "host by services" host count

Fixes: https://tracker.ceph.com/issues/53128
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit 2ba1a5a2666674a935c9288f5b547532ba214f54)

3 years agoMerge pull request #44376 from rhcs-dashboard/wip-53687-pacific
Ernesto Puerta [Wed, 22 Dec 2021 09:26:47 +0000 (10:26 +0100)]
Merge pull request #44376 from rhcs-dashboard/wip-53687-pacific

pacific: mgr/dashboard: Implement drain host functionality in dashboard

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
3 years agomgr/dashboard: cephadm e2e job: improvements 44382/head
Alfonso Martínez [Mon, 20 Dec 2021 08:12:37 +0000 (09:12 +0100)]
mgr/dashboard: cephadm e2e job: improvements

- Avoid jenkins env. error: Input file /workdir/./src/pybind/mgr/dashboard/ci/cephadm/ceph_cluster.yml not found.Leaving...
- More meaningful log output.

Fixes: https://tracker.ceph.com/issues/53666
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
(cherry picked from commit 9aedeaf2012851fd3598bb9c8f4a347bdc58a330)

3 years agoMerge pull request #44369 from ceph/wip-yuri-pacific-p2p-pacific
Neha Ojha [Tue, 21 Dec 2021 18:05:52 +0000 (10:05 -0800)]
Merge pull request #44369 from ceph/wip-yuri-pacific-p2p-pacific

qa/tests: replaced 16.2.6 with 16.2.7 version

Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agoMerge pull request #44377 from rhcs-dashboard/wip-53679-pacific
Ernesto Puerta [Tue, 21 Dec 2021 15:50:33 +0000 (16:50 +0100)]
Merge pull request #44377 from rhcs-dashboard/wip-53679-pacific

pacific: mgr/dashboard: run-backend-api-tests.sh: Older setuptools

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: David Galloway <dgallowa@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
3 years agopybind/mgr/dashboard/run-backend-api-tests: Older setuptools 44377/head
David Galloway [Mon, 20 Dec 2021 15:44:23 +0000 (10:44 -0500)]
pybind/mgr/dashboard/run-backend-api-tests: Older setuptools

https://github.com/pypa/setuptools/issues/2353

Signed-off-by: David Galloway <dgallowa@redhat.com>
(cherry picked from commit 4ab2df179b0bf0b123a59c649b779bba41e4bb3d)

3 years agomgr/dashboard: Implement drain host functionality in dashboard 44376/head
Nizamudeen A [Tue, 16 Nov 2021 11:00:02 +0000 (16:30 +0530)]
mgr/dashboard: Implement drain host functionality in dashboard

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

3 years agoMerge pull request #44046 from rhcs-dashboard/wip-53344-pacific
Ernesto Puerta [Mon, 20 Dec 2021 16:57:57 +0000 (17:57 +0100)]
Merge pull request #44046 from rhcs-dashboard/wip-53344-pacific

pacific: mgr/dashboard: NFS non-existent files cleanup

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
Reviewed-by: Yuri Weinstein <yweins@redhat.com>
3 years agoqa/tests: replaced 16.2.6 with 16.2.7 version 44369/head
Yuri Weinstein [Mon, 20 Dec 2021 16:39:44 +0000 (08:39 -0800)]
qa/tests: replaced 16.2.6 with 16.2.7 version

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
3 years agoMerge pull request #44316 from rhcs-dashboard/wip-53296-pacific
Ernesto Puerta [Mon, 20 Dec 2021 15:15:55 +0000 (16:15 +0100)]
Merge pull request #44316 from rhcs-dashboard/wip-53296-pacific

pacific: monitoring/grafana: Grafana query tester

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agoMerge pull request #44319 from guits/wip-53617-pacific
Sébastien Han [Mon, 20 Dec 2021 09:56:55 +0000 (10:56 +0100)]
Merge pull request #44319 from guits/wip-53617-pacific

pacific: ceph-volume: make it possible to skip needs_root()

3 years agoMerge pull request #43964 from cfsnyder/wip-51484-pacific
Yuri Weinstein [Thu, 16 Dec 2021 16:28:39 +0000 (08:28 -0800)]
Merge pull request #43964 from cfsnyder/wip-51484-pacific

pacific: pybind/mgr/balancer: define Plan.{dump,show}()

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
3 years agopybind/mgr/balancer: define Plan.{dump,show}() 43964/head
Kefu Chai [Thu, 4 Feb 2021 13:15:27 +0000 (21:15 +0800)]
pybind/mgr/balancer: define Plan.{dump,show}()

as they are called by the commands

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 0d48b03)

Conflicts:
src/pybind/mgr/balancer/module.py

Cherry-pick notes:
- Conflicts due to missing type annotations on Pacific

3 years agomgr/dashboard: disable Promql test in ARM 44316/head
Ernesto Puerta [Wed, 1 Dec 2021 18:51:44 +0000 (19:51 +0100)]
mgr/dashboard: disable Promql test in ARM

Temporarily disable this test while debugging the issue (since https://github.com/ceph/ceph/pull/43669
originally passed the ARM check).

Fixes: https://tracker.ceph.com/issues/53451
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
(cherry picked from commit d10b0b7e728ccd28e1002271ce71e6f94a074256)

3 years agoceph-volume: make it possible to skip needs_root() 44319/head
Guillaume Abrioux [Tue, 7 Dec 2021 14:18:10 +0000 (15:18 +0100)]
ceph-volume: make it possible to skip needs_root()

Add the possibility to skip the `needs_root()` decorator.
See linked tracker for details.

Fixes: https://tracker.ceph.com/issues/53511
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 068a1d2a300bc21e9aa08142c4195970ef480e41)

3 years agomonitoring/grafana: Grafana query tester
Pere Diaz Bou [Tue, 26 Oct 2021 12:42:17 +0000 (14:42 +0200)]
monitoring/grafana: Grafana query tester

Signed-off-by: Pere Diaz Bou <pdiazbou@redhat.com>
(cherry picked from commit 44d3e4c264506154373ffaeb13d6c924c580e6b5)

3 years agoMerge pull request #44297 from rhcs-dashboard/wip-53510-pacific
Ernesto Puerta [Tue, 14 Dec 2021 16:43:56 +0000 (17:43 +0100)]
Merge pull request #44297 from rhcs-dashboard/wip-53510-pacific

pacific: mgr/dashboard: fix frontend deps' vulnerabilities

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
3 years agoMerge pull request #44273 from rhcs-dashboard/wip-53576-pacific
Ernesto Puerta [Tue, 14 Dec 2021 16:41:28 +0000 (17:41 +0100)]
Merge pull request #44273 from rhcs-dashboard/wip-53576-pacific

pacific: mgr/dashboard: introduce HAProxy metrics for RGW

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
3 years agoMerge pull request #43187 from rhcs-dashboard/wip-51979-pacific
Ernesto Puerta [Tue, 14 Dec 2021 16:17:50 +0000 (17:17 +0100)]
Merge pull request #43187 from rhcs-dashboard/wip-51979-pacific

pacific: mgr/prometheus: Fix metric types from gauge to counter

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: p-se <NOT@FOUND>
3 years agoMerge pull request #44091 from aaSharma14/wip-53383-pacific
Ernesto Puerta [Tue, 14 Dec 2021 16:16:32 +0000 (17:16 +0100)]
Merge pull request #44091 from aaSharma14/wip-53383-pacific

pacific: mgr/dashboard: dashboard does not show degraded objects if they are less than 0.5% under "Dashboard->Capacity->Objects block

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>
3 years agoMerge pull request #43954 from guits/wip-53280-pacific
Guillaume Abrioux [Tue, 14 Dec 2021 12:34:51 +0000 (13:34 +0100)]
Merge pull request #43954 from guits/wip-53280-pacific

pacific: cephadm/ceph-volume: do not use lvm binary in containers

3 years agoMerge pull request #44149 from rhcs-dashboard/wip-53437-pacific
Ernesto Puerta [Mon, 13 Dec 2021 20:38:22 +0000 (21:38 +0100)]
Merge pull request #44149 from rhcs-dashboard/wip-53437-pacific

pacific: mgr/dashboard: avoid tooltip if disk_usage=null and fast-diff enabled

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agomgr/dashboard: fix frontend deps' vulnerabilities 44297/head
Alfonso Martínez [Thu, 2 Dec 2021 14:05:23 +0000 (15:05 +0100)]
mgr/dashboard: fix frontend deps' vulnerabilities

- Remove npm-force-resolutions: no resolution needed anymore and this is modifying package-lock.json every time it is run (striping last empty line).
- Add .npmrc: save exact version by default; do not launch audit report when installing.

Fixes: https://tracker.ceph.com/issues/48005
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
(cherry picked from commit f08c0db689dc6bd29323ac03a91c69e2fe7365a2)

 Conflicts:
src/pybind/mgr/dashboard/frontend/package-lock.json
    - Accept version from master branch.
src/pybind/mgr/dashboard/frontend/package.json
    - Accept version from master branch.

3 years agoMerge pull request #44086 from rhcs-dashboard/wip-53380-pacific
Ernesto Puerta [Mon, 13 Dec 2021 15:40:42 +0000 (16:40 +0100)]
Merge pull request #44086 from rhcs-dashboard/wip-53380-pacific

pacific: mgr/dashboard: upgrade Cypress to the latest stable version

Reviewed-by: Waad Alkhoury <walkhour@redhat.com>
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Yuri Weinstein <yweins@redhat.com>
3 years agoceph-volume: remove --root param from nsenter cmd 43954/head
Guillaume Abrioux [Wed, 24 Nov 2021 08:07:46 +0000 (09:07 +0100)]
ceph-volume: remove --root param from nsenter cmd

This is redundant and makes nsenter throw messages like following:
```
  Failed to find sysfs mount point
  dev/block/11:0/holders/: opendir failed: Not a directory
  dev/block/252:0/holders/: opendir failed: Not a directory
  dev/block/253:0/holders/: opendir failed: Not a directory
  dev/block/252:1/holders/: opendir failed: Not a directory
  dev/block/253:1/holders/: opendir failed: Not a directory
  dev/block/252:2/holders/: opendir failed: Not a directory
  dev/block/253:2/holders/: opendir failed: Not a directory
  dev/block/252:3/holders/: opendir failed: Not a directory
  dev/block/253:3/holders/: opendir failed: Not a directory
  dev/block/252:16/holders/: opendir failed: Not a directory
  dev/block/252:32/holders/: opendir failed: Not a directory
  dev/block/252:48/holders/: opendir failed: Not a directory
  dev/block/252:64/holders/: opendir failed: Not a directory
  ```

Fixes: https://tracker.ceph.com/issues/52926
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit e4667e81301295f4c81328505e4376d2aef66fb2)

3 years agoqa/tasks/nvme_loop: loop until 'nvme list' shows new devs
Sage Weil [Fri, 8 Oct 2021 18:43:56 +0000 (13:43 -0500)]
qa/tasks/nvme_loop: loop until 'nvme list' shows new devs

Sometimes this doesn't happen immediately.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit d4a1ec2d0611192f4016006afcf72d57a31a6a1e)

3 years agoqa/suites/roch/cephadm/smoke: use nvme_loop
Sage Weil [Thu, 7 Oct 2021 15:12:43 +0000 (10:12 -0500)]
qa/suites/roch/cephadm/smoke: use nvme_loop

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 6436b7e05f56027fccdfef7fb0a3349139141e09)

3 years agoqa/suites/orch/cephadm/smoke-roleless: no osd roles, use nvme loop
Sage Weil [Thu, 7 Oct 2021 15:11:57 +0000 (10:11 -0500)]
qa/suites/orch/cephadm/smoke-roleless: no osd roles, use nvme loop

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 4206b28dd7097ee079eb389e53f16a5afd55e21f)

3 years agoqa/overrides/nvme_loop: reusable fragment to use nvme_loop devs
Sage Weil [Thu, 7 Oct 2021 15:11:03 +0000 (10:11 -0500)]
qa/overrides/nvme_loop: reusable fragment to use nvme_loop devs

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 8d4b87031638e48fddc27769003b09042643e11e)

3 years agoqa/tasks/cephadm: wait for osds to start explicitly
Sage Weil [Tue, 5 Oct 2021 21:36:05 +0000 (16:36 -0500)]
qa/tasks/cephadm: wait for osds to start explicitly

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit dda15a792431a509d18210bb00471015493d6ce6)

3 years agoqa/tasks/cephadm: if no osd roles, --all-available-devices
Sage Weil [Tue, 5 Oct 2021 16:37:58 +0000 (11:37 -0500)]
qa/tasks/cephadm: if no osd roles, --all-available-devices

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit d3c9486ed9406d09904dd542eae05680d5f09498)

3 years agoqa/tasks/nvme_loop: set up nvme_loop on scratch_devs
Sage Weil [Tue, 5 Oct 2021 16:06:09 +0000 (11:06 -0500)]
qa/tasks/nvme_loop: set up nvme_loop on scratch_devs

Using an nvme loop device makes the LVs look like "real" disks,
which means we can exercise all of the normal code paths for
provisioning, deprovisioning, and zapping.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 65cf69c6ff5ee44319e3b2ca2afb36cea7b7c81c)

3 years agoqa/suites/orch/cephadm/osds: add osd rm/zap/add test
Sage Weil [Thu, 14 Oct 2021 20:00:09 +0000 (15:00 -0500)]
qa/suites/orch/cephadm/osds: add osd rm/zap/add test

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 96319a3d39d9ca254b86fabbab8cd19cf53ec4f8)

3 years agocephadm: mount rootfs in osd containers
Guillaume Abrioux [Thu, 14 Oct 2021 07:46:36 +0000 (09:46 +0200)]
cephadm: mount rootfs in osd containers

See ceph-volume tracker for details [1]

[1] https://tracker.ceph.com/issues/52926

Fixes: https://tracker.ceph.com/issues/51592
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 48b369e2caf3222bf594dc09f87b5969a53dfbe7)

3 years agoceph-volume: implement lvm wrapper
Guillaume Abrioux [Thu, 14 Oct 2021 07:41:42 +0000 (09:41 +0200)]
ceph-volume: implement lvm wrapper

ceph-volume should run pv/vg/lv commands in the host namespace rather than
running them inside the container in order to avoid lvm metadata corruption.

Fixes: https://tracker.ceph.com/issues/52926
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 4d33630deeaee51578868fb29337da802e9cb231)

3 years agoMerge pull request #44209 from guits/wip-53371-pacific
Guillaume Abrioux [Mon, 13 Dec 2021 08:50:24 +0000 (09:50 +0100)]
Merge pull request #44209 from guits/wip-53371-pacific

pacific: ceph-volume: human_readable_size() refactor

3 years agoMerge pull request #43649 from ideepika/wip-53019-pacific
Deepika Upadhyay [Fri, 10 Dec 2021 11:02:13 +0000 (16:32 +0530)]
Merge pull request #43649 from ideepika/wip-53019-pacific

pacific: test/librbd: harden RemoveFullTry tests

Reviewed-by: Mykola Golub mgolub@suse.com
3 years agomgr/dashboard: introduce HAProxy metrics for RGW 44273/head
Avan Thakkar [Wed, 17 Nov 2021 23:26:12 +0000 (04:56 +0530)]
mgr/dashboard: introduce HAProxy metrics for RGW

Fixes: https://tracker.ceph.com/issues/53311
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
(cherry picked from commit 8d83126e5168d03b44ec476de08502e7a12d3bf2)

3 years agoMerge pull request #44199 from ideepika/wip-pwl-backports-december-pacific
Deepika Upadhyay [Fri, 10 Dec 2021 10:44:53 +0000 (16:14 +0530)]
Merge pull request #44199 from ideepika/wip-pwl-backports-december-pacific

pacific: librbd/cache/pwl: misc backports

Reviewed-by: Jianpeng Ma <jianpeng.ma@intel.com>
Reviewed-by: Mykola Golub mgolub@suse.com
Reviewed-by: Sunny Kumar <sunkumar@redhat.com>
3 years agolibrbd: Read request need exclusive-lock when enable pwl-cache. 44199/head
Jianpeng Ma [Wed, 8 Sep 2021 01:51:19 +0000 (09:51 +0800)]
librbd: Read request need exclusive-lock when enable  pwl-cache.

TestLibRBD.TestFUA descript the following workload:
a)write/read the same image w/ pwl-cache
  write_image = open(image_name);
  read_image  = open(image_name);
b)i/o workload is:
   write(write_image)
      write need EXLock and require EXLOCK

  read(read_image)
     in ExclusiveLock<I>::init(), firstly read need EXLOCK
     so will require EXLOCK. write_image release EXLOCK(will
     flush data to osd and remove cache). read_image init pwl-cache
     and read-io firstly enter pwl-cache and missed and then read
     from osd.

   write(write_image)
     write need EXLOCK and require EXLOCK. This make read_image remove
     empty cache. write_image init cache pool and write data to cache.

   read(read_image)
       In send_set_require_lock(), it set write need EXLOCK.
       So read don't require EXLOCK and dirtyly read from osd.

Because second-read  don't need EXLOCK and make write_image don't
release EXLOCK(flush dirty data to osd and  shutdown pwl-cache).
This make second-read don't read the latest data.

So we should make read also need EXLOCK when enable pwl-cache.

Fixes: https://tracker.ceph.com/issues/51438
Tested-by: Feng Hualong <hualong.feng@intel.com>
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
(cherry picked from commit 621facb6e66ce92ca36d566c78bc065a9666639e)

3 years agolibrbd: send FLUSH_SOURCE_INTERNAL when do copy/deep_copy.
Jianpeng Ma [Mon, 1 Nov 2021 00:33:23 +0000 (08:33 +0800)]
librbd: send FLUSH_SOURCE_INTERNAL when do copy/deep_copy.

copy/deep_copy use object_map to judge whether object exist.
If w/ librbdo pwl cache, flush can't flush data to osd which
change objectmap state. So we should send flush w/ FLUSH_SOURCE_INTERNAL
to make data flush to osd.

Fixes:https://tracker.ceph.com/issues/53057
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
(cherry picked from commit a2ae83f8aab18933eae77cf3034b740082a39e4f)

3 years agoqa/suites/rbd: added SSD PWL cache mode to tests
Jason Dillaman [Wed, 10 Mar 2021 16:30:47 +0000 (11:30 -0500)]
qa/suites/rbd: added SSD PWL cache mode to tests

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit e2c9c5cd4146c9a86100ca3aaf407127b1df1310)

3 years agolibrbd/cache/pwl: it should in apply_metadata set discard_granularity for pwl cache.
Jianpeng Ma [Wed, 1 Dec 2021 08:58:25 +0000 (16:58 +0800)]
librbd/cache/pwl: it should in apply_metadata set discard_granularity for pwl cache.

Function apply_meta can overwrite discard_granularity_bytes
based on option.

Fixes:https://tracker.ceph.com/issues/53434

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
(cherry picked from commit 86223d039b587e768d71ce1266e85dde8a46a50a)

3 years agolibrbd/cache/pwl: revert patch 76f4d29d92be3f9f45767cb1ac6cc50.
Jianpeng Ma [Sun, 28 Nov 2021 05:00:14 +0000 (13:00 +0800)]
librbd/cache/pwl: revert patch 76f4d29d92be3f9f45767cb1ac6cc50.

In fact, After BlockGuard to fix flush reorder issue, patch
76f4d29d9 don't need. So revert.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
(cherry picked from commit cc8dae1d89a6cc44f6133a10424d767fc3291dd2)

3 years agolibrbd/cache/pwl: Using BlockGuard control overlap ops order when flush to osd.
Jianpeng Ma [Mon, 29 Nov 2021 07:16:21 +0000 (15:16 +0800)]
librbd/cache/pwl: Using BlockGuard control overlap ops  order when flush to osd.

In process of tests, we met some inconsistent-data problem. Test case
mainly use write,then discard to detect data consistent.
W/o pwl, write/discard are synchronous ops. After write, data already
located into osd. But w/ pwl, we use asynchronous api to send ops to
osd.
Although we mare sure send order. But send-order don't makre sure
complete order. This mean pwl keep order of write/discard. But it
don't keep the same semantics which use synchronous api. W/ pwl, it make
synchronous to asynchronous. For normal ops, it's not problem. But if
connected-commands w/ overlap, it make data inconsistent.
So we use BlockGuard to solve this issue.

Fixes: https://tracker.ceph.com/issues/49876
Fixes: https://tracker.ceph.com/issues/53108
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
(cherry picked from commit 8e8f3ef516e98da011f3086f8e78a2fa261293ed)

3 years agoMerge pull request #43745 from mfoliveira/wip-53101-pacific
Yuri Weinstein [Wed, 8 Dec 2021 16:18:37 +0000 (08:18 -0800)]
Merge pull request #43745 from mfoliveira/wip-53101-pacific

pacific: os/bluestore/AvlAllocator: introduce bluestore_avl_alloc_ff_max_* options

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
3 years agoMerge pull request #44226 from ceph/pacific-m2r
David Galloway [Wed, 8 Dec 2021 14:07:25 +0000 (09:07 -0500)]
Merge pull request #44226 from ceph/pacific-m2r

doc: Use older mistune

3 years ago16.2.7 v16.2.7
Jenkins Build Slave User [Tue, 7 Dec 2021 16:15:49 +0000 (16:15 +0000)]
16.2.7

3 years agoMerge pull request #44201 from sebastian-philipp/qa-suites-orch-cephadm-mgr-nfs-upgra...
Yuri Weinstein [Mon, 6 Dec 2021 20:43:53 +0000 (12:43 -0800)]
Merge pull request #44201 from sebastian-philipp/qa-suites-orch-cephadm-mgr-nfs-upgrade-0-distro-pacific

qa/suites/orch/cephadm: mgr-nfs-upgrade: add missing 0-distro dir

Reviewed-by: Michael Fritch <mfritch@suse.com>
3 years agoMerge pull request #44164 from cfsnyder/wip-52450-pacific
Yuri Weinstein [Mon, 6 Dec 2021 20:42:41 +0000 (12:42 -0800)]
Merge pull request #44164 from cfsnyder/wip-52450-pacific

pacific: rpm, debian: move smartmontools and nvme-cli to ceph-base

Reviewed-by: Yaarit Hatuka <yaarithatuka@gmail.com>
3 years agoMerge pull request #44154 from neha-ojha/wip-perf-pacific
Yuri Weinstein [Mon, 6 Dec 2021 20:41:29 +0000 (12:41 -0800)]
Merge pull request #44154 from neha-ojha/wip-perf-pacific

pacific: qa: miscellaneous perf suite fixes

Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
3 years agodoc: Use older mistune 44226/head
David Galloway [Mon, 6 Dec 2021 15:32:56 +0000 (10:32 -0500)]
doc: Use older mistune

https://github.com/miyakogi/m2r/issues/66

Signed-off-by: David Galloway <dgallowa@redhat.com>
(cherry picked from commit ed2ad24a4ba3ad3f8103926bfea2466b9eb61222)

3 years agopacific: follow up on get_first_*() refactor 44209/head
Guillaume Abrioux [Sat, 4 Dec 2021 06:27:42 +0000 (07:27 +0100)]
pacific: follow up on get_first_*() refactor

The backport for the lvm migrate feature in pacific was merged after the
get_first_*() refactor backport.
So we have still some old references to `get_single_lv()`

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
3 years agoceph-volume: human_readable_size() refactor
Guillaume Abrioux [Tue, 16 Nov 2021 19:32:38 +0000 (20:32 +0100)]
ceph-volume: human_readable_size() refactor

This commit refactors the `human_readable_size()` function.

The current implementation has a couple of issues:

in a 'human readable' mindset, I would expect `human_readable_size(1024)` to
return '1.00 KB' instead of '1024.00 KB'.

```
In [1]: from ceph_volume.util.disk import human_readable_size

In [2]: human_readable_size(1024)
Out[2]: '1024.00 B'

In [3]: human_readable_size(1024*1024)
Out[3]: '1024.00 KB'

```

Also, it doesn't support PB unit:

```
In [4]: human_readable_size(1024*1024*1024*1024*1024)
Out[4]: '1024.00 TB'

In [5]: human_readable_size(1024*1024*1024*1024*1024*1024)
---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
<ipython-input-31-0859861661dc> in <module>
----> 1 human_readable_size(1024*1024*1024*1024*1024*1024)

~/GIT/ceph/src/ceph-volume/ceph_volume/util/disk.py in human_readable_size(size)
    640     return "{size:.2f} {suffix}".format(
    641         size=size,
--> 642         suffix=suffixes[suffix_index])
    643
    644

IndexError: list index out of range
```

This commit fixes this.

Fixes: https://tracker.ceph.com/issues/48492
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 6940856f233f4d365a119eed90ff88fd918f6916)

3 years agorpm, debian: move smartmontools and nvme-cli to ceph-base 44164/head
Yaarit Hatuka [Wed, 25 Aug 2021 02:12:08 +0000 (02:12 +0000)]
rpm, debian: move smartmontools and nvme-cli to ceph-base

We wish to be able to scrape SMART and NVMe metrics from OSD and MON
nodes. For this we require / recommend smartmontools and nvme-cli
dependencies for both the ceph-osd and ceph-mon packages.  However, the
sudoers file (which is required for invoking `smartctl` by user 'ceph')
was installed only in the ceph-osd package.  Since different packages
cannot own the same file, and because we want to be able to scrape from
every daemon, we move the dependencies and the sudoers installation to
ceph-base. For generalization, we rename:
sudoers.d/ceph-osd-smartctl -> sudoers.d/ceph-smartctl

Fixes: https://tracker.ceph.com/issues/50657
Signed-off-by: Yaarit Hatuka <yaarit@redhat.com>
(cherry picked from commit 7ca39fa92b47427af2f1c6000c653bb4dffc47fe)

Conflicts:
ceph.spec.in

Cherry-pick notes:
- Conflict in ceph.spec.in because setuptools not required for OSD in pacific

3 years agoqa/suites/orch/cephadm: mgr-nfs-upgrade: add missing 0-distro dir 44200/head 44201/head
Sebastian Wagner [Fri, 3 Dec 2021 10:56:54 +0000 (11:56 +0100)]
qa/suites/orch/cephadm: mgr-nfs-upgrade: add missing 0-distro dir

move qa/suites/orch/cephadm/mgr-nfs-upgrade/0-*

to qa/suites/orch/cephadm/mgr-nfs-upgrade/0-distro/*

Fixes: https://tracker.ceph.com/issues/53365
Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
3 years agoqa/suites/rados/perf/ceph.yaml: remove rgw 44154/head
Neha Ojha [Mon, 9 Aug 2021 14:35:01 +0000 (14:35 +0000)]
qa/suites/rados/perf/ceph.yaml: remove rgw

This is no longer required because we removed cosbench workloads in
fd350fd0150a2d4072f055658c20314a435a19ba. This is also required to prevent
failures like the following or any other changes that break the rgw task:

```
2021-08-06T20:13:25.812 INFO:teuthology.orchestra.run.smithi060.stderr:curl: (7) Failed to connect to smithi060.front.sepia.ceph.com port 80: Connection refused
2021-08-06T20:15:33.813 ERROR:teuthology.contextutil:Saw exception from nested tasks
Traceback (most recent call last):
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_04c2febe7099917d97a71271f17abb5710030132/teuthology/contextutil.py", line 31, in nested
    vars.append(enter())
  File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/home/teuthworker/src/github.com_ceph_ceph-c_3c0f8c8164075af7aac4d1f2805d3f4580709461/qa/tasks/rgw.py", line 191, in start_rgw
    wait_for_radosgw(url, remote)
  File "/home/teuthworker/src/github.com_ceph_ceph-c_3c0f8c8164075af7aac4d1f2805d3f4580709461/qa/tasks/util/rgw.py", line 94, in wait_for_radosgw
    assert exit_status == 0
AssertionError
```

Signed-off-by: Neha Ojha <nojha@redhat.com>
(cherry picked from commit 119544bb29e253322af33e593ffd09e325c2af8a)

3 years agoqa: remove cosbench workloads from perf suites
Neha Ojha [Fri, 21 May 2021 20:17:11 +0000 (20:17 +0000)]
qa: remove cosbench workloads from perf suites

Due to https://tracker.ceph.com/issues/49139

Signed-off-by: Neha Ojha <nojha@redhat.com>
(cherry picked from commit fd350fd0150a2d4072f055658c20314a435a19ba)

3 years agoqa: use ubuntu_latest for perf suites
Neha Ojha [Fri, 21 May 2021 16:15:37 +0000 (16:15 +0000)]
qa: use ubuntu_latest for perf suites

Signed-off-by: Neha Ojha <nojha@redhat.com>
(cherry picked from commit 5957d1797a4f67b4545c2554dff240463af87359)

3 years agomgr/dashboard: avoid tooltip if disk_usage=null and fast-diff enabled 44149/head
Avan Thakkar [Thu, 25 Nov 2021 19:59:17 +0000 (01:29 +0530)]
mgr/dashboard: avoid tooltip if disk_usage=null and fast-diff enabled

Fixes: https://tracker.ceph.com/issues/53404
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
(cherry picked from commit 071c3b68a131fa9ff3403ccc6ca0e1075d95a048)

3 years agomgr/dashboard: use -f for npm ci to skip fsevents error 44105/head
Duncan Bellamy [Sun, 5 Sep 2021 07:35:48 +0000 (08:35 +0100)]
mgr/dashboard: use -f for npm ci to skip fsevents error
Fixes: https://tracker.ceph.com/issues/52507
Signed-off-by: Duncan Bellamy <dunk@denkimushi.com>
(cherry picked from commit cd2b26f653ddedf0ed1b937cfaf8bcf7aaf48ce6)

   Conflicts:
src/pybind/mgr/dashboard/CMakeLists.txt
   - In master this file was moved to frontend folder. Since its not
     done in pacific, just made the changes here.

3 years agovstart,init-ceph: include build bin/ in $PATH 44086/head
Sage Weil [Fri, 5 Mar 2021 15:54:37 +0000 (10:54 -0500)]
vstart,init-ceph: include build bin/ in $PATH

This allows mgr/cephadm to run radosgw-admin.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 1ad8811d1b37ca5d46fd7ae807974e72c12d83a4)

 Conflicts:
src/init-ceph.in
    - Resolve conflicts.

3 years agomgr/dashboard: upgrade Cypress to the latest stable version
Alfonso Martínez [Wed, 24 Nov 2021 14:36:50 +0000 (15:36 +0100)]
mgr/dashboard: upgrade Cypress to the latest stable version

- Remove unneeded dependency that was causing UI performance issues: zone.js
- Ignore 'ResizeObserver loop limit exceeded' error.
- run-frontend-e2e-tests.sh refactoring: create rgw dashboard user through
  'ceph dashboard set-rgw-credentials' and use it on rgw buckets' tests.

Fixes: https://tracker.ceph.com/issues/53357
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
(cherry picked from commit 3e4e29590aa1742fc3b44d21389325a13cca8199)

Conflicts:
        src/pybind/mgr/dashboard/frontend/package-lock.json
        - Regenerate file to align to pacific.
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
3 years agoMerge pull request #44047 from rhcs-dashboard/wip-53343-pacific
Ernesto Puerta [Wed, 24 Nov 2021 12:56:37 +0000 (13:56 +0100)]
Merge pull request #44047 from rhcs-dashboard/wip-53343-pacific

pacific: mgr/dashboard: rgw daemon list: add realm column

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
3 years agoMerge pull request #44077 from rhcs-dashboard/wip-53377-pacific
Ernesto Puerta [Wed, 24 Nov 2021 12:38:23 +0000 (13:38 +0100)]
Merge pull request #44077 from rhcs-dashboard/wip-53377-pacific

pacific: mgr/dashboard: Predefine labels in create host form

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
3 years agoMerge pull request #44051 from rhcs-dashboard/wip-53364-pacific
Ernesto Puerta [Wed, 24 Nov 2021 12:13:49 +0000 (13:13 +0100)]
Merge pull request #44051 from rhcs-dashboard/wip-53364-pacific

pacific: mgr/dashboard: provisioned values is misleading in RBD image table

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
3 years agomgr/dashboard: dashboard does not show degraded objects if they are less than 0.5... 44091/head
Aashish Sharma [Fri, 12 Nov 2021 10:05:38 +0000 (15:35 +0530)]
mgr/dashboard: dashboard does not show degraded objects if they are less than 0.5% under "Dashboard->Capacity->Objects block

This PR is intended to fix this issue

Fixes: https://tracker.ceph.com/issues/53242
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit 4def9d89c51ec2715066d119330a0f692fcf2f88)

3 years agoMerge pull request #43811 from liewegas/pr-53134-pacific
Yuri Weinstein [Wed, 24 Nov 2021 01:10:18 +0000 (17:10 -0800)]
Merge pull request #43811 from liewegas/pr-53134-pacific

pacific: backport mgr/nfs bits

Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agomgr/dashboard: Predfine labels in create host form 44077/head
Nizamudeen A [Thu, 18 Nov 2021 11:09:30 +0000 (16:39 +0530)]
mgr/dashboard: Predfine labels in create host form

Also retains the previously created labels by user in the form

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

3 years agoMerge pull request #43931 from rhcs-dashboard/wip-52528-pacific
Ernesto Puerta [Tue, 23 Nov 2021 18:37:30 +0000 (19:37 +0100)]
Merge pull request #43931 from rhcs-dashboard/wip-52528-pacific

pacific: mgr/prometheus: offer ability to disable cache

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: p-se <NOT@FOUND>
3 years agoMerge pull request #44057 from rhcs-dashboard/wip-53363-pacific
Ernesto Puerta [Tue, 23 Nov 2021 18:36:07 +0000 (19:36 +0100)]
Merge pull request #44057 from rhcs-dashboard/wip-53363-pacific

pacific: mgr/dashboard: Daemon Events listing using bootstrap class

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agoMerge pull request #43960 from guits/wip-53284-pacific
Guillaume Abrioux [Tue, 23 Nov 2021 16:43:39 +0000 (17:43 +0100)]
Merge pull request #43960 from guits/wip-53284-pacific

pacific: ceph-volume: `get_first_lv()` refactor

3 years agoMerge pull request #44056 from rhcs-dashboard/wip-53366-pacific
Ernesto Puerta [Tue, 23 Nov 2021 15:25:14 +0000 (16:25 +0100)]
Merge pull request #44056 from rhcs-dashboard/wip-53366-pacific

pacific: mgr/dashboard: fix flaky inventory e2e test

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
3 years agoMerge pull request #44053 from rhcs-dashboard/wip-53297-pacific
Ernesto Puerta [Tue, 23 Nov 2021 15:20:49 +0000 (16:20 +0100)]
Merge pull request #44053 from rhcs-dashboard/wip-53297-pacific

pacific: mgr/dashboard: Device health status is not getting listed under hosts section

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
3 years agomgr/dashboard: Daemon Events listing using bootstrap class 44057/head
Nizamudeen A [Tue, 16 Nov 2021 14:43:09 +0000 (20:13 +0530)]
mgr/dashboard: Daemon Events listing using bootstrap class

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

3 years agomgr/dashboard: fix flaky inventory e2e test 44056/head
Nizamudeen A [Thu, 18 Nov 2021 07:13:39 +0000 (12:43 +0530)]
mgr/dashboard: fix flaky inventory e2e test

When `inventory.getTableCount('total').should('be.eq', totalDiskCount);`
this line is executed the table was not loaded properly and hence the
getTableCount returns 0 on the first try but on second try it passes
since the table is loaded. But in orch e2es the retries are set to 0. I
am not sure if it makes sense to set it to 1. Anyway I am adapting the
test a bit to expect the count to be equal to totalDiskCount so that the
test will wait a bit.

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

3 years agomgr/dashboard: Device health status is not getting listed under hosts section 44053/head
Aashish Sharma [Wed, 10 Nov 2021 08:27:47 +0000 (13:57 +0530)]
mgr/dashboard: Device health status is not getting listed under hosts section

Device health is shown as failed to retrieve data under Hosts > Device Health section. This PR intends to fix this issue.

Fixes: https://tracker.ceph.com/issues/53209
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit 8b868d20c470289c2f23049ac5dbbd2ba0307385)

3 years agoMerge pull request #43972 from gregsfortytwo/wip-53259-pacific
Gregory Farnum [Mon, 22 Nov 2021 20:47:48 +0000 (15:47 -0500)]
Merge pull request #43972 from gregsfortytwo/wip-53259-pacific

pacific: mon: MonMap: display disallowed_leaders whenever they're set

Reviewed-by: Laura Flores <lflores@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #43971 from gregsfortytwo/wip-53239-pacific
Gregory Farnum [Mon, 22 Nov 2021 20:47:29 +0000 (15:47 -0500)]
Merge pull request #43971 from gregsfortytwo/wip-53239-pacific

pacific: mon: MonMap: do not increase mon_info_t's compatv in stretch mode, really

Reviewed-by: Laura Flores <lflores@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agomgr/dashboard: provisioned values is misleading in RBD image table 44051/head
Avan Thakkar [Tue, 9 Nov 2021 21:37:33 +0000 (03:07 +0530)]
mgr/dashboard: provisioned values is misleading in RBD image table

Fixes: https://tracker.ceph.com/issues/46617
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
Adding hint in image table similar to the one in rbd-details.

(cherry picked from commit 4ee2f2a9b79e246dfa56ad371b0718f0171eee3e)

3 years agoMerge pull request #44032 from kamoltat/wip-ksirivad-backport-43999
Yuri Weinstein [Mon, 22 Nov 2021 20:10:05 +0000 (12:10 -0800)]
Merge pull request #44032 from kamoltat/wip-ksirivad-backport-43999

pacific: pybind/mgr/pg_autoscale: revert to default profile scale-up

Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agoMerge PR #43925 into pacific
Patrick Donnelly [Mon, 22 Nov 2021 17:36:15 +0000 (12:36 -0500)]
Merge PR #43925 into pacific

* refs/pull/43925/head:
doc: document subvolume (group) pins

Reviewed-by: Yuri Weinstein <yweins@redhat.com>
3 years agomgr/dashboard: rgw daemon list: add realm column 44047/head
Alfonso Martínez [Wed, 17 Nov 2021 08:29:38 +0000 (09:29 +0100)]
mgr/dashboard: rgw daemon list: add realm column

- Some refactoring and cleanup.

Fixes: https://tracker.ceph.com/issues/53301
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
(cherry picked from commit 8319165e9da19f885ab0cec7a578796bf831e2f8)

3 years agomgr/dashboard: NFS non-existent files cleanup 44046/head
Alfonso Martínez [Wed, 17 Nov 2021 12:18:26 +0000 (13:18 +0100)]
mgr/dashboard: NFS non-existent files cleanup

After https://github.com/ceph/ceph/pull/42526 and https://github.com/ceph/ceph/pull/43725 merges,
the following files do not exist but there were still references to them:
- src/pybind/mgr/dashboard/services/ganesha.py
- qa/tasks/mgr/dashboard/test_ganesha.py

The following files were renamed but there were still references to old names:
- src/pybind/mgr/dashboard/controllers/nfsganesha.py:  nfsganesha.py --> nfs.py
- src/pybind/mgr/dashboard/tests/test_ganesha.py:  test_ganesha.py --> test_nfs.py

Other changes in qa/suites/rados/dashboard/tasks/dashboard.yaml:
- Add missing task: tasks.mgr.dashboard.test_api
- Sort dashboard tasks alphabetically.

Fixes: https://tracker.ceph.com/issues/53123
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
(cherry picked from commit 045d2d0f7656e8524bbb32b5d9c230ca1f9b8d1c)

3 years agoMerge pull request #43784 from lxbsz/wip-531121
Yuri Weinstein [Mon, 22 Nov 2021 14:58:40 +0000 (06:58 -0800)]
Merge pull request #43784 from lxbsz/wip-531121

Pacific: mds: add read/write io size metrics support

Reviewed-by: Venky Shankar vshankar@redhat.com
3 years agoMerge pull request #43315 from idryomov/wip-rbd-mirror-snapshot-rx-only-pacific
Yuri Weinstein [Sat, 20 Nov 2021 20:24:19 +0000 (12:24 -0800)]
Merge pull request #43315 from idryomov/wip-rbd-mirror-snapshot-rx-only-pacific

pacific: rbd-mirror: unbreak one-way snapshot-based mirroring

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
3 years agoMerge pull request #44034 from batrick/i53347
Yuri Weinstein [Sat, 20 Nov 2021 16:05:37 +0000 (08:05 -0800)]
Merge pull request #44034 from batrick/i53347

pacific: qa: disable metrics on kernel client during upgrade

Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoqa: disable metrics on kernel client during upgrade 44034/head
Patrick Donnelly [Tue, 16 Nov 2021 20:04:59 +0000 (15:04 -0500)]
qa: disable metrics on kernel client during upgrade

v16.2.4 MDS triggers an assert from these messages.

Also: add latest pacific for extra coverage.

Fixes: https://tracker.ceph.com/issues/53293
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit dcda5cb9ce52a1d194a461d332f6ce497ef19586)

Backport note: dropped pacific.yaml which would result in no upgrade.

3 years agoPendingReleaseNotes: update release notes 44032/head
Kamoltat [Fri, 19 Nov 2021 23:10:30 +0000 (23:10 +0000)]
PendingReleaseNotes: update release notes

Update the pending release notes explaining
why we are making the autoscaler profile
`scale-up` by default.

Signed-off-by: Kamoltat <ksirivad@redhat.com>
3 years agoMerge pull request #43922 from aclamk/wip-aclamk-fix-omap-upgrade-fix-pac
Yuri Weinstein [Fri, 19 Nov 2021 23:36:00 +0000 (15:36 -0800)]
Merge pull request #43922 from aclamk/wip-aclamk-fix-omap-upgrade-fix-pac

Pacific: BlueStore: Omap upgrade to per-pg fix fix

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
3 years agopybind/mgr/pg_autoscale: revert to default profile scale-up
Kamoltat [Wed, 17 Nov 2021 20:34:48 +0000 (20:34 +0000)]
pybind/mgr/pg_autoscale: revert to default profile scale-up

pg_autoscale module will now start out all the pools
with a scale-up profile by default.

Added tests in workunits/mon/pg_autoscaler.sh
to evaluate if the default pool creation is
a scale-up profile

Updated documentation and release notes to
reflect the change in the default behavior
of the pg_autoscale profile.

Fixes: https://tracker.ceph.com/issues/53309
Signed-off-by: Kamoltat <ksirivad@redhat.com>
(cherry picked from commit a9f9f7b3fd813d429c4a539edf560d3fb6eb553b)

Conflicts:
src/pybind/mgr/pg_autoscaler/module.py - trivial fix

3 years agoos/bluestore: Fix omap upgrade to per-pg scheme 43922/head
Adam Kupczyk [Sat, 13 Nov 2021 10:28:18 +0000 (11:28 +0100)]
os/bluestore: Fix omap upgrade to per-pg scheme

This is fix to regression introduced by fix to omap upgrade: https://github.com/ceph/ceph/pull/43687
The problem was that we always skipped first omap entry.
This worked fine with objects having omap header key.
For objects without header key we skipped first actual omap key.

Fixes: https://tracker.ceph.com/issues/53307
Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
(cherry picked from commit 65a3f374aa1c57c5bb9401e57dab98a643b4360a)