]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agomgr/dashboard_v2: add more debug message to tools.py
Ricardo Dias [Thu, 8 Feb 2018 08:23:03 +0000 (08:23 +0000)]
mgr/dashboard_v2: add more debug message to tools.py

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard_v2: Added coverage tracking to module code
Ricardo Dias [Thu, 8 Feb 2018 08:21:31 +0000 (08:21 +0000)]
mgr/dashboard_v2: Added coverage tracking to module code

This will allow to collect code coverage information when the module
is running within the ceph-mgr daemon.

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard_v2: Migrate RGW daemon REST resource
Patrick Nawracay [Mon, 5 Feb 2018 10:15:06 +0000 (11:15 +0100)]
mgr/dashboard_v2: Migrate RGW daemon REST resource

Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
7 years agomgr/dashboard_v2: force whitespace in imports list
Tiago Melo [Tue, 6 Feb 2018 16:35:15 +0000 (16:35 +0000)]
mgr/dashboard_v2: force whitespace in imports list

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agomgr/dashboard_v2: add style guide to the frontend README
Tiago Melo [Mon, 5 Feb 2018 18:26:33 +0000 (18:26 +0000)]
mgr/dashboard_v2: add style guide to the frontend README

Add a README section for style guide where it mentions how to organize
the typescript imports.

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agomgr/dashboard_v2: decrease max-line-length to 100
Tiago Melo [Tue, 6 Feb 2018 16:24:19 +0000 (16:24 +0000)]
mgr/dashboard_v2: decrease max-line-length to 100

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agomgr/dashboard_v2: add tslint no-consecutive-blank-lines rule
Tiago Melo [Sun, 4 Feb 2018 10:26:47 +0000 (11:26 +0100)]
mgr/dashboard_v2: add tslint no-consecutive-blank-lines rule

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agomgr/dashboard_v2: add some eslint rules to tslint
Tiago Melo [Sun, 4 Feb 2018 10:53:12 +0000 (11:53 +0100)]
mgr/dashboard_v2: add some eslint rules to tslint

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agomgr/dashboard_v2: add tslint import linting rule
Tiago Melo [Sun, 4 Feb 2018 10:45:59 +0000 (11:45 +0100)]
mgr/dashboard_v2: add tslint import linting rule

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agomgr/dashboard_v2: add missing codealizer recommended rules
Tiago Melo [Sat, 3 Feb 2018 18:01:23 +0000 (19:01 +0100)]
mgr/dashboard_v2: add missing codealizer recommended rules

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agomgr/dashboard_v2: Add table component
Stephan Müller [Thu, 1 Feb 2018 15:00:52 +0000 (16:00 +0100)]
mgr/dashboard_v2: Add table component

The current implementation isn't finished yet, but it's a start.

The ngx-datatable is used as the core of the table component. You can
use the table to show data in a table. You can search, paginate, sort,
refresh the table contents. Multi selection is possible, the details
of the selected items will be given to the specified detail component.

What will be fixed soon?
* Enable the usage of buttons in the table header
* Enable details inline not beneath the table
* Pagination to use a input field to switch pages
* The columns to show can be checked and predefined
* The selection made by the user will be saved in the local storage

Signed-off-by: Stephan Müller <smueller@suse.com>
Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agomgr/dashboard_v2: Updated README with instruction on how to mock ceph modules
Ricardo Dias [Mon, 5 Feb 2018 12:14:30 +0000 (12:14 +0000)]
mgr/dashboard_v2: Updated README with instruction on how to mock ceph modules

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard_v2: Add breadcrumb on Hosts page
Ricardo Marques [Fri, 2 Feb 2018 13:20:35 +0000 (13:20 +0000)]
mgr/dashboard_v2: Add breadcrumb on Hosts page

Signed-off-by: Ricardo Marques <rimarques@suse.com>
7 years agomgr/dashboard_v2: Move hosts option to cluster menu
Ricardo Marques [Fri, 2 Feb 2018 13:03:27 +0000 (13:03 +0000)]
mgr/dashboard_v2: Move hosts option to cluster menu

Signed-off-by: Ricardo Marques <rimarques@suse.com>
7 years agomgr/dashboard_v2: mocking of rados and rbd modules
Ricardo Dias [Fri, 2 Feb 2018 15:33:44 +0000 (15:33 +0000)]
mgr/dashboard_v2: mocking of rados and rbd modules

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard_v2: Updated README with notification queue instructions
Ricardo Dias [Thu, 1 Feb 2018 10:46:23 +0000 (10:46 +0000)]
mgr/dashboard_v2: Updated README with notification queue instructions

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard_v2: Notification queue
Ricardo Dias [Wed, 31 Jan 2018 15:07:00 +0000 (15:07 +0000)]
mgr/dashboard_v2: Notification queue

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard_v2: Fix linting errors
Sebastian Wagner [Thu, 1 Feb 2018 15:17:01 +0000 (16:17 +0100)]
mgr/dashboard_v2: Fix linting errors

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
7 years agomgr/dashboard_v2: Mark text with the i18n attribute
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>
7 years agomgr/dashboard_v2: Use Awesome Bootstrap Checkbox.
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>
7 years agomgr/dashboard_v2: Refactored logging
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>
7 years agomgr/dashboard_v2: Don't use localized config for auth
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>
7 years agomgr/dashboard_v2: Session expire at browser close
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>
7 years agomgr/dashboard_v2: Fix content type (body) of error page
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>
7 years agomgr/dashboard_v2: Fix content type of JSON responses
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>
7 years agomgr/dashboard_v2: Added status route to cluster
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>
7 years agomgr/dashboard_v2: Rename "host" module to "cluster"
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>
7 years agomgr/dashboard_v2: Fix typo on method isLoginActive
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>
7 years agomgr/dashboard_v2: Add hosts page
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>
7 years agomgr/dashboard_v2: Fix bug in AuthRequired decorator
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>
7 years agomgr/dashboard_v2: Refactor controller base class
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>
7 years agomgr/dashboard_v2: Added API controller listing endpoint.
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>
7 years agomgr/dashboard_v2: Updated README with more developer notes
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>
7 years agomgr/dashboard_v2: Refactoring of the access to mgr module instance
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>
7 years agomgr/dashboard_v2: simplify router and fix navigation
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>
7 years agomgr/dashboard_v2: removed auth handler form test_auth.py setup
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>
7 years agomgr/dashboard_v2: Disable CherryPi autoreload feature.
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>
7 years agomgr/dashboard_v2: several code style enhancements
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>
7 years agomgr/dashboard_v2: fix pycodestyle to exclude the frontend files
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>
7 years agomgr/dashboard_v2: add support for frontend CI coverage and unit testing
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>
7 years agomgr/dashboard_v2: .gitignore update
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>
7 years agomgr/dashboard_v2: Added unit test for module.py
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>
7 years agomgr/dashboard_v2: Moved set-login-cred command logic to Auth class
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>
7 years agomgr/dashboard_v2: Unit tests refactoring
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>
7 years agomgr/dashboard_v2: Rename angular components prefix
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>
7 years agomgr/dashboard_v2: Add frontend login/logout
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>
7 years agomgr/dashboard_v2: Combine coverage and tests results from py27 and py3
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>
7 years agomgr/dashboard_v2: Fix pylint executor and warnings/errors
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>
7 years agomgr/dashboard_v2: Refactoring of unit tests
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>
7 years agomgr/dashboard_v2: Added RESTController test case
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>
7 years agomgr/dashboard_v2: add initial frontend code
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>
7 years agomgr/dashboard_v2: Renamed/moved RESTResource to RESTController
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>
7 years agomgr/dashboard_v2: Added developer notes to README
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>
7 years agomgr/dashboard_v2: Very simple ping example
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>
7 years agomgr/dashboard_v2: auth module refactoring
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>
7 years agomgr/dashboard_v2: pass json body keys as args to REST resource methods
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>
7 years agomgr/dashboard_v2: Ignore the __pycache__ directory.
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>
7 years agomgr/dashboard_v2: use float values when checking session expire time
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>
7 years agomgr/dashboard_v2: Added test_restresource.py
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>
7 years agomgr/dashboard_v2: Log script_name on unauthorized access
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>
7 years agomgr/dashboard_v2: Updated README
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>
7 years agomgr/dashboard_v2: Fix python 2/3 compability problems
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>
7 years agomgr/dashboard_v2: added tox conf file to run unit tests and linting
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>
7 years agomgr/dashboard_v2: Added `RESTResource` Python class.
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>
7 years agomgr/dashboard_v2: Added pylint support and fixed linting errors
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>
7 years agomgr/dashboard_v2: Auth API
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>
7 years agomgr/dashboard_v2: Create proper text editor config files to maintain consistent codin...
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>
7 years agomgr/dashboard_v2: Add command to create/update username/password.
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>
7 years agomgr/dashboard_v2: Fix cherrypy shutdown handler
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>
7 years agomgr/dashboard_v2: updated READMED with unit testing info
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>
7 years agomgr/dashboard_v2: added first unit test example
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>
7 years agomgr/dashboard_v2: ceph_module mock to support unit testing
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>
7 years agomgr/dashboard_v2: Make host and port configurable.
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>
7 years agomgr/dashboard_v2: Initial commit of the dashboard_v2 Manager module
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>
7 years agoMerge pull request #20687 from Songweibin/wip-misc-cleanup
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>
7 years agoMerge pull request #20485 from jcsp/wip-23017
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>
7 years agoMerge pull request #20573 from liewegas/wip-mgr-ovh
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

7 years agoMerge pull request #20692 from idryomov/wip-krbd-huge-image-test
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>
7 years agoqa: krbd huge-image test 20692/head
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>
7 years agoqa/suites/krbd: rename blkroset to basic
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>
7 years agoMerge pull request #20680 from cbodley/wip-qa-dnsmasq
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

7 years agoMerge pull request #19252 from joke-lee/website_redirect
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>
7 years agoMerge pull request #20635 from mdw-at-linuxbox/wip-master-rgw-openssl
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>
7 years agoMerge pull request #20673 from ceph/wip-rm23148
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>
7 years agocrush: should break the loop if leaves overfull 20687/head
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>
7 years agoosd: drop redundant assert check
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>
7 years agoMerge pull request #20684 from liewegas/wip-bluestore-cache-debug
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>
7 years agoos/bluestore: no trim debug noise if there is no trimming to be done 20684/head
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>
7 years agoMerge pull request #20637 from wjwithagen/wjw-fix-MDSmonitor.h
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>
7 years agoMerge pull request #20671 from batrick/rados-doc-flags
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>
7 years agoMerge pull request #20653 from xiexingguo/wip-fix-upmap
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>
7 years agoMerge pull request #20655 from xiexingguo/wip-fix-calc-upmap
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>
7 years agoMerge pull request #20506 from jan--f/prometheus-rm-outdated-daemon-metrics
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>
7 years agoMerge pull request #20667 from tchaikov/wip-qa-standalone
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>
7 years agoqa: clean up dnsmasq task and fix EPERM error 20680/head
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>
7 years agoMerge pull request #20648 from trociny/wip-snap_set_diff-empty_snapset
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>
7 years agoMerge pull request #20613 from Songweibin/wip-23038
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>
7 years agoMerge pull request #20608 from Songweibin/wip-rbd-snap-purge
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>
7 years agoMerge pull request #20578 from trociny/wip-pybind-group
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>
7 years agoMerge pull request #20621 from cbodley/wip-rgw-data_lock
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>