]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agoMerge pull request #19867 from smithfarm/wip-22591-luminous
Yuri Weinstein [Mon, 29 Jan 2018 16:03:10 +0000 (08:03 -0800)]
Merge pull request #19867 from smithfarm/wip-22591-luminous

luminous: rgw: refuses upload when Content-Type missing from POST policy

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #20051 from ceph/revert-19538-wip-22434-luminous
Yuri Weinstein [Mon, 29 Jan 2018 16:02:23 +0000 (08:02 -0800)]
Merge pull request #20051 from ceph/revert-19538-wip-22434-luminous

Revert "luminous: rgw: user stats increased after bucket reshard"

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #20056 from linuxbox2/luminous-rgw-latchfix
Yuri Weinstein [Mon, 29 Jan 2018 16:01:56 +0000 (08:01 -0800)]
Merge pull request #20056 from linuxbox2/luminous-rgw-latchfix

luminous: rgw_file: alternate fix deadlock on lru eviction

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #20073 from smithfarm/wip-22767-luminous
Yuri Weinstein [Mon, 29 Jan 2018 15:57:29 +0000 (07:57 -0800)]
Merge pull request #20073 from smithfarm/wip-22767-luminous

luminous: rgw: librgw: fix shutdown error with resources uncleaned

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #20075 from smithfarm/wip-22773-luminous
Yuri Weinstein [Mon, 29 Jan 2018 15:56:53 +0000 (07:56 -0800)]
Merge pull request #20075 from smithfarm/wip-22773-luminous

luminous: rgw: file deadlock on lru evicting

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
7 years agoMerge pull request #20107 from dreamhost/wip-22792
Yuri Weinstein [Mon, 29 Jan 2018 15:56:04 +0000 (07:56 -0800)]
Merge pull request #20107 from dreamhost/wip-22792

luminous: rgw: When a system object is created exclusively, do not distribute the

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #20136 from dillaman/wip-22815-luminous
Jason Dillaman [Fri, 26 Jan 2018 13:15:17 +0000 (08:15 -0500)]
Merge pull request #20136 from dillaman/wip-22815-luminous

luminous: qa/workunits/rbd: switch devstack to pike release

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoqa/workunits/rbd: switch devstack to pike release 20136/head
Jason Dillaman [Wed, 24 Jan 2018 16:28:19 +0000 (11:28 -0500)]
qa/workunits/rbd: switch devstack to pike release

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

7 years agoMerge pull request #19105 from batrick/i22228
Yuri Weinstein [Thu, 25 Jan 2018 20:03:21 +0000 (12:03 -0800)]
Merge pull request #19105 from batrick/i22228

luminous: client: anchor Inode while trimming caps

Reviewed-by: Yan, Zheng <zyan@redhat.com>
Reviewed-by: Yuri Weinstein <yweins@redhat.com>
7 years agoMerge pull request #19360 from ukernel/luminous-22219
Yuri Weinstein [Thu, 25 Jan 2018 20:02:32 +0000 (12:02 -0800)]
Merge pull request #19360 from ukernel/luminous-22219

luminous: mds: ignore export pin for unlinked directory

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #19646 from pdvian/wip-22503-luminous
Yuri Weinstein [Thu, 25 Jan 2018 20:01:35 +0000 (12:01 -0800)]
Merge pull request #19646 from pdvian/wip-22503-luminous

luminous: mds: properly eval locks after importing inode

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #20055 from dzafman/wip-22724
Josh Durgin [Thu, 25 Jan 2018 19:46:32 +0000 (11:46 -0800)]
Merge pull request #20055 from dzafman/wip-22724

luminous: miscounting degraded objects and PG stuck in recovery_unfound

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge branch 'luminous' into wip-22724 20055/head
David Zafman [Thu, 25 Jan 2018 19:44:18 +0000 (11:44 -0800)]
Merge branch 'luminous' into wip-22724

7 years agoMerge pull request #20081 from dzafman/wip-recovering-luminous
Josh Durgin [Thu, 25 Jan 2018 19:36:22 +0000 (11:36 -0800)]
Merge pull request #20081 from dzafman/wip-recovering-luminous

luminous: osd/ReplicatedPG.cc: recover_replicas: object added to missing set for backfill, but is not in recovering, error!

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #18008 from ukernel/luminous-21584
Yuri Weinstein [Thu, 25 Jan 2018 19:12:20 +0000 (11:12 -0800)]
Merge pull request #18008 from ukernel/luminous-21584

luminous: mds: fix CDir::log_mark_dirty()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
7 years agoMerge pull request #18782 from ukernel/luminous-21985
Yuri Weinstein [Thu, 25 Jan 2018 19:11:17 +0000 (11:11 -0800)]
Merge pull request #18782 from ukernel/luminous-21985

luminous: mds: fix MDS_FEATURE_INCOMPAT_FILE_LAYOUT_V2 definition

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #18783 from ukernel/luminous-21975
Yuri Weinstein [Thu, 25 Jan 2018 19:09:39 +0000 (11:09 -0800)]
Merge pull request #18783 from ukernel/luminous-21975

luminous: mds: trim 'N' log segments according to how many log segments are there

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #18831 from shinobu-x/wip-22076-luminous
Yuri Weinstein [Thu, 25 Jan 2018 19:08:27 +0000 (11:08 -0800)]
Merge pull request #18831 from shinobu-x/wip-22076-luminous

luminous: cephfs: "ceph tell mds" commands result in "File exists" errors on client admin socket

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #18835 from shinobu-x/wip-22074-luminous
Yuri Weinstein [Thu, 25 Jan 2018 19:07:27 +0000 (11:07 -0800)]
Merge pull request #18835 from shinobu-x/wip-22074-luminous

luminous: mds: don't check gid when none specified in auth caps

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #18869 from shinobu-x/wip-21952-luminous
Yuri Weinstein [Thu, 25 Jan 2018 19:06:52 +0000 (11:06 -0800)]
Merge pull request #18869 from shinobu-x/wip-21952-luminous

luminous: mds: no assertion on inode being purging in find_ino_peers()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #18871 from shinobu-x/wip-21947-luminous
Yuri Weinstein [Thu, 25 Jan 2018 19:06:17 +0000 (11:06 -0800)]
Merge pull request #18871 from shinobu-x/wip-21947-luminous

luminous: mds: preserve order of requests during recovery of multimds cluster

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #18912 from shinobu-x/wip-22077-luminous
Yuri Weinstein [Thu, 25 Jan 2018 19:05:28 +0000 (11:05 -0800)]
Merge pull request #18912 from shinobu-x/wip-22077-luminous

luminous: src/mds/MDCache.cc: 7421: FAILED assert(CInode::count() == inode_map.size() + snap_inode_map.size())

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #19055 from shinobu-x/wip-22192-luminous
Yuri Weinstein [Thu, 25 Jan 2018 19:04:50 +0000 (11:04 -0800)]
Merge pull request #19055 from shinobu-x/wip-22192-luminous

luminous: MDSMonitor: monitor gives constant "is now active in filesystem cephfs as rank" cluster log info messages

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Yan, Zheng <zyan@redhat.com>
7 years agoMerge pull request #19326 from ukernel/luminous-22263
Yuri Weinstein [Thu, 25 Jan 2018 19:02:59 +0000 (11:02 -0800)]
Merge pull request #19326 from ukernel/luminous-22263

luminous: mds: handle client reconnect gather race

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #19480 from smithfarm/wip-22407-luminous
Yuri Weinstein [Thu, 25 Jan 2018 19:00:27 +0000 (11:00 -0800)]
Merge pull request #19480 from smithfarm/wip-22407-luminous

luminous: cephfs: client: implement delegation support in userland cephfs

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
7 years agoMerge pull request #19775 from ukernel/luminous-19578
Yuri Weinstein [Thu, 25 Jan 2018 18:58:46 +0000 (10:58 -0800)]
Merge pull request #19775 from ukernel/luminous-19578

luminous: mds: track dirty dentries in separate list

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #19827 from pdvian/wip-22587-luminous
Yuri Weinstein [Thu, 25 Jan 2018 18:58:18 +0000 (10:58 -0800)]
Merge pull request #19827 from pdvian/wip-22587-luminous

luminous: mds: reduce debugging level for balancer messages

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Amit Kumar <amitkuma@redhat.com>
7 years agoMerge pull request #20082 from smithfarm/wip-21525-luminous
Yuri Weinstein [Thu, 25 Jan 2018 18:57:05 +0000 (10:57 -0800)]
Merge pull request #20082 from smithfarm/wip-21525-luminous

luminous: cephfs: client: dual client segfault with racing ceph_shutdown

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #20085 from pdvian/wip-22763-luminous
Yuri Weinstein [Thu, 25 Jan 2018 18:55:53 +0000 (10:55 -0800)]
Merge pull request #20085 from pdvian/wip-22763-luminous

luminous: cephfs-journal-tool: add "set pool_id" option

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #20086 from pdvian/wip-22765-luminous
Yuri Weinstein [Thu, 25 Jan 2018 18:55:19 +0000 (10:55 -0800)]
Merge pull request #20086 from pdvian/wip-22765-luminous

luminous: client: avoid recursive lock in ll_get_vino

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #18019 from ukernel/luminous-21091
Yuri Weinstein [Thu, 25 Jan 2018 17:11:10 +0000 (09:11 -0800)]
Merge pull request #18019 from ukernel/luminous-21091

luminous: mds: fix StrayManager::truncate()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #19485 from dillaman/wip-21788-luminous
Jason Dillaman [Thu, 25 Jan 2018 17:03:54 +0000 (12:03 -0500)]
Merge pull request #19485 from dillaman/wip-21788-luminous

luminous: librbd: refresh image after applying new/removing old metadata

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #18834 from shinobu-x/wip-22073-luminous
Jason Dillaman [Thu, 25 Jan 2018 16:44:39 +0000 (11:44 -0500)]
Merge pull request #18834 from shinobu-x/wip-22073-luminous

luminous: [api] compare-and-write methods not properly advertised

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #19058 from shinobu-x/wip-22190-luminous
Jason Dillaman [Thu, 25 Jan 2018 16:27:18 +0000 (11:27 -0500)]
Merge pull request #19058 from shinobu-x/wip-22190-luminous

luminous: class rbd.Image discard----OSError: [errno 2147483648] error discarding region

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #19066 from pdvian/wip-22172-luminous
Yuri Weinstein [Thu, 25 Jan 2018 16:18:13 +0000 (08:18 -0800)]
Merge pull request #19066 from pdvian/wip-22172-luminous

luminous: [rbd-nbd] Fedora does not register resize events

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Amit Kumar <amitkuma@redhat.com>
7 years agoMerge pull request #19107 from pdvian/wip-22208-luminous
Yuri Weinstein [Thu, 25 Jan 2018 16:17:38 +0000 (08:17 -0800)]
Merge pull request #19107 from pdvian/wip-22208-luminous

luminous: rbd: disk usage on empty pool no longer returns an error message

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #19305 from pdvian/wip-21700-luminous
Yuri Weinstein [Thu, 25 Jan 2018 16:17:01 +0000 (08:17 -0800)]
Merge pull request #19305 from pdvian/wip-21700-luminous

luminous: rbd-mirror: Allow a different data-pool to be used on the secondary cluster

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #19447 from smithfarm/wip-21646-luminous
Yuri Weinstein [Thu, 25 Jan 2018 16:16:26 +0000 (08:16 -0800)]
Merge pull request #19447 from smithfarm/wip-21646-luminous

luminous: librbd: Image-meta should be dynamically refreshed

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #19479 from smithfarm/wip-22376-luminous
Yuri Weinstein [Thu, 25 Jan 2018 16:15:50 +0000 (08:15 -0800)]
Merge pull request #19479 from smithfarm/wip-22376-luminous

luminous: rbd: Python RBD metadata_get does not work

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Amit Kumar <amitkuma@redhat.com>
7 years agoMerge pull request #19484 from dillaman/wip-21644-luminous
Yuri Weinstein [Thu, 25 Jan 2018 16:14:53 +0000 (08:14 -0800)]
Merge pull request #19484 from dillaman/wip-21644-luminous

luminous: rbd-mirror: sync image metadata when transfering remote image

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
7 years agoMerge pull request #19503 from shinobu-x/wip-22395-luminous
Yuri Weinstein [Thu, 25 Jan 2018 16:13:37 +0000 (08:13 -0800)]
Merge pull request #19503 from shinobu-x/wip-22395-luminous

luminous: librbd: cannot clone all image-metas if we have more than 64 key/value pairs

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #19504 from shinobu-x/wip-22393-luminous
Yuri Weinstein [Thu, 25 Jan 2018 16:12:33 +0000 (08:12 -0800)]
Merge pull request #19504 from shinobu-x/wip-22393-luminous

luminous: librbd: cannot copy all image-metas if we have more than 64 key/value pairs

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #19554 from shinobu-x/wip-22454-luminous
Yuri Weinstein [Thu, 25 Jan 2018 16:11:57 +0000 (08:11 -0800)]
Merge pull request #19554 from shinobu-x/wip-22454-luminous

 luminous: cluster resource agent ocf:ceph:rbd - wrong permissions

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #19625 from shinobu-x/wip-22497-luminous
Yuri Weinstein [Thu, 25 Jan 2018 16:11:22 +0000 (08:11 -0800)]
Merge pull request #19625 from shinobu-x/wip-22497-luminous

 luminous: [rbd-mirror] new pools might not be detected

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #19800 from smithfarm/wip-21641-luminous
Yuri Weinstein [Thu, 25 Jan 2018 16:10:37 +0000 (08:10 -0800)]
Merge pull request #19800 from smithfarm/wip-21641-luminous

luminous: rbd ls -l crashes with SIGABRT

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
7 years agoMerge pull request #19802 from smithfarm/wip-21690-luminous
Yuri Weinstein [Thu, 25 Jan 2018 16:09:49 +0000 (08:09 -0800)]
Merge pull request #19802 from smithfarm/wip-21690-luminous

luminous: tests: rbd_mirror_helpers.sh request_resync_image function saves image id to wrong variable

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #19853 from pdvian/wip-22593-luminous
Yuri Weinstein [Thu, 25 Jan 2018 16:09:02 +0000 (08:09 -0800)]
Merge pull request #19853 from pdvian/wip-22593-luminous

luminous: rbd: librbd: filter out potential race with image rename

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoRevert "luminous: rgw: user stats increased after bucket reshard" 20051/head
Orit Wasserman [Mon, 22 Jan 2018 15:18:43 +0000 (17:18 +0200)]
Revert "luminous: rgw: user stats increased after bucket reshard"

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
7 years agoWhen a system object is created exclusively, do not distribute the 20107/head
J. Eric Ivancich [Wed, 6 Dec 2017 21:36:28 +0000 (16:36 -0500)]
When a system object is created exclusively, do not distribute the
cache information to the other rados gateways and instead let them
lazily retrieve the information when they need it.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit 647ce3387312fc683660c1f3c7571c577379be1c)
Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
7 years agoMerge pull request #18722 from shinobu-x/wip-luminous-21946
Yuri Weinstein [Wed, 24 Jan 2018 21:19:46 +0000 (13:19 -0800)]
Merge pull request #18722 from shinobu-x/wip-luminous-21946

luminous: mds: set PRIO_USEFUL on num_sessions counter

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #18730 from shinobu-x/wip-luminous-22030
Yuri Weinstein [Wed, 24 Jan 2018 21:18:41 +0000 (13:18 -0800)]
Merge pull request #18730 from shinobu-x/wip-luminous-22030

luminous: List of filesystems does not get refreshed after a filesystem deletion

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #18754 from shinobu-x/wip-21636-luminous
Yuri Weinstein [Wed, 24 Jan 2018 21:18:04 +0000 (13:18 -0800)]
Merge pull request #18754 from shinobu-x/wip-21636-luminous

luminous: ceph-monstore-tool --readable mode doesn't understand FSMap, MgrMap

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #20053 from dillaman/wip-22740-luminous
Abhishek L [Wed, 24 Jan 2018 16:07:06 +0000 (17:07 +0100)]
Merge pull request #20053 from dillaman/wip-22740-luminous

luminous: qa/suites/upgrade: disable broken kraken upgrade cls_rbd test

Reviewed-By: Yuri Weinstein <yuriw@redhat.com>
7 years agoMerge pull request #18564 from kmroz/wip-21688-luminous
Yuri Weinstein [Wed, 24 Jan 2018 15:05:13 +0000 (07:05 -0800)]
Merge pull request #18564 from kmroz/wip-21688-luminous

luminous: Possible deadlock in 'list_children' when refresh is required

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #18698 from shinobu-x/wip-luminous-21808
Yuri Weinstein [Wed, 24 Jan 2018 15:04:38 +0000 (07:04 -0800)]
Merge pull request #18698 from shinobu-x/wip-luminous-21808

luminous: rbd: fix crash during map

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #19038 from pdvian/wip-22183-luminous
Yuri Weinstein [Wed, 24 Jan 2018 15:03:43 +0000 (07:03 -0800)]
Merge pull request #19038 from pdvian/wip-22183-luminous

luminous: rgw: set sync_from_all as true when no value is seen

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #19446 from smithfarm/wip-22404-luminous
Abhishek L [Wed, 24 Jan 2018 14:23:54 +0000 (15:23 +0100)]
Merge pull request #19446 from smithfarm/wip-22404-luminous

luminous: doc: crush_ruleset is invalid command in luminous

Reviewed-By: Abhishek Lekshmanan <abhishek@suse.com>
7 years agoMerge pull request #18747 from shinobu-x/wip-21794-luminous
Alfredo Deza [Wed, 24 Jan 2018 13:46:21 +0000 (08:46 -0500)]
Merge pull request #18747 from shinobu-x/wip-21794-luminous

luminous: backoff causes out of order op

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
7 years agoMerge pull request #20087 from dzafman/wip-misc-luminous
Kefu Chai [Wed, 24 Jan 2018 03:23:49 +0000 (11:23 +0800)]
Merge pull request #20087 from dzafman/wip-misc-luminous

qa/standalone: Minor fixes for ceph_objectstore_tool.py test

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agotest: Cleanup test-erasure-eio.sh code 20081/head
David Zafman [Thu, 12 Oct 2017 03:16:44 +0000 (20:16 -0700)]
test: Cleanup test-erasure-eio.sh code

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 69b5fc54feb59f8b0a26a3ca3e925980c91b5b75)

7 years agotest: Add replicated recovery/backfill test
David Zafman [Mon, 9 Oct 2017 21:15:51 +0000 (14:15 -0700)]
test: Add replicated recovery/backfill test

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit c2572bee3c6256419e0b265e9e2829e7f3afb76d)

7 years agoosd: Better recovery/backfill restart for mark_unfound_lost delete/revert
David Zafman [Mon, 9 Oct 2017 21:03:23 +0000 (14:03 -0700)]
osd: Better recovery/backfill restart for mark_unfound_lost delete/revert

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 689bff354a6bfa1cf47b0d0a04fa9f1b2ef68f75)

7 years agoosd, mon: Add new pg states recovery_unfound and backfill_unfound
David Zafman [Mon, 9 Oct 2017 15:19:21 +0000 (08:19 -0700)]
osd, mon: Add new pg states recovery_unfound and backfill_unfound

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 7f8b0ce9e681f727d8217e3ed74a1a3355f364f3)

Conflicts:
src/osd/PG.h (trivial)
src/osd/osd_types.h (trivial)

7 years agoosd: Add new UnfoundBackfill and UnfoundRecovery pg transitions
David Zafman [Mon, 9 Oct 2017 15:17:29 +0000 (08:17 -0700)]
osd: Add new UnfoundBackfill and UnfoundRecovery pg transitions

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit bb2bcb95f51abc206e005e44ef383ee45b8f2209)

Conflicts:
src/osd/PG.cc (trivial, no MBackfillReserve::CANCEL)
src/osd/PG.h (trivial)

fixup! osd: Add new UnfoundBackfill and UnfoundRecovery pg transitions

7 years agotest: Fix ceph-objectstore-tool usage check 20087/head
David Zafman [Mon, 18 Sep 2017 21:07:09 +0000 (14:07 -0700)]
test: Fix ceph-objectstore-tool usage check

Caused by: c7b7a1f04f78fa62890c567d0ca53874c8d75eb7

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 0364ae104afc15effadfe968b5f60221704d933c)

7 years agotest: ceph_objectstore_tool.py bad --filestore option to vstart
David Zafman [Wed, 24 Jan 2018 02:16:32 +0000 (18:16 -0800)]
test: ceph_objectstore_tool.py bad --filestore option to vstart

Luminous doesn't have --filestore option

Caused by: fd7d53bacb10d5b2094f1f579c96899d8a0a4b4f

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoclient: avoid recursive lock in ll_get_vino 20086/head
dongdong tao [Mon, 8 Jan 2018 08:00:31 +0000 (16:00 +0800)]
client: avoid recursive lock in ll_get_vino

Fixes: http://tracker.ceph.com/issues/22629
Signed-off-by: dongdong tao <tdd21151186@gmail.com>
(cherry picked from commit fdfbe40c3f16c14dc9c3352f3eea66d34138ee9d)

7 years agocephfs-journal-tool: add usage help info for header set <field> 20085/head
dongdong tao [Tue, 9 Jan 2018 09:07:11 +0000 (17:07 +0800)]
cephfs-journal-tool: add usage help info for header set <field>

Signed-off-by: dongdong tao <tdd21151186@gmail.com>
(cherry picked from commit 2b06bff950a78b15aca083b20eaa812b4214e8d4)

7 years agomds: add error log info
dongdong tao [Tue, 9 Jan 2018 08:54:40 +0000 (16:54 +0800)]
mds: add error log info

Signed-off-by: dongdong tao <tdd21151186@gmail.com>
(cherry picked from commit a7c2ecd6391d22c5312a9e568ff742cff252749e)

7 years agocephfs-journal-tool: add "set pool_id" option
dongdong tao [Tue, 9 Jan 2018 08:31:07 +0000 (16:31 +0800)]
cephfs-journal-tool: add "set pool_id" option

Fixes: http://tracker.ceph.com/issues/22631
Signed-off-by: dongdong tao <tdd21151186@gmail.com>
(cherry picked from commit b3a5e313117028b23133f3e0d72e0b6b7159a178)

7 years agoMerge pull request #18742 from shinobu-x/wip-21924-luminous
Yuri Weinstein [Tue, 23 Jan 2018 23:10:49 +0000 (15:10 -0800)]
Merge pull request #18742 from shinobu-x/wip-21924-luminous

luminous: ceph_test_objectstore fails ObjectStore/StoreTest.Synthetic/1 (filestore) buffer content mismatch

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #18744 from shinobu-x/wip-21922-luminous
Yuri Weinstein [Tue, 23 Jan 2018 23:10:19 +0000 (15:10 -0800)]
Merge pull request #18744 from shinobu-x/wip-21922-luminous

luminous: Objecter::C_ObjectOperation_sparse_read throws/catches exceptions on -ENOENT

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #18745 from shinobu-x/wip-21921-luminous
Yuri Weinstein [Tue, 23 Jan 2018 23:09:41 +0000 (15:09 -0800)]
Merge pull request #18745 from shinobu-x/wip-21921-luminous

luminous: Objecter::_send_op unnecessarily constructs costly hobject_t

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agotest: make the LibCephFS.ShutdownRacer test even more thrashy 20082/head
Jeff Layton [Wed, 11 Oct 2017 15:16:39 +0000 (11:16 -0400)]
test: make the LibCephFS.ShutdownRacer test even more thrashy

Have each thread do the startup and shutdown in a loop for a specified
number of times.

Tracker: http://tracker.ceph.com/issues/21512
Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit f877e365a42f8f34af6fc3382593ef09101a50d0)

7 years agolockdep: free_ids and lock_ref hashes must be truly global
Jeff Layton [Wed, 11 Oct 2017 15:16:38 +0000 (11:16 -0400)]
lockdep: free_ids and lock_ref hashes must be truly global

It's possible for the teardown of g_lockdep_ceph_ctx to occur, followed
by a new context being registered as the lockdep context. When that
occurs, we can end up reusing lock id's that were previously handed out
to consumers. We need for those IDs to be persistent across lockdep
enablement and disablement.

Make both the free_ids table, and the lock_refs map persistent across
lockdep_unregister_ceph_context and lockdep_register_ceph_context cycles.
Entries in those tables will only be deleted by the destruction of the
associated mutex.

When lockdep_unregister is called, do the refcounting like we normally
would, but only clear out the state when the lockid is registered
in the lock_names hash.

Finally, we do still need to handle the case where g_lockdep has gone
false even when there are outstanding references after the decrement.
Only log the message if that's not the case.

With this, we can deal with the case of multiple clients enabling and
disabling lockdep in an unsynchronized way.

Tracker: http://tracker.ceph.com/issues/21512
Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit 82fe4e94bcb706434f9215bc8405ff60770cf14f)

7 years agocommon: add a clear_g_str_vec() function to clear g_str_vec
Jeff Layton [Wed, 11 Oct 2017 15:16:38 +0000 (11:16 -0400)]
common: add a clear_g_str_vec() function to clear g_str_vec

Prefix str_vec and str_vec_lock with "g_" to make it clear that they are
truly global values. Add a new clear_g_str_vec function to allow it to
be explicitly cleaned out by callers that need that functionality
(mostly testcase for now).

Tracker: http://tracker.ceph.com/issues/21512
Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit f72ace0a5666db49bb390ff4ec6808e6e55a779f)

7 years agoMerge pull request #18746 from shinobu-x/wip-21916-luminous
Yuri Weinstein [Tue, 23 Jan 2018 23:08:59 +0000 (15:08 -0800)]
Merge pull request #18746 from shinobu-x/wip-21916-luminous

luminous: msg/async/AsyncConnection.cc: 1835: FAILED assert(state == STATE_CLOSED)

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agocommon: make it safe to call env_to_vec multiple times
Jeff Layton [Wed, 11 Oct 2017 15:16:38 +0000 (11:16 -0400)]
common: make it safe to call env_to_vec multiple times

After it has been called once and we have outstanding CephContexts with
pointers into str_vec, we can't call get_str_vec on it again.

Add a static local mutex to protect access to str_vec.

Tracker: http://tracker.ceph.com/issues/21512
Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit 90e898de5f4b8d22f1a6d0e2aedf9e8c50cf72d5)

7 years agolockdep: fix Mutex tests to disable lockdep properly
Jeff Layton [Thu, 14 Sep 2017 13:28:34 +0000 (09:28 -0400)]
lockdep: fix Mutex tests to disable lockdep properly

...and make g_lockdep a bool.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit 0cd0bd778a6149d3e2fe657060e223be3675aed7)

7 years agoclient: test shutdown race
Jeff Layton [Thu, 14 Sep 2017 13:28:33 +0000 (09:28 -0400)]
client: test shutdown race

Spawn threads that bring up a bunch of ceph_mounts with individual
CephContext objects, and then tear them down in parallel.

Tracker: http://tracker.ceph.com/issues/20988
Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit 8252f3168a1bc90add7f7515c549e9eecffa54b7)

7 years agoclient: fix signed/unsigned comparison compiler warning
Jeff Layton [Thu, 14 Sep 2017 16:22:52 +0000 (12:22 -0400)]
client: fix signed/unsigned comparison compiler warning

The build says:

src/client/Client.cc: In member function ‘void Client::trim_caps(MetaSession*, int)’:
src/client/Client.cc:4121:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (s->caps.size() > max)
       ~~~~~~~~~~~~~~~^~~~~

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit e057b6770b5545f327990cbaf17e7a391e3e8a50)

7 years agolockdep: fix races with concurrent lockdep teardown
Jeff Layton [Thu, 14 Sep 2017 13:28:34 +0000 (09:28 -0400)]
lockdep: fix races with concurrent lockdep teardown

If the cct is unregistered while other threads are flogging mutexes,
then we can hit all sorts of bugs. Ensure that we handle that
situation sanely, by checking that g_lockdep is still set after
we take the lockdep_mutex.

Also, remove an assertion from lockdep_unregister, and just turn it into
an immediate return. It's possible to have a call to
lockdep_unregister_ceph_context, and then a call to
lockdep_register_ceph_context while a mutex is being held by another
task.

In that case, it's possible the lock does not exist in the map
when we go to unregister it. That's not a bug though, just a natural
consequence of that series of actions.

Tracker: http://tracker.ceph.com/issues/20988
Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit 75f41a95782a7ee83a243d91963e8d591402f8a6)

7 years agolockdep: don't take lockdep_mutex twice for new lock registrations
Jeff Layton [Thu, 14 Sep 2017 13:28:34 +0000 (09:28 -0400)]
lockdep: don't take lockdep_mutex twice for new lock registrations

We can do it under the same mutex, which should be more efficient.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit 01863bb6fb62ea89aa3e21e43bf4dc4f3da9cfcb)

7 years agoMerge pull request #18749 from shinobu-x/wip-21785-luminous
Yuri Weinstein [Tue, 23 Jan 2018 23:07:07 +0000 (15:07 -0800)]
Merge pull request #18749 from shinobu-x/wip-21785-luminous

luminous: OSDMap cache assert on shutdown

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
7 years agoMerge pull request #18753 from shinobu-x/wip-21697-luminous
Yuri Weinstein [Tue, 23 Jan 2018 23:06:19 +0000 (15:06 -0800)]
Merge pull request #18753 from shinobu-x/wip-21697-luminous

luminous: OSDService::recovery_need_sleep read+updated without locking

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #18715 from shinobu-x/wip-luminous-21964
Yuri Weinstein [Tue, 23 Jan 2018 22:52:13 +0000 (14:52 -0800)]
Merge pull request #18715 from shinobu-x/wip-luminous-21964

luminous: ceph_test_cls_log failures related to cls_cxx_subop_version()

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18732 from shinobu-x/wip-luminous-21875
Yuri Weinstein [Tue, 23 Jan 2018 22:51:37 +0000 (14:51 -0800)]
Merge pull request #18732 from shinobu-x/wip-luminous-21875

luminous: ceph-mgr spuriously reloading OSD metadata on map changes

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #18735 from shinobu-x/wip-22029-luminous
Yuri Weinstein [Tue, 23 Jan 2018 22:50:34 +0000 (14:50 -0800)]
Merge pull request #18735 from shinobu-x/wip-22029-luminous

luminous: restarting active ceph-mgr cause glitches in bps and iops metrics

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agotest: Test case that reproduces tracker 18162
David Zafman [Mon, 2 Oct 2017 20:51:17 +0000 (13:51 -0700)]
test: Test case that reproduces tracker 18162

recover_replicas: object added to missing set for backfill, but is not in recovering, error!

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit b9de5eec267627c8bc5ff0759ddea6c4a8aa7bce)

7 years agoosd: Better handle failure to get enough EC shards to backfill
David Zafman [Wed, 4 Oct 2017 01:32:20 +0000 (18:32 -0700)]
osd: Better handle failure to get enough EC shards to backfill

Fixes: http://tracker.ceph.com/issues/18162
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 6a02bfef3d44a13589c1a90bec29ff0ac64f97aa)

7 years agoosd: For recovery get all possible shards to read on errors
David Zafman [Fri, 22 Sep 2017 03:35:27 +0000 (20:35 -0700)]
osd: For recovery get all possible shards to read on errors

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 390d12f71a1bd6e07f3516b1c73e467e9960725d)

7 years agotest: Use feature to get last array element
David Zafman [Wed, 27 Sep 2017 21:29:25 +0000 (14:29 -0700)]
test: Use feature to get last array element

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 43e3206de2a20bf17ad9f2b16b7e486804097bf2)

7 years agoosd: Allow recovery to send additional reads
David Zafman [Fri, 22 Sep 2017 00:48:28 +0000 (17:48 -0700)]
osd: Allow recovery to send additional reads

For now it doesn't include non-acting OSDs
Added test for this case

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 1235810c2ad08ccb7ef5946686eb2b85798f5bca)

7 years agotest: Allow modified options to existing setup functions
David Zafman [Thu, 21 Sep 2017 21:49:17 +0000 (14:49 -0700)]
test: Allow modified options to existing setup functions

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit f92aa6c82449152901a4663c523e9ba43363eca3)

7 years agoosd: CLEANUP: Change getattr_maybe_cache() to reflect how it is being used
David Zafman [Tue, 12 Sep 2017 22:09:14 +0000 (15:09 -0700)]
osd: CLEANUP: Change getattr_maybe_cache() to reflect how it is being used

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 143111a112ec64724226f83ed285f66ee52204b2)

7 years agotest: Add a removal test for erasure code read
David Zafman [Tue, 12 Sep 2017 22:03:33 +0000 (15:03 -0700)]
test: Add a removal test for erasure code read

Test feature: http://tracker.ceph.com/issues/14513

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 50e08b0a5d7dc30a164313c1480b6cc829b6ec65)

7 years agomon/PGMap: 'unclean' does not imply damaged
Sage Weil [Mon, 23 Oct 2017 21:07:48 +0000 (16:07 -0500)]
mon/PGMap: 'unclean' does not imply damaged

Everything (that I can think of) that would lead to a PG being unclean is
already reported via another health message.  And there are cases where a
PG is unclean (e.g., because it is backfilling) where we are not degraded.

Fix by ignoring this flag in the health checks.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 89e4cb90af3c193fe436390b5e3288701e6fc4af)

7 years agorgw_file: alternate fix deadlock on lru eviction 20075/head
Matt Benjamin [Fri, 19 Jan 2018 18:05:27 +0000 (13:05 -0500)]
rgw_file: alternate fix deadlock on lru eviction

This change is an alternate fix for two problems found and fixed
by Yao Zongyou <yaozongyou@vip.qq.com>.

The deadlock can be avoided just by not taking it in the recycle
case, which invariantly holds the lock.

The invalidation of the insert iterator by the recyle-path unlink
we'd like to handle as a condition in order to preserve the cached
insertion point optimization we get in the common case.  (The
original behavior was, indeed, incorrect.)

Based on feedback from Yao, removed the RGWFileHandle dtor version
of the unlink check, which I think happened twice.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit 3cf0880f86b8f7911139c4e3d672cf47420c8f49)

7 years agolibrgw: fix shutdown err with resources uncleaned 20073/head
Tao Chen [Fri, 1 Dec 2017 08:42:44 +0000 (16:42 +0800)]
librgw: fix shutdown err with resources uncleaned

Fixed: http://tracker.ceph.com/issues/22296

Signed-off-by: Tao Chen <chentao@umcloud.com>
(cherry picked from commit 0fa2be059e649684a4fe15a456d564acde8e7831)

7 years agoqa/suites/upgrade: disable broken kraken upgrade cls_rbd test 20053/head
Jason Dillaman [Mon, 22 Jan 2018 15:34:57 +0000 (10:34 -0500)]
qa/suites/upgrade: disable broken kraken upgrade cls_rbd test

Fixes: https://tracker.ceph.com/issues/22740
Signed-off-by: Jason Dillaman <dillaman@redhat.com>