]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agoceph-volume api.lvm catch IndexError when parsing dmmapper output 28929/head
Alfredo Deza [Wed, 3 Jul 2019 18:59:18 +0000 (14:59 -0400)]
ceph-volume api.lvm catch IndexError when parsing dmmapper output

Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit bfff70d07a1ccf7fb11a96dd7c63335cfc9b5e26)

6 years agoceph-volume tests update to use error.value instead of str(error)
Alfredo Deza [Wed, 3 Jul 2019 18:58:31 +0000 (14:58 -0400)]
ceph-volume tests update to use error.value instead of str(error)

Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit 484be7ffb1e0865ff840090a73036567a1f4f5d2)

6 years agoMerge pull request #28536 from ukernel/luminous-40211
Yuri Weinstein [Mon, 1 Jul 2019 16:10:34 +0000 (09:10 -0700)]
Merge pull request #28536 from ukernel/luminous-40211

luminous: mds: fix corner case of replaying open sessions

Reviewed-by: Venky Shankar <vshankar@redhat.com>
6 years agoMerge pull request #28543 from batrick/i40041
Yuri Weinstein [Mon, 1 Jul 2019 16:10:06 +0000 (09:10 -0700)]
Merge pull request #28543 from batrick/i40041

luminous: mds: avoid trimming too many log segments after mds failover

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Yan, Zheng <zyan@redhat.com>
6 years agoMerge pull request #28544 from ukernel/luminous-40221
Yuri Weinstein [Mon, 1 Jul 2019 16:09:36 +0000 (09:09 -0700)]
Merge pull request #28544 from ukernel/luminous-40221

luminous: mds: reset heartbeat inside big loop

Reviewed-by: Venky Shankar <vshankar@redhat.com>
6 years agoMerge pull request #28669 from smithfarm/wip-40347-luminous
Ali Maredia [Wed, 26 Jun 2019 17:46:31 +0000 (13:46 -0400)]
Merge pull request #28669 from smithfarm/wip-40347-luminous

luminous: tests: use curl in wait_for_radosgw() in util/rgw.py

6 years agoMerge pull request #27536 from pdvian/wip-38975-luminous
Yuri Weinstein [Wed, 26 Jun 2019 15:22:23 +0000 (08:22 -0700)]
Merge pull request #27536 from pdvian/wip-38975-luminous

luminous: rbd: krbd: return -ETIMEDOUT in polling

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #27990 from smithfarm/wip-39589-luminous
Yuri Weinstein [Wed, 26 Jun 2019 15:21:58 +0000 (08:21 -0700)]
Merge pull request #27990 from smithfarm/wip-39589-luminous

luminous: qa/tasks/rbd_fio: fixed missing delimiter between 'cd' and 'configure'

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #28124 from dillaman/wip-39460-luminous
Yuri Weinstein [Wed, 26 Jun 2019 15:21:27 +0000 (08:21 -0700)]
Merge pull request #28124 from dillaman/wip-39460-luminous

luminous: rbd-mirror: clear out bufferlist prior to listing mirror images

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
6 years agoMerge pull request #28126 from dillaman/wip-39427-luminous
Yuri Weinstein [Wed, 26 Jun 2019 15:21:03 +0000 (08:21 -0700)]
Merge pull request #28126 from dillaman/wip-39427-luminous

luminous: librbd: async open/close should free ImageCtx before issuing callback

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
6 years agoMerge pull request #28134 from dillaman/wip-38440-luminous
Yuri Weinstein [Wed, 26 Jun 2019 15:20:38 +0000 (08:20 -0700)]
Merge pull request #28134 from dillaman/wip-38440-luminous

luminous: librbd: ensure compare-and-write doesn't skip compare after copyup

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
6 years agoMerge pull request #28137 from dillaman/wip-38674-luminous
Yuri Weinstein [Wed, 26 Jun 2019 15:20:11 +0000 (08:20 -0700)]
Merge pull request #28137 from dillaman/wip-38674-luminous

luminous: librbd: improve object map performance under high IOPS workloads

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
6 years agoMerge pull request #28140 from dillaman/wip-38564-luminous
Yuri Weinstein [Wed, 26 Jun 2019 15:19:47 +0000 (08:19 -0700)]
Merge pull request #28140 from dillaman/wip-38564-luminous

luminous: librbd: race condition possible when validating RBD pool

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
6 years agoMerge pull request #28745 from dillaman/wip-40551-luminous
Yuri Weinstein [Wed, 26 Jun 2019 15:19:22 +0000 (08:19 -0700)]
Merge pull request #28745 from dillaman/wip-40551-luminous

luminous: qa/workunits/rbd: use more recent qemu-iotests that support Bionic

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
6 years agoMerge pull request #26554 from pdvian/wip-38397-luminous
Yuri Weinstein [Wed, 26 Jun 2019 15:17:37 +0000 (08:17 -0700)]
Merge pull request #26554 from pdvian/wip-38397-luminous

luminous: rgw: when exclusive lock fails due existing lock, log add'l info

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
6 years agoMerge pull request #27110 from pdvian/wip-38748-luminous
Yuri Weinstein [Wed, 26 Jun 2019 15:16:43 +0000 (08:16 -0700)]
Merge pull request #27110 from pdvian/wip-38748-luminous

luminous: rgw_sync: drop ENOENT error logs from mdlog

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #27123 from smithfarm/wip-38887-luminous
Yuri Weinstein [Wed, 26 Jun 2019 15:16:18 +0000 (08:16 -0700)]
Merge pull request #27123 from smithfarm/wip-38887-luminous

luminous: rgw: GetBucketCORS API returns Not Found error code when CORS configuration does not exist

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #27330 from pdvian/wip-38908-luminous
Yuri Weinstein [Wed, 26 Jun 2019 15:15:51 +0000 (08:15 -0700)]
Merge pull request #27330 from pdvian/wip-38908-luminous

luminous: rgw: fix read not exists null version return wrong

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #27424 from pdvian/wip-38925-luminous
Yuri Weinstein [Wed, 26 Jun 2019 15:15:24 +0000 (08:15 -0700)]
Merge pull request #27424 from pdvian/wip-38925-luminous

luminous: rgw: Adding tcp_nodelay option to Beast

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #27040 from pdvian/wip-38686-luminous
Yuri Weinstein [Tue, 25 Jun 2019 16:31:00 +0000 (09:31 -0700)]
Merge pull request #27040 from pdvian/wip-38686-luminous

luminous: qa/cephfs: relax min_caps_per_client check

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Yan, Zheng <zyan@redhat.com>
6 years agoMerge pull request #27342 from vshankar/wip-38445
Yuri Weinstein [Tue, 25 Jun 2019 16:30:15 +0000 (09:30 -0700)]
Merge pull request #27342 from vshankar/wip-38445

luminous: qa: misc cache drop fixes

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #27679 from rishabh-d-dave/wip-38877-luminous
Yuri Weinstein [Tue, 25 Jun 2019 16:29:45 +0000 (09:29 -0700)]
Merge pull request #27679 from rishabh-d-dave/wip-38877-luminous

luminous: mds: dont print subtrees if they are too big or too many

Reviewed-by: Venky Shankar <vshankar@redhat.com>
6 years agoMerge pull request #27737 from pdvian/wip-39191-luminous
Yuri Weinstein [Tue, 25 Jun 2019 16:29:16 +0000 (09:29 -0700)]
Merge pull request #27737 from pdvian/wip-39191-luminous

luminous: mds: drop reconnect message from non-existent session

Reviewed-by: Venky Shankar <vshankar@redhat.com>
6 years agoMerge pull request #27801 from pdvian/wip-39198-luminous
Yuri Weinstein [Tue, 25 Jun 2019 16:28:56 +0000 (09:28 -0700)]
Merge pull request #27801 from pdvian/wip-39198-luminous

luminous: mds/server: check directory split after rename.

Reviewed-by: Venky Shankar <vshankar@redhat.com>
6 years agoMerge pull request #27840 from pdvian/wip-39208-luminous
Yuri Weinstein [Tue, 25 Jun 2019 16:28:35 +0000 (09:28 -0700)]
Merge pull request #27840 from pdvian/wip-39208-luminous

luminous: mds: initialize cap_revoke_eviction_timeout with conf

Reviewed-by: Venky Shankar <vshankar@redhat.com>
6 years agoMerge pull request #27848 from ashishkumsingh/wip-39468-luminous
Yuri Weinstein [Tue, 25 Jun 2019 16:28:05 +0000 (09:28 -0700)]
Merge pull request #27848 from ashishkumsingh/wip-39468-luminous

luminous: mds: better output of 'ceph health detail'

Reviewed-by: Venky Shankar <vshankar@redhat.com>
6 years agoMerge pull request #28432 from ukernel/luminous-39221
Yuri Weinstein [Tue, 25 Jun 2019 16:27:44 +0000 (09:27 -0700)]
Merge pull request #28432 from ukernel/luminous-39221

luminous: mds: remove superfluous error in StrayManager::advance_delayed()

Reviewed-by: Venky Shankar <vshankar@redhat.com>
6 years agoMerge pull request #28436 from batrick/i39231
Yuri Weinstein [Tue, 25 Jun 2019 16:27:09 +0000 (09:27 -0700)]
Merge pull request #28436 from batrick/i39231

luminous: cephfs: kclient: nofail option not supported

6 years agoMerge pull request #28437 from jtlayton/wip-40160-luminous
Yuri Weinstein [Tue, 25 Jun 2019 16:26:32 +0000 (09:26 -0700)]
Merge pull request #28437 from jtlayton/wip-40160-luminous

luminous: client: clean up error checking and return of _lookup_parent

Reviewed-by: Venky Shankar <vshankar@redhat.com>
6 years agoMerge pull request #28438 from batrick/i39213
Yuri Weinstein [Tue, 25 Jun 2019 16:25:58 +0000 (09:25 -0700)]
Merge pull request #28438 from batrick/i39213

luminous: mds: there is an assertion when calling Beacon::shutdown()

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
6 years agoMerge pull request #28445 from jan--f/ceph_volume_client-use-fs-commands
Yuri Weinstein [Tue, 25 Jun 2019 16:24:58 +0000 (09:24 -0700)]
Merge pull request #28445 from jan--f/ceph_volume_client-use-fs-commands

luminous: ceph_volume_client: remove ceph mds calls in favor of ceph fs calls

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
6 years agoqa/workunits/rbd: use more recent qemu-iotests that support Bionic 28745/head
Jason Dillaman [Thu, 18 Apr 2019 18:02:45 +0000 (14:02 -0400)]
qa/workunits/rbd: use more recent qemu-iotests that support Bionic

Fixes: http://tracker.ceph.com/issues/24668
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit b184acd218b36b85f5a25678d773c35407a2b745)

6 years agoqa: use curl in wait_for_radosgw() in util/rgw.py 28669/head
Ali Maredia [Wed, 12 Jun 2019 20:12:47 +0000 (16:12 -0400)]
qa: use curl in wait_for_radosgw() in util/rgw.py

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

Conflicts:
qa/tasks/rgw.py
- rgw task was refactored for mimic

6 years agoMerge pull request #27085 from pdvian/wip-38719-luminous
Yuri Weinstein [Thu, 20 Jun 2019 00:11:44 +0000 (17:11 -0700)]
Merge pull request #27085 from pdvian/wip-38719-luminous

luminous: crush/CrushWrapper: ensure crush_choose_arg_map.size == max_buckets

Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #27636 from smithfarm/wip-39343-luminous
Yuri Weinstein [Thu, 20 Jun 2019 00:09:21 +0000 (17:09 -0700)]
Merge pull request #27636 from smithfarm/wip-39343-luminous

luminous: ceph-objectstore-tool: rename dump-import to dump-export

Reviewed-by: David Zafman <dzafman@redhat.com>
6 years agoMerge pull request #27674 from smithfarm/wip-38873-luminous
Yuri Weinstein [Thu, 20 Jun 2019 00:08:55 +0000 (17:08 -0700)]
Merge pull request #27674 from smithfarm/wip-38873-luminous

luminous: pybind: Rados.get_fsid() returning bytes in python3

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #27715 from pdvian/wip-39042-luminous
Yuri Weinstein [Thu, 20 Jun 2019 00:08:17 +0000 (17:08 -0700)]
Merge pull request #27715 from pdvian/wip-39042-luminous

luminous: osd/PGLog: preserve original_crt to check rollbackability

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
6 years agoMerge pull request #27751 from ashishkumsingh/wip-39431-luminous
Yuri Weinstein [Thu, 20 Jun 2019 00:07:29 +0000 (17:07 -0700)]
Merge pull request #27751 from ashishkumsingh/wip-39431-luminous

luminous: osd/PG: discover missing objects when an OSD peers and PG is degraded

Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #27810 from pdvian/wip-39204-luminous
Yuri Weinstein [Thu, 20 Jun 2019 00:06:59 +0000 (17:06 -0700)]
Merge pull request #27810 from pdvian/wip-39204-luminous

luminous: osd: shutdown recovery_request_timer earlier

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #27878 from pdvian/wip-39218-luminous
Yuri Weinstein [Thu, 20 Jun 2019 00:06:28 +0000 (17:06 -0700)]
Merge pull request #27878 from pdvian/wip-39218-luminous

luminous: osd: FAILED ceph_assert(attrs || !pg_log.get_missing().is_missing(soid) || (it_objects != pg_log.get_log().objects.end() && it_objects->second->op == pg_log_entry_t::LOST_REVERT)) in PrimaryLogPG::get_object_context()

Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #27908 from smithfarm/wip-39563-luminous
Yuri Weinstein [Thu, 20 Jun 2019 00:05:52 +0000 (17:05 -0700)]
Merge pull request #27908 from smithfarm/wip-39563-luminous

luminous: mon: Error message displayed when mon_osd_max_split_count would be exceeded is not as user-friendly as it could be

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
6 years agoMerge pull request #28185 from dzafman/wip-39719
Yuri Weinstein [Thu, 20 Jun 2019 00:05:22 +0000 (17:05 -0700)]
Merge pull request #28185 from dzafman/wip-39719

luminous: osd: Include dups in copy_after() and copy_up_to()

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge pull request #27982 from cbodley/wip-23237
Yuri Weinstein [Fri, 14 Jun 2019 14:29:19 +0000 (07:29 -0700)]
Merge pull request #27982 from cbodley/wip-23237

luminous: rgw: update civetweb submodule to match version in mimic

Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
6 years agomds: reset heartbeat inside big loop 28544/head
Yan, Zheng [Wed, 5 Jun 2019 10:05:15 +0000 (18:05 +0800)]
mds: reset heartbeat inside big loop

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

 Conflicts:
src/mds/Locker.h
src/mds/MDCache.cc

6 years agomds: avoid sending too many osd requests at once after mds restarts 28543/head
simon gao [Tue, 28 May 2019 02:36:32 +0000 (22:36 -0400)]
mds: avoid sending too many osd requests at once after mds restarts
Fixes: http://tracker.ceph.com/issues/40028
Signed-off-by: simon gao <simon29rock@gmail.com>
(cherry picked from commit 78484352f553d6b67f7d5c82384a186455f05537)

6 years agoMerge pull request #27332 from pdvian/wip-38920-luminous
Yuri Weinstein [Thu, 13 Jun 2019 22:14:22 +0000 (15:14 -0700)]
Merge pull request #27332 from pdvian/wip-38920-luminous

luminous: rgw: don't crash on missing /etc/mime.types

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #27935 from cbodley/wip-39572
Yuri Weinstein [Thu, 13 Jun 2019 22:10:47 +0000 (15:10 -0700)]
Merge pull request #27935 from cbodley/wip-39572

luminous: rgw:send x-amz-version-id header when upload files

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #28332 from cbodley/wip-37497
Yuri Weinstein [Thu, 13 Jun 2019 22:08:36 +0000 (15:08 -0700)]
Merge pull request #28332 from cbodley/wip-37497

luminous: rgw: get or set realm zonegroup zone need check user's caps

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #28069 from smithfarm/wip-39615-luminous
Yuri Weinstein [Thu, 13 Jun 2019 22:04:31 +0000 (15:04 -0700)]
Merge pull request #28069 from smithfarm/wip-39615-luminous

luminous: civetweb frontend: response is buffered in memory if content length is not explicitly specified

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #28350 from smithfarm/wip-39409-luminous
Yuri Weinstein [Thu, 13 Jun 2019 22:03:40 +0000 (15:03 -0700)]
Merge pull request #28350 from smithfarm/wip-39409-luminous

luminous: rgw: inefficient unordered bucket listing

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agomds: ignore sessionmap version mismatch if mds_wipe_sessions is set 28536/head
Yan, Zheng [Sat, 8 Jun 2019 09:33:14 +0000 (17:33 +0800)]
mds: ignore sessionmap version mismatch if mds_wipe_sessions is set

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit 2a20605c0393692bae4780ef3bd0cc684995d028)

 Conflicts:
src/mds/SessionMap.h
src/mds/journal.cc

6 years agomds: fix corner case of replaying open sessions
Yan, Zheng [Sat, 8 Jun 2019 05:08:21 +0000 (13:08 +0800)]
mds: fix corner case of replaying open sessions

Marking a session dirty may flush all existing dirty sessions. MDS
calls Server::finish_force_open_sessions() for log event that opens
multiple sessions. The function marks sessions dirty one by one. So
sessions opened by a log event may get flushed partially.

When replaying a log event that opens multiple sessions, mds need to
check if some of these sessions have already been flushed.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit 277327565fae93fad8e03cc5f27b78c98354c0dc)

 Conflicts:
src/mds/SessionMap.cc
src/mds/SessionMap.h
src/mds/journal.cc

6 years agoMerge pull request #28519 from ceph/backport-luminous-28060
Andrew Schoen [Wed, 12 Jun 2019 19:44:04 +0000 (14:44 -0500)]
Merge pull request #28519 from ceph/backport-luminous-28060

luminous: ceph-volume: use the Device.rotational property instead of sys_api

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume: skip missing interpreters when running tox tests 28519/head
Andrew Schoen [Fri, 10 May 2019 16:04:35 +0000 (11:04 -0500)]
ceph-volume: skip missing interpreters when running tox tests

This will skip tests for versions of python that don't exist on the node
that's running the tests.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit f1db0a864814d9b81192d89b6eebb6c624ddec3b)

6 years agoceph-volume: use the Device.rotational property instead of sys_api
Andrew Schoen [Fri, 10 May 2019 14:02:08 +0000 (09:02 -0500)]
ceph-volume: use the Device.rotational property instead of sys_api

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1666822

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 8ebff475dfa136c88101ef7364820fe3c5cee547)

6 years agoMerge pull request #27453 from pdvian/wip-38958-luminous
Yuri Weinstein [Wed, 12 Jun 2019 15:41:30 +0000 (08:41 -0700)]
Merge pull request #27453 from pdvian/wip-38958-luminous

luminous: rgw-admin: fix data sync report for master zone

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #27668 from smithfarm/wip-39360-luminous
Yuri Weinstein [Wed, 12 Jun 2019 15:40:27 +0000 (08:40 -0700)]
Merge pull request #27668 from smithfarm/wip-39360-luminous

luminous: rgw: failed to pass test_bucket_create_naming_bad_punctuation in s3test

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #27881 from pdvian/wip-39227-luminous
Yuri Weinstein [Wed, 12 Jun 2019 15:39:44 +0000 (08:39 -0700)]
Merge pull request #27881 from pdvian/wip-39227-luminous

luminous: rgw_file: save etag and acl info in setattr

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #28314 from smithfarm/wip-39180-luminous
Yuri Weinstein [Wed, 12 Jun 2019 15:39:03 +0000 (08:39 -0700)]
Merge pull request #28314 from smithfarm/wip-39180-luminous

luminous: rgw: orphans find perf improvments

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoqa: fix mdsmap lookup 28445/head
Patrick Donnelly [Tue, 24 Oct 2017 18:36:06 +0000 (11:36 -0700)]
qa: fix mdsmap lookup

We were returning the file system structure and not the mdsmap.

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

6 years agoceph-volume-client: fix command argument order
Patrick Donnelly [Tue, 27 Feb 2018 11:35:00 +0000 (03:35 -0800)]
ceph-volume-client: fix command argument order

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

6 years agoqa: use fs rm_data_pool
Patrick Donnelly [Tue, 24 Oct 2017 18:51:02 +0000 (11:51 -0700)]
qa: use fs rm_data_pool

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

 Conflicts:
doc/cephfs/administration.rst
qa/workunits/cephtool/test.sh
qa/workunits/fs/misc/mkpool_layout_vxattrs.sh
    Changes were dropped.

6 years agoceph_volume_client: fix usage of get_mds_map()
Ramana Raja [Thu, 21 Dec 2017 12:51:23 +0000 (18:21 +0530)]
ceph_volume_client: fix usage of get_mds_map()

get_mds_map() is an instance method, and not a global
function. Use it as such.

Fixes: http://tracker.ceph.com/issues/22524
Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit 181e3ea6ee8890a66e460f66a4e8c2aa74a9c002)

6 years agoceph_volume_client: remove use of obsolete mds cmd
Patrick Donnelly [Mon, 2 Oct 2017 00:08:23 +0000 (17:08 -0700)]
ceph_volume_client: remove use of obsolete mds cmd

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

6 years agoMerge pull request #28493 from tchaikov/luminous-39164
Yuri Weinstein [Tue, 11 Jun 2019 23:08:51 +0000 (16:08 -0700)]
Merge pull request #28493 from tchaikov/luminous-39164

luminous: qa: install python36-{cephfs,rados} instead of python34-*

Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
6 years agoqa: install python3-{cephfs,rados} instead of python34-* 28493/head
Kefu Chai [Tue, 11 Jun 2019 15:17:46 +0000 (23:17 +0800)]
qa: install python3-{cephfs,rados} instead of python34-*

we install the latest python-rpm-macros on all builders since
https://github.com/ceph/ceph-build/pull/1283 . now that we started
building python36-* after that change, for testing the python3 packages on
CentOS/RHEL 7, we need to install python36-* instead of python34-*.

and after the change of 8ae1947, python36-* now "Provides" python3-*, we
can just install python3-* for fulfill the requirement for testing
python3 cephfs bindings.

Fixes: http://tracker.ceph.com/issues/39164
Signed-off-by: Kefu Chai <kchai@redhat.com>
Conflicts: this change is not cherry-picked from master, because,
  in master, we don't install python3 packages after 7e5c85b604.
(cherry picked from commit 6790821afc749b14b1ddac68a0889059419eebb3)

6 years agoinstall-deps.sh: install '*rpm-macros'
Kefu Chai [Thu, 11 Apr 2019 16:11:42 +0000 (00:11 +0800)]
install-deps.sh: install '*rpm-macros'

so `yum-builddep` can have access to the latest macros for preparing the
build dependencies

Fixes: http://tracker.ceph.com/issues/39164
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 087ea813a061a1d6858aeae57950e90965f4ae15)

Conflicts:
install-deps.sh: trivial resolution

6 years agoqa/tasks/ceph_deploy: install python3.6 instead of python3.4 for py3 tests
Kefu Chai [Thu, 11 Apr 2019 02:02:32 +0000 (10:02 +0800)]
qa/tasks/ceph_deploy: install python3.6 instead of python3.4 for py3 tests

EPEL7 has switched over to python3.6 as the main python3. and we started
packaging python bindings for python3.6 since
https://github.com/ceph/ceph-build/pull/1283

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

6 years agoPendingReleaseNotes: note on python3.6 changes
Kefu Chai [Wed, 10 Apr 2019 10:08:04 +0000 (18:08 +0800)]
PendingReleaseNotes: note on python3.6 changes

Fixes: http://tracker.ceph.com/issues/39164
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 77c5ee06311d610f9accd94edf14becdf5820542)

Conflicts:
PendingReleaseNotes: the next release of luminous is 12.2.13
so adapt the cherry-picked change accordingly.

6 years agorpm: add "Provides: python3-*" for python packages
Kefu Chai [Tue, 9 Apr 2019 15:22:57 +0000 (23:22 +0800)]
rpm: add "Provides: python3-*" for python packages

so user can install python3-rados, instead of python36-rados, without
specifying the minor version of python. also, we should not break our
teuthology tests with this naming scheme change. for instance, our
cephfs qa suite installs `python3-cephfs` for testing the `cephfs-shell`

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

6 years agorpm: always use 3 as the default python3_{pkgversion,version}
Kefu Chai [Tue, 9 Apr 2019 15:15:16 +0000 (23:15 +0800)]
rpm: always use 3 as the default python3_{pkgversion,version}

as we have the rpm macros installed in
https://github.com/ceph/ceph-build/pull/1283 .

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

6 years agorpm: use python 3.6 as the default python3
Kefu Chai [Sun, 7 Apr 2019 00:43:59 +0000 (08:43 +0800)]
rpm: use python 3.6 as the default python3

some of our centos7 jenkins builders are failing to build ceph master and
nautilus branches. because EPEL7 recently switched from python3.4 to
python3.6 as the native python3. see
https://lists.fedoraproject.org/archives/list/epel-announce@lists.fedoraproject.org/message/EGUMKAIMPK2UD5VSHXM53BH2MBDGDWMO/

and one of our BuildRequires, cmake3,
was offered by EPEL7. it also followed the python3.6 switch-over to
rebuild against python3.6. as a result, the cmake3-data-3.13.4-2.el7
started to depend on /usr/bin/python3.6, which is in turn offered by
python36 package. after installing python36 as a dependency of the
updated cmake3. but in cmake, we originally checks for the latest
python3 interpreter if WITH_PYTHON3 is enabled, that's why these
builders which happen to install these updated packages started to fail
when detecting the existence of python3.6 related build dependencies.

as a fix, in d1e83082,
python%{python3_pkgversion}-{devel,setuptools,Cython} are listed as
BuildRequires to reflect this change in EPEL7. before d1e83082, we
hardwired them to python34-*.

but as following analysis puts, there are cases where `yum-builddep`
is inconsistent with `rpmbuild`. as `yum-builddep` changes the how
`python3_pkgversion` and `python3_version` macros are expanded:

- none of the packages installed by `yum-builddep` installs the python3
  related rpm macros, so the system stays with whatever python3 it was
  using. in this case, `rpmbuild` won't complain, as the
  `python3_pkgversion` and `python_version` are consistent before and
  after `yum-builddep`.
- system has python3.4 installed before `yum-builddep`. but
  `yum-builddep` installed python3.6 and also the updated
  `python-rpm-macros` packages, which points `python3_version` and
  `python3_pkgversion` to 3.6 and 36 respectively. in this case,
  `rpmbuild` will complain, because when we run `yum-builddep`,
  `python3_version` was still "3.4".
- system does not have python3 installed before `yum-builddep`. so
  it was using python34 for preparing the "BuildRequires". but some
  of the packages installed by `yum-builddep` installs python36, and
  also the updated `python-rpm-macros` packages, which points
  `python3_version` and `python3_pkgversion` to 3.6 and 36 respectively.
  in this case, `rpmbuild` will complain, because the python36 related
  dependencies are missing. what the system has is python34
  dependencies.
- system does not have python3 installed before `yum-builddep`. so
  it was using python34 for preparing the "BuildRequires". but some
  of the packages installed by `yum-builddep` installs python34, and
  also the updated `python-rpm-macros` packages, which points
  `python3_version` and `python3_pkgversion` to 3.4 and 34 respectively.
  in this case, `rpmbuild` won't complain, as the
  `python3_pkgversion` and `python_version` are also consistent before and
  after `yum-builddep`.

as we cannot tell if the system has python3 or what the python3 version
the system has before `yum-builddep`, so what we can do is to ensure
`rpmbuild` has what it needs to build Ceph. so let's just stick with
python3.6.

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

6 years agocmake: should PYTHON3_VERSION_STRING of libpython3
Kefu Chai [Fri, 5 Apr 2019 17:54:15 +0000 (01:54 +0800)]
cmake: should PYTHON3_VERSION_STRING of libpython3

and make sure the version matches exactly the requested one

in future, we should use FindPython.cmake

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

Conflicts:
src/CMakeLists.txt: trivial resolution

6 years agorpm: pass %{python3_version} to cmake
Kefu Chai [Thu, 4 Apr 2019 04:07:25 +0000 (12:07 +0800)]
rpm: pass %{python3_version} to cmake

to force cmake to use the python3 and python3 modules for building
python3 bindings

on the debian side, it's okay to continue using "-DWITH_PYTHON3=ON", as

- cmake does normalize "ON" to 3
- debian's cmake extension lives on /usr/lib/python3/dist-packages/
  not in a specific /usr/lib/python3.x/dist-packages directory

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

Conflicts:
ceph.spec.in: trivial resolution

6 years agocmake: check for libpython of the same version of interpreter
Kefu Chai [Thu, 4 Apr 2019 03:44:56 +0000 (11:44 +0800)]
cmake: check for libpython of the same version of interpreter

actually cython or python3-cython's dependencies should take care of it.
but we should at least get it right on our side if we check it.

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

6 years agocmake: use specified python3 version if any
Kefu Chai [Thu, 4 Apr 2019 03:37:00 +0000 (11:37 +0800)]
cmake: use specified python3 version if any

use might have multiple python3 installed, some of them has/have all
dependencies installed and is good enough for building Ceph. we should
not always use the latest python installed in the system and complain that
there is missing dependencies, even if user has installed all the
python3 dependencies for the older python3.

put in other words, if user only installs cython module for python3.4, but
she has both python3.6 and python3.4 in her system. we should not force
her to uninstall python3.6 for installing Ceph.

this change also aligns with MGR_PYTHON_VERSION. i am not applying the
same change to WITH_PYTHON2, because python2 is already stablized. and distros
are not likely to release new python2 releases.

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

Conflicts:
src/CMakeLists.txt: in luminous, WITH_PYTHON3 was "CHECK" by
default. as it's complicatd to support this behavior. it is changed to
"ON" in this change to be consistent with mimic and up. since we always
specify -DWITH_PYTHON3=ON explicitly when building rpm and deb packages,
this change is not visible to our CI or package builders.

6 years agoMerge pull request #27728 from neha-ojha/wip-39420-luminous
Yuri Weinstein [Mon, 10 Jun 2019 22:06:58 +0000 (15:06 -0700)]
Merge pull request #27728 from neha-ojha/wip-39420-luminous

luminous: osd/OSDMap: Replace get_out_osds with get_out_existing_osds

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoMerge pull request #27858 from ashishkumsingh/wip-39463-luminous
Yuri Weinstein [Mon, 10 Jun 2019 22:06:06 +0000 (15:06 -0700)]
Merge pull request #27858 from ashishkumsingh/wip-39463-luminous

luminous: msg: output peer address when detecting bad CRCs

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
6 years agoclient: clean up error checking and return of _lookup_parent 28437/head
Jeff Layton [Thu, 30 May 2019 19:56:53 +0000 (15:56 -0400)]
client: clean up error checking and return of _lookup_parent

ll_lookup_inode can end up getting back 0 from _lookup_parent,
without zeroing out the parent pointer, which ends up remaining
uninitialized.

Fix this by moving most of the sanity checks in _lookup_parent
into ll_lookup_inode, and only have it issue the call to the MDS.

This also allows us to do the checks in a more sane order.

Fixes: http://tracker.ceph.com/issues/40085
Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit 3ade7c046c6c5eaf20517d0713a805a681128831)

Conflicts:
src/client/Client.cc : std::lock_guard() => Mutex::Locker()
       ceph_assert() => assert()
       dentries.empty() => dn_set.empty()

6 years agomds: there is an assertion when calling Beacon::shutdown() 28438/head
huanwen ren [Wed, 20 Mar 2019 15:46:08 +0000 (23:46 +0800)]
mds: there is an assertion when calling Beacon::shutdown()

If you run MDSDaemon::init(), an exception occurs that causes MDSDaemon::suicide()--->Beacon::shutdown()--->sender.join();
this problem occurs because sender is just Default-constructed is in Beacon.h(std::thread sender;), there is no call
to Beacon::init() to construct the sender, so the sender has no "joinable"

Fixes: http://tracker.ceph.com/issues/38822
Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
(cherry picked from commit 526bbda6f68873a500c78685a7c39a129d8531e5)

6 years agomount.ceph.c: do not pass nofail to the kernel 28436/head
Kenneth Waegeman [Fri, 15 Mar 2019 15:47:06 +0000 (16:47 +0100)]
mount.ceph.c: do not pass nofail to the kernel

nofail is a userspace level option and shouldn't be passed to the kernel

Fixes: https://tracker.ceph.com/issues/23262
Signed-off-by: Kenneth Waegeman <kenneth.waegeman@ugent.be>
(cherry picked from commit 51676e602969c5643c31ed26d7c611f43470c8e4)

6 years agoqa: drop rfc2616 checking on civetweb 27982/head
Abhishek Lekshmanan [Thu, 5 Apr 2018 17:06:16 +0000 (19:06 +0200)]
qa: drop rfc2616 checking on civetweb

Since newer versions of civetweb are also strict on rfc2616 checks let's enforce
strict rfc2616 checks in s3tests

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit f8ed817cccff626c0b63f776c0c5203989c348a1)

Conflicts:
qa/tasks/s3tests.py: also lifecycle -> lifecycle_expiration

6 years agomds: open import bounding dirfrags in batch 28432/head
Yan, Zheng [Tue, 19 Mar 2019 13:03:10 +0000 (21:03 +0800)]
mds: open import bounding dirfrags in batch

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

 Conflicts:
src/mds/Migrator.cc

6 years agomds: remove superfluous error in StrayManager::advance_delayed()
Yan, Zheng [Tue, 19 Mar 2019 12:45:42 +0000 (20:45 +0800)]
mds: remove superfluous error in StrayManager::advance_delayed()

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

6 years agoMerge pull request #28390 from yuriw/wip-yuriw-whitelist-luminous_2
Yuri Weinstein [Tue, 4 Jun 2019 20:11:09 +0000 (13:11 -0700)]
Merge pull request #28390 from yuriw/wip-yuriw-whitelist-luminous_2

qa/tests: whitelisted 'application not enabled' and removed bad dir

6 years agoqa/tests: whitelisted 'application not enabled' and removed bad dir 28390/head
Yuri Weinstein [Tue, 4 Jun 2019 19:50:45 +0000 (12:50 -0700)]
qa/tests: whitelisted 'application not enabled' and removed bad dir

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
6 years agoMerge pull request #28355 from yuriw/wip-yuriw-whitelist-luminous
Yuri Weinstein [Sun, 2 Jun 2019 20:32:41 +0000 (13:32 -0700)]
Merge pull request #28355 from yuriw/wip-yuriw-whitelist-luminous

qa/tests: whitelisted POOL_APP_NOT_ENABLED

6 years agoqa/tests: whitelisted POOL_APP_NOT_ENABLED 28355/head
Yuri Weinstein [Fri, 31 May 2019 21:01:49 +0000 (14:01 -0700)]
qa/tests: whitelisted POOL_APP_NOT_ENABLED

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
6 years agorgw: cls_bucket_list_unordered lists a single shard 28350/head
Casey Bodley [Fri, 19 Apr 2019 22:38:47 +0000 (18:38 -0400)]
rgw: cls_bucket_list_unordered lists a single shard

CLSRGWIssueBucketList sends the request to every shard, but this loop
intended to list only the current_shard

Fixes: http://tracker.ceph.com/issues/39393
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit d37d0339ff61a293f2f9fd6dff3fbd630efce2a0)

Conflicts:
src/rgw/rgw_rados.cc: remove unnessary "struct"s

6 years agocls/rgw: expose cls_rgw_bucket_list_op for single shard
Casey Bodley [Fri, 19 Apr 2019 22:37:35 +0000 (18:37 -0400)]
cls/rgw: expose cls_rgw_bucket_list_op for single shard

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

Conflicts:
src/cls/rgw/cls_rgw_client.cc: remove unnessary "struct"s

6 years agoqa/rgw: add credentials to zone 'remove' in test_zonegroup_remove() 28332/head
Casey Bodley [Wed, 28 Nov 2018 18:18:05 +0000 (13:18 -0500)]
qa/rgw: add credentials to zone 'remove' in test_zonegroup_remove()

zone credentials are required to 'period update --commit' from
--rgw-zone remove

Signed-off-by: Casey Bodley <cbodley@redhat.com>
Conflicts:
src/test/rgw/rgw_multi/tests.py
(cherry picked from commit 56021eab9584f10fa43053621cce93b623c36265)

6 years agorgw: get or set realm zonegroup zone need check user's caps
yuliyang [Tue, 20 Nov 2018 09:19:38 +0000 (17:19 +0800)]
rgw: get or set realm zonegroup zone need check user's caps

fix: https://tracker.ceph.com/issues/37352

Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
(cherry picked from commit 6ecaec926fb81810f6be43744cd5c48d6ccfaf5a)

Conflicts: RGWOp::name() returns std::string
src/rgw/rgw_rest_config.h
src/rgw/rgw_rest_realm.cc

6 years agoMerge pull request #28130 from dillaman/wip-39727-luminous
Yuri Weinstein [Thu, 30 May 2019 20:38:49 +0000 (13:38 -0700)]
Merge pull request #28130 from dillaman/wip-39727-luminous

luminous: qa/workunits/rbd: use https protocol for devstack git operations

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
6 years agorgw-admin: add a detailed mode 28314/head
Abhishek Lekshmanan [Thu, 14 Feb 2019 16:40:44 +0000 (17:40 +0100)]
rgw-admin: add a detailed mode

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 143ff0d835c99b06e57a373bed2c61e84293ccc7)

 Conflicts:
src/rgw/rgw_admin.cc
Trivial merge conflct due to OTP changeset in Mimic

6 years agorgw: orphans find: don't process stale bucket instances
Abhishek Lekshmanan [Wed, 13 Feb 2019 14:32:17 +0000 (15:32 +0100)]
rgw: orphans find: don't process stale bucket instances

As a large bucket might have resharded multiple times, check the cur bucket info
and ensure that no reshard is in progress before we attempt to log bucket index
entries. On a large sized bucket, since a bucket would have undergone reshard
multiple times, this avoids wasteful processing of stale bucket instance entries

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 5436ff7fa99061a489f089677c03f63c76bb954b)

 Conflicts:
src/rgw/rgw_orphan.cc
sys_objctx dropped as obj_ctx changes are a part of Nautilus. Also similarly
with the includes, only `rgw_bucket.h` is included

6 years agorgw: orphan: introduce a detailed mode (off by default)
Abhishek Lekshmanan [Wed, 13 Feb 2019 12:45:47 +0000 (13:45 +0100)]
rgw: orphan: introduce a detailed mode (off by default)

We currently stat objects that fit in a head as well and also log them, since we
skip head objects anyway in the rados list output this commit avoids logging
these objects if the object size itself is less than the manifest head size.

Additionally we avoid the stat call itself from the list object output when the
object fits within the chunk size. This behaviour can be unset by setting the
detailed mode which can help in older clusters where the head used to have a
different size.

The old behaviour in both the cases can be turned on by setting the detailed
flag which can be passed on from rgw-admin. Avoiding stat calls and not logging
the head objects significantly reduces the IO activity on clusters which have a
huge percentage of objects that fit in a head.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit ca12ecbfed0f65f206e8ad05125fac93c5a5ed0f)

6 years agorgw: orphan: flush bucket index entries only after map is full
Abhishek Lekshmanan [Wed, 13 Feb 2019 12:32:43 +0000 (13:32 +0100)]
rgw: orphan: flush bucket index entries only after map is full

We otherwise may flush more regularly while we don't have enough entries in the
map

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit e9a406c9b036e4c3190077d57fc51d6ea3762475)

6 years agorgw: orphans tool: align with rgw list bucket min readahead
Abhishek Lekshmanan [Wed, 13 Feb 2019 12:15:02 +0000 (13:15 +0100)]
rgw: orphans tool: align with rgw list bucket min readahead

At rgw::rados layer we read upto `min readahead` entries anyway and then pass on
only the requested amount to the caller. Since this translates down to a cls
call requesting a 1000 omap keys by default, it makes sense not to waste the
entries, and process them

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 4c033bf0fd0429378ac350eecd78530cc1c11b84)

6 years agoMerge pull request #28183 from yuriw/wip-yuriw-fix-distro-luminous
Yuri Weinstein [Tue, 28 May 2019 22:49:51 +0000 (15:49 -0700)]
Merge pull request #28183 from yuriw/wip-yuriw-fix-distro-luminous

qa/tests: cleaned up supported distro

6 years agoqa/tests: cleaned up supported distro 28183/head
Yuri Weinstein [Mon, 20 May 2019 20:11:37 +0000 (13:11 -0700)]
qa/tests: cleaned up supported distro

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>