]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agoMerge pull request #21479 from cbodley/wip-23547
Casey Bodley [Wed, 25 Apr 2018 12:26:25 +0000 (08:26 -0400)]
Merge pull request #21479 from cbodley/wip-23547

rgw: add buffering filter to compression for fetch_remote_obj

Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
7 years agoMerge pull request #21576 from cbodley/wip-23506
Casey Bodley [Wed, 25 Apr 2018 12:22:35 +0000 (08:22 -0400)]
Merge pull request #21576 from cbodley/wip-23506

rgw: fix error handling for GET with ?torrent

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Robin H. Johnson <robin.johnson@dreamhost.com>
7 years agoMerge pull request #21569 from cbodley/wip-23803
Casey Bodley [Wed, 25 Apr 2018 12:21:47 +0000 (08:21 -0400)]
Merge pull request #21569 from cbodley/wip-23803

rgw: aws4 auth supports PutBucketRequestPayment

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
7 years agoMerge pull request #20212 from tianshan/fix_period_pull
Casey Bodley [Wed, 25 Apr 2018 12:21:15 +0000 (08:21 -0400)]
Merge pull request #20212 from tianshan/fix_period_pull

rgw: do not reflect period if not current

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #20796 from theanalyst/rgw/es-cs-fix
Casey Bodley [Wed, 25 Apr 2018 12:20:46 +0000 (08:20 -0400)]
Merge pull request #20796 from theanalyst/rgw/es-cs-fix

rgw: es module: set compression type correctly

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #21500 from yehudasa/wip-23779
Casey Bodley [Wed, 25 Apr 2018 12:20:01 +0000 (08:20 -0400)]
Merge pull request #21500 from yehudasa/wip-23779

rgw: encoding fixes

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #21534 from cbodley/wip-23480
Casey Bodley [Wed, 25 Apr 2018 12:19:33 +0000 (08:19 -0400)]
Merge pull request #21534 from cbodley/wip-23480

rgw: move all pool creation into rgw_init_ioctx

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
7 years agoMerge pull request #21551 from zhangsw/fix-rgw-userinfo-stats-bug
Casey Bodley [Wed, 25 Apr 2018 12:18:46 +0000 (08:18 -0400)]
Merge pull request #21551 from zhangsw/fix-rgw-userinfo-stats-bug

rgw: admin rest api shouldn't return error when getting user's stats if the user hasn't create any bucket.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #21640 from votdev/config_set_help_txt
Lenz Grimmer [Wed, 25 Apr 2018 12:00:39 +0000 (14:00 +0200)]
Merge pull request #21640 from votdev/config_set_help_txt

mgr/dashboard: Adapt help text if server_addr is not set

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agomgr/dashboard: Adapt help text if server_addr is not set 21640/head
Volker Theile [Wed, 25 Apr 2018 10:55:19 +0000 (12:55 +0200)]
mgr/dashboard: Adapt help text if server_addr is not set

After 'ceph config-key set' is deprecated the help text must be adapted.

Signed-off-by: Volker Theile <vtheile@suse.com>
7 years agoMerge pull request #21636 from rjfd/wip-dashboard-fix-pool-py3
Lenz Grimmer [Wed, 25 Apr 2018 09:21:16 +0000 (11:21 +0200)]
Merge pull request #21636 from rjfd/wip-dashboard-fix-pool-py3

mgr/dashboard: pool: fix python3 dict_keys error

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agoMerge pull request #21618 from votdev/loading_panel
Lenz Grimmer [Wed, 25 Apr 2018 09:17:58 +0000 (11:17 +0200)]
Merge pull request #21618 from votdev/loading_panel

mgr/dashboard: Add 'cd-loading-panel' component

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
7 years agoMerge pull request #21633 from ukernel/wip-mds-stat-rstat
Yan, Zheng [Wed, 25 Apr 2018 08:51:50 +0000 (16:51 +0800)]
Merge pull request #21633 from ukernel/wip-mds-stat-rstat

mds: fix CEPH_STAT_RSTAT definition

7 years agomgr/dashboard: pool: fix python3 dict_keys error 21636/head
Ricardo Dias [Tue, 24 Apr 2018 12:32:03 +0000 (13:32 +0100)]
mgr/dashboard: pool: fix python3 dict_keys error

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomds: fix CEPH_STAT_RSTAT definition 21633/head
Yan, Zheng [Wed, 25 Apr 2018 04:17:22 +0000 (12:17 +0800)]
mds: fix CEPH_STAT_RSTAT definition

(CEPH_CAP_GWREXTEND << 16) is (1<<22), which causes gaps in caps bits.
CEPH_CAP_FILE_WREXTEND is an unused bit, reuse it for CEPH_STAT_RSTAT.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
7 years agoMerge pull request #21273 from jdurgin/wip-23195
Sage Weil [Tue, 24 Apr 2018 22:20:25 +0000 (17:20 -0500)]
Merge pull request #21273 from jdurgin/wip-23195

osd/ECBackend: only check required shards when finishing recovery reads

Reviewed-by: David Zafman <dzafman@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #21620 from jcsp/wip-mgr-balancer-options
Sage Weil [Tue, 24 Apr 2018 22:19:48 +0000 (17:19 -0500)]
Merge pull request #21620 from jcsp/wip-mgr-balancer-options

mgr/balancer: fix OPTIONS definition

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21606 from ceph/fix-build-CEPH_CLS_API
Sage Weil [Tue, 24 Apr 2018 18:04:27 +0000 (13:04 -0500)]
Merge pull request #21606 from ceph/fix-build-CEPH_CLS_API

rados/objclass.h: fix build define CEPH_CLS_API in all cases

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21621 from theanalyst/doc/releases/12.2.5
Abhishek L [Tue, 24 Apr 2018 17:00:47 +0000 (19:00 +0200)]
Merge pull request #21621 from theanalyst/doc/releases/12.2.5

doc: v12.2.5 luminous release notes

Reviewed-By: Sage Weil <sage@redhat.com>
7 years agomgr/dashboard: Introduce 'cd-loading-panel' component 21618/head
Volker Theile [Tue, 24 Apr 2018 11:30:41 +0000 (13:30 +0200)]
mgr/dashboard: Introduce 'cd-loading-panel' component

Signed-off-by: Volker Theile <vtheile@suse.com>
7 years agodoc: v12.2.5 luminous release notes 21621/head
Abhishek Lekshmanan [Tue, 24 Apr 2018 15:41:00 +0000 (17:41 +0200)]
doc: v12.2.5 luminous release notes

Signed-off-by: Abhishek Lekshmanan <alekshmanan@suse.com>
7 years agoMerge pull request #21595 from votdev/load_on_init
Kefu Chai [Tue, 24 Apr 2018 15:40:32 +0000 (23:40 +0800)]
Merge pull request #21595 from votdev/load_on_init

mgr/dashboard: Load the datatable content on component initialization

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
7 years agoMerge pull request #20899 from Devp00l/deletion-dialog
Lenz Grimmer [Tue, 24 Apr 2018 14:55:11 +0000 (16:55 +0200)]
Merge pull request #20899 from Devp00l/deletion-dialog

mgr/dashboard: Adds reusable deletion dialog

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
7 years agomgr/balancer: fix OPTIONS definition 21620/head
John Spray [Tue, 24 Apr 2018 14:39:19 +0000 (15:39 +0100)]
mgr/balancer: fix OPTIONS definition

I typo'd a couple of these, which was causing test failures
when the access to the correct names got an exception.

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomgr/dashboard: Replaces delete-confirmation-modal 20899/head
Stephan Müller [Wed, 18 Apr 2018 14:54:12 +0000 (16:54 +0200)]
mgr/dashboard: Replaces delete-confirmation-modal

This replaces usage of "delete-confirmation-modal" with the use of
"delete-modal".

Signed-off-by: Stephan Müller <smueller@suse.com>
7 years agomgr/dashboard: Change deletion link to modal only
Stephan Müller [Mon, 16 Apr 2018 11:44:38 +0000 (13:44 +0200)]
mgr/dashboard: Change deletion link to modal only

Due to CSS problems the link solution wasn't the best way, now it will
represent only the modal content. The downside of this solution is that
it put's the burden on the developer to use it the right way and import
a view things to get it working. But on the upside CSS styles will work
as expected.

The unit test example was updated accordingly this way it should be easy
to understand how it can be implemented the right way.

Signed-off-by: Stephan Müller <smueller@suse.com>
7 years agomgr/dashboard: Changes deletion button to link
Stephan Müller [Mon, 16 Apr 2018 08:57:31 +0000 (10:57 +0200)]
mgr/dashboard: Changes deletion button to link

This change was made because a link can be placed anywhere instead of a
button element.

Signed-off-by: Stephan Müller <smueller@suse.com>
7 years agomgr/dashboard: Adds reusable deletion dialog
Stephan Müller [Wed, 14 Mar 2018 15:09:07 +0000 (16:09 +0100)]
mgr/dashboard: Adds reusable deletion dialog

You can now simply use a deletion dialog without having to import a lot
of different things from ngx-bootstrap. Its easy to extend the dialog
by a detail description.

Signed-off-by: Tiago Melo <tmelo@suse.com>
Signed-off-by: Stephan Müller <smueller@suse.com>
7 years agomgr/dashboard: Add modal component
Tiago Melo [Tue, 6 Mar 2018 12:04:18 +0000 (12:04 +0000)]
mgr/dashboard: Add modal component

This component should be used each time you define a new modal.
This will allows us to keep all modals with the same visual aspect.

Signed-off-by: Tiago Melo <tmelo@suse.com>
Signed-off-by: Stephan Müller <smueller@suse.com>
7 years agoMerge pull request #21604 from liewegas/wip-ec-write-to-read
Sage Weil [Tue, 24 Apr 2018 11:42:05 +0000 (06:42 -0500)]
Merge pull request #21604 from liewegas/wip-ec-write-to-read

osd/ECBackend: wait for apply for luminous peers

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #20875 from jan--f/mgr-server-list-hostname
John Spray [Tue, 24 Apr 2018 11:36:48 +0000 (12:36 +0100)]
Merge pull request #20875 from jan--f/mgr-server-list-hostname

mgr: add mgr daemon to DaemonStateIndex with metadata (hostname)

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #21555 from tchaikov/wip-23763
Kefu Chai [Tue, 24 Apr 2018 10:32:21 +0000 (18:32 +0800)]
Merge pull request #21555 from tchaikov/wip-23763

test/librados: increase pgp_num along with pg_num

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #21139 from guzhongyan/cmd-wildcard
John Spray [Tue, 24 Apr 2018 10:19:32 +0000 (11:19 +0100)]
Merge pull request #21139 from guzhongyan/cmd-wildcard

mon,mgr: remove single wildcard '*' from ceph comand line description

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #21424 from MI-OSiRIS/influx
John Spray [Tue, 24 Apr 2018 10:18:13 +0000 (11:18 +0100)]
Merge pull request #21424 from MI-OSiRIS/influx

mgr/influx: Added Additional Stats

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #21607 from jcsp/wip-mgr-selftest-fixup
John Spray [Tue, 24 Apr 2018 10:17:16 +0000 (11:17 +0100)]
Merge pull request #21607 from jcsp/wip-mgr-selftest-fixup

mgr: reconcile can_run checks and selftest

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #21559 from votdev/autofocus
Lenz Grimmer [Tue, 24 Apr 2018 09:50:42 +0000 (11:50 +0200)]
Merge pull request #21559 from votdev/autofocus

mgr/dashboard: Add 'autofocus' directive

Reviewed-by: Ricardo Marques <rimarques@suse.com>
7 years agorgw: encoding fixes 21500/head
Yehuda Sadeh [Wed, 18 Apr 2018 13:37:49 +0000 (06:37 -0700)]
rgw: encoding fixes

Fixes: http://tracker.ceph.com/issues/23779
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agoMerge pull request #21602 from votdev/fix_rbd_form
Lenz Grimmer [Tue, 24 Apr 2018 09:33:33 +0000 (11:33 +0200)]
Merge pull request #21602 from votdev/fix_rbd_form

mgr/dashboard: Adapt RBD form to new application_metadata type

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
7 years agoMerge PR #21166 into master
Patrick Donnelly [Tue, 24 Apr 2018 04:28:14 +0000 (21:28 -0700)]
Merge PR #21166 into master

* refs/pull/21166/head:
mds: fix occasional dir rstat inconsistency between multi-MDSes

Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agoMerge PR #21510 into master
Patrick Donnelly [Tue, 24 Apr 2018 04:28:09 +0000 (21:28 -0700)]
Merge PR #21510 into master

* refs/pull/21510/head:
mon: respect standby_for_fscid when choosing standby replay mds
mon: fix standby replay in multimds setup

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #21535 into master
Patrick Donnelly [Tue, 24 Apr 2018 04:28:04 +0000 (21:28 -0700)]
Merge PR #21535 into master

* refs/pull/21535/head:
MDSMonitor: do not resize cluster when MDS is starting

Reviewed-by: Douglas Fuller <dfuller@redhat.com>
7 years agoMerge PR #21536 into master
Patrick Donnelly [Tue, 24 Apr 2018 04:27:55 +0000 (21:27 -0700)]
Merge PR #21536 into master

* refs/pull/21536/head:
qa: check old_max_mds is not wiped by marked down twice
MDSMonitor: do not wipe old_max_mds when marked down twice

Reviewed-by: Douglas Fuller <dfuller@redhat.com>
7 years agoqa/suite: whitelist PG_AVAILABILITY in rados_api_tests.yaml 21555/head
Kefu Chai [Tue, 24 Apr 2018 02:10:51 +0000 (10:10 +0800)]
qa/suite: whitelist PG_AVAILABILITY in rados_api_tests.yaml

pg will be created when increasing pgp-num and pg-num. so at that
moment, PG_AVAILABILITY is reported. so whitelist it in all tests which
run rados/test.sh. that script exercises ceph_test_rados_api_list.

Fixes: http://tracker.ceph.com/issues/23763
Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agotest/librados: increase pgp_num along with pg_num
Kefu Chai [Fri, 20 Apr 2018 11:06:10 +0000 (19:06 +0800)]
test/librados: increase pgp_num along with pg_num

Fixes: http://tracker.ceph.com/issues/23763
Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21590 from sebastian-philipp/dashboard-fix-taskmanager-race
Kefu Chai [Tue, 24 Apr 2018 01:37:36 +0000 (09:37 +0800)]
Merge pull request #21590 from sebastian-philipp/dashboard-fix-taskmanager-race

mgr/dashboard: Fix data race and use-before-assignment

Reviewed-by: Ricardo Dias <rdias@suse.com>
7 years agoMDSMonitor: do not resize cluster when MDS is starting 21535/head
Patrick Donnelly [Mon, 23 Apr 2018 19:46:20 +0000 (12:46 -0700)]
MDSMonitor: do not resize cluster when MDS is starting

Fixes: http://tracker.ceph.com/issues/23799
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agomgr: handle commands sent to unavailable modules 21607/head
John Spray [Mon, 23 Apr 2018 21:15:22 +0000 (17:15 -0400)]
mgr: handle commands sent to unavailable modules

There are some up-front checks in DaemonServer
but it shouldn't assume that its checks are
necessarily going to match the choices about
how ActivePyModules composes its ::modules member,
so let's have some extra checks to avoid
risk of crashing mgr on commands sent to
unhealthy/unloaded modules.

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #20959 from LiumxNL/fix-pg-fake-down
Sage Weil [Mon, 23 Apr 2018 21:30:43 +0000 (16:30 -0500)]
Merge pull request #20959 from LiumxNL/fix-pg-fake-down

pg: handle MNotifyRec event in down state

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agomgr: execute modules even if can_run=false
John Spray [Mon, 23 Apr 2018 21:09:37 +0000 (17:09 -0400)]
mgr: execute modules even if can_run=false

We execute modules even if can_run=false, so that it is possible
to load them for running their selftest hooks.  However,
we already raise health messages about the fact that they're
enabled but can't run, so we don't want to also raise
health messages about whatever exceptions they raise
from serve()

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agoqa/tasks/mgr: pass "--force" to "mgr module enable"
Kefu Chai [Mon, 23 Apr 2018 11:13:37 +0000 (19:13 +0800)]
qa/tasks/mgr: pass "--force" to "mgr module enable"

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agodebian: let ceph-mgr suggests python-influxdb
Kefu Chai [Mon, 23 Apr 2018 10:41:05 +0000 (18:41 +0800)]
debian: let ceph-mgr suggests python-influxdb

the influx plugin requires influxdb python module to function, but
influxdb mgr plugin is optional for users who don't use influxdb.
so it's marked "Suggests" at this moment before we use a more flexible
packaging scheme.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21000 from ceph/evelu-23320
Sage Weil [Mon, 23 Apr 2018 21:29:27 +0000 (16:29 -0500)]
Merge pull request #21000 from ceph/evelu-23320

common: Improving message sent to user when getting signals

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20761 from liewegas/wip-service-unregister
Sage Weil [Mon, 23 Apr 2018 21:27:50 +0000 (16:27 -0500)]
Merge pull request #20761 from liewegas/wip-service-unregister

mgr: allow service daemons to unregister from ServiceMap

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agorados/objclass.h: fix build define CEPH_CLS_API in all cases 21606/head
Danny Al-Gaaf [Mon, 23 Apr 2018 21:11:02 +0000 (23:11 +0200)]
rados/objclass.h: fix build define CEPH_CLS_API in all cases

Fix for bug introduced with 096668ec5df93725a0726b53bbd30b4d4ab50f49:

In file included from src/objclass/objclass.h:13:0,
                 from src/cls/hello/cls_hello.cc:37:
src/include/rados/objclass.h:31:1: error: ‘CEPH_CLS_API’ does not name a
type; did you mean ‘CEPH_CAP_ANY’?
 CEPH_CLS_API void name##_cls_init()
 ^
/develop/ceph/source/ceph/src/include/rados/objclass.h:31:1: note: in
definition of macro ‘CLS_INIT’
 CEPH_CLS_API void name##_cls_init()
 ^~~~~~~~~~~~

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
7 years agoosd/ECBackend: wait for apply for luminous peers 21604/head
Sage Weil [Mon, 23 Apr 2018 18:22:26 +0000 (13:22 -0500)]
osd/ECBackend: wait for apply for luminous peers

Avoid completing a write until luminous peers also apply the change.
This is overkill, but works around a problem where completing our write
here allows the next read to start too early.  This is because the
PrimaryLogPG is handling the write-to-read ordering, but completing the
write releases the write lock in the PG.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #21442 from jcsp/wip-config
Sage Weil [Mon, 23 Apr 2018 16:02:21 +0000 (11:02 -0500)]
Merge pull request #21442 from jcsp/wip-config

mgr: centralized setting/getting of mgr configs

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agorgw: add buffering filter to compression for fetch_remote_obj 21479/head
Casey Bodley [Fri, 13 Apr 2018 20:01:48 +0000 (16:01 -0400)]
rgw: add buffering filter to compression for fetch_remote_obj

fetch_remote_obj() only gets 16k blocks from libcurl, which leads to a
much worse compression ratio than the 4m blocks in normal PUT requests

Fixes: http://tracker.ceph.com/issues/23547
Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agomgr/dashboard: Fix bug in RBD form. 21602/head
Volker Theile [Mon, 23 Apr 2018 14:47:34 +0000 (16:47 +0200)]
mgr/dashboard: Fix bug in RBD form.

Signed-off-by: Volker Theile <vtheile@suse.com>
7 years agoMerge pull request #21580 from xiexingguo/wip-add-assert
Sage Weil [Mon, 23 Apr 2018 14:59:46 +0000 (09:59 -0500)]
Merge pull request #21580 from xiexingguo/wip-add-assert

osd/PGLog: assert out on performing overflowed log trimming

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #21572 from tchaikov/wip-boost-1.67
Kefu Chai [Mon, 23 Apr 2018 14:57:47 +0000 (22:57 +0800)]
Merge pull request #21572 from tchaikov/wip-boost-1.67

cmake,make-dist: bump up boost version to 1.67

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
7 years agoMerge pull request #19985 from Liuchang0812/osd-pool-stats-in-mgr
Kefu Chai [Mon, 23 Apr 2018 14:52:22 +0000 (22:52 +0800)]
Merge pull request #19985 from Liuchang0812/osd-pool-stats-in-mgr

mon, mgr: move "osd pool stats" command to mgr and mgr python module

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21058 from trociny/wip-osd-empty-snapset
Kefu Chai [Mon, 23 Apr 2018 14:33:13 +0000 (22:33 +0800)]
Merge pull request #21058 from trociny/wip-osd-empty-snapset

osd: don't crash on empty snapset

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agodoc: update config-key->config in mgr module docs 21442/head
John Spray [Mon, 16 Apr 2018 21:30:18 +0000 (17:30 -0400)]
doc: update config-key->config in mgr module docs

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agodoc: update mgr plugin guide
John Spray [Mon, 16 Apr 2018 21:29:42 +0000 (17:29 -0400)]
doc: update mgr plugin guide

...for recent config changes.  Explain about MgrModule.OPTIONS,
and explain the new store/config distinction.

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agoqa: update mgr test for MgrModule.OPTIONS
John Spray [Mon, 16 Apr 2018 20:00:39 +0000 (16:00 -0400)]
qa: update mgr test for MgrModule.OPTIONS

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomgr: add MgrModule.OPTIONS definitions to modules
John Spray [Mon, 16 Apr 2018 16:10:13 +0000 (12:10 -0400)]
mgr: add MgrModule.OPTIONS definitions to modules

They need these to do upgrades properly.  Where there
was an existing structure describing config, merge
these together to avoid having two lists of options.

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #21188 from guzhongyan/mgr-disable-fix
Sage Weil [Mon, 23 Apr 2018 14:12:55 +0000 (09:12 -0500)]
Merge pull request #21188 from guzhongyan/mgr-disable-fix

mon,mgr: improve 'mgr module disable' cmd

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #21597 from LenzGr/dashboard-releasenotes
Sage Weil [Mon, 23 Apr 2018 14:01:15 +0000 (09:01 -0500)]
Merge pull request #21597 from LenzGr/dashboard-releasenotes

PendingReleaseNotes: Added note about Dashboard v2, fixed typo

7 years agoAddress comments. 21559/head
Volker Theile [Mon, 23 Apr 2018 13:44:38 +0000 (15:44 +0200)]
Address comments.

Signed-off-by: Volker Theile <vtheile@suse.com>
7 years agomgr/dashboard: Add 'autofocus' directive
Volker Theile [Fri, 20 Apr 2018 12:33:44 +0000 (14:33 +0200)]
mgr/dashboard: Add 'autofocus' directive

Signed-off-by: Volker Theile <vtheile@suse.com>
7 years agoMerge pull request #21581 from tchaikov/wip-objcls-sdk
Sage Weil [Mon, 23 Apr 2018 13:28:14 +0000 (08:28 -0500)]
Merge pull request #21581 from tchaikov/wip-objcls-sdk

objclass-sdk: expose __cls_init() to the world

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agomgr/dashboard: Load the datatable content after the component is initialized. 21595/head
Volker Theile [Mon, 23 Apr 2018 10:34:38 +0000 (12:34 +0200)]
mgr/dashboard: Load the datatable content after the component is initialized.

Signed-off-by: Volker Theile <vtheile@suse.com>
7 years agomgr: load MgrModule.OPTIONS and use it in upgrade
John Spray [Mon, 16 Apr 2018 14:49:57 +0000 (10:49 -0400)]
mgr: load MgrModule.OPTIONS and use it in upgrade

Modules will now only migrate items from config-key
into config options if they appear in the module's
schema.

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomgr: introduce MgrModule.OPTIONS field
John Spray [Mon, 16 Apr 2018 21:29:08 +0000 (17:29 -0400)]
mgr: introduce MgrModule.OPTIONS field

Now is a good time to start requiring
modules to explicitly list their configuration
settings, so that we can do a proper job of
migrating configuration from old config-key style,
i.e. knowing what's a config setting and what's
a KV store item.

Throw an exception if a module tries to
access a setting outside their schema, so
that we have some confidence that the schema
is complete.

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomgr: fix up a couple of double-lookups
John Spray [Mon, 16 Apr 2018 13:13:10 +0000 (09:13 -0400)]
mgr: fix up a couple of double-lookups

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agoqa: test mgr live configuration updates
John Spray [Tue, 10 Apr 2018 13:28:36 +0000 (09:28 -0400)]
qa: test mgr live configuration updates

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agovstart: use "config set" for mgr modules
John Spray [Mon, 16 Apr 2018 10:01:35 +0000 (06:01 -0400)]
vstart: use "config set" for mgr modules

...instead of pre-mimic config-key set.

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomgr/restful: migrate to new get_store interface
John Spray [Mon, 16 Apr 2018 09:37:50 +0000 (05:37 -0400)]
mgr/restful: migrate to new get_store interface

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomon: warn user doing "config key set mgr/..."
John Spray [Mon, 9 Apr 2018 19:37:55 +0000 (15:37 -0400)]
mon: warn user doing "config key set mgr/..."

This is still completely legal, but isn't going
to have the effect they wanted if they were
trying to set a configuration option for a mgr module.

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomgr: replace get_config_prefix with get_store_prefix
John Spray [Mon, 16 Apr 2018 09:39:44 +0000 (05:39 -0400)]
mgr: replace get_config_prefix with get_store_prefix

The _prefix variant was only used for data-ish things,
so we can just move it over to operate on store instead
of config, rather than having a _prefix variant for both.

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomgr: don't migrate config values that look like data
John Spray [Mon, 16 Apr 2018 09:39:03 +0000 (05:39 -0400)]
mgr: don't migrate config values that look like data

A quickie heuristic, but sufficient to avoid picking
up e.g. SSL certs and trying to cram them into
config values.

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomon: grant mgr profile "config" commands
John Spray [Wed, 11 Apr 2018 16:08:39 +0000 (12:08 -0400)]
mon: grant mgr profile "config" commands

...and remove redundant config-key lines (these are applied
to mgr anyway in the next block, and mgr even has a broader
config-key permission in the line above).

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomgr: clean up ActivePyModules logging
John Spray [Wed, 11 Apr 2018 12:45:53 +0000 (08:45 -0400)]
mgr: clean up ActivePyModules logging

This was running the prefix and message together.

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomgr: fix PyModuleConfig::set_config
John Spray [Mon, 9 Apr 2018 19:51:05 +0000 (15:51 -0400)]
mgr: fix PyModuleConfig::set_config

Commands were slightly wrong.

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomgr: remove dead update_perf_schema fn definition
John Spray [Mon, 9 Apr 2018 19:30:50 +0000 (15:30 -0400)]
mgr: remove dead update_perf_schema fn definition

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomgr: rework kv store load path
John Spray [Mon, 9 Apr 2018 19:25:45 +0000 (15:25 -0400)]
mgr: rework kv store load path

The locking and blocking around this was a bit
tricky.  Do the simple thing, and pull the
load_store out to Mgr so that it can be safely
done as part of the background_init process (just drop
Mgr::lock across blocking actions).

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomgr: update python interface for store vs. config
John Spray [Mon, 9 Apr 2018 19:24:14 +0000 (15:24 -0400)]
mgr: update python interface for store vs. config

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomgr: separate out module_config and store_cache
John Spray [Wed, 4 Apr 2018 13:19:57 +0000 (09:19 -0400)]
mgr: separate out module_config and store_cache

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomgr: centralized setting/getting of mgr configs
Rubab-Syed [Fri, 16 Feb 2018 10:51:11 +0000 (15:51 +0500)]
mgr: centralized setting/getting of mgr configs

Signed-off-by: Rubab Syed<rubab.syed21@gmail.com>
7 years agoPendingReleaseNotes: Added note about Dashboard v2, fixed typo 21597/head
Lenz Grimmer [Mon, 23 Apr 2018 11:28:53 +0000 (13:28 +0200)]
PendingReleaseNotes: Added note about Dashboard v2, fixed typo

Added a bullet point about the new Ceph mgr dashboard, fixed typo in the
LZ4 compression bullet point.

Signed-off-by: Lenz Grimmer <lgrimmer@suse.com>
7 years agoMerge pull request #21588 from xiexingguo/wip-fix-ec-ar-order
Kefu Chai [Mon, 23 Apr 2018 10:52:48 +0000 (18:52 +0800)]
Merge pull request #21588 from xiexingguo/wip-fix-ec-ar-order

osd/PG: perfer EC async_recovery_targets in reverse order of cost

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #21562 from LenzGr/mgr-dashboard-documentation
Ricardo Dias [Mon, 23 Apr 2018 10:36:46 +0000 (11:36 +0100)]
Merge pull request #21562 from LenzGr/mgr-dashboard-documentation

doc: updated dashboard feature list (added new RGW details, Pools)

Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agomgr/dashboard: Fix data race and use-before-assignment 21590/head
Sebastian Wagner [Mon, 23 Apr 2018 08:13:28 +0000 (10:13 +0200)]
mgr/dashboard: Fix data race and use-before-assignment

The race happes, if a task raises an exception very early.
Then, `self.getter_thread.event` fails as `getter_thread` is
already `None`

Also fix use-before-assignment, as `t0` and `t1` are only defined,
if no exception was raised.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
7 years agoMerge pull request #21564 from dillaman/wip-23809
Mykola Golub [Mon, 23 Apr 2018 06:07:19 +0000 (09:07 +0300)]
Merge pull request #21564 from dillaman/wip-23809

rbd: cleanup handling of IEC byte units

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #21408 from hsepeng/oisizemismatch-osd-bugfix
Kefu Chai [Mon, 23 Apr 2018 05:59:15 +0000 (13:59 +0800)]
Merge pull request #21408 from hsepeng/oisizemismatch-osd-bugfix

osd/PrimaryLogPG: fix the oi size mismatch with real object size

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agomgr/DaemonServer: use helper to get DaemonKey 20761/head
Sage Weil [Mon, 9 Apr 2018 22:04:40 +0000 (17:04 -0500)]
mgr/DaemonServer: use helper to get DaemonKey

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr/MgrClient: close mgr session on daemon MgrClient shutdown
Sage Weil [Tue, 13 Mar 2018 20:13:56 +0000 (15:13 -0500)]
mgr/MgrClient: close mgr session on daemon MgrClient shutdown

If we are a service daemon, send a MMgrClose on shutdown to clear ourselves
out of the ServiceMap.

Note that this is a best-effort attempt; we don't block shutdown if the
mgr isn't currently available.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomon,mgr: improve 'mgr module disable/enable' cmds 21188/head
Gu Zhongyan [Tue, 3 Apr 2018 02:42:45 +0000 (10:42 +0800)]
mon,mgr: improve 'mgr module disable/enable' cmds

when running those cmds, check if the module do exist
or is disabled already.
also check if the module is enabled already.

Signed-off-by: Gu Zhongyan <guzhongyan@360.cn>
7 years agoosd/PG: perfer EC async_recovery_targets in reverse order of cost 21588/head
xie xingguo [Mon, 23 Apr 2018 00:50:21 +0000 (08:50 +0800)]
osd/PG: perfer EC async_recovery_targets in reverse order of cost

This is a follow-up fix of https://github.com/ceph/ceph/pull/21578,
in which I forget that erasure-coded-pools share the same logic
when determining the async_recovery_targets..

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #21549 from rjfd/wip-dashboard-fix-qa-whitelist
Kefu Chai [Sat, 21 Apr 2018 15:15:53 +0000 (23:15 +0800)]
Merge pull request #21549 from rjfd/wip-dashboard-fix-qa-whitelist

qa/suites/rados/mgr/tasks/dashboard: add MDS_ALL_DOWN to whitelist

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>