]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Volker Theile [Thu, 1 Feb 2018 10:10:00 +0000 (11:10 +0100)]
mgr/dashboard_v2: Mark text with the i18n attribute
Signed-off-by: Volker Theile <vtheile@suse.com>
Volker Theile [Wed, 31 Jan 2018 15:46:34 +0000 (16:46 +0100)]
mgr/dashboard_v2: Use Awesome Bootstrap Checkbox.
Signed-off-by: Volker Theile <vtheile@suse.com>
Sebastian Wagner [Wed, 31 Jan 2018 11:59:13 +0000 (12:59 +0100)]
mgr/dashboard_v2: Refactored logging
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Ricardo Marques [Tue, 30 Jan 2018 23:30:23 +0000 (23:30 +0000)]
mgr/dashboard_v2: Don't use localized config for auth
Signed-off-by: Ricardo Marques <rimarques@suse.com>
Volker Theile [Sat, 27 Jan 2018 10:55:29 +0000 (11:55 +0100)]
mgr/dashboard_v2: Session expire at browser close
Add support for session expire at browser close.
Signed-off-by: Volker Theile <vtheile@suse.com>
Patrick Nawracay [Fri, 26 Jan 2018 13:41:55 +0000 (14:41 +0100)]
mgr/dashboard_v2: Fix content type (body) of error page
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
Patrick Nawracay [Thu, 25 Jan 2018 18:47:43 +0000 (19:47 +0100)]
mgr/dashboard_v2: Fix content type of JSON responses
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
Sebastian Wagner [Tue, 30 Jan 2018 12:22:25 +0000 (13:22 +0100)]
mgr/dashboard_v2: Added status route to cluster
* `RESTController`: added `@detail_route`
* Fixed `RequestHelper.assertJsonBody`
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Ricardo Marques [Tue, 30 Jan 2018 23:12:53 +0000 (23:12 +0000)]
mgr/dashboard_v2: Rename "host" module to "cluster"
Signed-off-by: Ricardo Marques <rimarques@suse.com>
Ricardo Marques [Tue, 30 Jan 2018 17:09:15 +0000 (17:09 +0000)]
mgr/dashboard_v2: Fix typo on method isLoginActive
Signed-off-by: Ricardo Marques <rimarques@suse.com>
Ricardo Marques [Sat, 27 Jan 2018 00:05:54 +0000 (00:05 +0000)]
mgr/dashboard_v2: Add hosts page
Signed-off-by: Ricardo Marques <rimarques@suse.com>
Ricardo Dias [Tue, 30 Jan 2018 16:30:57 +0000 (16:30 +0000)]
mgr/dashboard_v2: Fix bug in AuthRequired decorator
This PR fixes the fllowing bug:
When a subclass of `RESTController` was decorated with the `AuthRequired`
decorator, then all controllers that were also subclasses of
`RESTController` were automatically required authentication when accessing
them.
Signed-off-by: Ricardo Dias <rdias@suse.com>
Volker Theile [Tue, 30 Jan 2018 10:58:46 +0000 (11:58 +0100)]
mgr/dashboard_v2: Refactor controller base class
Make it a little bit more OO. This way the mgr and logger properties are well
designed and documented which should help contributors to understand the code.
Signed-off-by: Volker Theile <vtheile@suse.com>
Sebastian Wagner [Tue, 30 Jan 2018 09:29:41 +0000 (10:29 +0100)]
mgr/dashboard_v2: Added API controller listing endpoint.
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Ricardo Dias [Mon, 29 Jan 2018 09:59:34 +0000 (09:59 +0000)]
mgr/dashboard_v2: Updated README with more developer notes
* Adds instructions on how to access the manager module instance from
within the controller.
* Adds instructions on how to write unit tests to test a controller
Signed-off-by: Ricardo Dias <rdias@suse.com>
Ricardo Dias [Mon, 29 Jan 2018 09:38:03 +0000 (09:38 +0000)]
mgr/dashboard_v2: Refactoring of the access to mgr module instance
Signed-off-by: Ricardo Dias <rdias@suse.com>
Tiago Melo [Mon, 29 Jan 2018 12:08:00 +0000 (12:08 +0000)]
mgr/dashboard_v2: simplify router and fix navigation
Signed-off-by: Tiago Melo <tmelo@suse.com>
Ricardo Dias [Mon, 29 Jan 2018 09:22:57 +0000 (09:22 +0000)]
mgr/dashboard_v2: removed auth handler form test_auth.py setup
The auth setup is already being set in module.py
Signed-off-by: Ricardo Dias <rdias@suse.com>
Volker Theile [Fri, 26 Jan 2018 13:44:57 +0000 (14:44 +0100)]
mgr/dashboard_v2: Disable CherryPi autoreload feature.
It does not work, either with the below code to fix the error
```
2018-01-26 13:21:15.779
7fa454add700 -1 log_channel(cluster) log [ERR] : Unhandled exception from module 'dashboard_v2' while running on mgr.x: execv() arg 2 must not be empty
2018-01-26 13:21:15.779
7fa454add700 -1 dashboard_v2.serve: File "/ceph/src/pybind/mgr/dashboard_v2/module.py", line 112, in serve
```
```
def _get_true_argv():
return sys.argv[:]
cherrypy.engine._get_true_argv = _get_true_argv
```
Signed-off-by: Volker Theile <vtheile@suse.com>
Volker Theile [Fri, 26 Jan 2018 15:01:31 +0000 (16:01 +0100)]
mgr/dashboard_v2: several code style enhancements
* Replace double quotes with single quotes
* Modify log messages
* Fix typo, rename autenticate to authenticate
Signed-off-by: Volker Theile <vtheile@suse.com>
Ricardo Dias [Fri, 26 Jan 2018 16:22:23 +0000 (16:22 +0000)]
mgr/dashboard_v2: fix pycodestyle to exclude the frontend files
Signed-off-by: Ricardo Dias <rdias@suse.com>
Ricardo Dias [Fri, 26 Jan 2018 14:50:46 +0000 (14:50 +0000)]
mgr/dashboard_v2: add support for frontend CI coverage and unit testing
Signed-off-by: Ricardo Dias <rdias@suse.com>
Ricardo Dias [Fri, 26 Jan 2018 12:14:31 +0000 (12:14 +0000)]
mgr/dashboard_v2: .gitignore update
Signed-off-by: Ricardo Dias <rdias@suse.com>
Ricardo Dias [Fri, 26 Jan 2018 12:13:49 +0000 (12:13 +0000)]
mgr/dashboard_v2: Added unit test for module.py
Signed-off-by: Ricardo Dias <rdias@suse.com>
Ricardo Dias [Fri, 26 Jan 2018 12:12:16 +0000 (12:12 +0000)]
mgr/dashboard_v2: Moved set-login-cred command logic to Auth class
Signed-off-by: Ricardo Dias <rdias@suse.com>
Ricardo Dias [Fri, 26 Jan 2018 12:11:21 +0000 (12:11 +0000)]
mgr/dashboard_v2: Unit tests refactoring
Signed-off-by: Ricardo Dias <rdias@suse.com>
Ricardo Marques [Fri, 26 Jan 2018 12:20:44 +0000 (12:20 +0000)]
mgr/dashboard_v2: Rename angular components prefix
Signed-off-by: Ricardo Marques <rimarques@suse.com>
Ricardo Marques [Thu, 25 Jan 2018 16:10:29 +0000 (16:10 +0000)]
mgr/dashboard_v2: Add frontend login/logout
Signed-off-by: Ricardo Marques <rimarques@suse.com>
Ricardo Dias [Fri, 26 Jan 2018 08:50:50 +0000 (08:50 +0000)]
mgr/dashboard_v2: Combine coverage and tests results from py27 and py3
Signed-off-by: Ricardo Dias <rdias@suse.com>
Ricardo Dias [Thu, 25 Jan 2018 17:14:42 +0000 (17:14 +0000)]
mgr/dashboard_v2: Fix pylint executor and warnings/errors
Signed-off-by: Ricardo Dias <rdias@suse.com>
Ricardo Dias [Thu, 25 Jan 2018 16:48:03 +0000 (16:48 +0000)]
mgr/dashboard_v2: Refactoring of unit tests
Signed-off-by: Ricardo Dias <rdias@suse.com>
Sebastian Wagner [Thu, 25 Jan 2018 19:35:24 +0000 (20:35 +0100)]
mgr/dashboard_v2: Added RESTController test case
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Tiago Melo [Mon, 22 Jan 2018 14:51:58 +0000 (14:51 +0000)]
mgr/dashboard_v2: add initial frontend code
This contains the angular boilerplate, some initial structure and the navigation component.
Signed-off-by: Tiago Melo <tmelo@suse.com>
Ricardo Dias [Thu, 25 Jan 2018 14:28:04 +0000 (14:28 +0000)]
mgr/dashboard_v2: Renamed/moved RESTResource to RESTController
Signed-off-by: Ricardo Dias <rdias@suse.com>
Ricardo Dias [Thu, 25 Jan 2018 12:13:41 +0000 (12:13 +0000)]
mgr/dashboard_v2: Added developer notes to README
Signed-off-by: Ricardo Dias <rdias@suse.com>
Ricardo Dias [Thu, 25 Jan 2018 11:44:01 +0000 (11:44 +0000)]
mgr/dashboard_v2: Very simple ping example
Signed-off-by: Ricardo Dias <rdias@suse.com>
Ricardo Dias [Thu, 25 Jan 2018 11:41:24 +0000 (11:41 +0000)]
mgr/dashboard_v2: auth module refactoring
Signed-off-by: Ricardo Dias <rdias@suse.com>
Ricardo Dias [Wed, 24 Jan 2018 17:08:04 +0000 (17:08 +0000)]
mgr/dashboard_v2: pass json body keys as args to REST resource methods
Signed-off-by: Ricardo Dias <rdias@suse.com>
Volker Theile [Thu, 25 Jan 2018 12:12:06 +0000 (13:12 +0100)]
mgr/dashboard_v2: Ignore the __pycache__ directory.
Signed-off-by: Volker Theile <vtheile@suse.com>
Sebastian Wagner [Thu, 25 Jan 2018 10:30:35 +0000 (11:30 +0100)]
mgr/dashboard_v2: use float values when checking session expire time
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Sebastian Wagner [Thu, 25 Jan 2018 10:27:07 +0000 (11:27 +0100)]
mgr/dashboard_v2: Added test_restresource.py
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Volker Theile [Thu, 25 Jan 2018 09:21:43 +0000 (10:21 +0100)]
mgr/dashboard_v2: Log script_name on unauthorized access
This commit also replaces double quotes with single quotes.
Signed-off-by: Volker Theile <vtheile@suse.com>
Lenz Grimmer [Wed, 24 Jan 2018 16:19:45 +0000 (17:19 +0100)]
mgr/dashboard_v2: Updated README
Signed-off-by: Lenz Grimmer <lgrimmer@suse.com>
Ricardo Dias [Wed, 24 Jan 2018 12:25:54 +0000 (12:25 +0000)]
mgr/dashboard_v2: Fix python 2/3 compability problems
Signed-off-by: Ricardo Dias <rdias@suse.com>
Ricardo Dias [Tue, 27 Feb 2018 13:21:44 +0000 (13:21 +0000)]
mgr/dashboard_v2: added tox conf file to run unit tests and linting
Signed-off-by: Ricardo Dias <rdias@suse.com>
Sebastian Wagner [Wed, 24 Jan 2018 10:50:43 +0000 (11:50 +0100)]
mgr/dashboard_v2: Added `RESTResource` Python class.
This is the base class for providing a RESTful interface to a resource.
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Ricardo Dias [Tue, 27 Feb 2018 13:20:32 +0000 (13:20 +0000)]
mgr/dashboard_v2: Added pylint support and fixed linting errors
Signed-off-by: Ricardo Dias <rdias@suse.com>
Ricardo Marques [Tue, 23 Jan 2018 22:13:57 +0000 (22:13 +0000)]
mgr/dashboard_v2: Auth API
Signed-off-by: Ricardo Marques <rimarques@suse.com>
Volker Theile [Tue, 23 Jan 2018 15:38:46 +0000 (16:38 +0100)]
mgr/dashboard_v2: Create proper text editor config files to maintain consistent coding styles.
Signed-off-by: Volker Theile <vtheile@suse.com>
Volker Theile [Tue, 23 Jan 2018 11:35:41 +0000 (12:35 +0100)]
mgr/dashboard_v2: Add command to create/update username/password.
Signed-off-by: Volker Theile <vtheile@suse.com>
Ricardo Dias [Tue, 23 Jan 2018 11:20:17 +0000 (11:20 +0000)]
mgr/dashboard_v2: Fix cherrypy shutdown handler
This patch prevents cherrypy from crashing the mgr process when some
exception is thrown when shutting down cherrypy.
Signed-off-by: Ricardo Dias <rdias@suse.com>
Ricardo Dias [Tue, 23 Jan 2018 11:00:44 +0000 (11:00 +0000)]
mgr/dashboard_v2: updated READMED with unit testing info
Signed-off-by: Ricardo Dias <rdias@suse.com>
Ricardo Dias [Tue, 27 Feb 2018 11:45:56 +0000 (11:45 +0000)]
mgr/dashboard_v2: added first unit test example
Signed-off-by: Ricardo Dias <rdias@suse.com>
Ricardo Dias [Tue, 27 Feb 2018 11:45:09 +0000 (11:45 +0000)]
mgr/dashboard_v2: ceph_module mock to support unit testing
Signed-off-by: Ricardo Dias <rdias@suse.com>
Volker Theile [Tue, 23 Jan 2018 08:21:59 +0000 (09:21 +0100)]
mgr/dashboard_v2: Make host and port configurable.
Signed-off-by: Volker Theile <vtheile@suse.com>
Lenz Grimmer [Mon, 22 Jan 2018 12:39:29 +0000 (13:39 +0100)]
mgr/dashboard_v2: Initial commit of the dashboard_v2 Manager module
Create the directory and basic module initialization.
Add a minimal `README.rst`
Signed-off-by: Lenz Grimmer <lgrimmer@suse.com>
Kefu Chai [Mon, 5 Mar 2018 09:57:52 +0000 (17:57 +0800)]
Merge pull request #20687 from Songweibin/wip-misc-cleanup
mon,osd,crush: misc cleanup
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Kefu Chai [Mon, 5 Mar 2018 09:56:18 +0000 (17:56 +0800)]
Merge pull request #20485 from jcsp/wip-23017
mgr: quieten logging on missing OSD stats
Reviewed-by: Kefu Chai <kchai@redhat.com>
Sage Weil [Sun, 4 Mar 2018 21:44:21 +0000 (15:44 -0600)]
Merge pull request #20573 from liewegas/wip-mgr-ovh
qa/suites/rados/rest/mgr: provision openstack volumes
Ilya Dryomov [Sat, 3 Mar 2018 12:18:33 +0000 (13:18 +0100)]
Merge pull request #20692 from idryomov/wip-krbd-huge-image-test
qa: krbd huge-image test
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Ilya Dryomov [Thu, 1 Mar 2018 16:01:11 +0000 (17:01 +0100)]
qa: krbd huge-image test
We've had multiple overflows in ceph_calc_file_object_mapping().
It wasn't being used by rbd, but it now is.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Ilya Dryomov [Thu, 1 Mar 2018 16:01:11 +0000 (17:01 +0100)]
qa/suites/krbd: rename blkroset to basic
More simple fixed-1.yaml based tests are coming.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
vasukulkarni [Fri, 2 Mar 2018 16:47:40 +0000 (08:47 -0800)]
Merge pull request #20680 from cbodley/wip-qa-dnsmasq
qa: clean up dnsmasq task and fix EPERM error
Yuri Weinstein [Fri, 2 Mar 2018 16:22:03 +0000 (08:22 -0800)]
Merge pull request #19252 from joke-lee/website_redirect
rgw: fix s3 website redirection error
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Yuri Weinstein [Fri, 2 Mar 2018 16:21:22 +0000 (08:21 -0800)]
Merge pull request #20635 from mdw-at-linuxbox/wip-master-rgw-openssl
rgw: curl* reuse and for debian, use openssl not gnutls.
Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Mark Kogan <mkogan@redhat.com>
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Alfredo Deza [Fri, 2 Mar 2018 14:49:30 +0000 (09:49 -0500)]
Merge pull request #20673 from ceph/wip-rm23148
docs fix ceph-volume missing sub-commands
Reviewed-by: Andrew Schoen <aschoen@redhat.com>
songweibin [Fri, 2 Mar 2018 07:46:11 +0000 (15:46 +0800)]
crush: should break the loop if leaves overfull
Signed-off-by: songweibin <song.weibin@zte.com.cn>
songweibin [Fri, 2 Mar 2018 07:39:48 +0000 (15:39 +0800)]
osd: drop redundant assert check
Signed-off-by: songweibin <song.weibin@zte.com.cn>
Xie Xingguo [Fri, 2 Mar 2018 02:57:57 +0000 (10:57 +0800)]
Merge pull request #20684 from liewegas/wip-bluestore-cache-debug
os/bluestore: no trim debug noise if there is no trimming to be done
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Sage Weil [Fri, 2 Mar 2018 02:28:51 +0000 (20:28 -0600)]
os/bluestore: no trim debug noise if there is no trimming to be done
Signed-off-by: Sage Weil <sage@redhat.com>
Kefu Chai [Fri, 2 Mar 2018 02:20:54 +0000 (10:20 +0800)]
Merge pull request #20637 from wjwithagen/wjw-fix-MDSmonitor.h
mon/MDSMonitor: fix clang build failure
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Kefu Chai [Fri, 2 Mar 2018 01:19:54 +0000 (09:19 +0800)]
Merge pull request #20671 from batrick/rados-doc-flags
doc: init flags to 0 in rados example
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Fri, 2 Mar 2018 01:01:06 +0000 (09:01 +0800)]
Merge pull request #20653 from xiexingguo/wip-fix-upmap
mon, osd: fix potential collided *Up Set* after PG remapping
Reviewed-by: Sage Weil <sage@redhat.com>
Kefu Chai [Fri, 2 Mar 2018 00:59:49 +0000 (08:59 +0800)]
Merge pull request #20655 from xiexingguo/wip-fix-calc-upmap
osd/OSDMap: skip out/crush-out osds
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Fri, 2 Mar 2018 00:57:42 +0000 (08:57 +0800)]
Merge pull request #20506 from jan--f/prometheus-rm-outdated-daemon-metrics
pybind/mgr/prometheus: don't export metrics for dead daemon; new metrics
Reviewed-by: John Spray <john.spray@redhat.com>
Kefu Chai [Fri, 2 Mar 2018 00:56:11 +0000 (08:56 +0800)]
Merge pull request #20667 from tchaikov/wip-qa-standalone
qa/standalone: s/delete_erasure_pool/delete_erasure_coded_pool/
Reviewed-by: David Zafman <dzafman@redhat.com>
Casey Bodley [Mon, 19 Feb 2018 18:36:05 +0000 (13:36 -0500)]
qa: clean up dnsmasq task and fix EPERM error
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Jason Dillaman [Thu, 1 Mar 2018 20:35:40 +0000 (15:35 -0500)]
Merge pull request #20648 from trociny/wip-snap_set_diff-empty_snapset
librados/snap_set_diff: don't assert on empty snapset
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Thu, 1 Mar 2018 20:35:23 +0000 (15:35 -0500)]
Merge pull request #20613 from Songweibin/wip-23038
rbd: import with option --export-format 2 fails to protect snapshot
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Thu, 1 Mar 2018 20:35:02 +0000 (15:35 -0500)]
Merge pull request #20608 from Songweibin/wip-rbd-snap-purge
rbd: allow remove all unprotected snapshots
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Thu, 1 Mar 2018 20:34:26 +0000 (15:34 -0500)]
Merge pull request #20578 from trociny/wip-pybind-group
librbd: small cleanup for recently merged code
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Casey Bodley [Thu, 1 Mar 2018 20:05:50 +0000 (15:05 -0500)]
Merge pull request #20621 from cbodley/wip-rgw-data_lock
rgw: don't hold data_lock over frontend io
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Casey Bodley [Thu, 1 Mar 2018 20:04:59 +0000 (15:04 -0500)]
Merge pull request #20449 from cbodley/wip-rgw-beast-coroutine
rgw: switch beast frontend back to stackful coroutine
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Alfredo Deza [Thu, 1 Mar 2018 19:22:01 +0000 (14:22 -0500)]
doc/install add missing lvm subcommand for ceph-volume
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Alfredo Deza [Thu, 1 Mar 2018 19:21:05 +0000 (14:21 -0500)]
doc/rados add missing lvm subcommand for ceph-volume
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Casey Bodley [Thu, 1 Mar 2018 18:54:11 +0000 (13:54 -0500)]
Merge pull request #20546 from yehudasa/wip-rgw-gc-aio
rgw: gc use aio
Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Patrick Donnelly [Thu, 1 Mar 2018 16:48:30 +0000 (08:48 -0800)]
Merge PR #20643 into master
* refs/pull/20643/head:
ceph-volume-client: fix command argument order
Reviewed-by: Ramana Raja <rraja@redhat.com>
Andrew Schoen [Thu, 1 Mar 2018 15:42:38 +0000 (16:42 +0100)]
Merge pull request #20650 from ceph/wip-rm22841
ceph-volume be resilient to $PATH issues
Reviewed-by: Andrew Schoen <aschoen@redhat.com>
Patrick Donnelly [Thu, 1 Mar 2018 15:02:00 +0000 (07:02 -0800)]
doc: init flags to 0 in rados example
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Jason Dillaman [Thu, 1 Mar 2018 13:45:03 +0000 (08:45 -0500)]
Merge pull request #20656 from yaozongyou/rbd-fix-return
librbd: fix missing return in NotifyMessage::get_notify_op
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
songweibin [Thu, 1 Mar 2018 12:28:12 +0000 (20:28 +0800)]
rbd: allow remove all unprotected snapshots
allow remove all unprotected snapshots when exiting
protected snapshots in the same image.
Fixes: http://tracker.ceph.com/issues/23126
Signed-off-by: songweibin <song.weibin@zte.com.cn>
songweibin [Tue, 27 Feb 2018 09:33:54 +0000 (17:33 +0800)]
rbd: import with option --export-format fails to protect snapshot
Fixes: http://tracker.ceph.com/issues/23038
Signed-off-by: songweibin <song.weibin@zte.com.cn>
xie xingguo [Wed, 28 Feb 2018 02:50:00 +0000 (10:50 +0800)]
mon, osd: fix potential collided *Up Set* after PG remapping
The mgr balancer module are basically doing optimizations based on
the snapshots of OSDMap at certain moments, which turns out to be
the culprit of data loss since it can produce bad PG mapping results
sometimes while in upmap mode.
I.e.:
1) original cluster topology:
-5 2.00000 host host-a
0 ssd 1.00000 osd.0 up 1.00000 1.00000
1 ssd 1.00000 osd.1 up 1.00000 1.00000
-7 2.00000 host host-b
2 ssd 1.00000 osd.2 up 1.00000 1.00000
3 ssd 1.00000 osd.3 up 1.00000 1.00000
-9 2.00000 host host-c
4 ssd 1.00000 osd.4 up 1.00000 1.00000
5 ssd 1.00000 osd.5 up 1.00000 1.00000
2) mgr balancer applies optimization for PG 3.f:
pg-upmap-items[3.f : 1->4]
3.f [1 3] + -------------------------> [4 3]
3) osd.3 is out/reweighted etc., original crush mapping of 3.f changed
(while pg-upmap-items did not):
pg-upmap-items[3.f : 1->4]
3.f [1 5] + -------------------------> [4 5]
4) we are now mapping PG 3.f to two OSDs(osd.4 & osd.5) on the same host
(host-c).
Fix the above problem by putting a guard procedure before we can
finally encode these *unsafe* upmap remappings into OSDMap.
If any of them turns out to be inappropriate, we can simply cancel it
since balancer can still re-calculate and re-generate later if necessary.
Fixes: http://tracker.ceph.com/issues/23118
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Kefu Chai [Thu, 1 Mar 2018 11:19:01 +0000 (19:19 +0800)]
Merge pull request #20640 from tchaikov/wip-async-dpdk-temp-str
msg/async: avoid referencing the temporary string
Reviewed-by: Haomai Wang <haomai@xsky.com>
Kefu Chai [Thu, 1 Mar 2018 11:17:26 +0000 (19:17 +0800)]
Merge pull request #20531 from xiexingguo/wip-ec-scrub-sleep
osd/ECBackend: inject sleep during deep scrub
Reviewed-by: Sage Weil <sage@redhat.com>
Kefu Chai [Thu, 1 Mar 2018 11:09:15 +0000 (19:09 +0800)]
qa/standalone: s/delete_erasure_pool/delete_erasure_coded_pool/
it's a regression introduced by
ac56a202
Signed-off-by: Kefu Chai <kchai@redhat.com>
Willem Jan Withagen [Wed, 28 Feb 2018 10:00:54 +0000 (11:00 +0100)]
mon: fix clang error
The specific specialisations in both .h and .cc does not really fly
with Clang
/home/jenkins/workspace/ceph-master/src/mon/MDSMonitor.cc:79:22: error: template parameter redefines default argument
template <int dblV = 7>
^
/home/jenkins/workspace/ceph-master/src/mon/MDSMonitor.h:76:23: note: previous default template argument defined here
template<int dblV = 7>
^
1 error generated.
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
Jan Fajerski [Tue, 27 Feb 2018 09:19:39 +0000 (10:19 +0100)]
pybind/mgr/prometheus: extend daemon metadata with hostname and ceph version
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
Jan Fajerski [Tue, 20 Feb 2018 10:06:19 +0000 (11:06 +0100)]
pybind/mgr/prometheus: add fs and mds metadata metrics
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
Jan Fajerski [Mon, 19 Feb 2018 11:25:02 +0000 (12:25 +0100)]
pybind/mgr/prometheus: new mon metrics
Remove mon_quorum_count and replace it with per-MON quorum status
(mon_quorum_status). Also add mon_metadata metrics.
Signed-off-by: Jan Fajerski <jfajerski@suse.com>