Sage Weil
3049c896a4
vstart.sh: debug mgrc
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-29 11:39:25 -04:00
Sage Weil
4ec7a58640
vstart.sh: give client.admin mgr 'allow *'
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-29 11:39:25 -04:00
Sage Weil
4c4977f42b
vstart.sh: give osd mgr = 'allow profile osd'
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-29 11:39:25 -04:00
Sage Weil
3403750af4
vstart.sh: pass ceph.conf to ceph-mgr
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-29 11:39:25 -04:00
Sage Weil
e0a07e1ea9
test/osd/osd-*.sh: run mgr daemon for tests
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-29 11:39:25 -04:00
Sage Weil
83b19dd1f1
qa/workunits/ceph-helpers: start and stop mgr daemons
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-29 11:39:25 -04:00
Sage Weil
6c21532bf7
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>
2017-03-29 11:39:25 -04:00
Sage Weil
89735b78f6
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>
2017-03-29 11:39:25 -04:00
Sage Weil
cc6e568baa
mon: add a finisher
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-29 11:39:25 -04:00
Sage Weil
55088f7bbe
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>
2017-03-29 11:39:25 -04:00
Sage Weil
9c70829604
mon: add a MgrClient
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-29 11:39:25 -04:00
Sage Weil
ab765298fc
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>
2017-03-29 11:39:25 -04:00
Sage Weil
6ffa93ba43
mgr/MgrClient: remove unused cond signal helpers
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-29 11:39:25 -04:00
Sage Weil
6ff0857974
mgr/MgrClient: don't block command submission if no session yet
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-29 11:39:25 -04:00
Sage Weil
e19d4a0118
mgr/MgrClient: resend pending commands on reconnect
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-29 11:39:25 -04:00
Sage Weil
909fdcacf7
mgr/DaemonServer: implement 'pg [scrub|deep-scrub|repair] ...'
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-29 11:39:25 -04:00
Sage Weil
5ad3244df4
mgr/DaemonServer: use process_pg_map_command helper for most things
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-29 11:39:25 -04:00
Sage Weil
268d08dd30
mgr/DaemonServer: use stringstream ds in local scope
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-29 11:39:25 -04:00
Sage Weil
f052a2c6f4
mgr: don't crash on bad auth msg from client
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-29 11:39:25 -04:00
Sage Weil
bde03d27e2
osd: accept MOSDScrub messages from ceph-mgr
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-29 11:39:25 -04:00
Sage Weil
2c4bece289
msg/Connection: implement peer_is_mgr()
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-29 11:39:25 -04:00
Sage Weil
5c0d1f9d33
mgr/DaemonServer: set messenger policy; set throttles
...
Put clients, osds, mons, and mdss in different buckets.
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-29 11:39:25 -04:00
Sage Weil
6ac21d86aa
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>
2017-03-29 11:38:32 -04:00
Sage Weil
cbd09fc135
mon: move dump_stuck_pg_stats from PGMonitor -> PGMap
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-29 11:38:32 -04:00
Sage Weil
564bff0014
mon/PGMap: constify a few things
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-29 11:38:31 -04:00
Sage Weil
9351c87bcf
pybind/ceph_argparse: send MGR-flagged commands to ceph-mgr
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-29 11:38:31 -04:00
Sage Weil
3faec244ca
mgr: add generic Formatter for handle_command
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-29 11:38:31 -04:00
Sage Weil
8aefec1612
mgr: include MgrCommands.h in mgr_commands
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-29 11:38:31 -04:00
Sage Weil
0d0c518260
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>
2017-03-29 11:38:31 -04:00
Sage Weil
f8d6af9839
mon: hide the MGR flag on mon commands until require_luminous is set
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-29 11:38:31 -04:00
Sage Weil
7e3cfef4d7
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>
2017-03-29 11:38:31 -04:00
Casey Bodley
4b73fcb070
Merge pull request #14122 from hrchu/rgwadmin-doc-quota
...
doc: correct the quota section
Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2017-03-29 10:38:16 -04:00
Kefu Chai
76d467c10b
Merge pull request #14078 from tchaikov/wip-19258
...
mgr: shutdown py_modules in Mgr::shutdown()
Reviewed-by: John Spray <john.spray@redhat.com>
2017-03-29 22:02:51 +08:00
Sage Weil
a66d65847c
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>
2017-03-29 08:33:40 -05:00
Kefu Chai
06256a53f3
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>
2017-03-29 21:21:24 +08:00
Kefu Chai
523b7cafc4
mgr: shutdown py_modules in Mgr::shutdown()
...
Fixes: http://tracker.ceph.com/issues/19258
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-03-29 19:57:42 +08:00
Kefu Chai
c12ecd984d
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>
2017-03-29 19:19:23 +08:00
Mykola Golub
6e77724464
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>
2017-03-29 12:31:12 +03:00
Sage Weil
97ea67fcee
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>
2017-03-28 21:30:18 -05:00
Sage Weil
da51861d71
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>
2017-03-28 21:26:08 -05:00
hrchu
51a88267f0
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>
2017-03-29 02:17:04 +00:00
Sage Weil
4a8732eba7
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>
2017-03-28 17:23:36 -05:00
Casey Bodley
2e82401c91
rgw: fix build of conflict after auth rework
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2017-03-28 15:01:59 -04:00
Matt Benjamin
b0fc817458
Merge pull request #13764 from guihecheng/rgwfs-errcode
...
rgw_file: fix non-posix errcode EINVAL to ENAMETOOLONG
2017-03-28 14:31:14 -04:00
John Wilkins
f2dfa64da5
Merge pull request #14108 from sven15/doc-fix-pools
...
doc: typo in hit_set_search_last_n
Reviewed-by: John Wilkins <jowilkin@redhat.com>
2017-03-28 10:53:48 -07:00
Sage Weil
50b9becaf8
Merge pull request #14128 from yehudasa/wip-19367
...
cls/user: cls_user_bucket backward compatibility
Reviewed-by: Sage Weil <sage@redhat.com>
2017-03-28 11:31:39 -05:00
Yuri Weinstein
9137790062
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>
2017-03-28 09:25:26 -07:00
Yuri Weinstein
0dee0b7560
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>
2017-03-28 09:24:51 -07:00
Yuri Weinstein
4d9eecd74e
Merge pull request #14133 from runsisi/wip-pg-state-cleanup
...
osd/PG: some minor cleanups
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-03-28 09:24:02 -07:00
Casey Bodley
2af680c7ba
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>
2017-03-28 12:13:10 -04:00