Commit Graph

84439 Commits

Author SHA1 Message Date
Ashita Dashottar
1e8d753876 doc: typo fix
Signed-off-by: Ashita Dashottar <AshitaDashottar6@gmail.com>
2018-03-28 16:15:00 +05:30
Alfredo Deza
b2fc3fac30
Merge pull request #21070 from ceph/wip-cv-vagrant-reload
ceph-volume improve robustness when reloading vms in tests

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
2018-03-27 13:31:55 -04:00
John Spray
c7049c103a
Merge pull request #20494 from wido/influx-time-fixes
mgr/influx: Various time fixes

Reviewed-by: John Spray <john.spray@redhat.com>
2018-03-27 17:45:19 +01:00
Kefu Chai
625faf00bd
Merge pull request #21063 from guzhongyan/bs-cleanup
os/bluestore: remove unused variable.

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
2018-03-28 00:31:25 +08:00
Kefu Chai
5b5638ebef
Merge pull request #21043 from wido/zabbix-osd-numpgs
mgr/zabbix: Send max, min and avg PGs of OSDs to Zabbix

Reviewed-by: John Spray <john.spray@redhat.com>
2018-03-27 22:59:22 +08:00
Kefu Chai
c9903b5b9c
Merge pull request #21037 from guzhongyan/bf-format
os/bluestore: fix some code formatting

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
2018-03-27 22:56:57 +08:00
Kefu Chai
7b20a15020
Merge pull request #20951 from tchaikov/wip-FTBFS-bluestore-armhf
bluestore: fix build on armhf

Reviewed-by: Sage Weil <sage@redhat.com>
2018-03-27 22:55:41 +08:00
Kefu Chai
648a3111a0
Merge pull request #21034 from rzarzynski/wip-bs-reorder-bluefs_extent_t
os/bluestore: reorder members of bluefs_extent_t for space efficiency

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2018-03-27 22:54:59 +08:00
Kefu Chai
f2545d2b84
Merge pull request #20900 from ifed01/wip-ifed-fix-interals-in-repair
os/bluestore: bluestore repair should use interval_set::union_insert

Reviewed-by: Sage Weil <sage@redhat.com>
2018-03-27 22:53:54 +08:00
Kefu Chai
fc86c2b76f
Merge pull request #20774 from rishabh-d-dave/fix-tilde-expansion
config: expand tilde for ~/.ceph/$cluster.conf

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-03-27 22:44:33 +08:00
Kefu Chai
a1f204edf5
Merge pull request #20558 from chardan/jfw-wip-show_compression_methods-22420
osd,compressor: Expose compression algorithms via MOSDBoot.

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-03-27 22:43:23 +08:00
Kefu Chai
81b00f58e0
Merge pull request #20314 from ovh/bp-librados-nntk
librados: extend C API for so it accepts keys with NUL chars

Reviewed-by: Sage Weil <sage@redhat.com>
2018-03-27 22:41:04 +08:00
Alfredo Deza
3be723d4d9 ceph-volume tests create a retry script for vagrant reload
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-03-27 10:16:28 -04:00
Alfredo Deza
b1b9c7a416 ceph-volume tests use a reload script in simple functional tests
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-03-27 09:49:52 -04:00
Alfredo Deza
a54f503786 ceph-volume tests use a reload script in lvm functional tests
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-03-27 09:49:36 -04:00
Gu Zhongyan
38ee40c5f4 os/bluestore: remove unused variable.
Signed-off-by: Gu Zhongyan <guzhongyan@360.cn>
2018-03-27 19:00:47 +08:00
Ricardo Dias
b4a7955034
Merge pull request #21005 from rjfd/wip-mgr-fix-error-handling
mgr: fixes python error handling

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Tim Serong <tserong@suse.com>
2018-03-27 11:32:06 +01:00
Lenz Grimmer
d5e54fda5c
Merge pull request #21024 from s0nea/wip-dashboard-return-features-list
mgr/dashboard: Convert the RBD feature names to a list of strings

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
2018-03-27 11:45:54 +02:00
Lenz Grimmer
914faf2c1e
Merge pull request #21004 from s0nea/wip-dashboard-skip-datapool-testcase
mgr/dashboard: skip data pool testcase for none-bluestore clusters

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
2018-03-27 11:43:18 +02:00
Lenz Grimmer
43e5097c2f
Merge pull request #20873 from sebastian-philipp/dashboard_v2-simple-html-debug
mgr/dashboard: Add minimalistic browsable API

Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2018-03-27 11:31:07 +02:00
Ricardo Dias
c9e5d782d5
Merge pull request #21047 from rjfd/wip-mgr-smart-fix-py3
mgr/smart: fix python3 module loading

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
2018-03-27 10:06:14 +01:00
Casey Bodley
6b59fbfcc6
Merge pull request #21027 from cbodley/wip-qa-swift-force-branch
qa/tasks/swift: add support for the "force-branch" configurable.

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
2018-03-26 14:27:46 -04:00
Sebastian Wagner
7a7a17caa9 mgr/dashboard: New API tests for perf_couters
Added OSD and MDS tests.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-03-26 17:16:41 +02:00
Sebastian Wagner
80b6ce804f mgr/dashboard: Add minimalistic browsable API
Also provides a simple HTML form to POST
data to a `RESTController`'s `create()` method.

Also added ENABLE_BROWSABLE_API setting to the dashboard

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-03-26 17:16:37 +02:00
Sebastian Wagner
f959709f39 mgr/dashboard: Renamed types as it clashes with std lib
This will lead to a name clash, when importing `types`

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-03-26 17:16:16 +02:00
Ricardo Dias
d91a620ab3
mgr/smart: fix python3 module loading
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-03-26 15:56:01 +01:00
Ricardo Dias
072699d863
mgr: fixes python error handling
The current `handle_pyerror` function implementation relies in the
`traceback.format_exception_only` python function to format the
exception object. The problem is that this python function might also
raise an exception. This commit fixes it by enclosing that python
function call in try...catch block.

Fixes: http://tracker.ceph.com/issues/23406

Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-03-26 15:17:15 +01:00
Nathan Cutler
b71eb01705
Merge pull request #19439 from chardan/jfw-wip-14363-normalize-rm
rgw, mon: normalize delete/remove in admin console (cleanup 22444)

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Joao Eduardo Luis <joao@suse.de>
2018-03-26 15:35:40 +02:00
Lenz Grimmer
765b346aee
Merge pull request #21011 from tspmelo/wip-submit-btn
mgr/dashboard: Add submit button component

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2018-03-26 14:54:51 +02:00
Jos Collin
bf82cb2075
Merge pull request #21032 from simransinghal/fixtypo
rgw: Fix typo in comment

Reviewed-by: Jos Collin <jcollin@redhat.com>
2018-03-26 17:22:38 +05:30
Kefu Chai
0754b797e1
Merge pull request #21020 from trociny/wip-vstart-no-mon-config
stop.sh: use --no-mon-config when trying to unmap rbd devices

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-03-26 19:33:56 +08:00
Wido den Hollander
582935f222
mgr/zabbix: Send max, min and avg PGs of OSDs to Zabbix
We already send the max, min and avg fill ratio of OSDs but
knowing the OSD with the highest amount of PGs is also useful.

This allows admins to create a trigger should it happen that there
is a OSD with too many PGs.

This could happen if a lot of OSDs fail and PGs start to move filling
up one or more OSDs with many PGs.

As PGs eat CPU and Memory people usually like to watch out for these
situations.

Signed-off-by: Wido den Hollander <wido@42on.com>
2018-03-26 13:27:27 +02:00
Xie Xingguo
4198558162
Merge pull request #21036 from xiexingguo/wip-wrong-tip
os/bluestore: s/bluefs_total/bluefs_free/

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
2018-03-26 18:13:51 +08:00
Ricardo Dias
a392e612cc
Merge pull request #21007 from rjfd/wip-dashboard-fix-py3
mgr/dashboard: fix dashboard python 3 support

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-03-26 10:59:17 +01:00
Ricardo Dias
5867292162
Merge pull request #21006 from rjfd/wip-dashboard-fix-auth-py3
mgr/dashboard: fixed password generation in Auth controller

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2018-03-26 10:58:27 +01:00
Ricardo Dias
d5763de318
Merge pull request #20865 from sebastian-philipp/dashboard_v2_pool-create
mgr/dashboard: Add Pool-create to the backend

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
2018-03-26 10:07:15 +01:00
Tatjana Dehler
33e15ecd39 mgr/dashboard: convert RBD features to a list of strings
Until now the API returns the features provided by an RBD as one comma
separated string. It's more usable for the frontend to receive a list
of strings instead.

Signed-off-by: Tatjana Dehler <tdehler@suse.com>
2018-03-26 09:41:56 +02:00
Gu Zhongyan
c45c81b29f os/bluestore: fix some code formatting
Signed-off-by: Gu Zhongyan <guzhongyan@360.cn>
2018-03-26 15:24:58 +08:00
xie xingguo
81c094b4a1 os/bluestore: s/bluefs_total/bluefs_free/
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2018-03-26 10:33:24 +08:00
Radoslaw Zarzynski
9e40cade6f os/bluestore: reorder members of bluefs_extent_t to make it smaller.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2018-03-25 18:26:44 +02:00
simransinghal
f3b3bcfbc9 src: Fix typo
Replace "dont" with "don't". "Dont" is not same as "Do not" or "Don't".

Signed-off-by: Simran Singhal <singhalsimran0@gmail.com>
2018-03-25 18:50:23 +05:30
Nathan Cutler
235f211901
Merge pull request #21002 from smithfarm/wip-23437
build/ops: setup-virtualenv.sh: do not hardcode python binary

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2018-03-23 23:29:11 +01:00
Tiago Melo
03fa8585ef mgr/dashboard: Add submit button component
This component is to be used inside a form.

It will render a submit button with the given label.
The button will disabled itself and show a loading icon when the user clicks it,
usually initiating a request to the server, and it will stay in that state
until the request is finished.

To indicate that the request failed, returning the button to the enable state,
you need to insert an error in the form with the 'cdSubmitButton' key.

It will also check if the form is valid, when clicking the button, and will
focus on the first invalid input.

Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-23 16:40:29 +00:00
Radoslaw Zarzynski
c5859f25e6 qa/tasks/swift: add support for the "force-branch" configurable.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2018-03-23 12:40:05 -04:00
Nathan Cutler
f1936a2702
Merge pull request #21013 from dzafman/wip-remove-bc
test: Replace bc command with printf command

Reviewed-by: Nathan Cutler <ncutler@suse.com>
2018-03-23 17:28:02 +01:00
Sebastian Wagner
cbee371958 mgr/dashboard: Add Teuthology test for /api/pool/_info
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-03-23 16:40:18 +01:00
Sebastian Wagner
dd18675e4f mgr/dashboard: Minor tweak to DashboardTestCase._request
Don't fall through silently.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-03-23 16:40:18 +01:00
Sebastian Wagner
623bc8b05f mgr/dashboard: Change crush_rule serialization of Pools from id to name
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-03-23 16:40:18 +01:00
Sebastian Wagner
f3300eed97 mgr/dashboard: Add pool/_info api endpoint to fill the create-pool dialog
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-03-23 16:40:18 +01:00
Sebastian Wagner
e6c1056ad5 mgr/dashboard: Add create() to Pool controller
Also:

* Added tests.
* Renamed `DashboardTest` to `PoolTest`.
* Added `delete()`.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-03-23 16:40:18 +01:00