]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agomgr/DaemonServer: enforce caps
Sage Weil [Tue, 7 Mar 2017 20:36:36 +0000 (15:36 -0500)]
mgr/DaemonServer: enforce caps

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr/DaemonServer: attach MgrSession to connections
Sage Weil [Tue, 7 Mar 2017 19:09:20 +0000 (14:09 -0500)]
mgr/DaemonServer: attach MgrSession to connections

Reuse MonCap; it is suitably generic.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agovstart.sh: debug mgrc
Sage Weil [Wed, 8 Mar 2017 22:31:10 +0000 (17:31 -0500)]
vstart.sh: debug mgrc

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agovstart.sh: give client.admin mgr 'allow *'
Sage Weil [Tue, 7 Mar 2017 20:35:26 +0000 (15:35 -0500)]
vstart.sh: give client.admin mgr 'allow *'

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agovstart.sh: give osd mgr = 'allow profile osd'
Sage Weil [Tue, 7 Mar 2017 20:35:17 +0000 (15:35 -0500)]
vstart.sh: give osd mgr = 'allow profile osd'

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agovstart.sh: pass ceph.conf to ceph-mgr
Sage Weil [Tue, 7 Mar 2017 16:46:12 +0000 (11:46 -0500)]
vstart.sh: pass ceph.conf to ceph-mgr

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agotest/osd/osd-*.sh: run mgr daemon for tests
Sage Weil [Mon, 6 Mar 2017 23:47:11 +0000 (18:47 -0500)]
test/osd/osd-*.sh: run mgr daemon for tests

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoqa/workunits/ceph-helpers: start and stop mgr daemons
Sage Weil [Mon, 6 Mar 2017 23:07:22 +0000 (18:07 -0500)]
qa/workunits/ceph-helpers: start and stop mgr daemons

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoceph-mgr: threads after fork
Sage Weil [Mon, 6 Mar 2017 23:07:09 +0000 (18:07 -0500)]
ceph-mgr: threads after fork

MgrStandby contains an Objecter with a ceph_timer and
associated thread.  Create it after we fork.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon: forward mgr commands; cap them
Sage Weil [Sun, 26 Feb 2017 19:17:38 +0000 (14:17 -0500)]
mon: forward mgr commands; cap them

Put the completions on a finisher to avoid deadlock.
(MgrClient lock is inside mon_lock due to start_command;
completion cannot retake mon_lock while holding MgrClient's
internal lock.)

The mon has a cap on the nubmer of client message bytes it hold
in memory.  We do not want to eat those up and DOS the mon
because the mgr is not available and all mgr commands are
blocked.

Define the limit as a fraction of mon_client_bytes to avoid user
misconfiguration.

Return EAGAIN if we hit the limit.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon: add a finisher
Sage Weil [Sun, 26 Feb 2017 19:16:13 +0000 (14:16 -0500)]
mon: add a finisher

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/MgrMonitor: feed our MgrClient MgrMaps
Sage Weil [Sat, 25 Feb 2017 03:28:25 +0000 (22:28 -0500)]
mon/MgrMonitor: feed our MgrClient MgrMaps

We don't have a MonClient so we don't subscribe to these in the
usual way.  This will do.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon: add a MgrClient
Sage Weil [Sun, 26 Feb 2017 19:15:17 +0000 (14:15 -0500)]
mon: add a MgrClient

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon: generate tickets for mgr service
Sage Weil [Sun, 26 Feb 2017 19:14:15 +0000 (14:14 -0500)]
mon: generate tickets for mgr service

This is kludgey because the mon is 'special' when it comes to
auth, but it works!

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr/MgrClient: remove unused cond signal helpers
Sage Weil [Tue, 28 Feb 2017 15:34:33 +0000 (09:34 -0600)]
mgr/MgrClient: remove unused cond signal helpers

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr/MgrClient: don't block command submission if no session yet
Sage Weil [Sun, 26 Feb 2017 19:09:33 +0000 (14:09 -0500)]
mgr/MgrClient: don't block command submission if no session yet

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr/MgrClient: resend pending commands on reconnect
Sage Weil [Sun, 26 Feb 2017 19:09:18 +0000 (14:09 -0500)]
mgr/MgrClient: resend pending commands on reconnect

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr/DaemonServer: implement 'pg [scrub|deep-scrub|repair] ...'
Sage Weil [Sat, 25 Feb 2017 03:26:00 +0000 (22:26 -0500)]
mgr/DaemonServer: implement 'pg [scrub|deep-scrub|repair] ...'

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr/DaemonServer: use process_pg_map_command helper for most things
Sage Weil [Sat, 25 Feb 2017 03:25:39 +0000 (22:25 -0500)]
mgr/DaemonServer: use process_pg_map_command helper for most things

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr/DaemonServer: use stringstream ds in local scope
Sage Weil [Sat, 25 Feb 2017 03:20:13 +0000 (22:20 -0500)]
mgr/DaemonServer: use stringstream ds in local scope

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr: don't crash on bad auth msg from client
Sage Weil [Fri, 24 Feb 2017 22:52:19 +0000 (17:52 -0500)]
mgr: don't crash on bad auth msg from client

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: accept MOSDScrub messages from ceph-mgr
Sage Weil [Fri, 24 Feb 2017 21:58:58 +0000 (16:58 -0500)]
osd: accept MOSDScrub messages from ceph-mgr

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomsg/Connection: implement peer_is_mgr()
Sage Weil [Fri, 24 Feb 2017 22:00:16 +0000 (17:00 -0500)]
msg/Connection: implement peer_is_mgr()

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr/DaemonServer: set messenger policy; set throttles
Sage Weil [Fri, 24 Feb 2017 21:44:00 +0000 (16:44 -0500)]
mgr/DaemonServer: set messenger policy; set throttles

Put clients, osds, mons, and mdss in different buckets.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon: move most PGMonitor commands into PGMap.{cc} helper
Sage Weil [Sat, 25 Feb 2017 03:19:12 +0000 (22:19 -0500)]
mon: move most PGMonitor commands into PGMap.{cc} helper

We don't need private access to PGMap members, so a simple
function will do.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon: move dump_stuck_pg_stats from PGMonitor -> PGMap
Sage Weil [Fri, 24 Feb 2017 20:51:08 +0000 (15:51 -0500)]
mon: move dump_stuck_pg_stats from PGMonitor -> PGMap

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/PGMap: constify a few things
Sage Weil [Fri, 24 Feb 2017 20:47:41 +0000 (15:47 -0500)]
mon/PGMap: constify a few things

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agopybind/ceph_argparse: send MGR-flagged commands to ceph-mgr
Sage Weil [Fri, 24 Feb 2017 20:12:35 +0000 (15:12 -0500)]
pybind/ceph_argparse: send MGR-flagged commands to ceph-mgr

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr: add generic Formatter for handle_command
Sage Weil [Fri, 24 Feb 2017 19:38:47 +0000 (14:38 -0500)]
mgr: add generic Formatter for handle_command

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr: include MgrCommands.h in mgr_commands
Sage Weil [Fri, 24 Feb 2017 19:38:15 +0000 (14:38 -0500)]
mgr: include MgrCommands.h in mgr_commands

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon,mgr: move "pg ..." commands to MgrCommands, but keep #including on mon
Sage Weil [Fri, 24 Feb 2017 19:37:58 +0000 (14:37 -0500)]
mon,mgr: move "pg ..." commands to MgrCommands, but keep #including on mon

These will become mgr commands.  Move them untouched to
MgrCommands.h, but for now include them in the mon_commands with
the new MGR flag on them.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon: hide the MGR flag on mon commands until require_luminous is set
Sage Weil [Thu, 23 Feb 2017 22:18:08 +0000 (17:18 -0500)]
mon: hide the MGR flag on mon commands until require_luminous is set

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon: add a MGR flag to mon commands
Sage Weil [Thu, 23 Feb 2017 22:19:30 +0000 (17:19 -0500)]
mon: add a MGR flag to mon commands

The flag will indicate that a command should be sent to ceph-mgr
instead of ceph-mon (rados_mgr_command instead of
rados_mon_command).

For legacy clients, we'll have to make the mon forward the message
on behalf of the client.

Signed-off-by: Sage Weil <sage@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 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 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 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 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>
8 years agoosd: Add automatic repair for DBObjectMap bug
David Zafman [Wed, 15 Feb 2017 23:02:33 +0000 (15:02 -0800)]
osd: Add automatic repair for DBObjectMap bug

Add repair command to ceph-osdomap-tool too

Under some situations the previous rm_keys() code would
generated a corrupt complete table.  There is no way to
figure out what the table should look like now.  By removing
the entries we fix the corruption and aren't much worse off
because the corruption caused some deleted keys to re-appear.

This doesn't breaking the parent/child relationship during
repair because some of the keys may still be contained
in the parent.

Signed-off-by: David Zafman <dzafman@redhat.com>
8 years agoceph-osdomap-tool: Fix tool exit status
David Zafman [Wed, 15 Feb 2017 22:59:40 +0000 (14:59 -0800)]
ceph-osdomap-tool: Fix tool exit status

Signed-off-by: David Zafman <dzafman@redhat.com>
8 years agoDBObjectMap: rewrite rm_keys and merge_new_complete
Samuel Just [Fri, 10 Feb 2017 23:51:42 +0000 (15:51 -0800)]
DBObjectMap: rewrite rm_keys and merge_new_complete

Leverage the updated in_complete_region and needs_parent to simplify
these methods.

Signed-off-by: Samuel Just <sjust@redhat.com>
8 years agoDBObjectMap: strengthen in_complete_region post condition
Samuel Just [Fri, 10 Feb 2017 23:50:57 +0000 (15:50 -0800)]
DBObjectMap: strengthen in_complete_region post condition

Previously, in_complete_region didn't guarantee anything about
where it left complete_iter pointing.  It will be handy for
complete_iter to be pointing at the lowest interval which ends
after to_test.  Make it so.

Signed-off-by: Samuel Just <sjust@redhat.com>
8 years agoDBObjectMap: fix next_parent()
Samuel Just [Fri, 10 Feb 2017 23:48:57 +0000 (15:48 -0800)]
DBObjectMap: fix next_parent()

The previous implementation assumed that
lower_bound(parent_iter->key()) always leaves the iterator
on_parent().  There isn't any guarantee, however, that that
key isn't present on the child as well.

Signed-off-by: Samuel Just <sjust@redhat.com>