]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agoqa/tasks/ceph_objectstore_tool: get rid of cStringIO for py3
Kyr Shatskyy [Fri, 21 Feb 2020 21:46:31 +0000 (22:46 +0100)]
qa/tasks/ceph_objectstore_tool: get rid of cStringIO for py3

Signed-off-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
(cherry picked from commit b502bc17d17c784b83f652b79f04eccfd1048805)

5 years agoqa/tasks/ceph_manager: ensure str for py3 compat
Kyr Shatskyy [Tue, 25 Feb 2020 15:45:00 +0000 (16:45 +0100)]
qa/tasks/ceph_manager: ensure str for py3 compat

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
(cherry picked from commit 4c992baf251d272800e76bb40584f169163f6c1b)

5 years agoqa/tasks/vstart_runner: use io.BytesIO for py3 compat
Kyr Shatskyy [Mon, 2 Mar 2020 14:43:41 +0000 (15:43 +0100)]
qa/tasks/vstart_runner: use io.BytesIO for py3 compat

Use io.BytesIO instead of StringIO for py3 compatibility.

Signed-off-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
(cherry picked from commit 49592af4005808db4ed5301e9072525bd709f44a)

Conflicts:
qa/tasks/vstart_runner.py: trivial resolution

5 years agovstart_runnner: add sh method to LocalRemote
Rishabh Dave [Tue, 7 Jan 2020 10:15:15 +0000 (10:15 +0000)]
vstart_runnner: add sh method to LocalRemote

The method is a wrapper of teuthology.misc.sh

Fixes: https://tracker.ceph.com/issues/43496
Signed-off-by: Rishabh Dave <ridave@gmail.com>
(cherry picked from commit b7d740ede7ff5839fdce32a5bfc78ca935990208)

5 years agoqa/tasks/manypools: get rid of itervalues for py3 compat
Kyr Shatskyy [Sat, 15 Feb 2020 10:07:22 +0000 (11:07 +0100)]
qa/tasks/manypools: get rid of itervalues for py3 compat

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
(cherry picked from commit 5f876961ef584ab07c8f9ef50f10f010a5e7510f)

Conflicts:
qa/tasks/manypools.py: trivial resolution

5 years agoqa/tasks/ceph_deploy: get rid of cStringIO for py3
Kyr Shatskyy [Fri, 21 Feb 2020 18:18:43 +0000 (19:18 +0100)]
qa/tasks/ceph_deploy: get rid of cStringIO for py3

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
(cherry picked from commit 982ba399b34765ca888dafbbf4221bab53e7964a)

5 years agotasks/ceph: get rid of iteritems for python3
Kyr Shatskyy [Tue, 8 Oct 2019 14:41:32 +0000 (16:41 +0200)]
tasks/ceph: get rid of iteritems for python3

For python3 compatibility use items() instead of iteritems().

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
(cherry picked from commit 9b5bd6c7155579d3b903ef0eb0ac8eddfe8f29e1)

5 years agoMerge pull request #35305 from tchaikov/nautilus-qa-rgw-s3a-hadoop
Yuri Weinstein [Mon, 1 Jun 2020 20:48:08 +0000 (13:48 -0700)]
Merge pull request #35305 from tchaikov/nautilus-qa-rgw-s3a-hadoop

nautilus: qa/rgw: s3a-hadoop task defaults to maven-version 3.6.3

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
5 years agoMerge pull request #35181 from smithfarm/wip-45644-nautilus
Yuri Weinstein [Mon, 1 Jun 2020 20:47:14 +0000 (13:47 -0700)]
Merge pull request #35181 from smithfarm/wip-45644-nautilus

nautilus: rgw/notifications: version id was not sent in versioned buckets

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #35162 from tchaikov/nautilus-qa-keystone
Yuri Weinstein [Mon, 1 Jun 2020 20:46:49 +0000 (13:46 -0700)]
Merge pull request #35162 from tchaikov/nautilus-qa-keystone

nautilus: qa/keystone: use bindep to discover keystone's dependencies

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
5 years agoMerge pull request #35319 from neha-ojha/wip-45772-nautilus
Yuri Weinstein [Mon, 1 Jun 2020 19:33:38 +0000 (12:33 -0700)]
Merge pull request #35319 from neha-ojha/wip-45772-nautilus

nautilus: qa/suites/upgrade/nautilus-p2: disable more min pg per osd warnings

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
5 years agoMerge pull request #35248 from rhcs-dashboard/wip-45582-nautilus
Yuri Weinstein [Mon, 1 Jun 2020 19:30:00 +0000 (12:30 -0700)]
Merge pull request #35248 from rhcs-dashboard/wip-45582-nautilus

nautilus: mgr/dashboard/grafana: Add rbd-image details dashboard

5 years agoMerge pull request #35199 from smithfarm/wip-45600-nautilus
Yuri Weinstein [Mon, 1 Jun 2020 19:10:41 +0000 (12:10 -0700)]
Merge pull request #35199 from smithfarm/wip-45600-nautilus

nautilus: mds: don't shallow copy when decoding xattr map

Reviewed-by: Yan, Zheng <zyan@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
5 years agoMerge pull request #35185 from smithfarm/wip-45497-nautilus
Yuri Weinstein [Mon, 1 Jun 2020 19:10:00 +0000 (12:10 -0700)]
Merge pull request #35185 from smithfarm/wip-45497-nautilus

nautilus: cephfs/tools: add accounted_rstat/rstat when building file dentry

Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Yan, Zheng <zyan@redhat.com>
5 years agoMerge pull request #35163 from tchaikov/nautilus-upgrade-from-luminous-fs-disable...
Yuri Weinstein [Mon, 1 Jun 2020 19:09:18 +0000 (12:09 -0700)]
Merge pull request #35163 from tchaikov/nautilus-upgrade-from-luminous-fs-disable-too-few-pgs

nautilus: qa/suites/fs/upgrade: disable mon_pg_warn_min_per_osd

Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
5 years agoMerge pull request #35149 from Vicente-Cheng/wip-45602-nautilus
Yuri Weinstein [Mon, 1 Jun 2020 19:04:54 +0000 (12:04 -0700)]
Merge pull request #35149 from Vicente-Cheng/wip-45602-nautilus

nautilus: mds: Handle blacklisted error in purge queue

Reviewed-by: Ramana Raja <rraja@redhat.com>
5 years agoMerge pull request #35118 from Vicente-Cheng/wip-45478-nautilus
Yuri Weinstein [Mon, 1 Jun 2020 19:04:13 +0000 (12:04 -0700)]
Merge pull request #35118 from Vicente-Cheng/wip-45478-nautilus

nautilus: client: only set MClientCaps::FLAG_SYNC when flushing dirty auth caps

Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
5 years agoMerge pull request #35117 from Vicente-Cheng/wip-45474-nautilus
Yuri Weinstein [Mon, 1 Jun 2020 19:03:23 +0000 (12:03 -0700)]
Merge pull request #35117 from Vicente-Cheng/wip-45474-nautilus

nautilus: bash_completion: Do not auto complete obsolete and hidden cmds

Reviewed-by: Ramana Raja <rraja@redhat.com>
5 years agoqa/suites/upgrade/nautilus-p2p: disable more min pg per osd warnings 35319/head
Neha Ojha [Fri, 29 May 2020 17:13:55 +0000 (17:13 +0000)]
qa/suites/upgrade/nautilus-p2p: disable more min pg per osd warnings

This follows 58eb3edc8478c993c5446475df58d659d3f6d356 and
b75907e7575dbdc5888c198f354cb5f71bf21ab3.

This change is not cherry-picked from master since it already has
1ac34a5ea3d1aca299b02e574b295dd4bf6167f4.

Fixes: https://tracker.ceph.com/issues/45772
Signed-off-by: Neha Ojha <nojha@redhat.com>
5 years agoqa/rgw: s3a-hadoop task defaults to maven-version 3.6.3 35305/head
Casey Bodley [Mon, 13 Jan 2020 19:15:01 +0000 (14:15 -0500)]
qa/rgw: s3a-hadoop task defaults to maven-version 3.6.3

binaries for v3.6.2 are no longer available under
http://www-us.apache.org/dist/maven/maven-3/

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 82351b9874a9bb5e2e07436303be34e9f5db0ae5)

Conflicts:
qa/tasks/s3a_hadoop.py: trivial resolution

5 years agoMerge pull request #35214 from shyukri/wip-43990-nautilus
Yuri Weinstein [Thu, 28 May 2020 20:22:22 +0000 (13:22 -0700)]
Merge pull request #35214 from shyukri/wip-43990-nautilus

nautilus: mgr/insights: fix prune-health-history

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #35213 from shyukri/wip-43464-nautilus
Yuri Weinstein [Thu, 28 May 2020 20:21:55 +0000 (13:21 -0700)]
Merge pull request #35213 from shyukri/wip-43464-nautilus

nautilus: mgr: close restful socket after exec

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #35212 from shyukri/wip-43098-nautilus
Yuri Weinstein [Thu, 28 May 2020 20:07:35 +0000 (13:07 -0700)]
Merge pull request #35212 from shyukri/wip-43098-nautilus

nautilus: mgr/dashboard: Display the aggregated number of request

Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agoMerge pull request #35211 from shyukri/wip-45469-nautilus
Yuri Weinstein [Thu, 28 May 2020 20:06:35 +0000 (13:06 -0700)]
Merge pull request #35211 from shyukri/wip-45469-nautilus

nautilus: monitoring: Fix "10% OSDs down" alert description

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Patrick Seidensal <pnawracay@suse.com>
5 years agoMerge pull request #35174 from smithfarm/wip-45637-nautilus
Yuri Weinstein [Thu, 28 May 2020 20:05:39 +0000 (13:05 -0700)]
Merge pull request #35174 from smithfarm/wip-45637-nautilus

nautilus: mgr/dashboard: install teuthology using pip

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
5 years agomgr/dashboard: Remove additional unneeded steps for the metrics calculation 35248/head
Enno Gotthold [Tue, 28 Apr 2020 11:34:16 +0000 (13:34 +0200)]
mgr/dashboard: Remove additional unneeded steps for the metrics calculation

Signed-off-by: Enno Gotthold <egotthold@suse.de>
(cherry picked from commit dfb1e0020ed8130a2276be1ca94d8e7d7f931273)

5 years agodoc/mgr/prometheus: Change images to rbd-enabled pools
Enno Gotthold [Wed, 18 Mar 2020 12:28:39 +0000 (13:28 +0100)]
doc/mgr/prometheus: Change images to rbd-enabled pools

Signed-off-by: Enno Gotthold <egotthold@suse.de>
(cherry picked from commit db76547c8d829e529dcebccde100fca438d64446)

5 years agomgr/prometheus: Add config value to honor ceph config in prometheus
Enno Gotthold [Wed, 18 Mar 2020 11:50:06 +0000 (12:50 +0100)]
mgr/prometheus: Add config value to honor ceph config in prometheus

Signed-off-by: Enno Gotthold <egotthold@suse.de>
Author: Ernesto Puerta <epuertat@redhat.com>
(cherry picked from commit 6d5f88450e61122016fcf7b6cf9431dc67128d3d)

5 years agoMerge pull request #35183 from smithfarm/wip-45579-nautilus
Yuri Weinstein [Tue, 26 May 2020 18:24:32 +0000 (11:24 -0700)]
Merge pull request #35183 from smithfarm/wip-45579-nautilus

nautilus: pybind/rbd: RBD.create() method's 'old_format' parameter now defaults to False

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
5 years agoMerge pull request #35182 from smithfarm/wip-45577-nautilus
Yuri Weinstein [Tue, 26 May 2020 18:23:49 +0000 (11:23 -0700)]
Merge pull request #35182 from smithfarm/wip-45577-nautilus

nautilus: librbd: copy API should not inherit v1 image format by default

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #35086 from tspmelo/wip-45540-nautilus
Yuri Weinstein [Tue, 26 May 2020 18:22:26 +0000 (11:22 -0700)]
Merge pull request #35086 from tspmelo/wip-45540-nautilus

nautilus: mgr/dashboard: Fix HomeTest setup

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
5 years agoMerge pull request #35137 from shyukri/wip-45208-nautilus
Yuri Weinstein [Tue, 26 May 2020 18:20:48 +0000 (11:20 -0700)]
Merge pull request #35137 from shyukri/wip-45208-nautilus

nautilus: monitoring: alert for pool fill up broken

Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Patrick Seidensal <pnawracay@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agodoc: Add information on how to enable the rbd-images dashboard
Enno G [Fri, 20 Mar 2020 08:19:01 +0000 (09:19 +0100)]
doc: Add information on how to enable the rbd-images dashboard

Fixes: https://tracker.ceph.com/issues/44623
Signed-off-by: Enno Gotthold <egotthold@suse.de>
In the previous commit (1c52ee2b) the added dashboard will stay empty
until it is manually enabled to display information.

(cherry picked from commit 6386095e51a1d58fa0093d37b26df25c524b72bc)

Conflicts:
doc/cephadm/monitoring.rst
        - Delete (file doesn't exist in nautilus)

5 years agomgr/dashboard: Add grafana chart for rbd image details
Enno Gotthold [Wed, 18 Mar 2020 12:30:18 +0000 (13:30 +0100)]
mgr/dashboard: Add grafana chart for rbd image details

Fixes: https://tracker.ceph.com/issues/44623
Signed-off-by: Enno Gotthold <egotthold@suse.de>
This dashboard will per default be empty as the already existing
dashboard with the summary for all rbd images.

(cherry picked from commit 9707cb30cbbfc0f7c669e19fb9d2482ea422993c)

5 years agomgr/insights: make 'insights prune-health-history 0' zap current state 35214/head
Sage Weil [Thu, 30 Jan 2020 17:40:48 +0000 (11:40 -0600)]
mgr/insights: make 'insights prune-health-history 0' zap current state

The self._health_slot value needs to be updated too if the current key
is removed.

Fixes: https://tracker.ceph.com/issues/43886
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 04f25b26c5aea5b4cf5cb94e939d6fba74228b27)

5 years agomgr: close restful socket after exec 35213/head
liushi [Mon, 23 Dec 2019 09:09:29 +0000 (17:09 +0800)]
mgr: close restful socket after exec

Signed-off-by: liushi <liu.shi@navercorp.com>
(cherry picked from commit ec3a696a5d328936b611b2a19fc9ab12ae183b48)

5 years agomgr/dashboard: Display the aggregated number of request 35212/head
Tiago Melo [Mon, 4 Nov 2019 16:18:27 +0000 (15:18 -0100)]
mgr/dashboard: Display the aggregated number of request

convertTimeSeries will now calculate the aggregated total number of client
request made in the last seconds, instead of the number of request per second.

Fixes: https://tracker.ceph.com/issues/42622
Signed-off-by: Tiago Melo <tmelo@suse.com>
(cherry picked from commit 1dc483e8d9699a57ef61ea77d4a54ce93b341b17)

5 years agomonitoring: Fix "10% OSDs down" alert description 35211/head
Benoît Knecht [Thu, 30 Apr 2020 08:50:07 +0000 (10:50 +0200)]
monitoring: Fix "10% OSDs down" alert description

The alert was triggered when less than 90% of OSDs were _up_, but then the
description took that value and described it as the percentage of OSDs being
_down_. So with 12% of OSDs down, the alert description would read:

```
88% or 88 of 100 OSDs are down (>=10%).
```

which can be panic-inducing.

This commit changes the alert expression to actually compute the ratio of OSDs
being down, which makes the correct value appear in the description.

Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
(cherry picked from commit 653c3f66823179fc5b9cbb74ff932d61a6c4178c)

5 years agoMerge pull request #35180 from smithfarm/wip-45642-nautilus
Yuri Weinstein [Fri, 22 May 2020 18:58:48 +0000 (11:58 -0700)]
Merge pull request #35180 from smithfarm/wip-45642-nautilus

nautilus: tests: src/test/compressor: Add missing gtest

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
5 years agoMerge pull request #35047 from smithfarm/wip-44686-nautilus
Yuri Weinstein [Fri, 22 May 2020 18:53:02 +0000 (11:53 -0700)]
Merge pull request #35047 from smithfarm/wip-44686-nautilus

nautilus: qa/standalone/osd/osd-backfill-stats.sh: get_latest_osdmap to propagate map change

Reviewed-by: David Zafman <dzafman@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agoMerge pull request #35049 from smithfarm/wip-45224-nautilus
Yuri Weinstein [Fri, 22 May 2020 18:46:57 +0000 (11:46 -0700)]
Merge pull request #35049 from smithfarm/wip-45224-nautilus

nautilus: ceph_test_rados_api_{watch_notify,misc}: tolerate some timeouts

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
5 years agoMerge pull request #35048 from smithfarm/wip-44689-nautilus
Yuri Weinstein [Fri, 22 May 2020 18:45:50 +0000 (11:45 -0700)]
Merge pull request #35048 from smithfarm/wip-44689-nautilus

nautilus: test: Add flush_pg_stats to avoid race with getting num_shards_repaired

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: David Zafman <dzafman@redhat.com>
5 years agoMerge pull request #35028 from shyukri/wip-44163-nautilus
Yuri Weinstein [Fri, 22 May 2020 18:42:28 +0000 (11:42 -0700)]
Merge pull request #35028 from shyukri/wip-44163-nautilus

nautilus:test/fio: bump to fio 3.15

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
5 years agoMerge pull request #35024 from smithfarm/wip-43919-nautilus
Yuri Weinstein [Fri, 22 May 2020 18:40:25 +0000 (11:40 -0700)]
Merge pull request #35024 from smithfarm/wip-43919-nautilus

nautilus: osd: dispatch_context and queue split finish on early bail-out

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge pull request #34957 from smithfarm/wip-44841-nautilus
Yuri Weinstein [Fri, 22 May 2020 18:39:30 +0000 (11:39 -0700)]
Merge pull request #34957 from smithfarm/wip-44841-nautilus

nautilus: osd/PeeringState: do not trim pg log past last_update_ondisk

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agoMerge pull request #34823 from votdev/wip-45323-nautilus
Yuri Weinstein [Fri, 22 May 2020 18:38:11 +0000 (11:38 -0700)]
Merge pull request #34823 from votdev/wip-45323-nautilus

nautilus: mgr/dashboard: monitoring menu entry should indicate firing alerts

Reviewed-by: Patrick Seidensal <pnawracay@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agoMerge pull request #35050 from smithfarm/wip-43773-nautilus
Yuri Weinstein [Fri, 22 May 2020 15:31:20 +0000 (08:31 -0700)]
Merge pull request #35050 from smithfarm/wip-43773-nautilus

nautilus: qa: log warning on scrub error

Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #35000 from smithfarm/wip-45496-nautilus
Yuri Weinstein [Fri, 22 May 2020 15:30:41 +0000 (08:30 -0700)]
Merge pull request #35000 from smithfarm/wip-45496-nautilus

nautilus: cephfs: Client: fix Finisher assert failure

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
5 years agoMerge pull request #34784 from Vicente-Cheng/wip-45221-nautilus
Yuri Weinstein [Fri, 22 May 2020 15:29:21 +0000 (08:29 -0700)]
Merge pull request #34784 from Vicente-Cheng/wip-45221-nautilus

nautilus: cephfs-journal-tool: correctly parse --dry_run argument

Reviewed-by: Ramana Raja <rraja@redhat.com>
5 years agoMerge pull request #34783 from Vicente-Cheng/wip-45217-nautilus
Yuri Weinstein [Fri, 22 May 2020 15:28:40 +0000 (08:28 -0700)]
Merge pull request #34783 from Vicente-Cheng/wip-45217-nautilus

nautilus: qa/cephfs: update TestClusterFull:test_barrier

Reviewed-by: Ramana Raja <rraja@redhat.com>
5 years agoMerge pull request #34435 from Vicente-Cheng/wip-44483-nautilus
Yuri Weinstein [Fri, 22 May 2020 15:28:12 +0000 (08:28 -0700)]
Merge pull request #34435 from Vicente-Cheng/wip-44483-nautilus

nautilus: mds: handle ceph_assert on blacklisting

Reviewed-by: Ramana Raja <rraja@redhat.com>
5 years agoMerge pull request #34338 from Vicente-Cheng/wip-44478-nautilus
Yuri Weinstein [Fri, 22 May 2020 15:24:44 +0000 (08:24 -0700)]
Merge pull request #34338 from Vicente-Cheng/wip-44478-nautilus

nautilus: mds: Using begin() and empty() to iterate the xlist

Reviewed-by: Yan, Zheng <zyan@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
5 years agomds: don't shallow copy when decoding xattr map 35199/head
Yan, Zheng [Wed, 15 Apr 2020 10:49:36 +0000 (18:49 +0800)]
mds: don't shallow copy when decoding xattr map

Otherwise inodes' xattr maps may reference a large shared buffer
(from omap fetch or journal read). If mds trims and loads inode
repeatly, each inode can reference different large buffer in the
worst case.

Fixes: https://tracker.ceph.com/issues/45090
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit deff94c8f43bb3734b688ccb828d942b8f150638)

Conflicts:
src/mds/CInode.cc
- CInode::decode_lock_ixattr is missing in nautilus
src/mds/mdstypes.h
- nautilus has a code comment that is not in master

5 years agoqa/cephfs: scrub the subdir/ after data scan 35185/head
Xiubo Li [Thu, 9 Apr 2020 08:30:31 +0000 (04:30 -0400)]
qa/cephfs: scrub the subdir/ after data scan

This will make sure the rstat between subdir's inode and dirfrag
are matched.

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

5 years agoqa/cephfs: remove the whole subdir/ after test done
Xiubo Li [Wed, 8 Apr 2020 09:57:33 +0000 (05:57 -0400)]
qa/cephfs: remove the whole subdir/ after test done

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

5 years agotools/cephfs: Disable dirfrag auto merging and splitting
Xiubo Li [Mon, 13 Apr 2020 01:41:38 +0000 (21:41 -0400)]
tools/cephfs: Disable dirfrag auto merging and splitting

Make sure that the dirfrag auto merging and splitting are disabled
explicitly.

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

5 years agotools/cephfs: scan the links to set the proper dnfirst
Xiubo Li [Wed, 8 Apr 2020 09:35:41 +0000 (05:35 -0400)]
tools/cephfs: scan the links to set the proper dnfirst

The ceph code will set the dnfirst=2 as default instead of CEPH_NOSNAP.
And this will avoid the MDS daemon assert crash:

ceph_assert(in->first <= straydn->first)

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

5 years agomds: fix debug log typo
Xiubo Li [Wed, 8 Apr 2020 09:42:05 +0000 (05:42 -0400)]
mds: fix debug log typo

Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 6969d41e3d4cb2b460508cee044161de2a196ebe)

5 years agopybind/rbd: RBD.create() method's 'old_format' parameter now defaults to False 35183/head
Jason Dillaman [Mon, 11 May 2020 23:55:50 +0000 (19:55 -0400)]
pybind/rbd: RBD.create() method's 'old_format' parameter now defaults to False

The RBD v1 format has been deprecated for numerous releases and creation of
v1 format images has been disabled since the Mimic release. This fixes
the Python API's image create() method to ensure v2 images are created by
default (and no longer throw an exception that creation of v1 images are
disabled).

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

5 years agolibrbd: copy API should not inherit v1 image format by default 35182/head
Jason Dillaman [Tue, 12 May 2020 14:16:36 +0000 (10:16 -0400)]
librbd: copy API should not inherit v1 image format by default

When copying from a v1 image, by default the new destination image
would be created using the v1 format. Since the creation of v1 images
is disallowed, this has been updated to default to using the v2
image format.

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

Conflicts:
src/librbd/internal.cc
- in nautilus, the call immediately preceding the change is
  "src->snap_lock.put_read()" whereas in master it is
  "src->image_lock.unlock_shared()"

5 years agorgw/notifications: version id was not sent in versioned buckets 35181/head
Yuval Lifshitz [Fri, 8 May 2020 07:09:32 +0000 (10:09 +0300)]
rgw/notifications: version id was not sent in versioned buckets

Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
Fixes: https://tracker.ceph.com/issues/45440
(cherry picked from commit 973b0b1ed8767767f0c4446d97248c1b8002f1d3)

5 years agosrc/test/compressor: Add missing gtest 35180/head
Willem Jan Withagen [Wed, 4 Mar 2020 21:50:44 +0000 (22:50 +0100)]
src/test/compressor: Add missing gtest

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
(cherry picked from commit a11c72d6d6c72b6801cf58c202ea92f77af14ebf)

5 years agomgr/dashboard: require enum34 only for python_version<'3.4' 35174/head
Nathan Cutler [Thu, 21 May 2020 13:16:48 +0000 (15:16 +0200)]
mgr/dashboard: require enum34 only for python_version<'3.4'

This is a partial backport of 1e07237d92da3bb5eba82b49f6276d17696e6985

Backporting the entire thing would be too intrusive.

Fixes: https://tracker.ceph.com/issues/45636
Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoMerge pull request #35093 from neha-ojha/wip-too-few-pgs-nautilus
Yuri Weinstein [Thu, 21 May 2020 15:44:04 +0000 (08:44 -0700)]
Merge pull request #35093 from neha-ojha/wip-too-few-pgs-nautilus

nautilus: qa/suites/upgrade: disable more min pg per osd warnings

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
5 years agovstart_runner: be python3 compatible
Kefu Chai [Fri, 22 Nov 2019 17:32:02 +0000 (01:32 +0800)]
vstart_runner: be python3 compatible

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

5 years agomgr/dashboard: install teuthology using pip
Kefu Chai [Fri, 22 Nov 2019 17:14:15 +0000 (01:14 +0800)]
mgr/dashboard: install teuthology using pip

* install teuthology using pip
* do not install the dependencies manually, it's error-prone
  to maintain two copies of requirements.txt

Fixes: https://tracker.ceph.com/issues/42969
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 68527ab83a77d20b779759581ce0b8844991231b)

Conflicts:
src/pybind/mgr/dashboard/run-backend-api-tests.sh
7567948ba05a78a5a61010994e43e8a78641970c is not being backported to
  nautilus

5 years agoqa/suites/fs/upgrade: disable mon_pg_warn_min_per_osd 35163/head
Kefu Chai [Thu, 21 May 2020 07:56:39 +0000 (15:56 +0800)]
qa/suites/fs/upgrade: disable mon_pg_warn_min_per_osd

if we upgrade from luminous, then a luminous monitor won't have the
1ac34a5ea3d1aca299b02e574b295dd4bf6167f4 or its backport, but after
upgrading to nautilus, mgr detects this issue and translates it to
a warning like

2020-05-21T05:33:26.934 DEBUG:teuthology.misc:Ceph health: HEALTH_WARN
too few PGs per OSD (12 < min 30)

if the number of pg per osd is too low. so we need to disable this
warning as we did in later releases and in master.

this change is not cherry-picked from master, as we don't do
upgrade test from luminous to master.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/keystone: pip install bindep 35162/head
Casey Bodley [Thu, 5 Sep 2019 18:06:45 +0000 (14:06 -0400)]
qa/keystone: pip install bindep

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 2144fd8cc7f156264aff958c54c5e35d0e65757c)

5 years agoqa/keystone: use bindep to discover keystone's dependencies
Casey Bodley [Thu, 5 Sep 2019 15:09:26 +0000 (11:09 -0400)]
qa/keystone: use bindep to discover keystone's dependencies

downloads the keystone repository first, because we need
keystone/bindep.txt to discover the binary dependencies

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 86930f3e0f7aa7cd8b847bf01a156437e64be0b4)

Conflicts:
qa/tasks/keystone.py: trivial resolution

5 years agoqa/suites/upgrade: disable more min pg per osd warnings 35093/head
Neha Ojha [Fri, 15 May 2020 21:23:31 +0000 (21:23 +0000)]
qa/suites/upgrade: disable more min pg per osd warnings

This follows 58eb3edc8478c993c5446475df58d659d3f6d356.

This change is not cherry-picked from master since it already has
1ac34a5ea3d1aca299b02e574b295dd4bf6167f4.

Signed-off-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #35004 from smithfarm/wip-44490-nautilus
Yuri Weinstein [Wed, 20 May 2020 15:20:41 +0000 (08:20 -0700)]
Merge pull request #35004 from smithfarm/wip-44490-nautilus

nautilus: compressor/lz4: work around bug in liblz4 versions <1.8.2

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #34983 from jecluis/wip-45402-nautilus
Yuri Weinstein [Wed, 20 May 2020 15:20:12 +0000 (08:20 -0700)]
Merge pull request #34983 from jecluis/wip-45402-nautilus

nautilus: mon/OSDMonitor: allow trimming maps even if osds are down

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #34916 from sseshasa/wip-45391-nautilus
Yuri Weinstein [Wed, 20 May 2020 15:19:27 +0000 (08:19 -0700)]
Merge pull request #34916 from sseshasa/wip-45391-nautilus

nautilus: mon/OSDMonitor: Always tune priority cache manager memory on all mons

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #34882 from hillpd/wip-45359-nautilus
Yuri Weinstein [Wed, 20 May 2020 15:18:56 +0000 (08:18 -0700)]
Merge pull request #34882 from hillpd/wip-45359-nautilus

nautilus: rados: prevent ShardedOpWQ suicide_grace drop when waiting for work.

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge pull request #34829 from rhcs-dashboard/wip-45329-nautilus
Yuri Weinstein [Wed, 20 May 2020 15:17:48 +0000 (08:17 -0700)]
Merge pull request #34829 from rhcs-dashboard/wip-45329-nautilus

nautilus: monitoring: fix decimal precision in Grafana %percentages

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agoMerge pull request #34711 from smithfarm/wip-45126-nautilus
Yuri Weinstein [Wed, 20 May 2020 15:16:03 +0000 (08:16 -0700)]
Merge pull request #34711 from smithfarm/wip-45126-nautilus

nautilus: os/bluestore: fix extent leak after main device expand.

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
5 years agoMerge pull request #34692 from votdev/wip-44475-nautilus
Yuri Weinstein [Wed, 20 May 2020 15:15:12 +0000 (08:15 -0700)]
Merge pull request #34692 from votdev/wip-44475-nautilus

nautilus: mgr/dashboard: Not able to restrict bucket creation for new user

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agoFiler: Add error handler in _do_purge_range() 35149/head
Varsha Rao [Thu, 16 Apr 2020 14:58:54 +0000 (20:28 +0530)]
Filer: Add error handler in _do_purge_range()

Signed-off-by: Varsha Rao <varao@redhat.com>
(cherry picked from commit 39b25efb26963180a7e0403174868f5a9940ff55)

5 years agomds: Handle blacklisted error in purge queue
Varsha Rao [Fri, 28 Feb 2020 06:43:31 +0000 (12:13 +0530)]
mds: Handle blacklisted error in purge queue

This patch adds check to catch blacklisted error from filer. On catching this
error, mds will respawn.

Fixes: https://tracker.ceph.com/issues/43598
Signed-off-by: Varsha Rao <varao@redhat.com>
(cherry picked from commit c144d66afa74e8e45a2fc96bb650219d001538bf)

5 years agomonitoring: alert for pool fill up broken 35137/head
Volker Theile [Wed, 8 Apr 2020 13:02:45 +0000 (15:02 +0200)]
monitoring: alert for pool fill up broken

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

5 years agoMerge pull request #34794 from smithfarm/wip-45064-nautilus
Yuri Weinstein [Tue, 19 May 2020 15:32:51 +0000 (08:32 -0700)]
Merge pull request #34794 from smithfarm/wip-45064-nautilus

nautilus: os/bluestore: fix 'unused' calculation

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Igor Fedotov <ifedotov@suse.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #34400 from votdev/wip-44203-nautilus
Yuri Weinstein [Tue, 19 May 2020 15:31:47 +0000 (08:31 -0700)]
Merge pull request #34400 from votdev/wip-44203-nautilus

nautilus: mgr/dashboard: RGW port autodetection does not support "Beast" RGW frontend

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agoclient: only set MClientCaps::FLAG_SYNC when flushing dirty auth caps 35118/head
Jeff Layton [Mon, 6 Apr 2020 16:26:30 +0000 (12:26 -0400)]
client: only set MClientCaps::FLAG_SYNC when flushing dirty auth caps

Sidharth noticed that we were probably doing more FLAG_SYNC cap flushes
than necessary.

This flag is intended for sync/fsync type activity, and in those cases
all we care about is cleaning dirty caps. We have no need to expedite
other types of cap calls (releases, revokes, etc.).

Fixes: https://tracker.ceph.com/issues/44963
Reported-by: Sidharth Anupkrishnan <sanupkri@redhat.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit 63e4ee0e9fe3654dcd680e7e8271870fbd295215)

5 years agobash_completion: Do not auto complete obsolete and hidden cmds 35117/head
Kotresh HR [Sat, 18 Apr 2020 18:33:37 +0000 (00:03 +0530)]
bash_completion: Do not auto complete obsolete and hidden cmds

This patch fixes two things.

1. Do not auto complete obsolete and hidden cmds.
2. sub command completions often failed due to the
   use of associative arrays which does not keep the
   order. Hence used non-associative arrays.

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

5 years agoMerge pull request #35045 from smithfarm/wip-45501-nautilus
Yuri Weinstein [Mon, 18 May 2020 15:37:11 +0000 (08:37 -0700)]
Merge pull request #35045 from smithfarm/wip-45501-nautilus

nautilus: rgw: anonomous swift to obj that dont exist should 401

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #35019 from smithfarm/wip-45517-nautilus
Yuri Weinstein [Mon, 18 May 2020 15:36:40 +0000 (08:36 -0700)]
Merge pull request #35019 from smithfarm/wip-45517-nautilus

nautilus: rgw: fix multipart upload's error response

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #34780 from Vicente-Cheng/wip-44370-nautilus
Yuri Weinstein [Mon, 18 May 2020 14:44:32 +0000 (07:44 -0700)]
Merge pull request #34780 from Vicente-Cheng/wip-44370-nautilus

nautilus: msg/async/rdma: fix bug event center is blocked by rdma construct connection for transport ib sync msg

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #34761 from smithfarm/wip-44674-nautilus
Yuri Weinstein [Fri, 15 May 2020 23:16:10 +0000 (16:16 -0700)]
Merge pull request #34761 from smithfarm/wip-44674-nautilus

nautilus: mgr/balancer: tolerate pgs outside of target weight map

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agoMerge pull request #34516 from shyukri/wip-43920-nautilus
Yuri Weinstein [Fri, 15 May 2020 23:14:44 +0000 (16:14 -0700)]
Merge pull request #34516 from shyukri/wip-43920-nautilus

nautilus: common/bl: fix memory corruption in bufferlist::claim_append()

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge pull request #34515 from shyukri/wip-43087-nautilus
Yuri Weinstein [Fri, 15 May 2020 23:13:56 +0000 (16:13 -0700)]
Merge pull request #34515 from shyukri/wip-43087-nautilus

nautilus: bluestore: prevent BlueFS::dirty_files from being leaked when syncing metadata

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
5 years agoMerge pull request #34475 from rhcs-dashboard/wip-44997-nautilus
Yuri Weinstein [Fri, 15 May 2020 23:12:38 +0000 (16:12 -0700)]
Merge pull request #34475 from rhcs-dashboard/wip-44997-nautilus

nautilus: rpm: add python3-saml as install dependency

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35046 from smithfarm/wip-45365-nautilus
Yuri Weinstein [Fri, 15 May 2020 18:20:17 +0000 (11:20 -0700)]
Merge pull request #35046 from smithfarm/wip-45365-nautilus

nautilus: qa/workunits/rbd: fix list-mapped filter in unmap_device

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
5 years agomgr/dashboard: Fix HomeTest setup 35086/head
Tiago Melo [Tue, 12 May 2020 10:29:02 +0000 (10:29 +0000)]
mgr/dashboard: Fix HomeTest setup

'setup_controllers' was being called outside of the fake fs mock,
so the tests would fail if there was no real dist folder.

Fixes: https://tracker.ceph.com/issues/45516
Signed-off-by: Tiago Melo <tmelo@suse.com>
(cherry picked from commit fb9a23663371b99fb7001c8f83b753c395ae7be9)

5 years agotest/objectstore/test_bluestore_types: add tests for unused bitmap 34794/head
Igor Fedotov [Mon, 3 Feb 2020 20:21:28 +0000 (23:21 +0300)]
test/objectstore/test_bluestore_types: add tests for unused bitmap

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit 985497227acbdd46fefc4de5aef75aaa9630514b)

5 years agoos/bluestore: do not use 'unused' bitmap if makes no sense.
Igor Fedotov [Mon, 3 Feb 2020 15:50:50 +0000 (18:50 +0300)]
os/bluestore: do not use 'unused' bitmap if makes no sense.

The processing logic which relies on 'unused' bitmap makes sense for
bluestore setup where min alloc size is different from device block
size. Now omitting if that's not true.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit f960a018f938c70ea3d7f031611cdc5a6b9955b1)

5 years agoos/bluestore: fix unused 'tail' calculation.
Igor Fedotov [Mon, 3 Feb 2020 15:36:21 +0000 (18:36 +0300)]
os/bluestore: fix unused 'tail' calculation.

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

Conflicts:
    src/test/objectstore/store_test.cc
- omitted test case "TEST_P(StoreTestSpecificAUSize, ReproBug41901Test)"
  from the backport, because nautilus does not have the
  "bluestore_debug_enforce_settings" option

5 years agoMerge pull request #34986 from smithfarm/wip-45499-nautilus
Yuri Weinstein [Wed, 13 May 2020 18:58:28 +0000 (11:58 -0700)]
Merge pull request #34986 from smithfarm/wip-45499-nautilus

nautilus: rgw: fix some list buckets handle leak

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #35003 from smithfarm/wip-44651-nautilus
Yuri Weinstein [Wed, 13 May 2020 18:56:29 +0000 (11:56 -0700)]
Merge pull request #35003 from smithfarm/wip-44651-nautilus

nautilus: qa/suites/rbd: removed OpenStack tempest test cases

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #35002 from smithfarm/wip-45502-nautilus
Yuri Weinstein [Wed, 13 May 2020 18:55:28 +0000 (11:55 -0700)]
Merge pull request #35002 from smithfarm/wip-45502-nautilus

nautilus: rgw: fix lc does not delete objects that do not have exactly the same tags as the rule

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #35001 from smithfarm/wip-45486-nautilus
Yuri Weinstein [Wed, 13 May 2020 18:54:46 +0000 (11:54 -0700)]
Merge pull request #35001 from smithfarm/wip-45486-nautilus

nautilus: rgw: radosgw-admin: fix infinite loops in 'datalog list'

Reviewed-by: Casey Bodley <cbodley@redhat.com>