]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
3 years agoMerge pull request #42368 from trociny/wip-51698-octopus
Yuri Weinstein [Tue, 27 Jul 2021 15:16:12 +0000 (08:16 -0700)]
Merge pull request #42368 from trociny/wip-51698-octopus

octopus: rgw: allow to set ssl options and ciphers for beast frontend

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #40383 from singuliere/wip-49745-octopus
Yuri Weinstein [Tue, 27 Jul 2021 15:14:01 +0000 (08:14 -0700)]
Merge pull request #40383 from singuliere/wip-49745-octopus

octopus: rgw: limit rgw_gc_max_objs to RGW_SHARDS_PRIME_1

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #39904 from singuliere/wip-49378-octopus
Yuri Weinstein [Tue, 27 Jul 2021 15:12:01 +0000 (08:12 -0700)]
Merge pull request #39904 from singuliere/wip-49378-octopus

octopus: cmake: build static libs if they are internal ones

Reviewed-by: Kefu Chai <kchai@redhat.com>
3 years agoMerge pull request #42440 from smithfarm/wip-51769-octopus
Yuri Weinstein [Tue, 27 Jul 2021 15:07:29 +0000 (08:07 -0700)]
Merge pull request #42440 from smithfarm/wip-51769-octopus

octopus: rpm: three spec file cleanups

Reviewed-by: Kefu Chai <kchai@redhat.com>
3 years agoMerge pull request #42491 from dsavineau/wip-51850-octopus
Guillaume Abrioux [Mon, 26 Jul 2021 20:03:59 +0000 (22:03 +0200)]
Merge pull request #42491 from dsavineau/wip-51850-octopus

octopus: ceph-volume/tests: update ansible environment variables in tox

3 years agoMerge pull request #41784 from pponnuvel/wip-51139-octopus
Yuri Weinstein [Mon, 26 Jul 2021 19:16:03 +0000 (12:16 -0700)]
Merge pull request #41784 from pponnuvel/wip-51139-octopus

octopus: rgw: Improve error message on email id reuse

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
3 years agoceph-volume/tests: use ansible_facts 42491/head
Dimitri Savineau [Thu, 22 Jul 2021 13:58:03 +0000 (09:58 -0400)]
ceph-volume/tests: use ansible_facts

Since inject_facts_as_vars is set to false in the ansible.cfg file then we
have to update the references to use ansible_facts[<thing>] instead of
ansible_<thing>.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 842fc2b605a2321a031a240c4aa4348c1be24e14)

3 years agoceph-volume/tests: use pytest rerunfailures
Dimitri Savineau [Wed, 21 Jul 2021 21:07:24 +0000 (17:07 -0400)]
ceph-volume/tests: use pytest rerunfailures

We already install the dependency from ceph-ansible requirements.txt and to
avoid false positive (like after rebooting a node) we can retry failing test.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 95056a24e4fbc19307f5b32724bfdb459a42f7ab)

3 years agoceph-volume/tests: set ANSIBLE_CONFIG env var
Dimitri Savineau [Wed, 21 Jul 2021 20:54:57 +0000 (16:54 -0400)]
ceph-volume/tests: set ANSIBLE_CONFIG env var

Without loading the ansible.cfg file from ceph-ansible project, we don't
have the pipelining enabled which can result in significant performance
improvement.
This removes the ANSIBLE_ACTION_PLUGINS, ANSIBLE_RETRY_FILES_ENABLED and
ANSIBLE_SSH_RETRIES environment variables as it is already included in the
ansible.cfg file.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit b758fdd829e3b4d7b790e6d35a02c97f3962d13e)

3 years agoceph-volume/tests: update ansible ssh_args env var
Dimitri Savineau [Wed, 21 Jul 2021 20:44:57 +0000 (16:44 -0400)]
ceph-volume/tests: update ansible ssh_args env var

The ansible ssh_args parameter is usually defined in the ansible.cfg file.
Currently this variable is overrided in tox to manage the vagrant ssh file
but we lost all default values.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 0ad615bab555d9965aec36d025acb28708b07cf0)

3 years agoMerge pull request #42373 from ifed01/wip-ifed-fix-missing-shared-blob
Yuri Weinstein [Fri, 23 Jul 2021 22:02:43 +0000 (15:02 -0700)]
Merge pull request #42373 from ifed01/wip-ifed-fix-missing-shared-blob

octopus: os/bluestore: fix erroneous SharedBlob record removal during repair

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
3 years agoMerge pull request #42239 from trociny/wip-51582-octopus
Yuri Weinstein [Fri, 23 Jul 2021 21:58:31 +0000 (14:58 -0700)]
Merge pull request #42239 from trociny/wip-51582-octopus

octopus: osd: move down peers out from peer_purged

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #42421 from neha-ojha/wip-51662-octopus
Yuri Weinstein [Fri, 23 Jul 2021 18:42:22 +0000 (11:42 -0700)]
Merge pull request #42421 from neha-ojha/wip-51662-octopus

octopus: qa/*/test_envlibrados_for_rocksdb.sh: install libarchive-3.3.3

Reviewed-by: Kefu Chai <kchai@redhat.com>
3 years agoMerge pull request #42420 from neha-ojha/wip-51496-octopus
Yuri Weinstein [Thu, 22 Jul 2021 16:25:09 +0000 (09:25 -0700)]
Merge pull request #42420 from neha-ojha/wip-51496-octopus

octopus: mgr/DaemonServer: skip redundant update of pgp_num_actual

Reviewed-by: Dan van der Ster <daniel.vanderster@cern.ch>
3 years agoMerge pull request #42422 from neha-ojha/wip-51452-octopus
Yuri Weinstein [Wed, 21 Jul 2021 21:32:16 +0000 (14:32 -0700)]
Merge pull request #42422 from neha-ojha/wip-51452-octopus

octopus: qa/suites/rados: add simultaneous scrubs to the thrasher

Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
3 years agoMerge pull request #42257 from k0ste/wip-51456-octopus
Yuri Weinstein [Wed, 21 Jul 2021 21:29:25 +0000 (14:29 -0700)]
Merge pull request #42257 from k0ste/wip-51456-octopus

octopus: osd/osd_type: use f->dump_unsigned() when appropriate

Reviewed-by: Kefu Chai <kchai@redhat.com>
3 years agoMerge pull request #41972 from trociny/wip-51314-octopus
Yuri Weinstein [Wed, 21 Jul 2021 21:27:58 +0000 (14:27 -0700)]
Merge pull request #41972 from trociny/wip-51314-octopus

octopus: osd: fix scrub reschedule bug

Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
3 years agoMerge pull request #41449 from idryomov/wip-monc-rotating-timeout-octopus
Yuri Weinstein [Wed, 21 Jul 2021 21:26:52 +0000 (14:26 -0700)]
Merge pull request #41449 from idryomov/wip-monc-rotating-timeout-octopus

octopus: mon/MonClient: tolerate a rotating key that is slightly out of date

Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
3 years agoMerge pull request #40385 from singuliere/wip-49836-octopus
Yuri Weinstein [Wed, 21 Jul 2021 16:52:44 +0000 (09:52 -0700)]
Merge pull request #40385 from singuliere/wip-49836-octopus

octopus: rgw: qa/tasks/barbican.py: fix year2021 problem

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #40381 from singuliere/wip-48659-octopus
Yuri Weinstein [Wed, 21 Jul 2021 16:50:52 +0000 (09:50 -0700)]
Merge pull request #40381 from singuliere/wip-48659-octopus

octopus: rgw/amqp/kafka: prevent concurrent shutdowns from happening

Reviewed-by: Yuval Lifshitz <yuvalif@yahoo.com>
3 years agorpm: cleanup: drop useless conditional block in %postun base 42440/head
Nathan Cutler [Tue, 29 Sep 2020 13:52:05 +0000 (15:52 +0200)]
rpm: cleanup: drop useless conditional block in %postun base

The "meat" of this conditional was ripped out by
328807f80bb6b5d1aa40631e88d755a194d5d2c2, leaving only an empty shell
behind.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit 3b53003f011cfbe51d3471ab9b6cdb9a24ecd4f7)

3 years agorpm: cleanup: drop %service_del_postun_without_restart
Nathan Cutler [Tue, 29 Sep 2020 13:46:35 +0000 (15:46 +0200)]
rpm: cleanup: drop %service_del_postun_without_restart

SUSE needs %service_del_postun (with or without restart) *only* if there
is a possibility that the RPM containing the unit file will be upgraded
from a version that packaged SysVinit scripts instead of systemd unit
files. (Which is not the case here.)

Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit f69aa5abfb2279919026144aa51e3c72f593e935)

3 years agorpm: cleanup: drop use of DISABLE_RESTART_ON_UPDATE
Franck Bui [Tue, 29 Sep 2020 12:35:51 +0000 (14:35 +0200)]
rpm: cleanup: drop use of DISABLE_RESTART_ON_UPDATE

This SUSE-specific variable is deprecated and use of
%service_del_postun_without_restart macro should be preferred these
days.

Signed-off-by: Franck Bui <fbui@suse.com>
(cherry picked from commit 7d99e786df9654d896c43339c684519de4a9afa2)

4 years agoqa/suites/rados: add simultaneous scrubs (multiple options) to the thrasher 42422/head
Ronen Friedman [Thu, 24 Jun 2021 15:53:50 +0000 (18:53 +0300)]
qa/suites/rados: add simultaneous scrubs (multiple options) to the thrasher

Setting osd-max-scrubs to either 2 or 3.

Triggered by https://tracker.ceph.com/issues/50346

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
(cherry picked from commit d232c4e8d8e4ca0ff428960235b61ea398bbec07)

4 years agoqa/*/test_envlibrados_for_rocksdb.sh: install libarchive-3.3.3 42421/head
Neha Ojha [Mon, 12 Jul 2021 22:25:55 +0000 (22:25 +0000)]
qa/*/test_envlibrados_for_rocksdb.sh: install libarchive-3.3.3

To workaround the libarchive dependency issue seen with centos 8, which
has been causing consistent failures like

```
2021-06-04T04:52:51.147 INFO:tasks.workunit.client.0.smithi071.stdout:Installed:
2021-06-04T04:52:51.148 INFO:tasks.workunit.client.0.smithi071.stdout:  cmake-3.18.2-9.el8.x86_64                 cmake-data-3.18.2-9.el8.noarch
...
2021-06-04T04:52:57.554 INFO:tasks.workunit.client.0.smithi071.stderr:+ cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_TESTS=ON -DWITH_LIBRADOS=ON -DWITH_SNAPPY=ON -DWITH_GFLAGS=OFF -DFAIL_ON_WARNINGS=OFF ..
2021-06-04T04:52:57.579 DEBUG:teuthology.orchestra.run:got remote process result: 127
2021-06-04T04:52:57.580 INFO:tasks.workunit.client.0.smithi071.stderr:cmake: symbol lookup error: cmake: undefined symbol: archive_write_add_filter_zstd
```
More details in https://tracker.ceph.com/issues/51101#note-5

Fixes: https://tracker.ceph.com/issues/51101
Signed-off-by: Neha Ojha <nojha@redhat.com>
(cherry picked from commit 345cb641ed63e5b88f799a0b50bddb4028ed2589)

4 years agomgr/DaemonServer: skip redundant update of pgp_num_actual 42420/head
Dan van der Ster [Tue, 29 Jun 2021 20:36:00 +0000 (22:36 +0200)]
mgr/DaemonServer: skip redundant update of pgp_num_actual

During PG merge the MGR was observed repeatedly sending identical
set pgp_num_actual values, leading to osdmap churn at 2000/hr.

Skip the redundant osd set pgp_num_actual command if the
pgp_num is already our computed next.

Fixes: https://tracker.ceph.com/issues/51433
Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
(cherry picked from commit 3f15749de0d550a124f8c6afbd457f17ef020963)

4 years agoMerge pull request #42241 from rhcs-dashboard/wip-51448-octopus
Ernesto Puerta [Mon, 19 Jul 2021 17:54:48 +0000 (19:54 +0200)]
Merge pull request #42241 from rhcs-dashboard/wip-51448-octopus

octopus: mgr/dashboard: Fix bucket name input allowing space in the value

Reviewed-by: Waad Alkhoury <walkhour@redhat.com>
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
4 years agoMerge pull request #42243 from rhcs-dashboard/wip-51488-octopus
Ernesto Puerta [Mon, 19 Jul 2021 17:54:07 +0000 (19:54 +0200)]
Merge pull request #42243 from rhcs-dashboard/wip-51488-octopus

octopus: mgr/dashboard: run cephadm-backend e2e tests with KCLI

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
4 years agoMerge pull request #41763 from cfsnyder/wip-50714-octopus
Yuri Weinstein [Mon, 19 Jul 2021 16:50:16 +0000 (09:50 -0700)]
Merge pull request #41763 from cfsnyder/wip-50714-octopus

octopus: librbd: global config overrides do not apply to in-use images

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
4 years agoMerge pull request #41836 from trociny/wip-47093-octopus
Yuri Weinstein [Mon, 19 Jul 2021 16:49:18 +0000 (09:49 -0700)]
Merge pull request #41836 from trociny/wip-47093-octopus

octopus: rbd: retrieve global config overrides from the MONs

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
4 years agoMerge pull request #42347 from adamemerson/wip-51674-octopus
Yuri Weinstein [Mon, 19 Jul 2021 15:08:39 +0000 (08:08 -0700)]
Merge pull request #42347 from adamemerson/wip-51674-octopus

rgw: Backport 51674 to Octopus

Reviewed-by: Casey Bodley <cbodley@redhat.com>
4 years agorbd: rename some MapOptions instances to unmap_options 41836/head
Ilya Dryomov [Wed, 26 Aug 2020 12:35:49 +0000 (14:35 +0200)]
rbd: rename some MapOptions instances to unmap_options

It is no longer a global variable, so rename the ones that have to do
with options for unmapping (currently just "force").

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit da4ffd834fb8326ca3c3e096de4024198c8f42f2)

Conflicts:
src/tools/rbd/action/Kernel.cc (backported unmap "udev" option)

4 years agorbd: fix default pool handling for krbd map/unmap
Ilya Dryomov [Wed, 26 Aug 2020 12:12:29 +0000 (14:12 +0200)]
rbd: fix default pool handling for krbd map/unmap

The default pool name does not get passed to the kernel since commit
96f05a7956b3 ("rbd: delay determination of default pool name").  The
kernel ends up interpreting the image name as the pool name (and the
snapshot name as the image name).

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit c06338f33c9c8535562c99b6f2b779fbedbba058)

4 years agorbd: delay parsing of default kernel map options
Jason Dillaman [Tue, 4 Aug 2020 18:51:29 +0000 (14:51 -0400)]
rbd: delay parsing of default kernel map options

It now connects to the cluster to retrieve any global config
overrides before processing the default map options.

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

Conflicts:
src/tools/rbd/action/Kernel.cc
                (backported "ms_mode" and "udev" option, no quesce options)

4 years agomgr/dashboard: run cephadm-backend e2e tests with KCLI 42243/head
Alfonso Martínez [Mon, 19 Jul 2021 07:57:26 +0000 (09:57 +0200)]
mgr/dashboard: run cephadm-backend e2e tests with KCLI

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

Conflicts:
    - Added content in HACKING.rst as dash-devel.rst does not exist in octopus:
    doc/dev/developer_guide/dash-devel.rst
    src/pybind/mgr/dashboard/HACKING.rst
    - Adapted code to octopus branch in the following files due to branch divergence:
    src/pybind/mgr/dashboard/frontend/cypress.json
    src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/configuration.e2e-spec.ts
    src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/hosts.po.ts
    src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/osds.e2e-spec.ts
    src/pybind/mgr/dashboard/frontend/cypress/integration/orchestrator/workflow/01-hosts.e2e-spec.ts
    src/pybind/mgr/dashboard/frontend/cypress/integration/page-helper.po.ts
    src/pybind/mgr/dashboard/frontend/cypress/integration/ui/dashboard.e2e-spec.ts

4 years agolibrbd: refresh full global config when applying metadata 41763/head
Jason Dillaman [Thu, 29 Oct 2020 14:10:56 +0000 (10:10 -0400)]
librbd: refresh full global config when applying metadata

The ConfigProxy contains a point-in-time copy of the global config
that is dynamically updated in CephContext::_conf. Upon an image
refresh, pull the latest version of the global config from the
CephContext and apply it to the config stored within the ImageCtx.

Fixes: https://tracker.ceph.com/issues/48035
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 352dec753ead8b61e19b46d096255e06393b740f)

4 years agoMerge pull request #41663 from idryomov/wip-rbd-trash-purge-octopus
Yuri Weinstein [Fri, 16 Jul 2021 16:15:08 +0000 (09:15 -0700)]
Merge pull request #41663 from idryomov/wip-rbd-trash-purge-octopus

octopus: librbd: don't stop at the first unremovable image when purging

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
4 years agoMerge pull request #41502 from idryomov/wip-50931-octopus
Yuri Weinstein [Fri, 16 Jul 2021 16:14:36 +0000 (09:14 -0700)]
Merge pull request #41502 from idryomov/wip-50931-octopus

octopus: rbd-mirror: fix segfault in snapshot replayer shutdown

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
4 years agoMerge pull request #42180 from ideepika/wip-tracker-51523
Yuri Weinstein [Fri, 16 Jul 2021 14:36:58 +0000 (07:36 -0700)]
Merge pull request #42180 from ideepika/wip-tracker-51523

octopus: qa/config/rados: add dispatch delay testing params

Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #41660 from p-se/octopus-fix-missing-prom-alerts
Yuri Weinstein [Fri, 16 Jul 2021 14:35:45 +0000 (07:35 -0700)]
Merge pull request #41660 from p-se/octopus-fix-missing-prom-alerts

octopus: mgr/cephadm: fix prometheus alerts

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agoos/bluestore: fix erroneous SharedBlob record removal during repair. 42373/head
Igor Fedotov [Fri, 9 Jul 2021 18:13:48 +0000 (21:13 +0300)]
os/bluestore: fix erroneous SharedBlob record removal during repair.

Fixes: https://tracker.ceph.com/issues/51619
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit 7090930d4a2e6f2efdecaff23f9a2f795e7819fb)

4 years agorgw: set default ssl options for beast frontend 42368/head
Mykola Golub [Wed, 16 Jun 2021 15:41:44 +0000 (16:41 +0100)]
rgw: set default ssl options for beast frontend

to 'no_sslv2:no_sslv3:no_tlsv1:no_tlsv1_1'

Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit fb31c87c2d6c02563d2d2a1e63d5b62bea2c6f91)

Conflicts:
PendingReleaseNotes (added to 15.2.14 section)

4 years agorgw: allow to set ssl options and ciphers for beast frontend
Mykola Golub [Thu, 27 May 2021 16:09:48 +0000 (17:09 +0100)]
rgw: allow to set ssl options and ciphers for beast frontend

Two new conf keys are added for "beast" framework:

- ssl_options: a colon separated list of ssl context options,
  documented in boost's ssl::context_base;

- ssl_ciphers: a colon separated list of ciphers, documented
  in openssl's ciphers(1) manual.

Example:

  rgw frontends = beast ...  ssl_options=default_workarounds:no_tlsv1:no_tlsv1_1 ssl_ciphers=HIGH:!aNULL:!MD5

Fixes: https://tracker.ceph.com/issues/50932
Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit 91abede6357d167063c63eade45421d2f17bb0e7)

4 years agorgw: Robust notify invalidates on cache timeout 42347/head
Adam C. Emerson [Wed, 14 Jul 2021 15:02:21 +0000 (11:02 -0400)]
rgw: Robust notify invalidates on cache timeout

This avoids a potential race condition in which updates are delayed.

Fixes: https://tracker.ceph.com/issues/51674
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
(cherry picked from commit 76247990ff38049ee32dd47d31482b9648353673)

Conflicts:
src/rgw/services/svc_notify.cc
 - The original patchset was post-DPP, this branch is pre-DPP
 - Skip the renaming, since this is a backport and that's mostly a
   matter of futureproofing.

Backport: https://tracker.ceph.com/issues/51678
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
4 years agorgw: distribute() takes RGWCacheNotifyInfo
Adam C. Emerson [Wed, 7 Jul 2021 22:47:00 +0000 (18:47 -0400)]
rgw: distribute() takes RGWCacheNotifyInfo

So we don't have to parse the bufferlist back out to find what object
to throw out of the cache.

Fixes: https://tracker.ceph.com/issues/51674
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
(cherry picked from commit 7f952ad80114096322f202ba58279aaa4a002313)

Conflicts:
src/rgw/services/svc_notify.cc
src/rgw/services/svc_notify.h
src/rgw/services/svc_sys_obj_cache.cc
 - The original version is post-DPP, this is pre-DPP

Backport: https://tracker.ceph.com/issues/51678
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
4 years agoMerge pull request #42025 from idryomov/wip-rbd-qemu-iotests-focal-octopus
Yuri Weinstein [Tue, 13 Jul 2021 00:16:31 +0000 (17:16 -0700)]
Merge pull request #42025 from idryomov/wip-rbd-qemu-iotests-focal-octopus

octopus: qa/workunits/rbd: use bionic version of qemu-iotests for focal

Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
4 years agoMerge pull request #41775 from trociny/wip-51142-octopus
Yuri Weinstein [Mon, 12 Jul 2021 16:05:39 +0000 (09:05 -0700)]
Merge pull request #41775 from trociny/wip-51142-octopus

octopus: cls/rgw: look for plain entries in non-ascii plain namespace too

Reviewed-by: Casey Bodley <cbodley@redhat.com>
4 years agoMerge pull request #42161 from batrick/i51494
Yuri Weinstein [Mon, 12 Jul 2021 15:42:30 +0000 (08:42 -0700)]
Merge pull request #42161 from batrick/i51494

octopus: pacific: pybind/ceph_volume_client: stat on empty string

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #41996 from batrick/i51336
Yuri Weinstein [Mon, 12 Jul 2021 15:41:54 +0000 (08:41 -0700)]
Merge pull request #41996 from batrick/i51336

octopus: mds: avoid journaling overhead for setxattr("ceph.dir.subvolume") for no-op case

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #41767 from cfsnyder/wip-50916-octopus
Yuri Weinstein [Mon, 12 Jul 2021 15:41:12 +0000 (08:41 -0700)]
Merge pull request #41767 from cfsnyder/wip-50916-octopus

octopus: mds: fix cpu_profiler asok crash

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #41626 from cfsnyder/wip-50874-octopus
Yuri Weinstein [Mon, 12 Jul 2021 15:40:43 +0000 (08:40 -0700)]
Merge pull request #41626 from cfsnyder/wip-50874-octopus

octopus: mds: place the journaler pointer under the mds_lock

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #41625 from cfsnyder/wip-50635-octopus
Yuri Weinstein [Mon, 12 Jul 2021 15:40:09 +0000 (08:40 -0700)]
Merge pull request #41625 from cfsnyder/wip-50635-octopus

octopus: mds: completed_requests -> num_completed_requests and dump num_completed_flushes

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #40782 from smithfarm/wip-50283-octopus
Yuri Weinstein [Mon, 12 Jul 2021 15:36:32 +0000 (08:36 -0700)]
Merge pull request #40782 from smithfarm/wip-50283-octopus

octopus: mds: reject lookup ino requests for mds dirs

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #41757 from ifed01/wip-ifed-tchaikov-rocksdb-oct
Yuri Weinstein [Mon, 12 Jul 2021 14:51:59 +0000 (07:51 -0700)]
Merge pull request #41757 from ifed01/wip-ifed-tchaikov-rocksdb-oct

octopus: bluestore: use string_view and strip trailing slash for dir listing

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoosd/osd_type: use f->dump_unsigned() when appropriate 42257/head
Kefu Chai [Tue, 25 May 2021 06:23:13 +0000 (14:23 +0800)]
osd/osd_type: use f->dump_unsigned() when appropriate

it is more explicit than `dump_stream()`, as we can not tell if dumped
variable is an integer or not by reading the code. it helps us to figure
out the scheme of the dumped object.

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

4 years agomgr/dashboard: Fix bucket name input allows space in the value 42241/head
Nizamudeen A [Fri, 25 Jun 2021 13:30:42 +0000 (19:00 +0530)]
mgr/dashboard: Fix bucket name input allows space in the value

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

4 years agoosd: move down peers out from peer_purged 42239/head
Mykola Golub [Thu, 1 Jul 2021 15:52:21 +0000 (16:52 +0100)]
osd: move down peers out from peer_purged

f7c5b01e18 tried to fix this, but adding peer_purged.erase() into
the peer_info loop made no effect because in purge_strays() when
inserting an osd to peer_purged we simultaneously remove it from
peer_info.

So it should be a separate loop through peer_purged list.

Fixes: https://tracker.ceph.com/issues/38931
Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit 64dc3c846ab9b1491459799ed249502599878834)

4 years agoMerge pull request #41887 from s0nea/wip-51052-octopus
Alfonso Martínez [Wed, 7 Jul 2021 10:47:02 +0000 (12:47 +0200)]
Merge pull request #41887 from s0nea/wip-51052-octopus

octopus: mgr/dashboard: show partially deleted RBDs

4 years agoMerge pull request #42154 from rhcs-dashboard/wip-51477-octopus
Ernesto Puerta [Tue, 6 Jul 2021 16:14:36 +0000 (18:14 +0200)]
Merge pull request #42154 from rhcs-dashboard/wip-51477-octopus

octopus: mgr/dashboard: fix OSD out count

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: huww98 <NOT@FOUND>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
4 years agoqa/config/rados: add dispatch delay testing params 42180/head
Deepika Upadhyay [Tue, 9 Mar 2021 14:15:12 +0000 (19:45 +0530)]
qa/config/rados: add dispatch delay testing params

these parameters have proven to catch some of the uncaught bugs such as:
https://tracker.ceph.com/issues/48417, adopting them will help in
preventing more such hard to debug bugs.

Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
(cherry picked from commit b2c2a4326c89b45a61b129c09ac7838c27188a0a)

4 years agoMerge pull request #42123 from rhcs-dashboard/bucket-async-validator-octopus
Ernesto Puerta [Fri, 2 Jul 2021 17:32:03 +0000 (19:32 +0200)]
Merge pull request #42123 from rhcs-dashboard/bucket-async-validator-octopus

octopus: mgr/dashboard: RGW buckets async validator performance enhancement and name constraints

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
4 years agoMerge pull request #41649 from rhcs-dashboard/wip-50425-octopus
Ernesto Puerta [Fri, 2 Jul 2021 17:31:28 +0000 (19:31 +0200)]
Merge pull request #41649 from rhcs-dashboard/wip-50425-octopus

octopus: mgr/Dashboard: Remove erroneous elements in hosts-overview Grafana dashboard

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: malcolmholmes <NOT@FOUND>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
4 years agoMerge pull request #42015 from rhcs-dashboard/wip-51179-octopus
Ernesto Puerta [Fri, 2 Jul 2021 17:29:24 +0000 (19:29 +0200)]
Merge pull request #42015 from rhcs-dashboard/wip-51179-octopus

octopus: mgr/dashboard: fix for right sidebar nav icon not clickable

Reviewed-by: Waad Alkhoury <walkhour@redhat.com>
Reviewed-by: aaryanporwal <NOT@FOUND>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
4 years agopybind/ceph_volume_client: use cephfs mkdirs api 42161/head
Patrick Donnelly [Fri, 2 Jul 2021 16:07:34 +0000 (09:07 -0700)]
pybind/ceph_volume_client: use cephfs mkdirs api

This _mkdir_p should never have worked as the first directory it tries
to stat/mkdir is "", the empty string. This causes an assertion in the
client. I'm not sure how this code ever functioned without causing
faults. They look like:

    2021-07-01 02:15:04.449 7f7612b5ab80  3 client.178735 statx enter (relpath  want 2047)

The assertion is caused by a C++ exception:

/usr/include/c++/8/string_view:172: constexpr const _CharT& std::basic_string_view<_CharT, _Traits>::operator[](std::basic_string_view<_CharT, _Traits>::size_type) const [with _CharT = char$_Traits = std::char_traits<char>; std::basic_string_view<_CharT, _Traits>::size_type = long unsigned int]: Assertion '__pos < this->_M_len' failed.
        Aborted (core dumped)

Where relpath is just the path passed to Client::stat.

This commit only applies to Pacific and older because master no longer
has this library.

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

4 years agomgr/dashboard: fix OSD out count 42154/head
胡玮文 [Mon, 21 Jun 2021 13:31:49 +0000 (21:31 +0800)]
mgr/dashboard: fix OSD out count

Think we have 3 OSDs out but up (prepare for re-formatting to change min_alloc_size), and another OSD down but in
(during reboot). The dashboard will display "1 down, 2 out", which is obviously incorrect. It should be "1 down, 3 out"

Fixes: https://tracker.ceph.com/issues/51376
Signed-off-by: 胡玮文 <huww98@outlook.com>
(cherry picked from commit 921b48234777eba1a15c126f964cc47c0932879a)

4 years agoMerge pull request #42142 from rhcs-dashboard/wip-51474-octopus
Ernesto Puerta [Fri, 2 Jul 2021 09:15:22 +0000 (11:15 +0200)]
Merge pull request #42142 from rhcs-dashboard/wip-51474-octopus

octopus: mgr/dashboard: User database migration has been cut out

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
4 years agoMerge pull request #41584 from cfsnyder/wip-50895-octopus
Guillaume Abrioux [Fri, 2 Jul 2021 07:18:38 +0000 (09:18 +0200)]
Merge pull request #41584 from cfsnyder/wip-50895-octopus

octopus: ceph-volume: Consider /dev/root as mounted

4 years agoMerge pull request #41870 from cfsnyder/wip-51190-octopus
Yuri Weinstein [Thu, 1 Jul 2021 17:49:50 +0000 (10:49 -0700)]
Merge pull request #41870 from cfsnyder/wip-51190-octopus

octopus: mgr/telemetry: pass leaderboard flag even w/o ident

Reviewed-by: Sage Weil <sage@redhat.com>
4 years agoMerge pull request #41617 from cfsnyder/wip-50167-octopus
Yuri Weinstein [Thu, 1 Jul 2021 17:47:30 +0000 (10:47 -0700)]
Merge pull request #41617 from cfsnyder/wip-50167-octopus

octopus: mgr: do not load disabled modules

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
4 years agoMerge pull request #40948 from mgfritch/octopus-backport-39730-39822
Yuri Weinstein [Thu, 1 Jul 2021 17:46:42 +0000 (10:46 -0700)]
Merge pull request #40948 from mgfritch/octopus-backport-39730-39822

octopus: cephadm: fix escaping/quoting of stderr-prefix arg for ceph daemons

Reviewed-by: Adam King adking@redhat.com
4 years agomgr/dashboard: User database migration has been cut out 42142/head
Volker Theile [Wed, 30 Jun 2021 12:00:28 +0000 (14:00 +0200)]
mgr/dashboard: User database migration has been cut out

This PR will revert changes done by https://tracker.ceph.com/issues/49645 to auto-migrate user database v1 to v2.

Fixes: https://tracker.ceph.com/issues/51443
Signed-off-by: Volker Theile <vtheile@suse.com>
(cherry picked from commit 82922811612813840a684af993ca7c95a0b48d53)

4 years agomgr/dashboard: Detailed error messages in rgw bucket name validation 42123/head
Nizamudeen A [Sun, 25 Apr 2021 12:41:03 +0000 (18:11 +0530)]
mgr/dashboard: Detailed error messages in rgw bucket name validation

Explain the rgw bucket name constrains for each bucket name validation
errors.

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

4 years agomgr/dashboard: RGW buckets async validator performance enhancement
Nizamudeen A [Sun, 25 Apr 2021 08:47:07 +0000 (14:17 +0530)]
mgr/dashboard: RGW buckets async validator performance enhancement

The rgw bucket creation form has the Name field which have an async
validator. The validator calls all the bucket name and check if the
entered name is unique or not. This happens on every keystroke. So if
100 or more buckets are there, then the async validation can be real
    slow and causes misvalidations in different fields.

I changed the validation logic and did some cleanups to improve the
performance of the async validation.

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

Conflicts:
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-form/rgw-bucket-form.component.ts
  -  Solved some import conflicts. Used the I18N import and removed the
     forkJoin import
src/pybind/mgr/dashboard/frontend/src/app/shared/api/rgw-bucket.service.spec.ts
  -  Dont need ${RgwHelper.DAEMON_QUERY_PARAM}
src/pybind/mgr/dashboard/frontend/src/app/shared/api/rgw-bucket.service.ts
  -  Removed enumerate function

4 years agoMerge pull request #41620 from cfsnyder/wip-50790-octopus
Yuri Weinstein [Wed, 30 Jun 2021 18:53:28 +0000 (11:53 -0700)]
Merge pull request #41620 from cfsnyder/wip-50790-octopus

octopus: osd: clear data digest when write_trunc

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
4 years agoMerge pull request #41568 from ideepika/wip-tracker-48142-octopus
Yuri Weinstein [Tue, 29 Jun 2021 15:09:17 +0000 (08:09 -0700)]
Merge pull request #41568 from ideepika/wip-tracker-48142-octopus

octopus: qa/cephadm/upgrade: use v15.2.9 for cephadm tests

Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
4 years agoMerge pull request #41622 from cfsnyder/wip-50987-octopus
Yuri Weinstein [Mon, 28 Jun 2021 19:29:44 +0000 (12:29 -0700)]
Merge pull request #41622 from cfsnyder/wip-50987-octopus

octopus: crush/crush: ensure alignof(crush_work_bucket) is 1

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
4 years agoMerge pull request #41621 from cfsnyder/wip-50796-octopus
Yuri Weinstein [Mon, 28 Jun 2021 19:28:56 +0000 (12:28 -0700)]
Merge pull request #41621 from cfsnyder/wip-50796-octopus

octopus: mon: load stashed map before mkfs monmap

Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #41613 from cfsnyder/wip-50940-octopus
Yuri Weinstein [Mon, 28 Jun 2021 19:27:24 +0000 (12:27 -0700)]
Merge pull request #41613 from cfsnyder/wip-50940-octopus

octopus: os/bluestore: introduce multithireading sync for bluestore's repairer

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
4 years agoMerge pull request #41612 from cfsnyder/wip-50781-octopus
Yuri Weinstein [Mon, 28 Jun 2021 19:26:19 +0000 (12:26 -0700)]
Merge pull request #41612 from cfsnyder/wip-50781-octopus

octopus: os/bluestore: tolerate zero length for allocators' init_[add/rm]_free()

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
4 years agoMerge pull request #40820 from ivancich/wip-50302-octopus
Yuri Weinstein [Mon, 28 Jun 2021 19:19:51 +0000 (12:19 -0700)]
Merge pull request #40820 from ivancich/wip-50302-octopus

octopus: rgw: radoslist incomplete multipart parts marker

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
4 years agomgr/cephadm:fix alerts sent to wrong URL 41660/head
Paul Cuzner [Wed, 2 Jun 2021 23:34:19 +0000 (11:34 +1200)]
mgr/cephadm:fix alerts sent to wrong URL

The path_prefix in prometheus.yml was specifying an
endpoint prefix, which was invalid. This resulted in 404
errors when trying to send alerts to alertmanager and
blocked alerts being sent on to the ceph-dashboard API
receiver. This fix remves this prefix.

Fixes: https://tracker.ceph.com/issues/51073
Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
(cherry picked from commit 9d408a70c7d01fd7c94f9b814af916396d7cbf1f)

4 years agocephadm: write config files as utf-8
Sage Weil [Tue, 18 May 2021 12:23:36 +0000 (08:23 -0400)]
cephadm: write config files as utf-8

If we don't specify the encoding, python may use something like 'latin-1',
which cannot handle unicode characters.

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

Conflicts:
    src/cephadm/cephadm

4 years agomgr/cephadm: fix issue with missing prometheus alerts
Patrick Seidensal [Tue, 16 Mar 2021 16:01:48 +0000 (17:01 +0100)]
mgr/cephadm: fix issue with missing prometheus alerts

Files passed as configuration to the cephadm binary had not been created
and mapped to the container, if those files weren't included in the
required files section inside cephadm. This prevented optional file
includes in the configuration.

The configuration file for the Prometheus default alerts is not
mandatory and hence wasn't included in the required files section, still it
needs to be added to the container by cephadm.

This change enables optional files to be included in the configuration
for monitoring components, so that those files are created and mapped
within the container.

Note that a `required_files` variable has been removed at one position
in these changes, though it wasn't used to ensure that required files
were included in the configuration at that point anyway. The test which
ensures that all required files are passed is somewhere else.

Fixes: https://tracker.ceph.com/issues/49856
Conflicts:
    src/cephadm/cephadm
    src/cephadm/tests/test_cephadm.py

Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
(cherry picked from commit 38f9846d13ae2c5f12bde3397d2826b1cf43759b)
(cherry picked from commit aacd8d195c1a202a54a7c12b2d0239d5b3e828b3)

4 years agoMerge pull request #41878 from ideepika/wip-51242-octopus
Deepika Upadhyay [Mon, 28 Jun 2021 18:10:35 +0000 (23:40 +0530)]
Merge pull request #41878 from ideepika/wip-51242-octopus

octopus: debian/control: ceph-mgr-modules-core does not Recommend ceph-mgr-rook

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #41922 from ideepika/wip-51269-octopus
Deepika Upadhyay [Mon, 28 Jun 2021 17:49:55 +0000 (23:19 +0530)]
Merge pull request #41922 from ideepika/wip-51269-octopus

octopus: qa/suites/rados/perf: pin to 18.04

4 years agoMerge pull request #41478 from ideepika/wip-remove-bionic
Yuri Weinstein [Mon, 28 Jun 2021 17:40:30 +0000 (10:40 -0700)]
Merge pull request #41478 from ideepika/wip-remove-bionic

octopus: qa/distros: move to latest version on supported distro's

Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
4 years agoqa/tasks/cephadm: include first mgr host when applying mgrs 41478/head
Josh Durgin [Wed, 23 Dec 2020 00:25:48 +0000 (19:25 -0500)]
qa/tasks/cephadm: include first mgr host when applying mgrs

This prevents the first mgr from being shut down due to lack of
appropriate placements.

trivial fix: removed octopus upgrade configs.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
(cherry picked from commit c79fa6d780580f99b62117e54326a4ef4b7adfef)

4 years agoqa/upgrade: replace ubuntu_latest to ubuntu_18.04
Deepika Upadhyay [Wed, 16 Jun 2021 20:42:12 +0000 (02:12 +0530)]
qa/upgrade: replace ubuntu_latest to ubuntu_18.04

since mimic and nautilus does not support focal builds, keep using
ubuntu_18.

octopus only, since master and pacific support focal

Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
4 years agoqa/distros/supported-random-distro$: keep support for bionic
Deepika Upadhyay [Wed, 26 May 2021 14:29:58 +0000 (19:59 +0530)]
qa/distros/supported-random-distro$: keep support for bionic

we still want to keep supporting 18.04 LTS for octopus, don't want to
use it for cephadm, since podman dropped support for bionic.

this is octopus only commit, since it's octopus specific support and we
dropped bionic in master.

Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
4 years agoqa/workunits/rbd: disable qemu-iotest test 055 globally 42025/head
Ilya Dryomov [Sun, 2 May 2021 21:13:29 +0000 (23:13 +0200)]
qa/workunits/rbd: disable qemu-iotest test 055 globally

It doesn't work on Focal and already disabled on CentOS 7 and 8.  More
importantly, it doesn't actually test rbd -- it always tests "file", no
matter which protocol is specified in IMGPROTO.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 602db5e386b4acb4f827866bf3789629aacf8307)

4 years agoqa/workunits/rbd: use bionic version of qemu-iotests for focal
Ilya Dryomov [Sun, 2 May 2021 21:13:29 +0000 (23:13 +0200)]
qa/workunits/rbd: use bionic version of qemu-iotests for focal

Currently Focal ends up with v2.2.0-rc3, which results in "WARNING:
Image format was not specified for ..." for all tests and all tests
fail.

Fixes: https://tracker.ceph.com/issues/50605
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 2de2146c300c9f1b49944ffe13cc249a95bca19a)

4 years agoMerge pull request #41618 from cfsnyder/wip-50990-octopus
Kefu Chai [Fri, 25 Jun 2021 06:47:59 +0000 (14:47 +0800)]
Merge pull request #41618 from cfsnyder/wip-50990-octopus

octopus: mon/OSDMonitor: drop stale failure_info even if can_mark_down()

Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #41619 from cfsnyder/wip-50383-octopus
Kefu Chai [Fri, 25 Jun 2021 06:46:52 +0000 (14:46 +0800)]
Merge pull request #41619 from cfsnyder/wip-50383-octopus

octopus: test: bump DecayCounter.steady acceptable error

Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agomgr/dashboard: fix for right sidebar nav icon not clickable 42015/head
Aaryan Porwal [Wed, 26 May 2021 08:58:15 +0000 (14:28 +0530)]
mgr/dashboard: fix for right sidebar nav icon not clickable

fixed the responsive sidebar not opening on click event, and close sidebar on clicking tasks and notification list item because it'll be over shadowed by the sidebar
Signed-off-by: Aaryan Porwal <aaryanporwal2233@gmail.com>
(cherry picked from commit 4e53a139d96215477d00eb709c1662d8277cba1d)

 Conflicts:
src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation/navigation.component.html
      - Adopt the master branch changes.

4 years agomds: avoid journaling overhead for ceph.dir.subvolume for no-op case 41996/head
Patrick Donnelly [Fri, 18 Jun 2021 16:27:54 +0000 (09:27 -0700)]
mds: avoid journaling overhead for ceph.dir.subvolume for no-op case

In preparation for acquiring the xlock on the directory inode, the MDS
must journal a few events before continuing on with the setvxattr. This
can cause significant delays in the volumes ceph-mgr module which needs
to regularly enable this vxattr from multiple code paths. We could cache
in that module whether the vxattr is set but it's also pretty easy to
adjust the MDS to acquire a rdlock on the directory to check if the
subvolume flag is already set. That is much lighter weight and the lock
is generally readily available.

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

4 years agoMerge pull request #41764 from cfsnyder/wip-51093-octopus
Yuri Weinstein [Wed, 23 Jun 2021 18:17:30 +0000 (11:17 -0700)]
Merge pull request #41764 from cfsnyder/wip-51093-octopus

octopus: mgr/DaemonServer.cc: prevent mgr crashes caused by integer underflow that is triggered by large increases to pg_num/pgp_num

Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
4 years agoMerge pull request #41586 from cfsnyder/wip-50661-octopus
Yuri Weinstein [Wed, 23 Jun 2021 18:10:56 +0000 (11:10 -0700)]
Merge pull request #41586 from cfsnyder/wip-50661-octopus

octopus: ceph: ignore BrokenPipeError when printing help

Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
4 years agoMerge pull request #41658 from neha-ojha/wip-51041-octopus
Yuri Weinstein [Tue, 22 Jun 2021 17:22:34 +0000 (10:22 -0700)]
Merge pull request #41658 from neha-ojha/wip-51041-octopus

octopus:  os/bluestore: fix unexpected ENOSPC in Avl/Hybrid allocators.

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
4 years agoMerge pull request #41623 from cfsnyder/wip-50705-octopus
Yuri Weinstein [Tue, 22 Jun 2021 17:21:45 +0000 (10:21 -0700)]
Merge pull request #41623 from cfsnyder/wip-50705-octopus

octopus: osd/PG.cc: handle removal of pgmeta object

Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #41609 from dvanders/dvanders_40572_octopus
Yuri Weinstein [Tue, 22 Jun 2021 17:20:47 +0000 (10:20 -0700)]
Merge pull request #41609 from dvanders/dvanders_40572_octopus

octopus: osd/PeeringState: fix acting_set_writeable min_size check

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>