Commit Graph

85973 Commits

Author SHA1 Message Date
Sage Weil
8a218e4115
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>
2018-04-24 13:04:27 -05:00
Abhishek L
710b3160b1
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>
2018-04-24 19:00:47 +02:00
Volker Theile
a4bc4ff574 mgr/dashboard: Introduce 'cd-loading-panel' component
Signed-off-by: Volker Theile <vtheile@suse.com>
2018-04-24 18:42:38 +02:00
Ricardo Marques
9f6e889f40 mgr/dashboard: Remove RBD "Default Features" checkbox
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-04-24 16:50:37 +01:00
Ricardo Marques
eeb87d3e42 mgr/dashboard: Add RBD default features REST API endpoint
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-04-24 16:50:37 +01:00
Ricardo Marques
3dd7dab911 mgr/dashboard: Add support for RBD snapshot copy (frontend)
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-04-24 16:50:37 +01:00
Ricardo Dias
fa735d54a2 mgr/dashboard: Add support for RBD snapshot copy
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-04-24 16:50:37 +01:00
Ricardo Marques
838c9ce9e3 mgr/dashboard: RBD flatten
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-04-24 16:50:37 +01:00
Ricardo Marques
ef563c36fc mgr/dashboard: RBD copy (frontend)
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-04-24 16:50:37 +01:00
Ricardo Marques
cc3ffade78 mgr/dashboard: RBD snapshot clone (frontend)
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-04-24 16:50:37 +01:00
Abhishek Lekshmanan
3dd6aa20a8 doc: v12.2.5 luminous release notes
Signed-off-by: Abhishek Lekshmanan <alekshmanan@suse.com>
2018-04-24 17:41:00 +02:00
Kefu Chai
82ecf64ea8
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>
2018-04-24 23:40:32 +08:00
Mohamad Gebai
05d37379f3 mgr/iostat: print output as a table
Signed-off-by: Mohamad Gebai <mgebai@suse.com>
2018-04-24 10:59:40 -04:00
Lenz Grimmer
adf505f6c7
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>
2018-04-24 16:55:11 +02:00
John Spray
8508603bbe 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>
2018-04-24 15:39:19 +01:00
Sage Weil
7797ed67d2 mon/OSDMonitor: require --yes-i-really-mean-it for force-create-pg
This command declares data loss permanent.  Be sure the user really means
it.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-04-24 08:25:28 -05:00
Sage Weil
1f92ca315a osd/SnapMapper: print debug line on check failure
Signed-off-by: Sage Weil <sage@redhat.com>
2018-04-24 08:24:25 -05:00
Ricardo Marques
0d6ef0dcc6 mgr/dashboard: Display RBD form error on submission
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-04-24 14:03:11 +01:00
Ricardo Marques
80c011d6a2 mgr/dashboard: Support for template forms on 'cd-submit-button'
If 'formDir' is provided, 'cd-submit-button' will mark
it as submitted after submission.

Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-04-24 14:02:41 +01:00
Stephan Müller
d110eba340 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>
2018-04-24 14:45:15 +02:00
Stephan Müller
63ae858582 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>
2018-04-24 13:57:43 +02:00
Stephan Müller
f2096e9378 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>
2018-04-24 13:57:43 +02:00
Stephan Müller
33e7533c3e 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>
2018-04-24 13:57:43 +02:00
Tiago Melo
f1c2f91a89 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>
2018-04-24 13:57:43 +02:00
Sage Weil
e96475b1b7
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>
2018-04-24 06:42:05 -05:00
John Spray
3f1693db09
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>
2018-04-24 12:36:48 +01:00
Kefu Chai
c01eeadd00
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>
2018-04-24 18:32:21 +08:00
John Spray
8c59d02759
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>
2018-04-24 11:19:32 +01:00
John Spray
726905c1f9
Merge pull request #21424 from MI-OSiRIS/influx
mgr/influx: Added Additional Stats

Reviewed-by: John Spray <john.spray@redhat.com>
2018-04-24 11:18:13 +01:00
John Spray
f959371a0a
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>
2018-04-24 11:17:16 +01:00
Lenz Grimmer
b89dbe9e57
Merge pull request #21559 from votdev/autofocus
mgr/dashboard: Add 'autofocus' directive

Reviewed-by: Ricardo Marques <rimarques@suse.com>
2018-04-24 11:50:42 +02:00
Yehuda Sadeh
c3bb5fbaea rgw: encoding fixes
Fixes: http://tracker.ceph.com/issues/23779

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-04-24 02:44:17 -07:00
Lenz Grimmer
83a740575a
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>
2018-04-24 11:33:33 +02:00
xie xingguo
3d11e6a169 osd/PG: fix out of order priority for PG deletion
Backfill-full by definition is fuller than near-full and hence
should deserve a higher priority.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2018-04-24 17:11:23 +08:00
songweibin
9d3ba6d90c osd/PGLog: remove a redundant assert
Signed-off-by: songweibin <song.weibin@zte.com.cn>
2018-04-24 16:46:17 +08:00
songweibin
7a68c2ec17 osd/PGLog: fix sanity check against **complete-to** iter
Signed-off-by: songweibin <song.weibin@zte.com.cn>
2018-04-24 16:30:01 +08:00
Yuan Zhou
0aa23bdd43 cmake: fix building without mgr module
cmake fails if WITH_MGR=OFF due to an null test job

$ cmake .. -DWITH_MGR=OFF
...
CMake Error at src/test/CMakeLists.txt:591 (set_property):
  set_property given TEST names that do not exist:

    run-tox-mgr-dashboard

This patch skips the run-tox-mgr-dashboard test if mgr is not enabled.

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
2018-04-24 13:09:34 +08:00
Patrick Donnelly
d71dbdc299
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>
2018-04-23 21:28:14 -07:00
Patrick Donnelly
326d00a8d6
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>
2018-04-23 21:28:09 -07:00
Patrick Donnelly
f34b2b2afc
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>
2018-04-23 21:28:04 -07:00
Patrick Donnelly
613d3b72cf
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>
2018-04-23 21:27:55 -07:00
Kefu Chai
cdcbd47e1e 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>
2018-04-24 10:16:12 +08:00
Kefu Chai
3d2e5449f1 test/librados: increase pgp_num along with pg_num
Fixes: http://tracker.ceph.com/issues/23763
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-04-24 10:16:12 +08:00
Kefu Chai
713ebcdd34
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>
2018-04-24 09:37:36 +08:00
Patrick Donnelly
19ff550c54
MDSMonitor: do not resize cluster when MDS is starting
Fixes: http://tracker.ceph.com/issues/23799

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-04-23 16:08:00 -07:00
Casey Bodley
c893dcaa43 dout: DoutPrefixProvider operates directly on stream
removes the need for stringstream in more complicated prefixes

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-04-23 18:08:25 -04:00
John Spray
b1e8d63bf7 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>
2018-04-23 17:32:36 -04:00
Sage Weil
a2636967f3
Merge pull request #20959 from LiumxNL/fix-pg-fake-down
pg: handle MNotifyRec event in down state

Reviewed-by: Sage Weil <sage@redhat.com>
2018-04-23 16:30:43 -05:00
John Spray
cf5ef59bcc 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>
2018-04-23 17:30:41 -04:00
Kefu Chai
60e3a2404f qa/tasks/mgr: pass "--force" to "mgr module enable"
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-04-23 17:30:40 -04:00