]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agomon/ConfigKeyService: wait for quorum 13617/head
Sage Weil [Thu, 30 Mar 2017 16:42:31 +0000 (12:42 -0400)]
mon/ConfigKeyService: wait for quorum

Among other things, this prevents a mgr activation stall if it
happens to request config-keys from a mon that is out of
quorum.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/MgrMonitor: show delta
Sage Weil [Thu, 30 Mar 2017 16:31:35 +0000 (12:31 -0400)]
mon/MgrMonitor: show delta

This is mostly because I couldn't debug a weird state where
it kept updating but it appeared the addr was not changing
(always '-').

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/MgrMap: implement dump, add to ceph-dencoder
Sage Weil [Thu, 30 Mar 2017 16:19:41 +0000 (12:19 -0400)]
mon/MgrMap: implement dump, add to ceph-dencoder

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/MgrMonitor: print MgrMap to log on each change
Sage Weil [Thu, 30 Mar 2017 16:06:43 +0000 (12:06 -0400)]
mon/MgrMonitor: print MgrMap to log on each change

The other services do this.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/MgrMonitor: health warn/err if no active mgr
Sage Weil [Thu, 30 Mar 2017 14:40:23 +0000 (10:40 -0400)]
mon/MgrMonitor: health warn/err if no active mgr

Start warning once mons are luminous; start erroring once
require_luminous is set in osdmap.  Allow a grace period for
mgr to restart or standby to take over before we turn a warning
into an error.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/PGMap: set initial pg timestamp as osdmap modified stamp
Sage Weil [Wed, 22 Mar 2017 18:21:46 +0000 (13:21 -0500)]
mon/PGMap: set initial pg timestamp as osdmap modified stamp

Currently the PGMap may register the new pg in multiple places: the
mgr or mon, and the timestamp is when the mon or mgr gets around to
recording it into its PGMap.  Make this deterministic by using the OSDMap
mtime (which is when the PG was *actually* created).

This fixes a problem where the pg create command has one timestamp (from
the mon) and the pgmap on the mgr has another, so an observer will see the
last_scrub_stamp (and other timestamps) change when nothing has actually
happened.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/MgrMonitor: do not tick() if not active or leader
Sage Weil [Wed, 22 Mar 2017 16:41:11 +0000 (11:41 -0500)]
mon/MgrMonitor: do not tick() if not active or leader

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr/MgrClient: assume missing MgrMap means no acces to mgr at all
Sage Weil [Wed, 22 Mar 2017 16:36:01 +0000 (11:36 -0500)]
mgr/MgrClient: assume missing MgrMap means no acces to mgr at all

If we get as far as authenticating and have no MgrMap that implies the
mon didn't provide us one (despite our request) and we have no access to
the mgr at all.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agolibrados: return error from mgr start_command
Sage Weil [Wed, 22 Mar 2017 16:34:52 +0000 (11:34 -0500)]
librados: return error from mgr start_command

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoqa/tasks/dump_stuck.py: stop making assertions about 'health' report
Sage Weil [Wed, 22 Mar 2017 16:16:23 +0000 (11:16 -0500)]
qa/tasks/dump_stuck.py: stop making assertions about 'health' report

Health comes from teh mon, while the pg stats come from teh mgr, so they
may be out of sync.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr/DaemonServer: log commands to cluster + audit logs
Sage Weil [Tue, 14 Mar 2017 13:57:17 +0000 (09:57 -0400)]
mgr/DaemonServer: log commands to cluster + audit logs

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr/MgrStandby: add LogClient
Sage Weil [Wed, 22 Mar 2017 01:24:24 +0000 (20:24 -0500)]
mgr/MgrStandby: add LogClient

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr/DaemonServer: debug on shutdown
Sage Weil [Wed, 22 Mar 2017 01:05:47 +0000 (20:05 -0500)]
mgr/DaemonServer: debug on shutdown

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr/DaemonServer: whitespace
Sage Weil [Tue, 14 Mar 2017 13:57:26 +0000 (09:57 -0400)]
mgr/DaemonServer: whitespace

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr/MgrClient: cope with disappearing perf_counters
Sage Weil [Fri, 10 Mar 2017 22:14:24 +0000 (17:14 -0500)]
mgr/MgrClient: cope with disappearing perf_counters

Perfcounters can go away; deal with it.  This collapses
into a single loop, but it means that the mgr might
stop getting certain counters without explicit
notification.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoqa/suites/upgrade/jewel-x: don't initially start mgr daemons
Sage Weil [Sat, 18 Mar 2017 19:02:16 +0000 (15:02 -0400)]
qa/suites/upgrade/jewel-x: don't initially start mgr daemons

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoqa/releases/luminous.yaml: set up mgr key; start mgr
Sage Weil [Mon, 13 Mar 2017 12:28:28 +0000 (08:28 -0400)]
qa/releases/luminous.yaml: set up mgr key; start mgr

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoqa/suites/rados/upgrade: don't initially start mgr daemon
Sage Weil [Fri, 10 Mar 2017 22:25:47 +0000 (17:25 -0500)]
qa/suites/rados/upgrade: don't initially start mgr daemon

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoqa/tasks/ceph.py: add 'skip_mgr_daemons' option
Sage Weil [Fri, 10 Mar 2017 21:57:51 +0000 (16:57 -0500)]
qa/tasks/ceph.py: add 'skip_mgr_daemons' option

For upgrades

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoqa/tasks/ceph.py: give everyone mgr caps
Sage Weil [Fri, 10 Mar 2017 19:15:46 +0000 (14:15 -0500)]
qa/tasks/ceph.py: give everyone mgr caps

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr: do not crash if FSMap doesn't have 'addr' metadata
Sage Weil [Fri, 17 Mar 2017 20:42:31 +0000 (16:42 -0400)]
mgr: do not crash if FSMap doesn't have 'addr' metadata

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr/MgrClient: do not assert on control-c
Sage Weil [Tue, 14 Mar 2017 14:02:38 +0000 (10:02 -0400)]
mgr/MgrClient: do not assert on control-c

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr/Session: keep inst, not addr
Sage Weil [Tue, 14 Mar 2017 13:56:56 +0000 (09:56 -0400)]
mgr/Session: keep inst, not addr

For parity with log messages from other daemons etc.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr: move MgrSession to its own header
Sage Weil [Tue, 14 Mar 2017 13:26:51 +0000 (09:26 -0400)]
mgr: move MgrSession to its own header

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/AuthMonitor: fix mgr mon caps to 'allow profile mgr'
Sage Weil [Tue, 14 Mar 2017 02:41:37 +0000 (22:41 -0400)]
mon/AuthMonitor: fix mgr mon caps to 'allow profile mgr'

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agosystemd/ceph-mgr@.service: fix mgr mon cap
Sage Weil [Tue, 14 Mar 2017 02:37:29 +0000 (22:37 -0400)]
systemd/ceph-mgr@.service: fix mgr mon cap

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agovstart.sh: fix mgr caps
Sage Weil [Mon, 13 Mar 2017 18:00:06 +0000 (14:00 -0400)]
vstart.sh: fix mgr caps

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/AuthMonitor: add 'mgr' caps to keyring on upgrade
Sage Weil [Mon, 13 Mar 2017 12:28:17 +0000 (08:28 -0400)]
mon/AuthMonitor: add 'mgr' caps to keyring on upgrade

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/MonCap: add bootstrap-mgr profile
Sage Weil [Mon, 13 Mar 2017 12:22:42 +0000 (08:22 -0400)]
mon/MonCap: add bootstrap-mgr profile

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoceph-authtool: check 'mgr' section too
Sage Weil [Fri, 10 Mar 2017 21:58:00 +0000 (16:58 -0500)]
ceph-authtool: check 'mgr' section too

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr/MgrClient: fix uninitialize variable
Sage Weil [Fri, 10 Mar 2017 22:18:01 +0000 (17:18 -0500)]
mgr/MgrClient: fix uninitialize variable

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr/MgrClient: move lock init into .h
Sage Weil [Fri, 10 Mar 2017 22:17:54 +0000 (17:17 -0500)]
mgr/MgrClient: move lock init into .h

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr/Mgr: less noisy about ms_dispatch
Sage Weil [Fri, 10 Mar 2017 20:41:16 +0000 (15:41 -0500)]
mgr/Mgr: less noisy about ms_dispatch

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoqa/suites: run mgr daemon(s)
Sage Weil [Fri, 10 Mar 2017 18:48:19 +0000 (13:48 -0500)]
qa/suites: run mgr daemon(s)

Everything up upgrade/, which will be slightly tricky.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agotest/osd/osd-scrub-repair.sh: cope with mon/mgr asynchrony
Sage Weil [Fri, 10 Mar 2017 04:17:20 +0000 (23:17 -0500)]
test/osd/osd-scrub-repair.sh: cope with mon/mgr asynchrony

Need to wait for mon to reflect pg state as reported by
mgr.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr/MgrClient: throttle connection attempts
Sage Weil [Wed, 8 Mar 2017 22:01:31 +0000 (17:01 -0500)]
mgr/MgrClient: throttle connection attempts

Max of 1 per second.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoqa/workunits/cephtool/test.sh: test_auth_profiles must include mgr
Sage Weil [Wed, 8 Mar 2017 18:49:55 +0000 (13:49 -0500)]
qa/workunits/cephtool/test.sh: test_auth_profiles must include mgr

For 'pg ...' commands

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/MonCap: pass entity type (mgr, mon) to is_capable
Sage Weil [Tue, 7 Mar 2017 21:28:24 +0000 (16:28 -0500)]
mon/MonCap: pass entity type (mgr, mon) to is_capable

This lets us define different meanings for profiles on
the mon and mgr.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/MgrMonitor: enforce mgr caps
Sage Weil [Tue, 7 Mar 2017 21:12:22 +0000 (16:12 -0500)]
mon/MgrMonitor: enforce mgr caps

Require 'allow x' for mgr beacon.  Verify fsid.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr: include cluster fsid in MMgrBeacon
Sage Weil [Tue, 7 Mar 2017 21:10:54 +0000 (16:10 -0500)]
mgr: include cluster fsid in MMgrBeacon

Prevent ceph-mgr from talking to the wrong cluster!

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/MonCap: expand 'profile mgr' caps
Sage Weil [Tue, 7 Mar 2017 20:58:27 +0000 (15:58 -0500)]
mon/MonCap: expand 'profile mgr' caps

Signed-off-by: Sage Weil <sage@redhat.com>
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>