]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
3 years agoblk/spdk: Add the support to use nvme device provided by NVMe-of Target 45947/head
Ziye Yang [Sun, 17 Apr 2022 23:40:24 +0000 (07:40 +0800)]
blk/spdk: Add the support to use nvme device provided by NVMe-of Target

This patch is used to add the support to use the nvmedevice provided
by NVMe-oF target.

Signed-off-by: Ziye Yang <ziye.yang@intel.com>
3 years agoMerge pull request #46226 from ronen-fr/wip-rf-cln-typesh
Ronen Friedman [Sun, 15 May 2022 06:31:51 +0000 (09:31 +0300)]
Merge pull request #46226 from ronen-fr/wip-rf-cln-typesh

osd: cleanup object_stat_sum_t initialization

Reviewed-by: Matan Breizman <mbreizma@redhat.com>
3 years agoMerge pull request #45886 from lxbsz/wip-55283
Venky Shankar [Sat, 14 May 2022 09:44:51 +0000 (15:14 +0530)]
Merge pull request #45886 from lxbsz/wip-55283

qa: add filesystem/file sync stuck test support

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #45955 from lxbsz/wip-55240
Venky Shankar [Sat, 14 May 2022 09:43:17 +0000 (15:13 +0530)]
Merge pull request #45955 from lxbsz/wip-55240

mds: trigger to flush the mdlog in handle_find_ino()

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #46063 from vshankar/wip-55170
Venky Shankar [Sat, 14 May 2022 09:42:13 +0000 (15:12 +0530)]
Merge pull request #46063 from vshankar/wip-55170

mds: fetch all dirfrag entries when no dentry keys are requested

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #46153 from lxbsz/wip-54411-1
Venky Shankar [Sat, 14 May 2022 09:41:17 +0000 (15:11 +0530)]
Merge pull request #46153 from lxbsz/wip-54411-1

client: force send global open_files/metadata metrics

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #46258 from xxhdx1985126/wip-backref-minor-bug-fixes
Samuel Just [Fri, 13 May 2022 19:25:44 +0000 (12:25 -0700)]
Merge pull request #46258 from xxhdx1985126/wip-backref-minor-bug-fixes

crimson/os/seastore/cache: backref buffer minor bug fix

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #46154 from zdover23/wip-doc-2022-04-14-dev-guide-basic-workflow
zdover23 [Fri, 13 May 2022 15:40:19 +0000 (01:40 +1000)]
Merge pull request #46154 from zdover23/wip-doc-2022-04-14-dev-guide-basic-workflow

doc/dev: update basic-workflow.rst

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
3 years agoMerge pull request #45581 from MrFreezeex/jsonnet-multiline-cleanup
Ernesto Puerta [Fri, 13 May 2022 14:21:30 +0000 (16:21 +0200)]
Merge pull request #45581 from MrFreezeex/jsonnet-multiline-cleanup

ceph-mixin: rewrite promql queries to multiline

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
3 years agoMerge pull request #46142 from tchaikov/wip-cmake-fuse
Kefu Chai [Fri, 13 May 2022 12:58:14 +0000 (20:58 +0800)]
Merge pull request #46142 from tchaikov/wip-cmake-fuse

cmake: mark FUSE REQUIRED if WITH_FUSE

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #46237 from vshankar/wip-add-multids-stray-check-for-upgrade
Venky Shankar [Fri, 13 May 2022 12:40:16 +0000 (18:10 +0530)]
Merge pull request #46237 from vshankar/wip-add-multids-stray-check-for-upgrade

doc: add note about checking pending stray directory entries before initiating upgrade

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agocrimson/os/seastore/cache: backref buffer minor bug fix 46258/head
Xuehan Xu [Fri, 13 May 2022 09:35:11 +0000 (17:35 +0800)]
crimson/os/seastore/cache: backref buffer minor bug fix

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
3 years agodoc: add note about checking pending stray directory entries before initiating upgrade 46237/head
Venky Shankar [Thu, 12 May 2022 06:52:06 +0000 (12:22 +0530)]
doc: add note about checking pending stray directory entries before initiating upgrade

Signed-off-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #46236 from vshankar/wip-manual-upgrade-add-check
Venky Shankar [Fri, 13 May 2022 10:22:20 +0000 (15:52 +0530)]
Merge pull request #46236 from vshankar/wip-manual-upgrade-add-check

doc: add setting/unsetting `mon_mds_skip_sanity` config for manual ceph-mds upgrade

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #46206 from votdev/issue_55578_prom_am_silence
Ernesto Puerta [Fri, 13 May 2022 09:12:38 +0000 (11:12 +0200)]
Merge pull request #46206 from votdev/issue_55578_prom_am_silence

mgr/dashboard: Creating and editing Prometheus AlertManager silences is buggy

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
3 years agoMerge pull request #46256 from xxhdx1985126/wip-backref-big-buffer
Yingxin [Fri, 13 May 2022 07:50:22 +0000 (15:50 +0800)]
Merge pull request #46256 from xxhdx1985126/wip-backref-big-buffer

crimson/os/seastore: use a whole large backref buffer in cache instea…

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agocrimson/os/seastore: use a whole large backref buffer in cache instead of several... 46256/head
Xuehan Xu [Thu, 10 Mar 2022 02:55:38 +0000 (10:55 +0800)]
crimson/os/seastore: use a whole large backref buffer in cache instead of several small bufs

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
3 years agoMerge pull request #45368 from a16bitsysop/nasm
Kefu Chai [Fri, 13 May 2022 02:58:12 +0000 (10:58 +0800)]
Merge pull request #45368 from a16bitsysop/nasm

nasm-wrapper: ignore -O flags passed

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
3 years agoMerge pull request #46244 from tchaikov/wip-bump-up-seastar
Samuel Just [Thu, 12 May 2022 19:43:55 +0000 (12:43 -0700)]
Merge pull request #46244 from tchaikov/wip-bump-up-seastar

crimson: bump up seastar

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #46227 from rhcs-dashboard/angular-production-fix
Nizamudeen A [Thu, 12 May 2022 15:03:06 +0000 (20:33 +0530)]
Merge pull request #46227 from rhcs-dashboard/angular-production-fix

mgr/dashboard: avoid overriding the configuration in package.json

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agoseastar: bump up seastar submodule to recent master 46244/head
Kefu Chai [Thu, 12 May 2022 13:30:07 +0000 (21:30 +0800)]
seastar: bump up seastar submodule to recent master

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
3 years agocrimson: replace DERIVE metrics with COUNTER metrics
Kefu Chai [Thu, 12 May 2022 13:28:05 +0000 (21:28 +0800)]
crimson: replace DERIVE metrics with COUNTER metrics

in a recent change in Seastar, DERIVE metric was dropped in favor
of COUNTER.

in this change, all DERIVE metrics are replaced with COUNTER metrics.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
3 years agoMerge pull request #46239 from tchaikov/wip-crimson-nbd
Kefu Chai [Thu, 12 May 2022 12:21:55 +0000 (20:21 +0800)]
Merge pull request #46239 from tchaikov/wip-crimson-nbd

crimson/tools/store_nbd: s/get_paddr/get_val/

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Xuehan Xu <xxhdx1985126@gmail.com>
3 years agoMerge pull request #46231 from rhcs-dashboard/update-id-email
Ernesto Puerta [Thu, 12 May 2022 12:08:50 +0000 (14:08 +0200)]
Merge pull request #46231 from rhcs-dashboard/update-id-email

githubmap: Email and Id updated

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
3 years agoMerge pull request #45950 from rishabh-d-dave/qa-cephfs-test_acls
Venky Shankar [Thu, 12 May 2022 09:51:14 +0000 (15:21 +0530)]
Merge pull request #45950 from rishabh-d-dave/qa-cephfs-test_acls

qa/cephfs: minor fixes for xfstests_dev.py and test_acls.py

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #45829 from dparmar18/fix_put
Venky Shankar [Thu, 12 May 2022 09:46:14 +0000 (15:16 +0530)]
Merge pull request #45829 from dparmar18/fix_put

cephfs-shell: fix put and get cmd

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #45834 from ajarr/wip-53996
Venky Shankar [Thu, 12 May 2022 09:44:53 +0000 (15:14 +0530)]
Merge pull request #45834 from ajarr/wip-53996

qa/suites/fs/upgrade: change octopus installations and references

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #46161 from joscollin/wip-B55516-extra-data
Venky Shankar [Thu, 12 May 2022 09:42:57 +0000 (15:12 +0530)]
Merge pull request #46161 from joscollin/wip-B55516-extra-data

qa: fix is_addr_blocklisted() to get blocklisted clients from 'osd dump'

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #46192 from rishabh-d-dave/qa-cephfs-mount-omit_sudo-no-effect
Venky Shankar [Thu, 12 May 2022 09:41:01 +0000 (15:11 +0530)]
Merge pull request #46192 from rishabh-d-dave/qa-cephfs-mount-omit_sudo-no-effect

qa/cephfs: omit_sudo must be passed to underlying method...

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #45185 from a16bitsysop/quincy-32bit
Kefu Chai [Thu, 12 May 2022 09:24:07 +0000 (17:24 +0800)]
Merge pull request #45185 from a16bitsysop/quincy-32bit

src/os/bluestore/BlueStore.cc: Use static_cast<uint64_t> fix for 32bit

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
3 years agocrimson/tools/store_nbd: s/get_paddr/get_val/ 46239/head
Kefu Chai [Thu, 12 May 2022 09:03:55 +0000 (17:03 +0800)]
crimson/tools/store_nbd: s/get_paddr/get_val/

it is a follow-up change of ec89b17f2a1724addee7531c97c616fe399cd1cd
which breaks the build of the nbd tool.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
3 years agosrc/os/bluestore/BlueStore.cc: Use static_cast<uint64_t> to fix 32bit compilation 45185/head
Duncan Bellamy [Sun, 27 Feb 2022 17:31:29 +0000 (17:31 +0000)]
src/os/bluestore/BlueStore.cc: Use static_cast<uint64_t> to fix 32bit compilation

Fixes: https://tracker.ceph.com/issues/54415
Signed-off-by: Duncan Bellamy <dunk@denkimushi.com>
3 years agodoc: add setting/unsetting `mon_mds_skip_sanity` config for manual ceph-mds upgrade 46236/head
Venky Shankar [Thu, 12 May 2022 05:23:26 +0000 (10:53 +0530)]
doc: add setting/unsetting `mon_mds_skip_sanity` config for manual ceph-mds upgrade

Signed-off-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #46136 from athanatos/sjust/wip-crimson-operation-refactor-for...
Samuel Just [Thu, 12 May 2022 02:06:53 +0000 (19:06 -0700)]
Merge pull request #46136 from athanatos/sjust/wip-crimson-operation-refactor-for-review

crimson: refactor osd operation pipeline

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
3 years agoMerge pull request #45390 from xxhdx1985126/wip-backref2
Samuel Just [Wed, 11 May 2022 20:51:13 +0000 (13:51 -0700)]
Merge pull request #45390 from xxhdx1985126/wip-backref2

crimson/os/seastore: add back-reference

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agoMerge pull request #46126 from soumyakoduri/wip-skoduri-dbstore-vstart
Soumya Koduri [Wed, 11 May 2022 18:01:29 +0000 (23:31 +0530)]
Merge pull request #46126 from soumyakoduri/wip-skoduri-dbstore-vstart

rgw/dbstore: Support user creation via `radosgw-admin`

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agogithubmap: Email and Id upadted 46231/head
Sarthak0702 [Wed, 11 May 2022 17:43:40 +0000 (23:13 +0530)]
githubmap: Email and Id upadted

Signed-off-by: Sarthak0702 <sarthak.dev.0702@gmail.com>
3 years agoMerge pull request #45064 from s-t-e-v-e-n-k/no-direct-use-of-nose
Casey Bodley [Wed, 11 May 2022 16:28:48 +0000 (12:28 -0400)]
Merge pull request #45064 from s-t-e-v-e-n-k/no-direct-use-of-nose

test: No direct use of nose

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #45762 from NitzanMordhai/wip-nitzan-test-cls-lock-expiered-locks
Yuri Weinstein [Wed, 11 May 2022 14:34:42 +0000 (07:34 -0700)]
Merge pull request #45762 from NitzanMordhai/wip-nitzan-test-cls-lock-expiered-locks

cls_lock: check expired lock before unlock

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
3 years agoMerge pull request #45529 from NitzanMordhai/wip-nitzan-pglog-dups-not-trimmed
Yuri Weinstein [Wed, 11 May 2022 14:34:12 +0000 (07:34 -0700)]
Merge pull request #45529 from NitzanMordhai/wip-nitzan-pglog-dups-not-trimmed

osd/PGLog.cc: Trim duplicates by number of entries

Reviewed-by: Mykola Golub <mgolub@suse.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
3 years agoMerge pull request #44839 from NitzanMordhai/wip-nitzan-mon-ok-to-stop
Yuri Weinstein [Wed, 11 May 2022 14:32:49 +0000 (07:32 -0700)]
Merge pull request #44839 from NitzanMordhai/wip-nitzan-mon-ok-to-stop

mon/Monitor: Validate monitor ids during 'mon ok-to-stop' cmd

Reviewed-by: Sridhar Seshasayee <sseshasa@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agomgr/dashboard: avoid overriding the configuration in package.json 46227/head
Nizamudeen A [Wed, 11 May 2022 10:47:00 +0000 (16:17 +0530)]
mgr/dashboard: avoid overriding the configuration in package.json

the warning in npm run build is `Option "configuration" was already specified with value "en-US". The
new value "production" will override it.`

This causes the dist for production env to be created in dist/ whereas
it should be dist/en-US (or whatever npm_config_locale. That prevented
from dashboard to load and cause the cephadm e2e checks to fail.

https://jenkins.ceph.com/job/ceph-dashboard-cephadm-e2e-nightly-master/185/consoleFull#57532618373a8703b-5adb-41c5-84a0-8cf4e065ba3d

Related to https://github.com/ceph/ceph/pull/46143

Signed-off-by: Nizamudeen A <nia@redhat.com>
3 years agoqa: testcase test_get_without_target_name fixed 45829/head
dparmar18 [Tue, 26 Apr 2022 19:03:18 +0000 (00:33 +0530)]
qa: testcase test_get_without_target_name fixed

Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
3 years agodoc/man/cephfs-shell.rst: get cmd must accept both path mandatorily
dparmar18 [Wed, 20 Apr 2022 15:24:25 +0000 (20:54 +0530)]
doc/man/cephfs-shell.rst: get cmd must accept both path mandatorily

Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
3 years agocephfs-shell: get cmd must get both path and should validate them
dparmar18 [Fri, 8 Apr 2022 08:58:48 +0000 (14:28 +0530)]
cephfs-shell: get cmd must get both path and should validate them

Description:
- While using `get` command, `local_path` parameter is optional. Changing it
  to mandatory.
  - Rationale: Till now, there used to be a default path of `local_path` as
               `default='.'` but wasn't mentioned anywhere. It led to confusion.
               On top of it, considering get command to be a ssh inspired utlity,
               or any other CLI tool that copies file between filesystems, source
               and destination path are always mandatory. Therefore in order to
               simulate this behavior in cephfs-shell`s command(s), my opinion is
               to make get command accept both the paths.

- Added checks to make sure:
1) File does exist at `remote_path`
2) File with the same name doesn't exist in `local_path`
3) Removed code that would run through the directory and if it finds
   nothing in `root_src_dir`, then it will try to do:
   `os.makedirs(root_dst_dir + b'/' + root_src_dir)`, but it will
   never be empty as 1) takes care of it.

Fixes: https://tracker.ceph.com/issues/55216
Signed-off-by: dparmar18 <dparmar@redhat.com>
3 years agoqa: added testcase to check get cmd doesn't create subdirs on its own
dparmar18 [Tue, 19 Apr 2022 11:28:11 +0000 (16:58 +0530)]
qa: added testcase to check get cmd doesn't create subdirs on its own

Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
3 years agoqa: path in test_get_with_target_name() fixed
dparmar18 [Mon, 18 Apr 2022 12:14:27 +0000 (17:44 +0530)]
qa: path in test_get_with_target_name() fixed

Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
3 years agocephfs-shell: get command should never create a directory on its own
dparmar18 [Wed, 6 Apr 2022 14:41:06 +0000 (20:11 +0530)]
cephfs-shell: get command should never create a directory on its own

Descrption: When using the get command on a single file, it would append the remote path to
            source path and create directories that shouldn't be created. For instance,
            file 'foo.txt' resides at `/dir1/dir2/` and `get` command is used to copy it to
            /tmp/foo then it would do `/tmp/dir1/dir2/foo.txt` which is not the expected
            behavior. Therefore this PR intends to correct this behavior.

Fixes: https://tracker.ceph.com/issues/55112
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
3 years agoqa: removed test_without_target_dir
dparmar18 [Wed, 4 May 2022 11:26:48 +0000 (16:56 +0530)]
qa: removed test_without_target_dir

Rationale: get and put now demand both the paths mandatorily.
           Also testing of get and put without target paths
           have been take of in other tests in class TestGetAndPut().

Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
3 years agodoc/man/cephfs-shell.rst: put cmd must accept both path mandatorily
dparmar18 [Wed, 20 Apr 2022 15:19:34 +0000 (20:49 +0530)]
doc/man/cephfs-shell.rst: put cmd must accept both path mandatorily

Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
3 years agoqa: added tests to make sure put accepts both paths and validate local path
dparmar18 [Wed, 20 Apr 2022 06:53:55 +0000 (12:23 +0530)]
qa: added tests to make sure put accepts both paths and validate local path

Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
3 years agocephfs-shell: put cmd must accept both paths and validate local_path
dparmar18 [Fri, 8 Apr 2022 14:25:24 +0000 (19:55 +0530)]
cephfs-shell: put cmd must accept both paths and validate local_path

Description:

- `put` command didn't display any error when file at local_path was not
   found. This PR intends to add that check.
   - Rationale: Till now, there used to be a default path of `remote_path` as
                `default='.'` but wasn't mentioned anywhere. It could lead to confusion.
                On top of it, considering put command to be a ssh inspired utlity,
                or any other CLI tool that copies file between filesystems, source
                and destination path are always mandatory. Therefore in order to
                simulate this behavior in cephfs-shell`s command(s), my opinion is
                to make put command accept both the paths.

Fixes: https://tracker.ceph.com/issues/55242
Signed-off-by: dparmar18 <dparmar@redhat.com>
3 years agoosd: cleanup object_stat_sum_t initialization 46226/head
Ronen Friedman [Wed, 11 May 2022 09:50:52 +0000 (09:50 +0000)]
osd: cleanup object_stat_sum_t initialization

Fix the confusing combination of default-member-initializers
for some members and direct initialization of others in
the ctor.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
3 years agoMerge pull request #46164 from rishabh-d-dave/vstart-minor-fixes
Venky Shankar [Wed, 11 May 2022 05:56:09 +0000 (11:26 +0530)]
Merge pull request #46164 from rishabh-d-dave/vstart-minor-fixes

qa/vstart_runner: minor bug fix and minor adjustments

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #46217 from Matan-B/wip-matanb-c-shard_services
Samuel Just [Wed, 11 May 2022 04:50:27 +0000 (21:50 -0700)]
Merge pull request #46217 from Matan-B/wip-matanb-c-shard_services

crimson/osd: Moving shard_services to PGBackend

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #46208 from rzarzynski/wip-crimson-main-using-cleanups
Kefu Chai [Wed, 11 May 2022 02:41:06 +0000 (10:41 +0800)]
Merge pull request #46208 from rzarzynski/wip-crimson-main-using-cleanups

crimson/osd: drop "using ..." from main.cc

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <tchaikov@gmail.com>
3 years agoMerge pull request #46110 from dparmar18/fix_onecmd
Venky Shankar [Tue, 10 May 2022 17:28:41 +0000 (22:58 +0530)]
Merge pull request #46110 from dparmar18/fix_onecmd

cephfs-shell: make onecmd() print proper error msg

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #46047 from dparmar18/qa_testcephfs_shell_pep8_fixes
Venky Shankar [Tue, 10 May 2022 17:27:16 +0000 (22:57 +0530)]
Merge pull request #46047 from dparmar18/qa_testcephfs_shell_pep8_fixes

qa/cephfs/test_cephfs_shell: Fixed pep8 formatting violations

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #45808 from rhcs-dashboard/add-cpu/mem-usage
Ernesto Puerta [Tue, 10 May 2022 16:06:21 +0000 (18:06 +0200)]
Merge pull request #45808 from rhcs-dashboard/add-cpu/mem-usage

mgr/dashboard: introduce memory and cpu usage for daemons

Reviewed-by: Sarthak0702 <NOT@FOUND>
Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: ceph-jenkins <NOT@FOUND>
Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
Reviewed-by: sunilangadi2 <NOT@FOUND>
3 years agoMerge pull request #46190 from rhcs-dashboard/smart-data-fix
Ernesto Puerta [Tue, 10 May 2022 15:55:58 +0000 (17:55 +0200)]
Merge pull request #46190 from rhcs-dashboard/smart-data-fix

mgr/dashboard: fix smart data error

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Paul Cuzner <pcuzner@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agodoc/dev: update basic-workflow.rst 46154/head
Zac Dover [Wed, 13 Apr 2022 14:09:38 +0000 (00:09 +1000)]
doc/dev: update basic-workflow.rst

This PR updates the basic-workflow.rst file
to serve the needs of people in 2022 who were not
present at jump street.

The text has been refined up to the section called
"Integration Tests" (non-inclusive).

Signed-off-by: Zac Dover <zac.dover@gmail.com>
3 years agoMerge pull request #45894 from rishabh-d-dave/stop-sh-check-mdss
Venky Shankar [Tue, 10 May 2022 14:58:01 +0000 (20:28 +0530)]
Merge pull request #45894 from rishabh-d-dave/stop-sh-check-mdss

src/stop.sh: check if ceph-mds daemon(s) exist beforehand

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #46143 from tchaikov/wip-dashboard-angular
Kefu Chai [Tue, 10 May 2022 14:19:16 +0000 (22:19 +0800)]
Merge pull request #46143 from tchaikov/wip-dashboard-angular

cmake: s/--prod/--configuration=production/

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
3 years agocrimson/osd: Moving shard_services to PGBackend 46217/head
Matan Breizman [Tue, 10 May 2022 11:11:48 +0000 (11:11 +0000)]
crimson/osd: Moving shard_services to PGBackend

ec and replicated backends are derived from PGBackend,
shard_services should be a member of the base class.

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
3 years agoMerge pull request #46093 from pdvian/wip-admin-curl
Casey Bodley [Tue, 10 May 2022 12:24:41 +0000 (08:24 -0400)]
Merge pull request #46093 from pdvian/wip-admin-curl

examples: Add rgw script to access admin APIs using curl

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #46196 from rhcs-dashboard/smart-data-scsi
Ernesto Puerta [Tue, 10 May 2022 12:17:12 +0000 (14:17 +0200)]
Merge pull request #46196 from rhcs-dashboard/smart-data-scsi

mgr/dashboard: smart data for devices with scsi protocol

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Laura Flores <lflores@redhat.com>
3 years agoMerge pull request #46201 from rhcs-dashboard/daemon_count_hosts
Ernesto Puerta [Tue, 10 May 2022 11:52:18 +0000 (13:52 +0200)]
Merge pull request #46201 from rhcs-dashboard/daemon_count_hosts

mgr/dashboard: show daemon count instead of services in host page

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
Reviewed-by: sunilangadi2 <NOT@FOUND>
3 years agoMerge pull request #46174 from rhcs-dashboard/physical-disks-selection
Ernesto Puerta [Tue, 10 May 2022 11:51:27 +0000 (13:51 +0200)]
Merge pull request #46174 from rhcs-dashboard/physical-disks-selection

mgr/dashboard: devices with same UID causes multiselection

Reviewed-by: Sarthak0702 <NOT@FOUND>
Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agoMerge pull request #46159 from rhcs-dashboard/disable-external-grafana-snapshots
Ernesto Puerta [Tue, 10 May 2022 11:48:19 +0000 (13:48 +0200)]
Merge pull request #46159 from rhcs-dashboard/disable-external-grafana-snapshots

mgr/cephadm: Disable external snapshots in grafana

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
3 years agorgw/dbstore: Support user creation via `radosgw-admin` 46126/head
Soumya Koduri [Tue, 3 May 2022 14:30:41 +0000 (20:00 +0530)]
rgw/dbstore: Support user creation via `radosgw-admin`

With the changes in https://github.com/ceph/ceph/pull/45987 ,
'radosgw-admin' command can be used to execute few admin operations on other stores.

This fix include changes to support  user creation/remove via `radosgw-admin`
command in dbstore.

Also fixed an issue with updating objv_tracker in op_state.user

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 years agoMerge pull request #46169 from rishabh-d-dave/vr-run-mnt-cmd
Venky Shankar [Tue, 10 May 2022 09:38:01 +0000 (15:08 +0530)]
Merge pull request #46169 from rishabh-d-dave/vr-run-mnt-cmd

qa/vstart_runner: fix bug in LocalFuseMount._run_mount_cmd()

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agomgr/dashboard: smart data for devices with scsi protocol 46196/head
Nizamudeen A [Sun, 8 May 2022 14:27:34 +0000 (19:57 +0530)]
mgr/dashboard: smart data for devices with scsi protocol

In the dashboard, we've been showing smart data for hdd devices with ata
protocol only. Otherwise we show a No Smart Data found error which is
clearly misleading since Smart Data is returned even in the api call.

So this PR is trying to show the smart data for hdd devices
that uses scsi protocol too.

Fixes: https://tracker.ceph.com/issues/55574
Signed-off-by: Nizamudeen A <nia@redhat.com>
3 years agomgr/dashboard: show daemon count instead of services in host page 46201/head
Nizamudeen A [Mon, 9 May 2022 08:43:19 +0000 (14:13 +0530)]
mgr/dashboard: show daemon count instead of services in host page

Fixes: https://tracker.ceph.com/issues/47218
Signed-off-by: Nizamudeen A <nia@redhat.com>
3 years agoqa/vstart_runner: fix args to os.path.join() 46164/head
Rishabh Dave [Thu, 5 May 2022 14:12:55 +0000 (19:42 +0530)]
qa/vstart_runner: fix args to os.path.join()

Result of os.path.join() before "./bin/ceph-mds" and after
"./bin/./ceph-mds".

Before -

2022-05-05 19:36:11,100.100 DEBUG:__main__:> ./bin/./ceph-mds -i a

After -

2022-05-05 19:38:48,179.179 DEBUG:__main__:> ./bin/ceph-mds -i a

Signed-off-by: Rishabh Dave <ridave@redhat.com>
3 years agoqa/vstart_runner: minor bug fix and minor adjustments
Rishabh Dave [Thu, 5 May 2022 13:17:08 +0000 (18:47 +0530)]
qa/vstart_runner: minor bug fix and minor adjustments

The message regarding deletion of helper tools is printed for every
command. This message should be printed only when applicable.

Besides -

* Move XXX comments to _do_run() since it increases visibility of
  these messages.
* Move omission of arguments stuff to new method clear up the clutter.
* And remove shell as a parameter from _perform_checks_and_adjustments
  since it's redundant.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
3 years agoMerge pull request #37667 from rishabh-d-dave/vr-inherit-Remote
Venky Shankar [Tue, 10 May 2022 05:00:22 +0000 (10:30 +0530)]
Merge pull request #37667 from rishabh-d-dave/vr-inherit-Remote

vstart_runner: let LocalRemote inherit Remote

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #46194 from athanatos/sjust/wip-55565
Samuel Just [Tue, 10 May 2022 00:31:54 +0000 (17:31 -0700)]
Merge pull request #46194 from athanatos/sjust/wip-55565

crimson: fix op tracking related bugs

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
3 years agocrimson/common/operation: trim AggregateBlockingEvent::events entries 46194/head
Samuel Just [Sat, 7 May 2022 07:02:58 +0000 (07:02 +0000)]
crimson/common/operation: trim AggregateBlockingEvent::events entries

PglogBasedRecovery and BackfillRecovery reuse the same Operation
until their respective operations are complete.  Each recovery
operation adds an entry to AggregateBlockingEvent::events.  This
way, we only retain entries that are currently blocking.

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #46127 from Matan-B/wip-matanb-cyan-clone
Samuel Just [Mon, 9 May 2022 19:53:30 +0000 (12:53 -0700)]
Merge pull request #46127 from Matan-B/wip-matanb-cyan-clone

crimson/os: Add OP_CLONE to cyanstore

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #46205 from rzarzynski/wip-crimson-cls_rgw-objapi
Samuel Just [Mon, 9 May 2022 19:47:17 +0000 (12:47 -0700)]
Merge pull request #46205 from rzarzynski/wip-crimson-cls_rgw-objapi

crimson/osd, rgw: implement the new Objclass API methods for cls_rgw

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #44418 from AmnonHanuhov/wip-fix_futurized_store
Samuel Just [Mon, 9 May 2022 19:46:25 +0000 (12:46 -0700)]
Merge pull request #44418 from AmnonHanuhov/wip-fix_futurized_store

crimson/os: Don't limit the amount of returned keys per omap get call

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd: drop "using std::string" from main.cc 46208/head
Radosław Zarzyński [Mon, 9 May 2022 16:09:37 +0000 (18:09 +0200)]
crimson/osd: drop "using std::string" from main.cc

Signed-off-by: Radosław Zarzyński <rzarzyns@redhat.com>
3 years agocrimson/osd: drop "using config_t = ..." from main.cc
Radosław Zarzyński [Mon, 9 May 2022 16:06:45 +0000 (18:06 +0200)]
crimson/osd: drop "using config_t = ..." from main.cc

Signed-off-by: Radosław Zarzyński <rzarzyns@redhat.com>
3 years agomgr/dashboard: Creating and editing Prometheus AlertManager silences is buggy 46206/head
Volker Theile [Mon, 9 May 2022 13:31:15 +0000 (15:31 +0200)]
mgr/dashboard: Creating and editing Prometheus AlertManager silences is buggy

When creating a new monitoring silence the form is pre-filled with the wrong alert data. It is always used the alert data from the very first object in the list of the API response but not the specified alert identified by the 'fingerprint' property.

The same problem applies to editing silences. The selected silence is not edited, it's always the first one in the list returned API response but not that with the specified 'id' property.

The main problem of the origin implementation is that the Prometheus Alertmanager API endpoints /api/v1/[alerts/silences] do not support querying. To fix that, filtering is done in the frontend.

Fixes: https://tracker.ceph.com/issues/55578
Signed-off-by: Volker Theile <vtheile@suse.com>
3 years agocrimson/osd, rgw: implement the new Objclass API methods for cls_rgw 46205/head
Radosław Zarzyński [Mon, 9 May 2022 12:43:34 +0000 (14:43 +0200)]
crimson/osd, rgw: implement the new Objclass API methods for cls_rgw

They were introduced by 3877c1e37f2fa4e1574b57f05132288f210835a7.

Signed-off-by: Radosław Zarzyński <rzarzyns@redhat.com>
3 years agoMerge pull request #45732 from mchangir/mgr-snap_schedule-validate-fs-for-all-commands
Venky Shankar [Mon, 9 May 2022 14:00:45 +0000 (19:30 +0530)]
Merge pull request #45732 from mchangir/mgr-snap_schedule-validate-fs-for-all-commands

mgr/snap_schedule: validate fs name argument

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agocephfs-shell: make onecmd() print proper error msg 46110/head
dparmar18 [Mon, 2 May 2022 11:03:30 +0000 (16:33 +0530)]
cephfs-shell: make onecmd() print proper error msg

Rationale: Whenever a python exception occurred in cephfs-shell,
           it would often only be the exception message but doesn't
           say anything about the type of exception. For example if
           `ZeroDivisionError: division by zero` occurred, the onecmd()
           would print `division by zero` but will omit the type of
           exception. In this case it's easy to understand but let's
           say an `KeyError` exception occurred for a key `9999` which
           is not existent in the dictionary, onecmd() would print
           just `9999` in this scenario and it would be very difficult
           to interpret what type of error it is.

Fixes: https://tracker.ceph.com/issues/55536
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
3 years agoMerge branch 'master' into qa_testcephfs_shell_pep8_fixes 46047/head
Dhairya Parmar [Mon, 9 May 2022 10:16:04 +0000 (15:46 +0530)]
Merge branch 'master' into qa_testcephfs_shell_pep8_fixes

3 years agoqa/cephfs/test_cephfs_shell: Fixed pep8 formatting violations
dparmar18 [Wed, 27 Apr 2022 08:31:37 +0000 (14:01 +0530)]
qa/cephfs/test_cephfs_shell: Fixed pep8 formatting violations
NOTE: Although most of the issues are fixed but a few function
      and variable names are unchanged in order to prevent
      ambiguity and preserve their meaning.

      They are:
      - functions: setUp(), test_ls_H_prints_human_readable_file_size(),
      - variables: ls_H_output, ls_H_file_size

Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
3 years agomgr/dashboard: fix smart data error 46190/head
Nizamudeen A [Fri, 6 May 2022 15:19:18 +0000 (20:49 +0530)]
mgr/dashboard: fix smart data error

the error in the log was this

```
"/usr/share/ceph/mgr/dashboard/services/ceph_service.py", line 253, in _get_smart_data_by_device
May 06 07:38:39 occldlr750-1.occl208.lab conmon[2142938]:     svc_type, svc_id = daemon.split('.')
May 06 07:38:39 occldlr750-1.occl208.lab conmon[2142938]: ValueError: too many values to unpack (expected 2)
```

on the cluster, the output of `ceph device ls-by-host` looks like this

```
ceph: root@occldlr750-1 /]# ceph device ls-by-host occldlr750-1.occl208.lab
DEVICE                        DEV   DAEMONS                       EXPECTED FAILURE
DELLBOSS_VD_cbd004c975390010  sda   mon.occldlr750-1.occl208.lab
WDC_WUH721818AL5204_3FGZR3JT  sdda  osd.20
WDC_WUH721818AL5204_3FH4315T  sdbf  osd.94
WDC_WUH721818AL5204_3FHP58TT  sdec  osd.30
WDC_WUH721818AL5204_3FHSK8HT  sdu   osd.78
WDC_WUH721818AL5204_3FHVTS9T  sdfi  osd.47
WDC_WUH721818AL5204_3FHWJE8T  sdv   osd.23
WDC_WUH721818AL5204_3FHXHETT  sdcl  osd.11
WDC_WUH721818AL5204_3FHXKP1T  sdcj  osd.10
```

the first device is mon and its name is mon.occldlr750-1.occl208.lab.

In our dashboard code, when fetching the smart data we have a line like
this

`svc_type, svc_id = daemon.split('.')`

so for the mon the output of `daemon.split('.') will be ['mon', 'occldlr750-1', 'occl208', 'lab']. The svc_id gets split into three because of the split. I am changing that and giving the criteria as splitting only on the first occurence of the dot and the considering everything that comes after the dot as the svc_id of the device.

Fixes: https://tracker.ceph.com/issues/55571
Signed-off-by: Nizamudeen A <nia@redhat.com>
3 years agoMerge pull request #46064 from liu-chunmei/crimson-pool-quota
Liu-Chunmei [Mon, 9 May 2022 02:29:39 +0000 (19:29 -0700)]
Merge pull request #46064 from liu-chunmei/crimson-pool-quota

Crimson pool quota

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agomgr/dashboard: devices with same UID causes multiselection 46174/head
Nizamudeen A [Thu, 5 May 2022 17:43:38 +0000 (23:13 +0530)]
mgr/dashboard: devices with same UID causes multiselection

In the Physical Disks page, the uids for multiple devices are coming in
as same and that causes the selection to go berserk and select multiple
rows with same UID. The uid is generated in the frontend service call
itself. I just added some more parameters to it inorder to make it more
unique.

The second issue is the number of selected number getting multiplied
exponentially. Its because each time the table is updated or refreshed,
we push the row with the number of selected items we had before and that
causes the number of selection to multiply.

Fixes: https://tracker.ceph.com/issues/55523
Signed-off-by: Nizamudeen A <nia@redhat.com>
3 years agocrimson/os: Add OP_CLONE to cyanstore 46127/head
Matan Breizman [Tue, 3 May 2022 14:15:57 +0000 (14:15 +0000)]
crimson/os: Add OP_CLONE to cyanstore

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
3 years agocrimson/osd: check full 46064/head
chunmei-liu [Sat, 7 May 2022 23:42:11 +0000 (16:42 -0700)]
crimson/osd: check full

need check if pool exceeds its quota

Signed-off-by: chunmei-liu <chunmei.liu@intel.com>
3 years agocrimson/errorator: change errorator template to int
chunmei-liu [Wed, 27 Apr 2022 08:52:06 +0000 (01:52 -0700)]
crimson/errorator: change errorator template to int

need define EDQUOT which is not included in std::errc.

Signed-off-by: chunmei-liu <chunmei.liu@intel.com>
3 years agocrimson: mark OSD::get_or_create_pg and wait_for_pg private 46136/head
Samuel Just [Wed, 4 May 2022 23:36:01 +0000 (23:36 +0000)]
crimson: mark OSD::get_or_create_pg and wait_for_pg private

All users now use start_pg_operation.

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson: refactor RepRequest to use start_pg_operation
Samuel Just [Wed, 4 May 2022 23:14:44 +0000 (23:14 +0000)]
crimson: refactor RepRequest to use start_pg_operation

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson: refactor RecoverySubRequest to use start_pg_operation
Samuel Just [Wed, 4 May 2022 23:00:35 +0000 (23:00 +0000)]
crimson: refactor RecoverySubRequest to use start_pg_operation

A side effect of this PR is that RecoverySubRequest will now use the
peering pipeline for ordering.  Not using before was, I think, actually
a bug which could result in pull operations ordering ahead of the
activation message when pulling objects from non-acting osds.

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd/pg_recovery: remove new_started, fix parallel_for_each call
Samuel Just [Sat, 7 May 2022 06:55:31 +0000 (23:55 -0700)]
crimson/osd/pg_recovery: remove new_started, fix parallel_for_each call

Presumably typo from b7e2b11595c6e2cd2c638135ef6f044c40efaa87.

Fixes: https://tracker.ceph.com/issues/55565
Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/common/operation: use std::list for AggregateBlockingEvent::events
Samuel Just [Sat, 7 May 2022 05:42:47 +0000 (22:42 -0700)]
crimson/common/operation: use std::list for AggregateBlockingEvent::events

std::vector's references aren't stable after emplace_back.

Fixes: https://tracker.ceph.com/issues/55565
Signed-off-by: Samuel Just <sjust@redhat.com>