]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
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 #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 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>
5 years agoMerge pull request #34954 from smithfarm/wip-45436-nautilus
Yuri Weinstein [Wed, 13 May 2020 18:53:42 +0000 (11:53 -0700)]
Merge pull request #34954 from smithfarm/wip-45436-nautilus

nautilus: rgw: dmclock: wait until the request is handled

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #34815 from vumrao/wip-vumrao-45316
Yuri Weinstein [Wed, 13 May 2020 18:53:07 +0000 (11:53 -0700)]
Merge pull request #34815 from vumrao/wip-vumrao-45316

nautilus: radosgw-admin: add support for --bucket-id in bucket stats command

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #33675 from ivancich/nautilus-tune-sharded-bucket-listing
Yuri Weinstein [Wed, 13 May 2020 18:52:19 +0000 (11:52 -0700)]
Merge pull request #33675 from ivancich/nautilus-tune-sharded-bucket-listing

nautilus: rgw: tune sharded bucket listing

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoqa/workunits/rbd: fix list-mapped filter in unmap_device 35046/head
Mykola Golub [Tue, 28 Apr 2020 10:45:33 +0000 (11:45 +0100)]
qa/workunits/rbd: fix list-mapped filter in unmap_device

In recent versions `rbd list-mapped` does not print the white space
at the end of the line.

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

5 years agoMerge pull request #34640 from rhcs-dashboard/wip-44327-nautilus
Laura Paduano [Wed, 13 May 2020 12:20:39 +0000 (14:20 +0200)]
Merge pull request #34640 from rhcs-dashboard/wip-44327-nautilus

nautilus: mgr/dashboard: fix backport #33764

5 years agoMerge pull request #34450 from rhcs-dashboard/wip-44980-nautilus
Laura Paduano [Wed, 13 May 2020 12:16:57 +0000 (14:16 +0200)]
Merge pull request #34450 from rhcs-dashboard/wip-44980-nautilus

nautilus: monitoring: Fix pool capacity incorrect

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Patrick Seidensal <pseidensal@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agoMerge pull request #34847 from bk201/wip-45273-nautilus
Laura Paduano [Wed, 13 May 2020 12:15:05 +0000 (14:15 +0200)]
Merge pull request #34847 from bk201/wip-45273-nautilus

nautilus: mgr/dashboard: fixing RBD purge error in backend

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puertat <epuertat@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agoMerge pull request #35016 from rhcs-dashboard/45515-fix-py2-strptime-error
Lenz Grimmer [Wed, 13 May 2020 07:47:41 +0000 (09:47 +0200)]
Merge pull request #35016 from rhcs-dashboard/45515-fix-py2-strptime-error

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #31586 from bk201/fix-42651
Lenz Grimmer [Wed, 13 May 2020 07:46:02 +0000 (09:46 +0200)]
Merge pull request #31586 from bk201/fix-42651

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agomgr/dashboard: fix py2 strptime ImportError (not thread safe) 35016/head
Alfonso Martínez [Tue, 12 May 2020 12:04:41 +0000 (14:04 +0200)]
mgr/dashboard: fix py2 strptime ImportError (not thread safe)

Fixes: https://tracker.ceph.com/issues/45515
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
5 years agoMerge pull request #34884 from tchaikov/nautilus-upgrade-mimic-retry
Yuri Weinstein [Mon, 11 May 2020 21:54:14 +0000 (14:54 -0700)]
Merge pull request #34884 from tchaikov/nautilus-upgrade-mimic-retry

nautilus: qa/tasks/ceph.py: do not use option mimic does not understand

Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #34873 from tchaikov/nautilus-qa-upgrade-from-rados-wo-object...
Yuri Weinstein [Mon, 11 May 2020 21:53:31 +0000 (14:53 -0700)]
Merge pull request #34873 from tchaikov/nautilus-qa-upgrade-from-rados-wo-object-size

nautilus: qa/suites/rados: use default objectsize for upgrade tests

Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
5 years agoMerge pull request #34870 from badone/wip-ms_dispatch-kcore-selinux-denial
Yuri Weinstein [Mon, 11 May 2020 21:51:45 +0000 (14:51 -0700)]
Merge pull request #34870 from badone/wip-ms_dispatch-kcore-selinux-denial

nautilus: selinux: Allow getattr access to /proc/kcore

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
5 years agorgw: fix some list buckets handle leak 34986/head
Tianshan Qu [Wed, 21 Aug 2019 04:33:37 +0000 (12:33 +0800)]
rgw: fix some list buckets handle leak

Fixes: https://tracker.ceph.com/issues/44283
Signed-off-by: Tianshan Qu <tianshan@xsky.com>
(cherry picked from commit 8955ca2c0c804f6c43bb33c97bbe263bac1cc36d)

Conflicts:
    src/rgw/rgw_bucket.cc
- changed two instances of "store->ctl()->meta.mgr->" to "store->meta_mgr->"
  to align with nautilus usage

5 years agoqa/suites/rbd: removed OpenStack tempest test cases 35003/head
Jason Dillaman [Wed, 11 Mar 2020 19:34:26 +0000 (15:34 -0400)]
qa/suites/rbd: removed OpenStack tempest test cases

The OpenStack tempests tests do not stay stable and break approximately
every six months. Remove the test suite for now.

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

Conflicts:
qa/suites/rbd/openstack/workloads/devstack-tempest-gate.yaml
- some difference compared to master, but the entire test is being deleted so
  I didn't examine it further

5 years agofix rgw lc does not delete objects that do not have exactly the same tags as the... 35002/head
Or Friedmann [Wed, 4 Sep 2019 13:34:52 +0000 (16:34 +0300)]
fix rgw lc does not delete objects that do not have exactly the same tags as the rule

It is possible that object will have multiple tags more than the rule that applied on.
Object is not being deleted if not all tags exactly the same as in the rule.

S3-tests: ceph/s3-tests#303
Fixes: https://tracker.ceph.com/issues/41652
Signed-off-by: Or Friedmann <ofriedma@redhat.com>
(cherry picked from commit ebb806ba83fa9d68f14194b1f9886f21f7195a3d)

5 years agoradosgw-admin: fix infinite loop in 'datalog list' 35001/head
Casey Bodley [Tue, 24 Mar 2020 19:01:31 +0000 (15:01 -0400)]
radosgw-admin: fix infinite loop in 'datalog list'

affects datalog shards with more than 1000 entries

Fixes: https://tracker.ceph.com/issues/44751
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 166f38fe70e6afd2831bdb87a27c8fe757899b95)

Conflicts:
src/rgw/rgw_admin.cc
- nautilus has "log->list_entries" where master has
  "datalog_svc->list_entries"

5 years agoMerge pull request #34767 from smithfarm/wip-45212-nautilus
Yuri Weinstein [Mon, 11 May 2020 14:54:51 +0000 (07:54 -0700)]
Merge pull request #34767 from smithfarm/wip-45212-nautilus

nautilus: client: reset requested_max_size if file write is not wanted

Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Yan, Zheng <zyan@redhat.com>
5 years agoMerge pull request #34679 from kotreshhr/nautilus-subvolume-info
Yuri Weinstein [Mon, 11 May 2020 14:53:39 +0000 (07:53 -0700)]
Merge pull request #34679 from kotreshhr/nautilus-subvolume-info

nautilus: mgr/volumes: Add interface to get subvolume metadata

Reviewed-by: Ramana Raja <rraja@redhat.com>
5 years agoMerge pull request #34470 from Vicente-Cheng/wip-44655-nautilus
Yuri Weinstein [Mon, 11 May 2020 14:52:55 +0000 (07:52 -0700)]
Merge pull request #34470 from Vicente-Cheng/wip-44655-nautilus

nautilus: qa: fix various py3 cephfs qa bugs x2

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
5 years agoMerge pull request #34107 from yuvalif/notification-backports-nautilus
Yuri Weinstein [Thu, 7 May 2020 15:58:05 +0000 (08:58 -0700)]
Merge pull request #34107 from yuvalif/notification-backports-nautilus

nautilus: rgw/notifications: backporting features and bug fix

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: dmclock: wait until the request is handled. 34954/head
GaryHyg [Mon, 7 Oct 2019 02:17:34 +0000 (10:17 +0800)]
rgw: dmclock: wait until the request is handled.

Fixes: https://tracker.ceph.com/issues/42217
Signed-off-by: GaryHyg <huygbj@inspur.com>
(cherry picked from commit ec507626624a66a3a81d7ea65d0b8d78d9b8a221)

5 years agoMerge pull request #34915 from tchaikov/nautilus-mimic-x-disable-min-pg-per-osd-warning
Yuri Weinstein [Wed, 6 May 2020 22:42:12 +0000 (15:42 -0700)]
Merge pull request #34915 from tchaikov/nautilus-mimic-x-disable-min-pg-per-osd-warning

nautilus: qa/suites/upgrade: disable min pg per osd warning

Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
5 years agoMerge pull request #34771 from smithfarm/wip-45210-nautilus
Ramana Raja [Wed, 6 May 2020 17:23:35 +0000 (22:53 +0530)]
Merge pull request #34771 from smithfarm/wip-45210-nautilus

nautilus: ceph-fuse: link to libfuse3 and pass "-o big_writes" to libfuse if libfuse < 3.0.0

Reviewed-by: Zheng Yan <zyan@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
5 years agorgw: clean up address 0-length listing results... 33675/head
J. Eric Ivancich [Fri, 10 Jan 2020 19:12:35 +0000 (14:12 -0500)]
rgw: clean up address 0-length listing results...

Some minor clean-ups to the previous commit, including adjust logging
messages, rename variable, convert a #define to a constexpr (and
adjust its scope).

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit 4470ca8a3ff22aeb140e0c3be396e5f1bb25aa26)

5 years agorgw: address 0-length listing results when non-vis entries dominate
J. Eric Ivancich [Thu, 13 Feb 2020 01:38:44 +0000 (20:38 -0500)]
rgw: address 0-length listing results when non-vis entries dominate

A change to advance the marker in RGWRados::cls_bucket_list_ordered to
the last entry visited rather than the final entry in list to push
progress as far as possible.

Since non-vis entries tend to cluster on the same shard, such as
during incomplete multipart uploads, this can severely limit the
number of entries returned by a call to
RGWRados::cls_bucket_list_ordered since once that shard has provided
all its members, we must stop. This interacts with a recent
optimization to reduce the number of entries requested from each
shard. To address this the number of attempts is sent as a parameter,
so the number of entries requested from each shard can grow with each
attempt. Currently the growth is linear but perhaps exponential growth
(capped at number of entries requested) should be considered.

Previously RGWRados::Bucket::List::list_objects_ordered was capped at
2 attempts, but now we keep attempting to insure we make forward
progress and return entries when some exist. If we fail to make
forward progress, we log the error condition and stop looping.

Additional logging, mostly at level 20, is added to the two key
functions involved in ordered bucket listing to make it easier to
follow the logic and address potential future issues that might arise.

Additionally modify attempt number based on how many results were
received.

Change the per-shard request number, so it grows exponentially rather
than linearly as the attempts go up.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit 28bd8bada4236060db6d5aed6b1eb345ab507890)

5 years agorgw: reduce per-shard entry count during ordered bucket listing
J. Eric Ivancich [Mon, 14 Oct 2019 20:21:35 +0000 (16:21 -0400)]
rgw: reduce per-shard entry count during ordered bucket listing

Currently, if a client requests the 1000 next entries from a bucket,
each bucket index shard will receive a request for the 1000 next
entries. When there are hundreds, thousands, or tens of thousands of
bucket index shards, this results in a huge amplification of the
request, even though only 1000 entries will be returned.

These changes reduce the per-bucket index shard requests. These also
allow re-requests in edge cases where all of one shard's returned
entries are consumed. Finally these changes improve the determination
of whether the resulting list is truncated.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit 729c0ba1361b76ecace94793b956354486b3dcd8)

5 years agoMerge pull request #34817 from tchaikov/nautilus-44668
Ramana Raja [Wed, 6 May 2020 08:40:07 +0000 (14:10 +0530)]
Merge pull request #34817 from tchaikov/nautilus-44668

nautilus: qa: use small default pg count for CephFS pools

Reviewed-by: Ramana Raja <rraja@redhat.com>
5 years agoMerge pull request #34563 from Vicente-Cheng/wip-45050-nautilus
Ramana Raja [Wed, 6 May 2020 08:38:56 +0000 (14:08 +0530)]
Merge pull request #34563 from Vicente-Cheng/wip-45050-nautilus

nautilus: mgr: force purge normal ceph entities from service map

Reviewed-by: Ramana Raja <rraja@redhat.com>
5 years agoqa/suites/upgrade: disable min pg per osd warning 34915/head
Kefu Chai [Wed, 6 May 2020 07:48:12 +0000 (15:48 +0800)]
qa/suites/upgrade: disable min pg per osd warning

disable the TOO_FEW_PGS warning, as
1ac34a5ea3d1aca299b02e574b295dd4bf6167f4 is not backported to mimic, we
will have TOO_FEW_PGS warnings when a healthy cluster is expected when
upgrading from mimic.

this change disables this warning by setting "mon_pg_warn_min_per_osd" to
"0".

this change is not cherry-picked from master. as
1ac34a5ea3d1aca299b02e574b295dd4bf6167f4 is already included by master,
and we don't perform upgrade from mimic on master branch.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa: fix various py3 cephfs qa bugs x2 34470/head
Patrick Donnelly [Tue, 7 Jan 2020 21:04:32 +0000 (13:04 -0800)]
qa: fix various py3 cephfs qa bugs x2

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

5 years agoqa: fix various py3 cephfs qa bugs
Patrick Donnelly [Fri, 3 Jan 2020 04:41:57 +0000 (20:41 -0800)]
qa: fix various py3 cephfs qa bugs

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 6ea2730ea669b6cf7ac668f606f63628ef8918b7)

Conflicts:
qa/tasks/cephfs/test_pool_perm.py
  - manually modify the py3 compatibility related fix

5 years agoMerge pull request #34833 from smithfarm/wip-44653-nautilus
Yuri Weinstein [Tue, 5 May 2020 15:27:42 +0000 (08:27 -0700)]
Merge pull request #34833 from smithfarm/wip-44653-nautilus

nautilus: rgw: increase log level for same or older period pull msg

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #34413 from votdev/wip-42151-nautilus
Lenz Grimmer [Tue, 5 May 2020 08:42:31 +0000 (10:42 +0200)]
Merge pull request #34413 from votdev/wip-42151-nautilus

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #34862 from tchaikov/nautilus-el-7.8
Yuri Weinstein [Mon, 4 May 2020 20:45:12 +0000 (13:45 -0700)]
Merge pull request #34862 from tchaikov/nautilus-el-7.8

nautilus: qa/distros: point {centos,rhel}_latest.yaml to 7.8

Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
Reviewed-by: David Galloway <dgallowa@redhat.com>
5 years agoMerge pull request #34832 from smithfarm/wip-45330-nautilus
Yuri Weinstein [Mon, 4 May 2020 20:43:35 +0000 (13:43 -0700)]
Merge pull request #34832 from smithfarm/wip-45330-nautilus

nautilus: bluestore/bdev: initialize size when creating object

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
5 years agoMerge pull request #34796 from smithfarm/wip-45045-nautilus
Yuri Weinstein [Mon, 4 May 2020 20:42:55 +0000 (13:42 -0700)]
Merge pull request #34796 from smithfarm/wip-45045-nautilus

nautilus: os/bluestore: Don't pollute old journal when add new device

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
5 years agoMerge pull request #34677 from Vicente-Cheng/wip-44468-nautilus
Yuri Weinstein [Mon, 4 May 2020 20:42:06 +0000 (13:42 -0700)]
Merge pull request #34677 from Vicente-Cheng/wip-44468-nautilus

nautilus: mon: Get session_map_lock before remove_session

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agoMerge pull request #34611 from ifed01/wip-ifed-beter-bluefs-expand-nautilus
Yuri Weinstein [Mon, 4 May 2020 20:37:38 +0000 (13:37 -0700)]
Merge pull request #34611 from ifed01/wip-ifed-beter-bluefs-expand-nautilus

nautilus: os/bluestore: open DB in read-only when expanding DB/WAL

Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
5 years agoMerge pull request #34774 from ajarr/nautilus-fix-45229-45225
Nathan Cutler [Mon, 4 May 2020 17:00:32 +0000 (19:00 +0200)]
Merge pull request #34774 from ajarr/nautilus-fix-45229-45225

nautilus: mon/FSCommands: Fix 'add_data_pool' command and 'fs new' command

Reviewed-by: Nathan Cutler <ncutler@suse.com>
5 years agorgw/rgw_bucket: clear tenant string for non tenanted buckets 34815/head
Vikhyat Umrao [Fri, 1 May 2020 15:28:55 +0000 (08:28 -0700)]
rgw/rgw_bucket: clear tenant string for non tenanted buckets
in rgw_bucket_parse_bucket_key function.

Fixes: https://tracker.ceph.com/issues/45355
Signed-off-by: Vikhyat Umrao <vikhyat@redhat.com>
(cherry picked from commit 6c4594a6aa6db0aee05287a82eaa937f715dc8b0)

5 years agoradosgw-admin: add support for --bucket-id in bucket stats command
Vikhyat Umrao [Fri, 30 Aug 2019 07:16:46 +0000 (00:16 -0700)]
radosgw-admin: add support for --bucket-id in bucket stats command
Fixes: https://tracker.ceph.com/issues/41061
Signed-off-by: Vikhyat Umrao <vikhyat@redhat.com>
(cherry picked from commit 4cd16e13ca0c8709091737ad2cb2b37a3b19840d)

 Conflicts:
src/rgw/rgw_admin.cc
         nautilus uses opt_cmd == OPT_BUCKET_STATS
         nautilus does not have store->ctl()->meta.mgr
         use store->meta_mgr
src/rgw/rgw_bucket.cc
         nautilus has different declaration for RGWBucket::link
         nautlis can not take nullptr in rgw_bucket_parse_bucket_key
         use &shard_id
src/rgw/rgw_bucket.h
         nautilus does not have set_tenant() add set_tenant()
         nautilus does not have get_tenant() add get_tenant()

Signed-off-by: Vikhyat Umrao <vikhyat@redhat.com>
5 years agoqa/tasks/ceph.py: do not use option mimic does not understand 34884/head
Kefu Chai [Sat, 2 May 2020 15:54:44 +0000 (23:54 +0800)]
qa/tasks/ceph.py: do not use option mimic does not understand

mimic does not have `mon-client-directed-command-retry` option, so we
should not pass this option to a mimic ceph client.

in this change, we fall back to plain retry, if command fails. this
change is not cherry-picked from master. as we don't run upgrade test
from mimic to master.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #34579 from tchaikov/nautilus-mimic-x
Yuri Weinstein [Fri, 1 May 2020 16:57:47 +0000 (09:57 -0700)]
Merge pull request #34579 from tchaikov/nautilus-mimic-x

nautilus: qa/tasks/ceph_manager: do not cancel pending pg num changes on mimic

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
5 years agoqa/suites/rados: use default objectsize for upgrade tests 34873/head
Kefu Chai [Fri, 1 May 2020 06:06:56 +0000 (14:06 +0800)]
qa/suites/rados: use default objectsize for upgrade tests

in pre-nautilus release, rados cli does not accept `-O` option, so we
should not pass `-O` to this tool. otherwise we will have following
failure:
```
2020-05-01T05:47:04.863 INFO:tasks.radosbench.radosbench.2.smithi183.stderr:unrecognized command -O; -h or --help for usage
2020-05-01T05:47:04.865 DEBUG:teuthology.orchestra.run:got remote process result: 1
```

this change is not cherry-picked from master. as we don't perfor
upgrade tests from pre-nautilus releases

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoselinux: Allow getattr access to /proc/kcore 34870/head
Brad Hubbard [Wed, 8 Apr 2020 04:49:04 +0000 (14:49 +1000)]
selinux: Allow getattr access to /proc/kcore

Required for an fstat call in BlkDev::get_devid

Fixes: https://tracker.ceph.com/issues/40743
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
5 years agoqa/distros: point {centos,rhel}_latest.yaml to 7.8 34862/head
Kefu Chai [Thu, 30 Apr 2020 14:42:46 +0000 (22:42 +0800)]
qa/distros: point {centos,rhel}_latest.yaml to 7.8

this change is not cherry-picked from master, as master is using el8
already

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/tasks/mgr/dashboard/test_rbd: wait longer when purging 34847/head
Kiefer Chang [Fri, 27 Mar 2020 05:14:09 +0000 (13:14 +0800)]
qa/tasks/mgr/dashboard/test_rbd: wait longer when purging

Fixes: https://tracker.ceph.com/issues/44743
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
Co-authored-by: Kefu Chai <kefu@redhat.com>
Co-authored-by: Volker Theile <vtheile@suse.com>
(cherry picked from commit 1c3d6539d93961f9f7bd5308771725410bde32ec)

Conflicts:
qa/tasks/mgr/dashboard/test_rbd.py

5 years agomgr/dashboard: fixing RBD purge error in backend
Kiefer Chang [Thu, 23 Apr 2020 10:09:15 +0000 (18:09 +0800)]
mgr/dashboard: fixing RBD purge error in backend

Current UTC datetime should be used as `now`, otherwise the expiration
comparison might fail on machines with non-UTC localtime.

Fixes: https://tracker.ceph.com/issues/45149
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
(cherry picked from commit 00881adf55cac6116887bfffc506444473f0ee82)

Conflicts:
src/pybind/mgr/dashboard/controllers/rbd.py
- Namespace is not supported nautilus.
- Use logger instance from mgr.

5 years agoqa/tasks: do not cancel pending pg num changes on mimic 34579/head
Kefu Chai [Thu, 16 Apr 2020 03:33:18 +0000 (11:33 +0800)]
qa/tasks: do not cancel pending pg num changes on mimic

mimic does not support auto split/merge, but we do test mimic-x on
nautilus, which ends up with failures like:

ceback (most recent call last):
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_py2/teuthology/contextutil.py", line 34, in nested
    yield vars
  File "/home/teuthworker/src/git.ceph.com_ceph_nautilus/qa/tasks/ceph.py", line 1928, in task
    ctx.managers[config['cluster']].stop_pg_num_changes()
  File "/home/teuthworker/src/git.ceph.com_ceph_nautilus/qa/tasks/ceph_manager.py", line 1806, in stop_pg_num_changes
    if pool['pg_num'] != pool['pg_num_target']:
KeyError: 'pg_num_target'

so we need to skip this if 'pg_num_target' is not in pg_pool_t::dump().

this change is not cherry-picked from master, as we don't test
mimic-x on master.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agorgw: increase log level for same or older period pull msg 34833/head
Ali Maredia [Tue, 25 Feb 2020 05:29:30 +0000 (00:29 -0500)]
rgw: increase log level for same or older period pull msg

Signed-off-by: Ali Maredia <amaredia@redhat.com>
(cherry picked from commit 90cce10fc1364df16ab12632b2dca403894cbe44)

5 years agobluestore/bdev: initialize size when creating object. 34832/head
Willem Jan Withagen [Wed, 28 Aug 2019 15:19:22 +0000 (17:19 +0200)]
bluestore/bdev: initialize size when creating object.

The other partss of the struct are initialized by their
ctors. Only for unint_64 there is no ctor.

Otherwise ceph-dencoder tests will fail in comparing
the exported output.
[~/master36] wjw@cephdev.digiware.nl> build/bin/ceph-dencoder type bluestore_bdev_label_t select_test 1 encode export /tmp/typ-yFISvjvgj
[~/master36] wjw@cephdev.digiware.nl> hexdump -C !$
hexdump -C /tmp/typ-yFISvjvgj
00000000  62 6c 75 65 73 74 6f 72  65 20 62 6c 6f 63 6b 20 |bluestore block |
00000010  64 65 76 69 63 65 0a 30  30 30 30 30 30 30 30 2d |device.00000000-|
00000020  30 30 30 30 2d 30 30 30  30 2d 30 30 30 30 2d 30 |0000-0000-0000-0|
00000030  30 30 30 30 30 30 30 30  30 30 30 0a 02 01 28 00 |00000000000...(.|
00000040  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 |................|
00000050  00 00 70 74 03 04 00 00  00 00 00 00 00 00 00 00 |..pt............|
00000060  00 00 00 00 00 00 00 00  00 00 |..........|
0000006a

[~/master36] wjw@cephdev.digiware.nl> build/bin/ceph-dencoder type bluestore_bdev_label_t select_test 1 encode decode encode export /tmp/typ-MjWXdCpzJ
[~/master36] wjw@cephdev.digiware.nl> hexdump -C !$
hexdump -C /tmp/typ-MjWXdCpzJ
00000000  62 6c 75 65 73 74 6f 72  65 20 62 6c 6f 63 6b 20 |bluestore block |
00000010  64 65 76 69 63 65 0a 30  30 30 30 30 30 30 30 2d |device.00000000-|
00000020  30 30 30 30 2d 30 30 30  30 2d 30 30 30 30 2d 30 |0000-0000-0000-0|
00000030  30 30 30 30 30 30 30 30  30 30 30 0a 02 01 28 00 |00000000000...(.|
00000040  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 |................|
00000050  00 00 73 64 00 00 00 00  00 00 00 00 00 00 00 00 |..sd............|
00000060  00 00 00 00 00 00 00 00  00 00 |..........|
0000006a

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

5 years agoqa: use small default pg count for CephFS pools 34817/head
Patrick Donnelly [Wed, 9 Oct 2019 17:41:35 +0000 (10:41 -0700)]
qa: use small default pg count for CephFS pools

The pg count needs to be a power-of-two since
dff5697464edb9931d5dfa08cd4a30f85c1f237e.

Also, mon_pg_warn_min_per_osd is disabled by default now (or set to a
low value in vstart/testing) so there's no need to base the pg count on
this value.

Ideally someday we can remove this so that the default cluster value is
used but we need to keep this for deployments of older versions of Ceph.

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

Conflicts:
qa/tasks/cephfs/filesystem.py: this commit was orignally
backported by #34055, but it failed to cherry-pick all necessary
bits. in this change, the missing bit is picked up.

5 years agoMerge pull request #34518 from tchaikov/nautilus-27422
Kefu Chai [Wed, 29 Apr 2020 02:16:07 +0000 (10:16 +0800)]
Merge pull request #34518 from tchaikov/nautilus-27422

nautilus: doc: fix parameter to set pg autoscale mode

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agodoc: fix parameter to set pg autoscale mode 34518/head
Changcheng Liu [Mon, 8 Apr 2019 02:40:47 +0000 (10:40 +0800)]
doc: fix parameter to set pg autoscale mode

osd_pool_default_pg_autoscale_mode is the right parameter to
set placement-group autoscale mode.

Signed-off-by: Changcheng Liu <changcheng.liu@intel.com>
(cherry picked from commit c0df98fc7e78bbd366333d810f78ddbeed0e6729)

5 years agoMerge pull request #34736 from smithfarm/wip-44648-nautilus
Yuri Weinstein [Tue, 28 Apr 2020 18:39:31 +0000 (11:39 -0700)]
Merge pull request #34736 from smithfarm/wip-44648-nautilus

nautilus: qa/workunits/rbd: wait for nbd map to close after unmap

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoos/bluestore: Don't pollute old journal when add new device 34796/head
Yang Honggang [Thu, 26 Mar 2020 17:11:55 +0000 (17:11 +0000)]
os/bluestore: Don't pollute old journal when add new device

Fixes: https://tracker.ceph.com/issues/44774
Signed-off-by: Yang Honggang <yanghonggang@kuaishou.com>
(cherry picked from commit ade4d46981e660c8d57cec64180b5afa4561b945)

5 years agoMerge pull request #34735 from smithfarm/wip-45260-nautilus
Yuri Weinstein [Tue, 28 Apr 2020 16:09:14 +0000 (09:09 -0700)]
Merge pull request #34735 from smithfarm/wip-45260-nautilus

nautilus: rgw: reshard: skip stale bucket id entries from reshard queue

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #34628 from shyukri/wip-45070-nautilus
Yuri Weinstein [Mon, 27 Apr 2020 21:33:10 +0000 (14:33 -0700)]
Merge pull request #34628 from shyukri/wip-45070-nautilus

nautilus: mgr/telegraf: catch FileNotFoundError exception

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #34512 from Vicente-Cheng/wip-44324-nautilus
Yuri Weinstein [Mon, 27 Apr 2020 21:32:26 +0000 (14:32 -0700)]
Merge pull request #34512 from Vicente-Cheng/wip-44324-nautilus

nautilus: osd/PeeringState.h: ignore RemoteBackfillReserved in WaitLocalBackfillReserved

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: David Zafman <dzafman@redhat.com>
5 years agoMerge pull request #34500 from Vicente-Cheng/wip-44289-nautilus
Yuri Weinstein [Mon, 27 Apr 2020 21:30:46 +0000 (14:30 -0700)]
Merge pull request #34500 from Vicente-Cheng/wip-44289-nautilus

nautilus: mon: stash newer map on bootstrap when addr doesn't match

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #34419 from votdev/wip-44954-nautilus
Yuri Weinstein [Mon, 27 Apr 2020 21:29:34 +0000 (14:29 -0700)]
Merge pull request #34419 from votdev/wip-44954-nautilus

nautilus: monitoring: root volume full alert fires false positives

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agomon/FSCommands: Fix 'fs new' command 34774/head
Ramana Raja [Tue, 14 Apr 2020 11:13:33 +0000 (16:43 +0530)]
mon/FSCommands: Fix 'fs new' command

After creating a filesystem using the 'fs new' command, the value
of the 'data' and 'metadata' key of the datapool and metadatapool's
application tag 'cephfs' should be the filesystem's name. This
didn't happen when the data or metadata pool's application metadata
'cephfs' was enabled before the pool was used in the 'fs new' command.
Fix this during the handling of the 'fs new' command by setting the
value of the key of the pool's application metadata 'cephfs' to the
filesystem's name even when the application metadata 'cephfs' is
already enabled or set.

Fixes: https://tracker.ceph.com/issues/43761
Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit 2f45558eb84782e334d997e2c545fd99ab455783)

5 years agomon/FSCommands: Fix 'add_data_pool' command
Ramana Raja [Sat, 11 Apr 2020 07:15:39 +0000 (12:45 +0530)]
mon/FSCommands: Fix 'add_data_pool' command

After making a RADOS pool a filesystem's data pool using the
'add_data_pool' command, the value of the 'data' key of the pool's
application metadata 'cephfs' should be the filesystem's name. This
didn't happen when the pool's application metadata 'cephfs' was
enabled before the pool was made the data pool. Fix this during the
handling of the 'add_data_pool' command by setting the value of
the 'data' key of the pool's application metadata 'cephfs' to the
filesystem's name even when the application metadata 'cephfs' is
already enabled or set.

Fixes: https://tracker.ceph.com/issues/43061
Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit 3c49092322720b7f1d612f45e73fb26820ff7885)

5 years agocmake: detect fuse3 as well 34771/head
Kefu Chai [Fri, 17 Apr 2020 06:31:15 +0000 (14:31 +0800)]
cmake: detect fuse3 as well

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

5 years agocmake: check for FUSE version
Kefu Chai [Fri, 17 Apr 2020 05:50:16 +0000 (13:50 +0800)]
cmake: check for FUSE version

and refactor FindFUSE.cmake a little bit to conditionalize OSX support

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

5 years agocmake: link against FUSE::FUSE
Kefu Chai [Fri, 17 Apr 2020 05:46:21 +0000 (13:46 +0800)]
cmake: link against FUSE::FUSE

instead of specifying the include directory and linkage separately

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

Conflicts:
src/CMakeLists.txt
- ceph-fuse target_link_libraries call lacks ${EXTRALIBS} parameter in
  nautilus

5 years agocmake: rename Findfuse.cmake to FindFUSE.cmake
Kefu Chai [Fri, 17 Apr 2020 05:02:22 +0000 (13:02 +0800)]
cmake: rename Findfuse.cmake to FindFUSE.cmake

so its name is consistent with upstream name, and with the variables
exposed by FindFUSE.cmake.

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

5 years agoceph-fuse: link to libfuse3 if fuse3 is installed
Xiubo Li [Wed, 15 Apr 2020 06:21:44 +0000 (02:21 -0400)]
ceph-fuse: link to libfuse3 if fuse3 is installed

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

Conflicts:
src/client/fuse_ll.cc
- nautilus CephFuse::Handle::Handle initializer list has stag_lock

5 years agorbd-fuse: remove FUSE_CAP_BIG_WRITES when linking to libfuse3
Xiubo Li [Fri, 17 Apr 2020 09:46:24 +0000 (05:46 -0400)]
rbd-fuse: remove FUSE_CAP_BIG_WRITES when linking to libfuse3

The big-writes is enabled as default from 3.0.

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

5 years agorbd-fuse: switch to use utimens instead
Xiubo Li [Fri, 17 Apr 2020 09:33:55 +0000 (05:33 -0400)]
rbd-fuse: switch to use utimens instead

The utime is deprecated.

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

5 years agoceph-fuse: enable the big writes as default
Xiubo Li [Thu, 16 Apr 2020 10:13:17 +0000 (06:13 -0400)]
ceph-fuse: enable the big writes as default

When the libfuse version < 3, without the big_writes options enabled
the write perf is very poor.

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

5 years agoceph-fuse: don't get mount options from /etc/fstab when doing remount
Yan, Zheng [Tue, 31 Mar 2020 03:29:47 +0000 (11:29 +0800)]
ceph-fuse: don't get mount options from /etc/fstab when doing remount

If there happen to be an kcephfs entry in /etc/fstab for ceph-fuse's
mount point. 'mount -o remount' may get options from that entry. fuse
may not understand some options (E.g name option).

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

5 years agoclient: reset requested_max_size if file write is not wanted 34767/head
Yan, Zheng [Fri, 20 Mar 2020 05:15:45 +0000 (13:15 +0800)]
client: reset requested_max_size if file write is not wanted

write can stuck at waiting for larger max_size in following sequence of
events:

- client opens a file and writes to position 'A' (larger than unit of
  max size increment)
- client closes the file handle and updates wanted caps (not wanting
  file write caps)
- client opens and truncates the file, writes to position 'A' again.

At the 1st event, client set inode's requested_max_size to 'A'. At the
2nd event, mds removes client's writable range, but client does not reset
requested_max_size. At the 3rd event, client does not request max size
because requested_max_size is already larger than 'A'.

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

5 years agomonitoring: Fix pool capacity incorrect 34450/head
James Cheng [Tue, 21 Jan 2020 13:52:29 +0000 (21:52 +0800)]
monitoring: Fix pool capacity incorrect

Signed-off-by: James Cheng <james59988@gmail.com>
(cherry picked from commit 1b980ef88c5f8f45b5b39b79c395a66233908266)

5 years agoMerge pull request #34662 from votdev/wip-45157-nautilus
Kefu Chai [Mon, 27 Apr 2020 07:00:16 +0000 (15:00 +0800)]
Merge pull request #34662 from votdev/wip-45157-nautilus

nautilus: mgr/dashboard: Refactor Python unittests and controller

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
5 years agorgw/pubsub: send notifications from multi-delete op 34107/head
Yuval Lifshitz [Tue, 10 Dec 2019 18:22:43 +0000 (20:22 +0200)]
rgw/pubsub: send notifications from multi-delete op

Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
(cherry picked from commit 754f7edbb8156727de45c17c03826c9a0df6dbb8)
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
5 years agorgw/notification: add opaque data
Yuval Lifshitz [Mon, 13 Jan 2020 10:48:24 +0000 (12:48 +0200)]
rgw/notification: add opaque data

opaque data may be set in topic configuration and later on sent inside
nottifications triggered by that topic.

Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
(cherry picked from commit 07630a8759b0836f56d4ee6938e2b711ffb4e169)
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
Conflicts:
src/test/rgw/rgw_multi/tests_ps.py

5 years agorgw/pubsub: notification filtering by object tags
Yuval Lifshitz [Sun, 24 Nov 2019 13:33:00 +0000 (15:33 +0200)]
rgw/pubsub: notification filtering by object tags

Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
(cherry picked from commit d19474f3d7b4e0a16cc2ef55f2bb4e3fd027545c)
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
Conflicts:
doc/radosgw/notifications.rst
examples/boto3/README.md
examples/boto3/notification_filters.py
examples/boto3/service-2.sdk-extras.json
src/common/ceph_json.h
src/rgw/rgw_common.cc
src/rgw/rgw_common.h
src/rgw/rgw_op.cc
src/rgw/rgw_pubsub.h
src/test/rgw/rgw_multi/tests_ps.py

5 years agoMerge pull request #34627 from shyukri/wip-45043-nautilus
Yuri Weinstein [Fri, 24 Apr 2020 18:56:11 +0000 (11:56 -0700)]
Merge pull request #34627 from shyukri/wip-45043-nautilus

nautilus: mgr/PyModule: fix missing tracebacks in handle_pyerror()

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #34542 from smithfarm/wip-44486-nautilus
Nathan Cutler [Fri, 24 Apr 2020 18:31:05 +0000 (20:31 +0200)]
Merge pull request #34542 from smithfarm/wip-44486-nautilus

nautilus: common/ceph_time: tolerate mono time going backwards

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #34539 from smithfarm/wip-45073-nautilus
Yuri Weinstein [Fri, 24 Apr 2020 13:28:42 +0000 (06:28 -0700)]
Merge pull request #34539 from smithfarm/wip-45073-nautilus

nautilus: build/ops: address SElinux denials observed in rgw/multisite test run

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #34527 from smithfarm/wip-45035-nautilus
Yuri Weinstein [Fri, 24 Apr 2020 13:27:28 +0000 (06:27 -0700)]
Merge pull request #34527 from smithfarm/wip-45035-nautilus

nautilus: spec: address some warnings raised by RPM 4.15.1

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #34256 from smithfarm/wip-44793-nautilus
Yuri Weinstein [Fri, 24 Apr 2020 13:26:47 +0000 (06:26 -0700)]
Merge pull request #34256 from smithfarm/wip-44793-nautilus

nautilus: tests: qa/tasks/ceph.py: fail if any osd role doesn't get a device

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/workunits/rbd: wait for nbd map to close after unmap 34736/head
Jason Dillaman [Wed, 11 Mar 2020 19:11:10 +0000 (15:11 -0400)]
qa/workunits/rbd: wait for nbd map to close after unmap

The unmap action only sends a signal to the kernel to notify the
rbd-nbd daemon to disconnect. Therefore, it's possible that an
unmap followed by an immediate re-map to the same device might
fail since the unmap is still in-progress.

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

5 years agorgw: reshard: skip stale bucket id entries from reshard queue 34735/head
Abhishek Lekshmanan [Fri, 17 Apr 2020 15:11:01 +0000 (17:11 +0200)]
rgw: reshard: skip stale bucket id entries from reshard queue

If we encounter a reshard queue entry that has an older ID compared to the
bucket's current ID, it'd mean that some other process or a manual reshard has
already processed this entry, skip processing the entry this time. An
alternative is to verify the num_shards that we have in queue >= the current
shards, but this would mean that we may reshard a recently manual resharded
bucket again which might not be intended

Fixes: https://tracker.ceph.com/issues/45134
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 02664fc091674e28233559cd1c42f954d5776d86)

Conflicts:
src/rgw/rgw_reshard.cc
- immediately preceding "get_bucket_info" call looks different in
  nautilus

5 years agonautilus: mgr/volumes: Add interface to get subvolume metadata 34679/head
Kotresh HR [Thu, 26 Mar 2020 05:00:39 +0000 (10:30 +0530)]
nautilus: mgr/volumes: Add interface to get subvolume metadata

The following interface is added

"ceph fs subvolume info <vol_name> <sub_name> [<group_name>]"

The output is in json format with following fields

1. atime: access time of subvolume path in the format "YYYY-MM-DD HH:MM:SS"
2. mtime: modification time of subvolume path in the format "YYYY-MM-DD HH:MM:SS"
3. ctime: change time of subvolume path in the format "YYYY-MM-DD HH:MM:SS"
4. uid: uid of subvolume path
5. gid: gid of subvolume path
6. mode: mode of subvolume path
7. mon_addrs: list of monitor addresses
8. bytes_pcent: quota used in percentage if quota is set, else displays "undefined"
9. bytes_quota: quota size in bytes if quota is set, else displays "infinite"
10. bytes_used: current used size of the subvolume in bytes
11. created_at: time of creation of subvolume in the format "YYYY-MM-DD HH:MM:SS"
12. data_pool: data pool the subvolume belongs to
13. path: absolute path of a subvolume
14. type: subvolume type indicating whether it's clone or subvolume

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

Conflicts:
   src/pybind/mgr/volumes/fs/volume.py [ context: commit a44de38
      ("mgr_util: add CephfsClient implementation") not in nautilus ]

5 years agoMerge pull request #34551 from tspmelo/wip-45085-nautilus
Lenz Grimmer [Thu, 23 Apr 2020 11:45:17 +0000 (13:45 +0200)]
Merge pull request #34551 from tspmelo/wip-45085-nautilus

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
5 years agoMerge pull request #34550 from tspmelo/wip-45082-nautilus
Lenz Grimmer [Thu, 23 Apr 2020 08:28:35 +0000 (10:28 +0200)]
Merge pull request #34550 from tspmelo/wip-45082-nautilus

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agoMerge pull request #34497 from votdev/wip-45019-nautilus
Lenz Grimmer [Thu, 23 Apr 2020 08:27:48 +0000 (10:27 +0200)]
Merge pull request #34497 from votdev/wip-45019-nautilus

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agoMerge pull request #34399 from votdev/wip-44920-nautilus
Lenz Grimmer [Wed, 22 Apr 2020 15:03:02 +0000 (17:03 +0200)]
Merge pull request #34399 from votdev/wip-44920-nautilus

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Sebastian Krah <skrah@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agomon: Get session_map_lock before remove_session 34677/head
Xiaofei Cui [Tue, 3 Mar 2020 07:58:02 +0000 (15:58 +0800)]
mon: Get session_map_lock before remove_session

Get session_map_lock to prevent race.

Fixes: https://tracker.ceph.com/issues/44407
Signed-off-by: Xiaofei Cui <cuixiaofei@sangfor.com.cn>
(cherry picked from commit c916b8a8156f9855fb74c62508b54308ec5e7b32)

5 years agoMerge pull request #34597 from smithfarm/wip-43134-nautilus
Yuri Weinstein [Tue, 21 Apr 2020 23:44:01 +0000 (16:44 -0700)]
Merge pull request #34597 from smithfarm/wip-43134-nautilus

nautilus: rgw: find oldest period and update RGWMetadataLogHistory()

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #34585 from smithfarm/wip-45040-nautilus
Yuri Weinstein [Tue, 21 Apr 2020 23:09:42 +0000 (16:09 -0700)]
Merge pull request #34585 from smithfarm/wip-45040-nautilus

nautilus: mon: calculate min_size on osd pool set size

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