]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Tamil Muthamizhan [Fri, 17 Feb 2017 21:06:43 +0000 (21:06 +0000)]
qa: drop ubuntu trusty support
ceph-ansible dropped support for OS that doesnt support systemd
Signed-off-by: Tamil Muthamizhan <tmuthami@redhat.com>
(cherry picked from commit
4d4b38eca81f7b57e3d3b31e1c13e7ab0ba5b30f )
Signed-off-by: Tamil Muthamizhan <tmuthami@redhat.com>
Yuri Weinstein [Thu, 23 Feb 2017 22:55:56 +0000 (14:55 -0800)]
Merge pull request #13283 from zmc/wip-smoke-openstack-kraken
qa/suites/smoke: add openstack requirements
Reviewed-by: Yuri Weinstein <yweins@redhat.com>
Mykola Golub [Tue, 21 Feb 2017 14:16:26 +0000 (16:16 +0200)]
Merge pull request #13201 from dillaman/wip-18703-kraken
kraken: librbd: prevent self-blacklisting during break lock
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
Mykola Golub [Tue, 21 Feb 2017 14:15:35 +0000 (16:15 +0200)]
Merge pull request #13102 from dillaman/wip-18668
kraken: test: use librados API to retrieve config params
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
Loic Dachary [Mon, 13 Feb 2017 07:19:36 +0000 (08:19 +0100)]
Merge pull request #13330 from smithfarm/wip-18870-kraken
kraken: tests: SUSE yaml facets in qa/distros/all are out of date
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Yuri Weinstein [Fri, 10 Feb 2017 23:41:06 +0000 (15:41 -0800)]
Merge pull request #12984 from ceph/wip-cherry-pick-4tamil
qa: Wip cherry pick 4tamil ceph-ansible
Reviewed-by: Yuri Weinstein <yweins@redhat.com>
Kefu Chai [Thu, 9 Feb 2017 14:48:01 +0000 (22:48 +0800)]
Merge pull request #13239 from smithfarm/wip-18805-kraken
kraken: tests: ignore bogus ceph-objectstore-tool error in ceph_manager
Reviewed-by: Kefu Chai <kefu@redhat.com>
Nathan Cutler [Wed, 8 Feb 2017 20:23:54 +0000 (21:23 +0100)]
tests: drop buildpackages.py
The buildpackages suite has been moved to teuthology. This cleans up a file
that was left behind by https://github.com/ceph/ceph/pull/13297
Fixes: http://tracker.ceph.com/issues/18846
Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit
6b7443fb50c117ee7f20d53bbc7530bb0eb7ebd5 )
Nathan Cutler [Wed, 8 Feb 2017 14:27:00 +0000 (15:27 +0100)]
tests: update SUSE yaml facets in qa/distros/all
Fixes: http://tracker.ceph.com/issues/18856
Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit
0bd56e871a8549d4b0b1211f09dad2d1120fb606 )
Loic Dachary [Wed, 8 Feb 2017 17:50:52 +0000 (18:50 +0100)]
Merge pull request #13298 from dachary/wip-18849-kraken
kraken: tests: remove qa/suites/buildpackages
Reviewed-by: Nathan Cutler <ncutler@suse.cz>
Loic Dachary [Tue, 7 Feb 2017 17:33:29 +0000 (18:33 +0100)]
buildpackages: remove because it does not belong
It should live in teuthology, not in Ceph. And it is currently broken:
there is no need to keep it around.
Fixes: http://tracker.ceph.com/issues/18846
Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit
5a43f8d57925da227c95480501ceec10a29395d8 )
Nathan Cutler [Mon, 6 Feb 2017 17:43:49 +0000 (18:43 +0100)]
tests: fix regression in qa/tasks/ceph_master.py
https://github.com/ceph/ceph/pull/13194 introduced a regression:
2017-02-06T16:14:23.162 INFO:tasks.thrashosds.thrasher:Traceback (most recent call last):
File "/home/teuthworker/src/github.com_ceph_ceph_master/qa/tasks/ceph_manager.py", line 722, in wrapper
return func(self)
File "/home/teuthworker/src/github.com_ceph_ceph_master/qa/tasks/ceph_manager.py", line 839, in do_thrash
self.choose_action()()
File "/home/teuthworker/src/github.com_ceph_ceph_master/qa/tasks/ceph_manager.py", line 305, in kill_osd
output = proc.stderr.getvalue()
AttributeError: 'NoneType' object has no attribute 'getvalue'
This is because the original patch failed to pass "stderr=StringIO()" to run().
Fixes: http://tracker.ceph.com/issues/16263
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit
db2582e25e390fcaf75952eb59a73dcff643f49c )
Zack Cerza [Thu, 12 Jan 2017 21:55:26 +0000 (14:55 -0700)]
Add openstack requirements to smoke suite
Signed-off-by: Zack Cerza <zack@redhat.com>
(cherry picked from commit
fe9b7552d116b150f178c4cc778fa27cd8d956d1 )
Nathan Cutler [Mon, 30 Jan 2017 23:46:22 +0000 (00:46 +0100)]
tests: ignore bogus ceph-objectstore-tool error in ceph_manager
Fixes: http://tracker.ceph.com/issues/16263
Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit
046e873026c59e733f1844b28ffdc030cbe57b36 )
Jason Dillaman [Wed, 25 Jan 2017 19:45:56 +0000 (14:45 -0500)]
librbd: prevent self-blacklisting during break lock
Fixes: http://tracker.ceph.com/issues/18666
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit
5c590acaec4dd66a9a8c3aa0ec8ab904dd350216 )
Conflicts:
src/librbd/exclusive_lock/BreakRequest.cc: managed lock refactor
src/test/librbd/exclusive_lock/test_mock_BreakRequest.cc: managed lock refactor
John Spray [Wed, 25 Jan 2017 23:33:46 +0000 (00:33 +0100)]
Merge pull request #13024 from SUSE/wip-18604-kraken
kraken: cephfs test failures (ceph.com/qa is broken, should be download.ceph.com/qa)
John Spray [Wed, 25 Jan 2017 23:31:53 +0000 (00:31 +0100)]
Merge pull request #12813 from SUSE/wip-18439-kraken
kraken: fuse: TestVolumeClient.test_evict_client failure creating pidfile
John Spray [Wed, 25 Jan 2017 23:29:55 +0000 (00:29 +0100)]
Merge pull request #12951 from jcsp/wip-18361-kraken
kraken: client: populate metadata during mount
John Spray [Wed, 25 Jan 2017 23:29:00 +0000 (00:29 +0100)]
Merge pull request #13030 from SUSE/wip-18612-kraken
kraken: client: segfault on ceph_rmdir path /
John Spray [Wed, 25 Jan 2017 23:27:57 +0000 (00:27 +0100)]
Merge pull request #13028 from SUSE/wip-18531-kraken
kraken: speed up readdir by skipping unwanted dn
John Spray [Wed, 25 Jan 2017 23:25:34 +0000 (00:25 +0100)]
Merge pull request #12835 from SUSE/wip-18463-kraken
kraken: Decode errors on backtrace will crash MDS
Jason Dillaman [Tue, 24 Jan 2017 14:24:52 +0000 (09:24 -0500)]
librbd: improve debug logging for lock / watch state machines
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Tue, 24 Jan 2017 02:24:41 +0000 (21:24 -0500)]
test: use librados API to retrieve config params
The CephContext object is not ABI-stable, so it is necessary to
use the "conf_get" librados methods to safely retrieve a setting.
Fixes: http://tracker.ceph.com/issues/18617
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit
8ad40645ac3948f8341e9a80ce8aff8ac5b9ad11 )
Conflicts:
src/test/librbd/test_librbd.cc: trivial resolution
Radoslaw Zarzynski [Mon, 23 Jan 2017 19:46:55 +0000 (20:46 +0100)]
Merge pull request #13006 from rzarzynski/wip-rgw-18476-kraken
kraken: rgw: fix handling RGWUserInfo::system in RGWHandler_REST_SWIFT.
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Radoslaw Zarzynski [Tue, 10 Jan 2017 11:09:50 +0000 (12:09 +0100)]
rgw: fix handling RGWUserInfo::system in RGWHandler_REST_SWIFT.
Before this patch the flag was wrongly handled in the Swift API
implementation. In rare conditions this might result in setting
req_state::system_request.
This may happen only if both of those conditions are fulfilled:
* RadosGW is running in a multi-site configuration (at least
one user with the system flag turned on is present),
* the "rgw_swift_account_in_url" configurable has been switched
to true. The value is false by default and our documentation
doesn't actually mention about the option.
The issue doesn't affect Jewel nor any previous release.
Fixes: http://tracker.ceph.com/issues/18476
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
(cherry picked from commit
8dac93392b6679c3ad9bb28ea66f6bb8c7be511d )
Nathan Cutler [Mon, 23 Jan 2017 18:29:57 +0000 (19:29 +0100)]
Merge pull request #13044 from SUSE/wip-18571-kraken
kraken: Python Swift client commands in Quick Developer Guide don't match configuration in vstart.sh
Reviewed-by: Casey Bodley <cbodley@redhat.com>
John Spray [Tue, 17 Jan 2017 16:12:46 +0000 (17:12 +0100)]
qa: update remaining ceph.com to download.ceph.com
Fixes: http://tracker.ceph.com/issues/18574
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit
549d993d3fd8ffffa280ed4a64aca41d1c6f2da1 )
Ronak Jain [Fri, 13 Jan 2017 11:27:45 +0000 (16:57 +0530)]
Doc: Fixes Python Swift client commands
Fixes: http://tracker.ceph.com/issues/17746
Signed-off-by: Ronak Jain <ronakjain@outlook.in>
(cherry picked from commit
8c79959557d60f619adf1a3ed1b5bd1112ceaabb )
Michal Jarzabek [Thu, 12 Jan 2017 21:22:20 +0000 (21:22 +0000)]
client/Client.cc: prevent segfaulting
The segfaulting in the rmdir function is caused by calling
filepath::last_dentry() function.
last_dentry() function assumes that the bits vector has always at
least one element, which is not the case for the the filepath object
created with "/" input.
This commit also fixes other functions affected by this bug:
link, unlink, rename, mkdir, mknod and symlink.
Fixes: http://tracker.ceph.com/issues/9935
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
(cherry picked from commit
6ed7f2364ae5507bab14c60b582929aa7b0ba400 )
Sage Weil [Fri, 20 Jan 2017 17:14:24 +0000 (11:14 -0600)]
Merge pull request #13011 from liewegas/wip-18595-kraken
os/bluestore: fix Allocator::allocate() int truncation
Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
Xiaoxi Chen [Wed, 11 Jan 2017 02:11:08 +0000 (19:11 -0700)]
mds/server: skip unwanted dn in handle_client_readdir
We can skip unwanted dn which < (offset_key, snap) via map.lower_bound, rather than
iterate across them.
Previously we iterate and skip dn which < (offset_key, dn->last), as dn->last >= snap
means (offset_key, dn->last) >= (offset_key, snap), and such iterate_and_skip logic
still keep, so this commit doesnt change code logic but an optimization.
Signed-off-by: Xiaoxi Chen <xiaoxchen@ebay.com>
(cherry picked from commit
52fe52baf920c672ac7f63a3087dcd31137891b6 )
Sage Weil [Fri, 20 Jan 2017 01:51:45 +0000 (19:51 -0600)]
os/bluestore: fix Allocator::allocate() int truncation
An allocation of size 0x80000000 gets truncated to 0. Larger values can
break things in similar ways.
Introduced in
5ab034345d7320fbc86a2133c0c29ec1aca4b71a .
Fixes: http://tracker.ceph.com/issues/18595
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
e19aa8484632ac7d83aa5dc868a1fe4dc167d9b9 )
Jenkins Build Slave User [Thu, 19 Jan 2017 13:08:38 +0000 (13:08 +0000)]
11.2.0
Sage Weil [Thu, 19 Jan 2017 12:29:48 +0000 (06:29 -0600)]
Merge pull request #13000 from liewegas/wip-bluestore-extents-kraken
os/bluestore: fix reclaim_blocks (kraken)
Tamil Muthamizhan [Fri, 13 Jan 2017 23:25:32 +0000 (15:25 -0800)]
removing fs workunit
removing fs workunit for now until tracker issue 18528 is resolved.
Signed-off-by: Tamil Muthamizhan <tmuthami@redhat.com>
(cherry picked from commit
728411f5aee053c8258e7e642816c5d5605da8ef )
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
Sage Weil [Wed, 18 Jan 2017 22:47:29 +0000 (16:47 -0600)]
Merge pull request #12989 from yuriw/wip-fix-distro-kraken
qa: Switched to centos 7.3 and as runs on smithi and vps are supported now
Yuri Weinstein [Wed, 18 Jan 2017 22:44:02 +0000 (22:44 +0000)]
Switched to centos 7.3 and as runs on smithi and vps are supported now
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
Tamil Muthamizhan [Thu, 12 Jan 2017 23:29:56 +0000 (15:29 -0800)]
qa: specify client for fs workunit
s/all/client.0
Signed-off-by: Tamil Muthamizhan <tmuthami@redhat.com>
(cherry picked from commit
8f6fd3a76695904f8e8674372866867bca44b464 )
Tamil Muthamizhan [Thu, 22 Dec 2016 00:03:31 +0000 (16:03 -0800)]
Added a smoke suite for ceph-ansible
Smoke suite with basic tests for ceph ansible deployment
Signed-off-by: Tamil Muthamizhan <tmuthami@redhat.com>
(cherry picked from commit
ad9b75f8d0ccca1aa2dfc8679196643433634687 )
Sage Weil [Wed, 18 Jan 2017 12:35:59 +0000 (07:35 -0500)]
os/bluestore/BlueFS: dump allocator freelist on failure in reclaim_blocks
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
15ff48518a65e0a3add97c5b7f650d329abf1dd1 )
Sage Weil [Wed, 18 Jan 2017 12:24:06 +0000 (06:24 -0600)]
os/bluestore/BlueFS: handle failure to reclaim blocks without crashing
We shouldn't fail to reclaim space in general, but if we do, do not treat
it as a fatal error. Log loudly.
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
6dc1bcd9e72b01c3fbf09c7eb91cd7cf4e01f94a )
Yuri Weinstein [Tue, 17 Jan 2017 22:50:28 +0000 (14:50 -0800)]
Merge pull request #12969 from ceph/wip-cd-bp
qa/task/ceph-deploy backports for kraken
Reviewed-by: Yuri Weinstein <yweins@redhat.com>
Vasu Kulkarni [Tue, 10 Jan 2017 23:43:12 +0000 (15:43 -0800)]
use the create option during instantiation
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
Vasu Kulkarni [Tue, 10 Jan 2017 01:59:20 +0000 (17:59 -0800)]
Remove debug overrides
the high level of debug for mon/osd is causing remoto to hang during get key
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
Vasu Kulkarni [Tue, 10 Jan 2017 00:45:01 +0000 (16:45 -0800)]
Add ceph-create-keys to explicitly create admin/bootstrap keys
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
Sage Weil [Tue, 17 Jan 2017 21:23:07 +0000 (16:23 -0500)]
unitest_bit_alloc, unittest_alloc: fixes
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
7492aef0f717f1fb5c09d55c99ded2adce7997d6 )
Sage Weil [Tue, 17 Jan 2017 16:17:38 +0000 (11:17 -0500)]
os/bluestore: prealloc/reserve extent vector for common alloc path
No need to worry about the gift/reclaim path--those are very rare.
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
b0c243875fe963e2958828bef62f3ba55e123434 )
Sage Weil [Tue, 17 Jan 2017 15:26:50 +0000 (10:26 -0500)]
os/bluestore/Allocator: drop unused and goofy release_extents
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
14676ac8cd69a1b4c06c728b0c00b00dd6a71a7a )
Sage Weil [Tue, 17 Jan 2017 15:25:34 +0000 (10:25 -0500)]
os/bluestore: drop useless count arg to allocate
The vector<> has a size.
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
0aa402fba19f5c83806304b2ecef6902c481eff4 )
Sage Weil [Tue, 17 Jan 2017 15:20:07 +0000 (10:20 -0500)]
os/bluestore: return blocks allocated from allocate()
Instead of having a separate output argument with the number of
blocks allocated, just return it via the return value. Simplifies
the calling convention.
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
95c78706317f2fe61b8f48de5e8539ed49221d64 )
Sage Weil [Tue, 17 Jan 2017 15:56:13 +0000 (10:56 -0500)]
os/bluestore: manage vector from ExtentList
ExtentList was previous relying the caller to preallocate/size the
vector to be large enough for the worst case allocation of extents,
and keeping it's own manual count of the extent list size. Instead,
manage that from ExtentList, and remove the preallocation from the
callers.
Fixes: http://tracker.ceph.com/issues/18573
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
65502891dd66569c8d99384e63b68decdab1c8e2 )
Sage Weil [Tue, 17 Jan 2017 20:32:47 +0000 (15:32 -0500)]
Merge tag 'v11.1.1' into kraken
v11.1.1
Jason Dillaman [Tue, 17 Jan 2017 13:40:38 +0000 (08:40 -0500)]
Merge pull request #12960 from SUSE/wip-18546-kraken
kraken: [teuthology] update Ubuntu image url after ceph.com refactor
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Tue, 17 Jan 2017 03:12:51 +0000 (22:12 -0500)]
qa/tasks/qemu: update default image url after ceph.com redesign
Fixes: http://tracker.ceph.com/issues/18542
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit
6d17befb3bbc3d83c9d23d763ad95e1e7b2e4be0 )
John Spray [Fri, 13 Jan 2017 00:30:28 +0000 (00:30 +0000)]
client: populate metadata during mount
This way we avoid having to over-write the "root"
metadata during mount, and any user-set overrides (such
as bad values injected by tests) will survive.
Because Client instances may also open sessions without
mounting to send commands, add a call into populate_metadata
from mds_command as well.
Fixes: http://tracker.ceph.com/issues/18361
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit
1dbff09ad553f9ff07f4f4217ba7ece6c2cdc5d2 )
Sage Weil [Mon, 16 Jan 2017 20:04:55 +0000 (14:04 -0600)]
Merge pull request #12949 from cbodley/wip-rgw-kraken
rgw: valgrind fixes for kraken
Reviewed-by: Sage Weil <sage@redhat.com>
Casey Bodley [Thu, 5 Jan 2017 18:10:50 +0000 (13:10 -0500)]
rgw: RGWCloneMetaLogCoroutine uses RGWMetadataLogInfoCompletion
Fixes: http://tracker.ceph.com/issues/18412
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
34a2edbf53f26a21e3206027dc61efc70d9c6aad )
Casey Bodley [Thu, 5 Jan 2017 18:10:18 +0000 (13:10 -0500)]
rgw: expose completion for RGWMetadataLog::get_info_async()
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
7b3532e2ad0f478a1670ceb61fd68209df87aa8b )
Casey Bodley [Wed, 21 Dec 2016 19:32:04 +0000 (14:32 -0500)]
rgw: RGWMetaSyncShardCR drops stack refs on destruction
if the coroutine is canceled before collect_children() can clean up
all of its child stacks, those stack refs will leak. store these
stacks as boost::intrusive_ptr so the ref is dropped automatically on
destruction
Fixes: http://tracker.ceph.com/issues/18300
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
060fe72faf6a483a36d481207c6624c46a414231 )
Casey Bodley [Thu, 5 Jan 2017 21:06:45 +0000 (16:06 -0500)]
rgw: RGWAsyncRadosRequest drops notifier ref on cancel
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
1d586f76a11fed937fc7bb0f7cf6a44ca0506881 )
Casey Bodley [Wed, 4 Jan 2017 16:36:00 +0000 (11:36 -0500)]
rgw: release RGWAioCompletionNotifier refs on destruction
Fixes: http://tracker.ceph.com/issues/18407
Fixes: http://tracker.ceph.com/issues/18414
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
7a4975adba8b890e211d47662896e445a9822970 )
Jason Dillaman [Sat, 14 Jan 2017 14:57:38 +0000 (09:57 -0500)]
Merge pull request #12889 from dillaman/wip-18452-kraken
kraken: librbd: new API method to force break a peer's exclusive lock
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Matt Benjamin [Fri, 6 Jan 2017 20:16:32 +0000 (15:16 -0500)]
rgw_rados: sanitize dout print in GWRados::get_obj_iterate_cb(...)
We cannot assume pbl may be deferenced. Per review, move the dout
print into the r < 0 condition--since it's now an error, make it's
trace level 0.
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit
c0233c4abb9f99304e3d82272bbb4385086bbfc0 )
Matt Benjamin [Fri, 6 Jan 2017 17:30:42 +0000 (12:30 -0500)]
rgw_rados: add guard assert in add_io()
Use the iterator-returning insert operation in std::map, check
assert the insert case. As a side effect, this makes use of the
inserted object record more clear.
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit
d10c37adf925d8b34daa81b419463ea376ec27aa )
Sage Weil [Thu, 12 Jan 2017 21:48:27 +0000 (15:48 -0600)]
Merge pull request #12911 from athanatos/wip-18165
osd/PrimaryLogPG::failed_push: update missing as well
Sage Weil [Thu, 12 Jan 2017 21:48:08 +0000 (15:48 -0600)]
Merge pull request #12910 from athanatos/wip-18358
osdc/Objecter: resend pg commands on interval change
Samuel Just [Thu, 12 Jan 2017 20:44:44 +0000 (12:44 -0800)]
Objecter: resend pg commands on interval change
mark_lost_unfound* are now async since the rework, so we need
the Objecter to be able to resend on interval change. This
is preferable to somehow requeueing the Command because they
don't use the normal op queue.
Fixes: http://tracker.ceph.com/issues/18358
Signed-off-by: Samuel Just <sjust@redhat.com>
Samuel Just [Tue, 10 Jan 2017 02:08:53 +0000 (18:08 -0800)]
Objecter: fold last_force_resend into op_target_t
It's always passed along with op_target_t, this seems simpler.
Signed-off-by: Samuel Just <sjust@redhat.com>
Jason Dillaman [Fri, 6 Jan 2017 16:17:10 +0000 (11:17 -0500)]
librados: blacklist_add should wait for latest OSD map
This ensures that future operations against the OSDs force
a OSD map update to notice the blacklisted client.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit
9242a2e4e1a5a9fcea48d8135b1589493fc28242 )
Jason Dillaman [Thu, 5 Jan 2017 18:31:57 +0000 (13:31 -0500)]
librbd: prevent assertion failure when journal IO is blacklisted
Fixes: http://tracker.ceph.com/issues/18429
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit
c720f6e3704ed7e8cf41dffdb931dbb05d59a003 )
Jason Dillaman [Wed, 4 Jan 2017 17:12:27 +0000 (12:12 -0500)]
librbd: ignore blacklist error when releasing exclusive lock
This ensures the journal and object map are properly closed so that the
image can be properly closed w/o failing any assertions.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit
418dcf29cb8c450049047e09a4dad2941af87018 )
Jason Dillaman [Tue, 3 Jan 2017 20:29:17 +0000 (15:29 -0500)]
librbd: fail immediately if the exclusive lock cannot be acquired
Fixes: http://tracker.ceph.com/issues/16988
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit
47b89f4d48a0b99876462167389df28893a8d418 )
Jason Dillaman [Tue, 3 Jan 2017 19:51:14 +0000 (14:51 -0500)]
librbd: add new lock_get_owners / lock_break_lock API methods
If the client application supports failover, let the application
force break the current lock and blacklist the owner. This is
required in case the current lock owner is alive from the point-of-view
of librbd but failover was required due to a higher level reason.
Fixes: http://tracker.ceph.com/issues/18327
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit
9a5a8c75a025143cee6f92f3dbc3a12f2b6a9ad7 )
Jason Dillaman [Thu, 22 Dec 2016 20:00:23 +0000 (15:00 -0500)]
librbd: separate break lock logic into standalone state machine
The current lockers are now queried before the lock is attempted to
prevent any possible race conditions when one or more clients attempt
to break the lock of a dead client.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit
23f60fee86d1ff9b261fbb6411746a2a9479cf19 )
Jason Dillaman [Thu, 22 Dec 2016 22:24:47 +0000 (17:24 -0500)]
librbd: separate locker query into standalone state machine
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit
03533b912c59d5e433d0f006e1a063e014468ca5 )
Samuel Just [Tue, 10 Jan 2017 02:48:28 +0000 (18:48 -0800)]
PrimaryLogPG::failed_push: update missing as well
This way, pick_newest_available should do the right thing.
Fixes: http://tracker.ceph.com/issues/18165
Signed-off-by: Samuel Just <sjust@redhat.com>
Sage Weil [Fri, 30 Dec 2016 20:42:44 +0000 (15:42 -0500)]
osd: _exit() intead of exit() for failure injection
This avoids a segv from code that doesn't easily shut
down (e.g., bluestore).
Fixes: http://tracker.ceph.com/issues/18372
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
c2fac9c9a92a63b9a456c9e301c4b393de096a97 )
Sage Weil [Fri, 30 Dec 2016 17:22:42 +0000 (12:22 -0500)]
os/bluestore/BlueFS: fix reclaim_blocks
We need to return all extents to the caller. The current code
fails to assign *offset so it appears like a single extent from
the start of the device, which is very wrong.
Fixes: http://tracker.ceph.com/issues/18368
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
882ad33b527c9ea2224dcdc28f9fa3f459ee4712 )
Sage Weil [Fri, 30 Dec 2016 17:19:11 +0000 (12:19 -0500)]
os/bluestore/bluestore_types: operator<< for AllocExtent
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
8e313a24965b6ab75e6f994bbd9ddf248e382f0d )
John Spray [Thu, 5 Jan 2017 13:40:41 +0000 (13:40 +0000)]
qa/tasks: add test_corrupt_backtrace
Validate that we get EIO and a damage table entry
when seeing a decode error on a backtrace.
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit
5f6cdab80f6e2f09af5783c8f616d8ddd6d9f428 )
John Spray [Tue, 20 Dec 2016 18:04:47 +0000 (18:04 +0000)]
mds: check for errors decoding backtraces
Fixes: http://tracker.ceph.com/issues/18311
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit
6f489c74ac0040631fde0ceb0926cbab24d3ad55 )
Jason Dillaman [Mon, 9 Jan 2017 01:39:03 +0000 (20:39 -0500)]
Merge pull request #12823 from SUSE/wip-18451-kraken
kraken: tests: update rbd/singleton/all/formatted-output.yaml to support ceph-ci
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Nathan Cutler [Sat, 7 Jan 2017 12:48:51 +0000 (13:48 +0100)]
tests: subst repo and branch in qemu test urls
References: http://tracker.ceph.com/issues/18440
Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit
2484a5546160560a4050d35400a6edce37ae48ad )
Nathan Cutler [Sat, 7 Jan 2017 12:45:10 +0000 (13:45 +0100)]
tests: subst branch and repo in qa/tasks/qemu.py
References: http://tracker.ceph.com/issues/18440
Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit
74689df754561e11a3377998840efcea9e780755 )
Nathan Cutler [Fri, 6 Jan 2017 20:09:23 +0000 (21:09 +0100)]
tests: subst repo name in krbd/unmap/tasks/unmap.yaml
Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit
ed0e8be0b2c4d7a3e6e0716a0211d19e8b93f125 )
Nathan Cutler [Fri, 6 Jan 2017 20:06:11 +0000 (21:06 +0100)]
tests: subst repo name in qa/tasks/cram.py
Inspired by
bcbe45d948f1c4da02e27b3be5f29a8b52745e28
Fixes: http://tracker.ceph.com/issues/18440
Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit
56e37e41f4dddd289dd3c1886b192cd328ed311b )
Tamilarasi Muthamizhan [Fri, 6 Jan 2017 21:48:41 +0000 (13:48 -0800)]
Merge pull request #12814 from yuriw/kraken
Kraken
Yuri Weinstein [Thu, 5 Jan 2017 23:42:07 +0000 (23:42 +0000)]
Using centos 7.2 as latest version
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
(cherry picked from commit
6c00a64e8723e06b98c2d7a28d6fc28260e087bc )
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
Yuri Weinstein [Thu, 5 Jan 2017 21:28:39 +0000 (13:28 -0800)]
qa: Cleaned up distros to use `latest` versions
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
(cherry picked from commit
b29faef354ec47a27178716f6e1caeb796fbf844 )
Nathan Cutler [Thu, 5 Jan 2017 20:29:09 +0000 (21:29 +0100)]
tests: add no_client_pidfile override to fs/recovery tests
Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit
53ec76c7d0be2aa8689b6763ac47d20631e349d0 )
Nathan Cutler [Thu, 5 Jan 2017 20:22:58 +0000 (21:22 +0100)]
tests: override yaml to set client pid file to empty string
Due to http://tracker.ceph.com/issues/18309 the pid file for fuse clients
should always be set to the empty string. (Teuthology's default ceph.conf
sets it to /var/run/ceph/$cluster-$name.pid)
This commit adds a reusable yaml facet for this purpose.
Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit
fe13664c8e166beceae0228480889a1830d553f2 )
Nathan Cutler [Thu, 22 Dec 2016 21:15:32 +0000 (22:15 +0100)]
fuse: remove dead code after usage() call
usage() calls generic_client_usage(), which calls exit(-1), which never
returns.
Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit
dd0c4a56850deed7b21bd905b3785ea515e2b7c5 )
Nathan Cutler [Thu, 22 Dec 2016 17:21:18 +0000 (18:21 +0100)]
ceph_fuse: pid_file default to empty
Fixes: http://tracker.ceph.com/issues/18309
Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit
2258f2f1661893335583c987f2a33772e709f4a7 )
Josh Durgin [Thu, 5 Jan 2017 21:00:00 +0000 (13:00 -0800)]
Merge pull request #12803 from athanatos/wip-oi-mismatch
PrimaryLogPG: don't update digests for objects with mismatched names
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Josh Durgin [Thu, 5 Jan 2017 20:59:14 +0000 (12:59 -0800)]
Merge branch 'kraken' into wip-oi-mismatch
Josh Durgin [Wed, 4 Jan 2017 01:41:39 +0000 (17:41 -0800)]
Merge pull request #12773 from yuriw/kraken
qa: fixed distros links
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Yuri Weinstein [Tue, 3 Jan 2017 23:59:18 +0000 (15:59 -0800)]
qa: fixed distros links
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
(cherry picked from commit
fbb560c90101937317380a6621a70564f10e0ae3 )
Josh Durgin [Tue, 3 Jan 2017 23:01:13 +0000 (15:01 -0800)]
Merge pull request #12768 from yuriw/wip_fix_distros
qa: Fixed link to centos distro
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Yuri Weinstein [Tue, 3 Jan 2017 22:36:27 +0000 (14:36 -0800)]
qa: Fixed link to centos distro
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
Samuel Just [Tue, 3 Jan 2017 18:50:22 +0000 (10:50 -0800)]
PrimaryLogPG: don't update digests for objects with mismatched names
I've only seen this on one cluster, but let's not issue repops during
scrub on objects where the object_info_t::soid value is not correct.
The cluster in question has been through many different non-release
kernels and osd versions, so the objects presumably came about due to an
old xfs or filestore bug. They recently became fatal since we made
filestore crash on ENOENT for setattrs. In the past, the cluster just
silently tolerated them.
http://tracker.ceph.com/issues/18409 is a larger feature to detect these
better and repair them automatically.
Related: http://tracker.ceph.com/issues/18409
Signed-off-by: Samuel Just <sjust@redhat.com>