]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agoMerge pull request #14194 from joscollin/wip-rgw_rados-warning
Yehuda Sadeh [Thu, 30 Mar 2017 17:43:37 +0000 (10:43 -0700)]
Merge pull request #14194 from joscollin/wip-rgw_rados-warning

rgw: warning, output may be truncated before the last format character

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoMerge pull request #14253 from liupan1111/wip-remove-debug-message
Mykola Golub [Thu, 30 Mar 2017 17:24:03 +0000 (20:24 +0300)]
Merge pull request #14253 from liupan1111/wip-remove-debug-message

rbd-nbd: remove debug messages from do_unmap

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #13999 from tchaikov/wip-extract-creating-pgs
Kefu Chai [Thu, 30 Mar 2017 16:35:45 +0000 (00:35 +0800)]
Merge pull request #13999 from tchaikov/wip-extract-creating-pgs

mon,osd: decouple creating pgs from pgmap

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agorbd-nbd: remove debug message from do_unmap 14253/head
Pan Liu [Thu, 30 Mar 2017 16:23:12 +0000 (00:23 +0800)]
rbd-nbd: remove debug message from do_unmap

Global context is not initialized when do_unmap is called.

Signed-off-by: Pan Liu <liupan1111@gmail.com>
8 years agotools/ceph-objectstore-tool: always set first_committed 13999/head
Kefu Chai [Wed, 29 Mar 2017 08:34:26 +0000 (16:34 +0800)]
tools/ceph-objectstore-tool: always set first_committed

otherwise the workaround of 7fb3804fb is triggered. we need to remove
that workaround later on.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomon: switch to osdmon when handling osd_pg_creates subs
Kefu Chai [Mon, 27 Mar 2017 03:12:09 +0000 (11:12 +0800)]
mon: switch to osdmon when handling osd_pg_creates subs

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomon/OSDMonitor: avoid search and lookup anti-pattern
Kefu Chai [Sun, 26 Mar 2017 04:12:43 +0000 (12:12 +0800)]
mon/OSDMonitor: avoid search and lookup anti-pattern

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomon/OSDMonitor: pass by reference not pointer of const param
Kefu Chai [Sun, 26 Mar 2017 04:05:12 +0000 (12:05 +0800)]
mon/OSDMonitor: pass by reference not pointer of const param

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomon/OSDMonitor: switch to the new creating_pgs
Kefu Chai [Tue, 14 Mar 2017 12:03:59 +0000 (20:03 +0800)]
mon/OSDMonitor: switch to the new creating_pgs

* prime_pg_temp(): switch to the new creating_pgs
* get_trim_to(): switch to the new creating_pgs

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomon: handle MOSDPGCreated messages
Kefu Chai [Mon, 13 Mar 2017 07:50:17 +0000 (15:50 +0800)]
mon: handle MOSDPGCreated messages

MOSDPGCreated messages are used to prune the creating_pgs_by_osd_epoch
and creating_pgs, by updating created_pools. as once a pool is created
we will not send MOSDPGCreate to its acting_primary OSD anymore.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoosd: send pg-created message if any pg is newly created
Kefu Chai [Mon, 13 Mar 2017 07:13:03 +0000 (15:13 +0800)]
osd: send pg-created message if any pg is newly created

add an option named "osd_created_report_interval" to specify the
interval to check and send the "pg_created" mesages to mon

because pg could update its state when it is still in the pg_stat_queue,
for example, to change its state to PG_STATE_CLEAN, we cannot tell if we
have sent a "pg-created" message for it or not without introducing a new
member variable in PG.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomessages/MPGCreated: add MPGCreated
Kefu Chai [Sat, 11 Mar 2017 14:50:50 +0000 (22:50 +0800)]
messages/MPGCreated: add MPGCreated

add a new message type MPGCreated. osd is supposed to send this message
to monitor to inform that any pg(s) is created and activated.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomon/OSDMonitor: add send_pg_create() to OSDMonitor
Kefu Chai [Thu, 9 Mar 2017 04:08:29 +0000 (12:08 +0800)]
mon/OSDMonitor: add send_pg_create() to OSDMonitor

OSDMonitor will handle the pg-create subscriptions after luminous.
1. scan new pools to get the pgs to be created
2. send pg creates using the collected pgs
3. trim the creating_pgs using the "created!" messages from OSD.

please note that we need to wait for the OSDMonitor::mapping to be fully
populated, so we cannot scan the incrementa map for creating pgs until
it is applied and accepted by other monitors.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomon: acquire lock when accessing mon->session_map
Kefu Chai [Tue, 28 Mar 2017 03:29:20 +0000 (11:29 +0800)]
mon: acquire lock when accessing mon->session_map

we will access the mon->session_map for sending the osd-pg-creates
messages when finishing osdmapping in OSDMonitor, this could happen in
another thread without the protection of Monitor::lock, or in the same
thread already guarded by Monitor::lock. so instead of changing
Monitor::lock to a recursive lock, a new lock is introduced to protect
session_map.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomon/OSDMonitor: run mapping on peons also
Kefu Chai [Sun, 19 Mar 2017 06:02:15 +0000 (14:02 +0800)]
mon/OSDMonitor: run mapping on peons also

otherwise subcriptions on peons won't get the creating_pgs notification
mapping updated. we want to send the notification from peons also. and
the notifications should be updated with the updated pg mapping.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomon/OSDMonitor: mapping is not optional anymore
Kefu Chai [Thu, 16 Mar 2017 09:43:19 +0000 (17:43 +0800)]
mon/OSDMonitor: mapping is not optional anymore

as pg_creatings needs mapping to get the acting_primary osd of the
creating pg, so we can send the pg-create message to it if it subscribes
to this information, mapping should always be available now.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomon: dispatch osd_beacon message to OSDMonitor
Kefu Chai [Thu, 9 Mar 2017 08:25:59 +0000 (16:25 +0800)]
mon: dispatch osd_beacon message to OSDMonitor

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoosd: send osd-beacon to mon periodically
Kefu Chai [Sat, 11 Mar 2017 09:51:13 +0000 (17:51 +0800)]
osd: send osd-beacon to mon periodically

add an option named "osd_beacon_report_interval" to specify the interval
to send osd-beacon.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomessages/MOSDBeacon: add beacon msg
Kefu Chai [Fri, 10 Mar 2017 17:27:59 +0000 (01:27 +0800)]
messages/MOSDBeacon: add beacon msg

osd will send beacon message to monitor periodically to inform it that
"i am still alive!", previously, monitor use the pg-stats to check the
status of OSD, but since osd will only send pg stat to mgr after
luminous, we use a dedicated msg for this purpose.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomon/OSDMonitor: s/check_sub/check_osdmap_sub/
Kefu Chai [Thu, 9 Mar 2017 02:27:43 +0000 (10:27 +0800)]
mon/OSDMonitor: s/check_sub/check_osdmap_sub/

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomon/OSDMonitor: update comment in update_from_paxos()
Kefu Chai [Thu, 9 Mar 2017 14:14:41 +0000 (22:14 +0800)]
mon/OSDMonitor: update comment in update_from_paxos()

this change updates the comment for 7fb3804fb97462a3 and e807770,
to reflect the reason why we need to fix latest_full in current code.
as the fix is not a workaround for cuttlefish anymore, it resolves the
issue where

0. mon.c has a latest_full of 5
1. mon.c is shutdown and out of sync with the quorum
2. mon.c starts sync
3. mon.c now has osdmap[31..50], and the latest_full is still 5.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomon/PGMonitor: remove unused variable
Kefu Chai [Mon, 6 Mar 2017 06:01:51 +0000 (14:01 +0800)]
mon/PGMonitor: remove unused variable

last_pg_scan is not used in PGMonitor::update_from_paxos(), so remove
it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomon/PGmonitor: remove unused last_sent_pg_create
Kefu Chai [Mon, 6 Mar 2017 02:31:07 +0000 (10:31 +0800)]
mon/PGmonitor: remove unused last_sent_pg_create

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomon: pass const variables by const ref not pointer
Kefu Chai [Fri, 24 Feb 2017 12:38:03 +0000 (20:38 +0800)]
mon: pass const variables by const ref not pointer

* PGMapUpdater::check_down_pgs(): pass a const reference to pgmap
  instead of a pointer
* PGMapUpdater::register_new_pgs(): pass a const reference to pgmap
  instead of a pointer

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14250 from Adirl/fix_last_poll_dev
Haomai Wang [Thu, 30 Mar 2017 10:37:39 +0000 (18:37 +0800)]
Merge pull request #14250 from Adirl/fix_last_poll_dev

msg/async/rdma: Device::last_poll_dev must be positive

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agomsg/async/rdma: Device::last_poll_dev must be positive 14250/head
Amir Vadai [Sun, 26 Mar 2017 10:24:19 +0000 (13:24 +0300)]
msg/async/rdma: Device::last_poll_dev must be positive

Make Device::last_poll_dev `unsigned` - it could overlap and should not
be negative.
Also, add missing initialization.

Change-Id: I558f02292ae4f5d1ce48d9bcda5047d382604237
Signed-off-by: Amir Vadai <amir@vadai.me>
8 years agoMerge pull request #14249 from Adirl/rdma-cm-4_1
Haomai Wang [Thu, 30 Mar 2017 09:40:49 +0000 (17:40 +0800)]
Merge pull request #14249 from Adirl/rdma-cm-4_1

msg/async/rdma: Debug prints for ibv_*

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agomsg/async/rdma: Debug prints for ibv_* 14249/head
Amir Vadai [Tue, 31 Jan 2017 08:05:15 +0000 (10:05 +0200)]
msg/async/rdma: Debug prints for ibv_*

Setting RDMA_DEBUG to 1, will enable debug prints for every ibv_*
function called.
This makes it easier to debug RDMA issues.

Issue: 995322
Change-Id: I49d327d5d4386b44264f5619d50f2dbc7d76dcae
Signed-off-by: Amir Vadai <amir@vadai.me>
8 years agoMerge pull request #14245 from tchaikov/wip-revert-14201
Haomai Wang [Thu, 30 Mar 2017 05:21:36 +0000 (13:21 +0800)]
Merge pull request #14245 from tchaikov/wip-revert-14201

Revert "msg/async/rdma: Debug prints for ibv_*"

8 years agoRevert "msg/async/rdma: Debug prints for ibv_*" 14244/head 14245/head
Kefu Chai [Thu, 30 Mar 2017 04:57:58 +0000 (12:57 +0800)]
Revert "msg/async/rdma: Debug prints for ibv_*"

This reverts commit 7d1475f6274531988854cf62f6056f9cfd13ff29.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14201 from Adirl/rdma-cm-4
Haomai Wang [Thu, 30 Mar 2017 00:00:40 +0000 (08:00 +0800)]
Merge pull request #14201 from Adirl/rdma-cm-4

msg/async/rdma: Introduce RDMAConnMgr + Debug prints

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #14214 from dmick/wip-workunit-shallow-clone
Dan Mick [Wed, 29 Mar 2017 18:36:05 +0000 (11:36 -0700)]
Merge pull request #14214 from dmick/wip-workunit-shallow-clone

tasks/workunit.py: when cloning, use --depth=1

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14202 from tchaikov/wip-cast-size_t-arm32
Jason Dillaman [Wed, 29 Mar 2017 17:33:49 +0000 (13:33 -0400)]
Merge pull request #14202 from tchaikov/wip-cast-size_t-arm32

rbd: use min<uint64_t>() explicitly

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #14122 from hrchu/rgwadmin-doc-quota
Casey Bodley [Wed, 29 Mar 2017 14:38:16 +0000 (10:38 -0400)]
Merge pull request #14122 from hrchu/rgwadmin-doc-quota

doc: correct the quota section

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
8 years agomsg/async/rdma: Debug prints for ibv_* 14201/head
Amir Vadai [Tue, 31 Jan 2017 08:05:15 +0000 (10:05 +0200)]
msg/async/rdma: Debug prints for ibv_*

Setting RDMA_DEBUG to 1, will enable debug prints for every ibv_*
function called.
This makes it easier to debug RDMA issues.

Issue: 995322
Change-Id: I49d327d5d4386b44264f5619d50f2dbc7d76dcae
Signed-off-by: Amir Vadai <amir@vadai.me>
8 years agomsg/async/rdma: Introduce RDMAConnMgr
Amir Vadai [Wed, 22 Mar 2017 07:05:21 +0000 (09:05 +0200)]
msg/async/rdma: Introduce RDMAConnMgr

Encapsulate all connection establishment stuff in a new class -
RDMAConnMgr and make it a friend class of RDMAConnectedSocketImpl.
This class will be inherited for every type of connection establishment
- Currently only TCP is supported, very soon CM will be added too.

RDMAServerConnImpl which only handle connection establishment became an
abstract class and RDMAServerConnTCP is inherting it for connections of
type TCP.

Some of the code was left in its original file and place, and therefore
it looks misplaced. This was done to make it easier to review and rebase.
Once it is accepted a cleanup patch will be sent to move the code into
the right place.

Issue: 995322
Change-Id: I8b0e163525ec80c2452f4b6481bf696968cc1e51
Signed-off-by: Amir Vadai <amir@vadai.me>
8 years agoMerge pull request #14078 from tchaikov/wip-19258
Kefu Chai [Wed, 29 Mar 2017 14:02:51 +0000 (22:02 +0800)]
Merge pull request #14078 from tchaikov/wip-19258

mgr: shutdown py_modules in Mgr::shutdown()

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #13337 from ifed01/wip-bluestore-minimiza-blobs2
Sage Weil [Wed, 29 Mar 2017 13:33:40 +0000 (08:33 -0500)]
Merge pull request #13337 from ifed01/wip-bluestore-minimiza-blobs2

os/bluestore: optimize blob usage when doing appends/overwrites

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14223 from tchaikov/wip-rbd-nbd-ftbfs
Kefu Chai [Wed, 29 Mar 2017 13:21:24 +0000 (21:21 +0800)]
Merge pull request #14223 from tchaikov/wip-rbd-nbd-ftbfs

rbd-nbd: s/cpp_error/cpp_strerror/ to fix FTBFS

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Pan Liu <liupan1111@gmail.com>
8 years agomgr: shutdown py_modules in Mgr::shutdown() 14078/head
Kefu Chai [Wed, 22 Mar 2017 06:10:23 +0000 (14:10 +0800)]
mgr: shutdown py_modules in Mgr::shutdown()

Fixes: http://tracker.ceph.com/issues/19258
Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agorbd-nbd: s/cpp_error/cpp_strerror/ to fix FTBFS 14223/head
Kefu Chai [Wed, 29 Mar 2017 11:07:34 +0000 (19:07 +0800)]
rbd-nbd: s/cpp_error/cpp_strerror/ to fix FTBFS

the build failure was introduced by ff4dcf0

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14079 from liupan1111/wip-support-signal-handler
Mykola Golub [Wed, 29 Mar 2017 09:31:12 +0000 (12:31 +0300)]
Merge pull request #14079 from liupan1111/wip-support-signal-handler

rbd-nbd: support signal handle for SIGHUP, SIGINT and SIGTERM.

Reviewed-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agotasks/workunit.py: when cloning, use --depth=1 14214/head
Dan Mick [Wed, 29 Mar 2017 03:08:13 +0000 (20:08 -0700)]
tasks/workunit.py: when cloning, use --depth=1

Help avoid killing git.ceph.com.  A depth 1 clone takes about
7 seconds, whereas a full one takes about 3:40 (much of it
waiting for the server to create a huge compressed pack)

Signed-off-by: Dan Mick <dan.mick@redhat.com>
8 years agoMerge pull request #14184 from SUSE/wip-mgr-rest-timezone
Sage Weil [Wed, 29 Mar 2017 02:30:18 +0000 (21:30 -0500)]
Merge pull request #14184 from SUSE/wip-mgr-rest-timezone

pybind/mgr/rest: don't set timezone to Chicago

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14199 from andihit/doc-update-default-osd-op-thread-timeout
Sage Weil [Wed, 29 Mar 2017 02:26:08 +0000 (21:26 -0500)]
Merge pull request #14199 from andihit/doc-update-default-osd-op-thread-timeout

doc: change osd_op_thread_timeout default value to 15

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agodoc: rgw: correct the quota section 14122/head
hrchu [Wed, 29 Mar 2017 02:17:04 +0000 (02:17 +0000)]
doc: rgw: correct the quota section

Add the missing option and fix typo.

Fixes: http://tracker.ceph.com/issues/19397
Signed-off-by: Chu, Hua-Rong <hrchu@cht.com.tw>
8 years agoMerge pull request #14203 from cbodley/wip-rgw-slo-auth-identity
Sage Weil [Tue, 28 Mar 2017 22:23:36 +0000 (17:23 -0500)]
Merge pull request #14203 from cbodley/wip-rgw-slo-auth-identity

rgw: fix build of conflict after auth rework

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agorgw: fix build of conflict after auth rework 14203/head
Casey Bodley [Tue, 28 Mar 2017 19:01:59 +0000 (15:01 -0400)]
rgw: fix build of conflict after auth rework

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #13764 from guihecheng/rgwfs-errcode
Matt Benjamin [Tue, 28 Mar 2017 18:31:14 +0000 (14:31 -0400)]
Merge pull request #13764 from guihecheng/rgwfs-errcode

rgw_file: fix non-posix errcode EINVAL to ENAMETOOLONG

8 years agorbd: use min<uint64_t>() explicitly 14202/head
Kefu Chai [Tue, 28 Mar 2017 18:05:07 +0000 (02:05 +0800)]
rbd: use min<uint64_t>() explicitly

on arm32, size_t is actually int, which cannot be compared with uint64_t
using std::min().

Fixes: http://tracker.ceph.com/issues/18938
Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14108 from sven15/doc-fix-pools
John Wilkins [Tue, 28 Mar 2017 17:53:48 +0000 (10:53 -0700)]
Merge pull request #14108 from sven15/doc-fix-pools

doc: typo in hit_set_search_last_n

Reviewed-by: John Wilkins <jowilkin@redhat.com>
8 years agoMerge pull request #14128 from yehudasa/wip-19367
Sage Weil [Tue, 28 Mar 2017 16:31:39 +0000 (11:31 -0500)]
Merge pull request #14128 from yehudasa/wip-19367

cls/user: cls_user_bucket backward compatibility

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13987 from shinobu-x/wp-sk-clean-up-timeindexlistctx-20170316
Yuri Weinstein [Tue, 28 Mar 2017 16:25:26 +0000 (09:25 -0700)]
Merge pull request #13987 from shinobu-x/wp-sk-clean-up-timeindexlistctx-20170316

cls/timeindex: clean up cls_timeindex_client.h|cc

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14009 from yuyuyu101/wip-objecter-ping
Yuri Weinstein [Tue, 28 Mar 2017 16:24:51 +0000 (09:24 -0700)]
Merge pull request #14009 from yuyuyu101/wip-objecter-ping

msg/async/AsyncConnection: keepalive objecter ping connection to avoid timeout

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14133 from runsisi/wip-pg-state-cleanup
Yuri Weinstein [Tue, 28 Mar 2017 16:24:02 +0000 (09:24 -0700)]
Merge pull request #14133 from runsisi/wip-pg-state-cleanup

osd/PG: some minor cleanups

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #14089 from ceph/wip-rgw-doc-changing-master
Casey Bodley [Tue, 28 Mar 2017 16:13:10 +0000 (12:13 -0400)]
Merge pull request #14089 from ceph/wip-rgw-doc-changing-master

doc/rgw: instructions for changing multisite master zone

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #14090 from cbodley/wip-rgw-test-delete-notempty
Casey Bodley [Tue, 28 Mar 2017 16:11:14 +0000 (12:11 -0400)]
Merge pull request #14090 from cbodley/wip-rgw-test-delete-notempty

test/rgw: test_bucket_delete_notempty in test_multi.py

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #13561 from cbodley/wip-19027
Casey Bodley [Tue, 28 Mar 2017 16:10:07 +0000 (12:10 -0400)]
Merge pull request #13561 from cbodley/wip-19027

rgw: allow system users to read SLO parts

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agodoc: change osd_op_thread_timeout default value to 15 14199/head
Andreas Gerstmayr [Tue, 28 Mar 2017 16:00:28 +0000 (18:00 +0200)]
doc: change osd_op_thread_timeout default value to 15

Signed-off-by: Andreas Gerstmayr <andreas.gerstmayr@catalysts.cc>
8 years agoMerge pull request #13984 from liewegas/wip-osdmap-remap
Sage Weil [Tue, 28 Mar 2017 15:47:22 +0000 (10:47 -0500)]
Merge pull request #13984 from liewegas/wip-osdmap-remap

mon,osd: explicitly remap some pgs

Reviewed-by: Josh Durgin <jduring@redhat.com>
8 years agoMerge pull request #13687 from Liuchang0812/wip-19106-eliminate-unsafe-option
Sage Weil [Tue, 28 Mar 2017 15:45:01 +0000 (10:45 -0500)]
Merge pull request #13687 from Liuchang0812/wip-19106-eliminate-unsafe-option

common/config: eliminate config_t::set_val unsafe option

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13855 from yuyuyu101/wip-bluestore-rm-range
Sage Weil [Tue, 28 Mar 2017 15:44:44 +0000 (10:44 -0500)]
Merge pull request #13855 from yuyuyu101/wip-bluestore-rm-range

kv/RocksDBStore: implement rm_range_keys operator interface and test

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13879 from liewegas/wip-19076
Sage Weil [Tue, 28 Mar 2017 15:44:16 +0000 (10:44 -0500)]
Merge pull request #13879 from liewegas/wip-19076

osd/ReplicatedBackend: clear pull source once we are done with it

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13961 from wangzhengyong/network
Sage Weil [Tue, 28 Mar 2017 15:43:37 +0000 (10:43 -0500)]
Merge pull request #13961 from wangzhengyong/network

msg/SimpleMessenger: error out misplace in set_socket_options

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #14093 from hjwsm1989/sparse-read
Sage Weil [Tue, 28 Mar 2017 15:43:07 +0000 (10:43 -0500)]
Merge pull request #14093 from hjwsm1989/sparse-read

osd/PrimaryLogPG: set return value if sparse read failed

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14099 from tchaikov/wip-denc-arm32
Sage Weil [Tue, 28 Mar 2017 15:42:40 +0000 (10:42 -0500)]
Merge pull request #14099 from tchaikov/wip-denc-arm32

include/denc: add {encode,decode}_nohead for denc_traits<basic_string>

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14129 from SUSE/wip-18764
Sage Weil [Tue, 28 Mar 2017 15:42:23 +0000 (10:42 -0500)]
Merge pull request #14129 from SUSE/wip-18764

mgr: fix crash on missing 'ceph_version' in daemon metadata (fixes #18764)

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14003 from dillaman/wip-19287
Mykola Golub [Tue, 28 Mar 2017 15:03:54 +0000 (18:03 +0300)]
Merge pull request #14003 from dillaman/wip-19287

librbd: is_exclusive_lock_owner API should ping OSD

Reviewed-by: Mike Christie <mchristi@redhat.com>
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #14179 from Adirl/rdma-cm-3
Haomai Wang [Tue, 28 Mar 2017 15:01:50 +0000 (23:01 +0800)]
Merge pull request #14179 from Adirl/rdma-cm-3

msg/async/rdma: RDMA-CM Initialize device on first connect

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #14166 from dillaman/wip-19388
Mykola Golub [Tue, 28 Mar 2017 14:56:46 +0000 (17:56 +0300)]
Merge pull request #14166 from dillaman/wip-19388

librbd: random unit test failures due to shut down race

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agorgw: warning, output may be truncated before the last format character 14194/head
Jos Collin [Tue, 28 Mar 2017 14:27:29 +0000 (19:57 +0530)]
rgw: warning, output may be truncated before the last format character

The following warning appears during make:

```
rgw_rados.cc: In function ‘void usage_log_hash(CephContext*, const string&, std::__cxx11::string&, uint32_t)’:
rgw_rados.cc:4579:13: warning: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=]
static void usage_log_hash(CephContext *cct, const string& name, string& hash, uint32_t index)
                 ^~~~~~~~~~~~~~
/usr/include/bits/stdio2.h:65:44: note: ‘__builtin___snprintf_chk’ output between 8 and 17 bytes into a destination of size 16
        __bos (__s), __fmt, __va_arg_pack ());
```

Signed-off-by: Jos Collin <jcollin@redhat.com>
8 years agoqa/tasks/thrashosds,ceph_manager: thrash pg_remap[_items] 13984/head
Sage Weil [Thu, 23 Mar 2017 11:48:27 +0000 (06:48 -0500)]
qa/tasks/thrashosds,ceph_manager: thrash pg_remap[_items]

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agotest/cli/osdmaptool/remap.t: add --remap test
Sage Weil [Wed, 15 Mar 2017 22:27:22 +0000 (18:27 -0400)]
test/cli/osdmaptool/remap.t: add --remap test

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agotest/cli/osdmaptool: fix tests
Sage Weil [Wed, 15 Mar 2017 22:23:08 +0000 (18:23 -0400)]
test/cli/osdmaptool: fix tests

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosdmaptool: add --remap to run the remap_pgs() method
Sage Weil [Thu, 16 Mar 2017 19:09:26 +0000 (15:09 -0400)]
osdmaptool: add --remap to run the remap_pgs() method

Output ceph cli commands to realize the new remaps entries.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd/OSDMap: clean_pg_remaps
Sage Weil [Wed, 15 Mar 2017 22:08:30 +0000 (18:08 -0400)]
osd/OSDMap: clean_pg_remaps

Helper to clean out no-op pg_remap cruft:

- pg_remap entries that match the raw result
- pg_remap_items entries where the 'from' part of the (from,to)
  set isn't present.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd/OSDMap: implement remap_pgs
Sage Weil [Wed, 15 Mar 2017 16:47:21 +0000 (12:47 -0400)]
osd/OSDMap: implement remap_pgs

Run a specified number of iterations trying to install new
pg_remap_items entries that improve the PG distribution.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agocrush: implement try_remap_rule
Sage Weil [Wed, 15 Mar 2017 16:46:25 +0000 (12:46 -0400)]
crush: implement try_remap_rule

Simulate a CRUSH mapping but try to identify alternative OSD
choices (based on an underfull list and overfull set) that still
respect the CRUSH rule constraints.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: allow 'single step' blob reuse when overwriting 13337/head
Igor Fedotov [Mon, 27 Feb 2017 13:51:58 +0000 (16:51 +0300)]
os/bluestore: allow 'single step' blob reuse when overwriting

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agotest/store_test: adjust OnodeSizeTracking test case to measure full object metadata...
Igor Fedotov [Mon, 27 Feb 2017 13:10:48 +0000 (13:10 +0000)]
test/store_test: adjust OnodeSizeTracking test case to measure full object metadata using empty Onode as a basis

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoos/bluestore: remove excessive 0x in logging
Igor Fedotov [Mon, 27 Feb 2017 13:07:46 +0000 (13:07 +0000)]
os/bluestore: remove excessive 0x in logging

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoos/bluestore: add test cases for BlueStore blob reuse.
Igor Fedotov [Mon, 27 Feb 2017 13:03:22 +0000 (13:03 +0000)]
os/bluestore: add test cases for BlueStore blob reuse.

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoos/bluestore: try to reuse blob rather than create new one on overwrite.
Igor Fedotov [Mon, 27 Feb 2017 12:45:42 +0000 (12:45 +0000)]
os/bluestore: try to reuse blob rather than create new one on overwrite.

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #14021 from batrick/i19291
John Spray [Tue, 28 Mar 2017 13:29:29 +0000 (09:29 -0400)]
Merge pull request #14021 from batrick/i19291

mds: set ceph-mds name uncond for external tools

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #14017 from jcsp/wip-19282
John Spray [Tue, 28 Mar 2017 13:28:52 +0000 (09:28 -0400)]
Merge pull request #14017 from jcsp/wip-19282

mds: don't assert on read errors in RecoveryQueue

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoMerge pull request #14015 from jcsp/wip-19288
John Spray [Tue, 28 Mar 2017 13:28:13 +0000 (09:28 -0400)]
Merge pull request #14015 from jcsp/wip-19288

mds: remove legacy "mds tell" command

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoMerge pull request #13904 from jcsp/wip-16709
John Spray [Tue, 28 Mar 2017 13:27:38 +0000 (09:27 -0400)]
Merge pull request #13904 from jcsp/wip-16709

mon: fix hiding mdsmonitor informative strings

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoMerge pull request #12074 from batrick/i17604
John Spray [Tue, 28 Mar 2017 13:25:24 +0000 (09:25 -0400)]
Merge pull request #12074 from batrick/i17604

mds: warn if insufficient standbys exist

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agopybind/mgr/rest: don't set timezone to Chicago 14184/head
Tim Serong [Tue, 28 Mar 2017 09:37:51 +0000 (11:37 +0200)]
pybind/mgr/rest: don't set timezone to Chicago

Setting TIME_ZONE in the Django app causes the timestamps printed in
the mgr log to suddenly be wrong after the rest module starts up
(unless, I imagine, if the host happens to be in Chicago).

Signed-off-by: Tim Serong <tserong@suse.com>
8 years agorbd-nbd: polish the output info before and after ioctl NBD_DISCONNECT. 14079/head
Pan Liu [Tue, 28 Mar 2017 08:48:21 +0000 (16:48 +0800)]
rbd-nbd: polish the output info before and after ioctl NBD_DISCONNECT.

Signed-off-by: Pan Liu <liupan1111@gmail.com>
8 years agorbd-nbd: support signal handle for SIGHUP, SIGINT, and SIGTERM.
Pan Liu [Tue, 28 Mar 2017 08:33:25 +0000 (16:33 +0800)]
rbd-nbd: support signal handle for SIGHUP, SIGINT, and SIGTERM.

Fixes: http://tracker.ceph.com/issues/19349
Signed-off-by: Pan Liu <liupan1111@gmail.com>
8 years agomsg/async/rdma: Extract sockets stuff from RDMAStack.h 14179/head
Amir Vadai [Wed, 22 Mar 2017 07:03:31 +0000 (09:03 +0200)]
msg/async/rdma: Extract sockets stuff from RDMAStack.h

This is a preparation commit, in order to make review easier. In this
commit I move code from RDMAStack.h into the new file
RDMAConnectedSocketImpl.h - without changing the code.

In the next commit, the actual logic changes will be done and socket
classes will be split into a base RDMAConnected classes and child
classes with TCP connection establishment specific code.

Issue: 995322
Change-Id: I639fda490a6fbd02addb95d3158c5ac1e7390ef0
Signed-off-by: Amir Vadai <amir@vadai.me>
8 years agomsg/async/rdma: Initialize device on first connect
Amir Vadai [Mon, 6 Feb 2017 17:31:20 +0000 (19:31 +0200)]
msg/async/rdma: Initialize device on first connect

Allocate Device's IB resources only when first connect for a device is
called.

Also, removed Infiniband::MemoryManager::Chunk::post_srq() which is not
used anywhere in the code.

Issue: 995322
Change-Id: I2ac1e36aff645ad7d8bbc06c87530bf33c4b3ecf
Signed-off-by: Amir Vadai <amir@vadai.me>
8 years agoMerge pull request #13423 from dzafman/wip-18533-tool
David Zafman [Mon, 27 Mar 2017 22:15:43 +0000 (15:15 -0700)]
Merge pull request #13423 from dzafman/wip-18533-tool

Fixes: http://tracker.ceph.com/issues/18533
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #14132 from dmick/wip-arm-crc
Dan Mick [Mon, 27 Mar 2017 19:50:57 +0000 (12:50 -0700)]
Merge pull request #14132 from dmick/wip-arm-crc

arch: fix cmake's ARM CRC intrinsics test to handle duplicitous gcc 4.8.5

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agocmake/modules/SIMDExt.cmake: armv8 crypto intrinsics 14132/head
Dan Mick [Sat, 25 Mar 2017 03:12:38 +0000 (20:12 -0700)]
cmake/modules/SIMDExt.cmake: armv8 crypto intrinsics

Test not only for -march support, but also the actual
presence of the intrinsic routines.  Not sure why, but gcc
4.8.5 passes the first but not the second.

Fixes: http://tracker.ceph.com/issues/19386
Signed-off-by: Dan Mick <dan.mick@redhat.com>
8 years agolibrbd: random unit test failures due to shut down race 14166/head
Jason Dillaman [Mon, 27 Mar 2017 14:20:24 +0000 (10:20 -0400)]
librbd: random unit test failures due to shut down race

Fixes: http://tracker.ceph.com/issues/19389
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agofilestore, tools: Fix logging of DBObjectMap check() repairs 13423/head
David Zafman [Tue, 21 Mar 2017 00:28:45 +0000 (17:28 -0700)]
filestore, tools: Fix logging of DBObjectMap check() repairs

Signed-off-by: David Zafman <dzafman@redhat.com>
8 years agoosd: Simplify DBObjectMap by no longer creating complete tables
David Zafman [Fri, 3 Mar 2017 23:04:02 +0000 (15:04 -0800)]
osd: Simplify DBObjectMap by no longer creating complete tables

Bump the version for new maps to 3
Make clone less efficient but simpler
Add rename operation (use instead of clone/unlink)
For now keep code that understands version 2 maps

Signed-off-by: David Zafman <dzafman@redhat.com>
8 years agoceph-osdomap-tool: Fix seg fault with large amount of check error output
David Zafman [Thu, 16 Feb 2017 00:17:32 +0000 (16:17 -0800)]
ceph-osdomap-tool: Fix seg fault with large amount of check error output

Signed-off-by: David Zafman <dzafman@redhat.com>