Commit Graph

55164 Commits

Author SHA1 Message Date
Nathan Cutler
0efbb5ae8d ceph.spec.in: systemctl preset on install only
Loading presets is only necessary on install, not on update.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2016-06-27 21:16:54 +02:00
Boris Ranto
936d3ca837 rpm: Do not start targets on update
We do not want to start the targets on upgrade, this would override the
user configuration and is a bad practice. This commit fixes the
behaviour.

Signed-off-by: Boris Ranto <branto@redhat.com>
2016-06-27 20:20:30 +02:00
Yan, Zheng
2cd0475ff9 Merge pull request #9742 from xiexingguo/xxg-wip-server_cmode
mds/server: fix rare race when waitting for osdmap
2016-06-27 01:42:27 -05:00
xie xingguo
68682775d4 mds/server: fix rare race when waitting for osdmap
If wait_for_map() returns true, we have got the requested osdmap
at the specified epoch, so we shall try again to do further
verification whether we have the specific pool or not.

The above case can happen because we drop the objecter internal
rwlock during the switch between the objecter->with_osdmap()
and objecter->wait_for_map() methods.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-06-27 11:11:49 +08:00
Mykola Golub
63b82de32f Merge pull request #9922 from dillaman/wip-16470
librbd: do not propagate mirror status notification failures

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-06-25 20:00:30 +03:00
Sage Weil
145402f570 Merge pull request #9913 from xiexingguo/xxg-wip-fix-bitallocatorut
os/bluestore: fix ut failure when switching to bitmap-allocator

Reviewed-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
2016-06-25 12:51:35 -04:00
xie xingguo
56b23890eb os/bluestore: fix memory leak during bit_alloc ut
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-06-25 16:21:11 +08:00
xie xingguo
fea2cd2a61 os/bluestore: use std limits for int16_t/int32_t
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-06-25 10:20:26 +08:00
xie xingguo
b5695cdc52 os/bluestore: update comment
We have decreased the default concurrent scans to 1,
so the comment is misleading.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-06-25 10:20:26 +08:00
xie xingguo
5163d47563 os/bluestore: allow total blocks fall into one single zone
So the blusfs ut will be happy with this.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-06-25 10:20:26 +08:00
xie xingguo
aeb990c210 os/bluestore: update output of offset/length pair to hex version
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-06-25 10:20:26 +08:00
Mykola Golub
3f60a67524 Merge pull request #9905 from dillaman/wip-16450
librbd: mark exclusive lock as released after journal is closed

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-06-24 22:21:52 +03:00
Mykola Golub
828710ef39 Merge pull request #9899 from dillaman/wip-16350
librbd: ignore missing object map during snap remove

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-06-24 22:21:11 +03:00
Mykola Golub
b1576c5519 Merge pull request #9896 from dillaman/wip-16446
librbd: delete ExclusiveLock instance when switching to snapshot

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-06-24 22:20:24 +03:00
Mykola Golub
cfaff361e8 Merge pull request #9895 from dillaman/wip-16445
librbd: ignore snap unprotect -EBUSY errors during journal replay

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-06-24 22:19:19 +03:00
John Spray
0862f92bd1 Merge pull request #9746 from xiexingguo/xxg-wip-mdcache_hoir
mds/MDCache: fix leak of MMDSOpenInoReply

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-06-24 15:58:06 +01:00
Jason Dillaman
97bade9f76 librbd: do not propagate mirror status notification failures
These should be treated as a broadcast since no ACK is required. The
peer will eventually see the notification or its watch will have timed
out and it will re-sync.

Fixes: http://tracker.ceph.com/issues/16470
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-06-24 10:03:53 -04:00
Igor Fedotov
a5b8b8aa27 Merge pull request #9921 from liewegas/wip-bluestore-fix-discard
os/bluestore: fix discard

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
2016-06-24 15:20:17 +02:00
Sage Weil
daca542df7 os/bluestore: un-inline some 2Q methods
Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-24 16:13:52 +03:00
Sage Weil
cd24dc855b os/bluestore: fix buffer discard accounting for 2Q
Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-24 16:13:52 +03:00
Sage Weil
045829d7dc os/bluestore: simplify and fix blob invalidation
We can't invalidate based on any particular lextent we drop, as there may
be other lextents (in this onode or in another one) that reference the
same data.  This can break even a single multi-write transaction that
relies on the buffer cache to fill out blocks.

Fix by just doing the unallocated version unconditionally.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-24 08:57:10 -04:00
Jason Dillaman
81cfa070cf Merge pull request #9920 from zhouyuan/librd_remove
librbd: remove unused code block

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-06-24 08:56:28 -04:00
Sage Weil
24c5dbe2f8 Merge pull request #9916 from xiexingguo/xxg-wip-fix-decode-bnode
os/bluestore: fix decoding pool from bnode key

Reviewed-by: Sage Weil <sage@redhat.com>
2016-06-24 08:38:32 -04:00
Sage Weil
274820da08 Merge pull request #9910 from tchaikov/wip-cmake-drop-ceph-ra
cmake: ocf: drop ceph ra
2016-06-24 08:32:37 -04:00
Jason Dillaman
f506975084 librbd: memory leak possible if journal op event failed
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-06-24 08:21:37 -04:00
Yuan Zhou
8d80c05029 librbd: trivial fix to remove unused code block
Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
2016-06-24 15:44:28 +08:00
xie xingguo
59903e5463 os/bluestore: literal tidy-ups
There error codes are improperly arranged, which looks weird.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-06-24 15:13:15 +08:00
xie xingguo
815f90348b os/bluestore: make fsck can catch bad bnode key too
The case may be rare but the check shall do no harm.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-06-24 14:57:30 +08:00
xie xingguo
cff6ff7928 os/bluestore: fix decoding pool from bnode key
The current result is raw and not properly translated.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-06-24 14:53:39 +08:00
Kefu Chai
cb5da01ce1 cmake: ocf: drop ceph ra
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-06-24 09:32:25 +08:00
Sage Weil
92b979f730 os/bluestore: default to bitmap allocator
Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-24 09:29:53 +08:00
Kefu Chai
522377019c Merge pull request #9906 from stiopaa1/msg_asyncmess_workepool_deleteCopycontrAndAss
msg/AsyncMessenger:delete cpy constr and assign op

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-06-24 09:16:20 +08:00
David Zafman
22d5d08a5c Merge pull request #9273 from stiopaa1/osd_removeClosingBrace_
osd/OSD.h: remove closing brace } from comment

Reviewed-by: David Zafman <dzafman@redhat.com>
2016-06-23 14:59:55 -07:00
Sage Weil
44c78301f3 Merge pull request #9842 from jcsp/wip-vstart-len
vstart: set osd_check_max_object_name_len_on_startup
2016-06-23 17:43:11 -04:00
Sage Weil
72c1039d67 Merge pull request #8784 from ddiss/vstart_ifconfig
vstart: replace ifconfig usage with ip addr

Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
2016-06-23 17:24:58 -04:00
Samuel Just
569babc629 Merge pull request #9456 from ukernel/wip-msg-seq
msg: don't truncate message sequence to 32-bits

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-06-23 13:07:13 -07:00
Samuel Just
c962c72092 Merge pull request #9248 from xiexingguo/xxg-wip-expose-requirejewel
mon: expose require_jewel_osds flag to user

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
2016-06-23 13:03:34 -07:00
Samuel Just
e345b2158b Merge pull request #9305 from xiexingguo/xxg-wip-replicatedpg-fixup
osd/ReplicatedPG: minor fixes and cleanups

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
2016-06-23 13:01:45 -07:00
Ali Maredia
f534862340 Merge pull request #9904 from cbodley/wip-cmake-vstart
cmake: add radosgw to 'make vstart' target

Reviewed-by: Ali Maredia <amaredia@redhat.com>
2016-06-23 14:48:06 -04:00
Michal Jarzabek
01629a0646 msg/AsyncMessenger:delete cpy constr and assign op
Delete copy constructor and assignment operator, so the checking can
be moved from linking to compile time - as it was when the above
where only declared, but not defined.

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
2016-06-23 19:03:48 +01:00
Jason Dillaman
1811e62aa0 librbd: mark exclusive lock as released after journal is closed
Fixes: http://tracker.ceph.com/issues/16450
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-06-23 13:34:56 -04:00
Mykola Golub
463a78cdd5 Merge pull request #9882 from dillaman/wip-16364
librbd: fix crash while using advisory locks with R/O image

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-06-23 20:26:11 +03:00
Mykola Golub
c763018adf Merge pull request #9881 from dillaman/wip-16433
librbd: journal::Replay no longer holds lock while completing callback

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-06-23 20:25:38 +03:00
Mykola Golub
bfe8421036 Merge pull request #9867 from dillaman/wip-16411
rbd-mirror: disallow proxied maintenance ops to non-primary images

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-06-23 20:25:03 +03:00
Casey Bodley
d3d0a114d3 cmake: add cls libraries as radosgw dependencies
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-06-23 12:54:27 -04:00
Sage Weil
8cedd91744 Merge pull request #9880 from stiopaa1/msg_asyncConn_move_workerpool
msg/async: mv WorkerPool class to cc file

Reviewed-by: Sage Weil <sage@redhat.com>
2016-06-23 12:25:04 -04:00
Sage Weil
1ddc00b45c Merge pull request #8818 from SUSE/wip-drop-ceph-ra
ocf: drop ceph Resource Agent

Reviewed-by: Tim Serong <tserong@suse.com>
2016-06-23 12:18:54 -04:00
Casey Bodley
bda27b4825 cmake: add ceph-mds to 'make vstart' target only if WITH_MDS
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-06-23 12:05:57 -04:00
Casey Bodley
309242a005 cmake: add radosgw, radosgw-admin to 'make vstart' target
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-06-23 12:05:09 -04:00
Kefu Chai
270808e788 Merge pull request #9902 from liewegas/wip-cmake-tests
cmake: do not exclude tests from 'make all'

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-06-23 23:15:02 +08:00