Commit Graph

94582 Commits

Author SHA1 Message Date
Ernesto Puerta
6bc357b8fb
mgr/dashboard: feature-toggles: add front-end
Add front-end behaviours to feature toggles:
- In navigation pane, drop-down menu items are displayed/hidden accordingly.
- In main dashboard page, info cards are displayed/hidded.
- Routes are also enabled/disabled. When disabled, they redirect to 404.

Fixes: http://tracker.ceph.com/issues/37530
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
2019-02-06 18:08:01 +01:00
Ernesto Puerta
0c8d8d1a3e
mgr/dashboard: feature-toggles: Add REST hook
Provide a hook for creating REST controllers and endpoints. Provide also
a REST controller for Feature Toggles plugin.

Fixes: http://tracker.ceph.com/issues/37530
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
2019-02-06 18:08:01 +01:00
Ernesto Puerta
3548cfb9fc
mgr/dashboard: feature-toggles: Add plugin
Add feature-toggles plugin. It allows to enable, disable and check
status of a feature. Features are disabled by making their
corresponding enpoints return HTTP 501 error (Not Implemented).

Fixes: http://tracker.ceph.com/issues/37530
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
2019-02-06 18:08:01 +01:00
Ernesto Puerta
356a067300
mgr/dashboard: feature-toggles: add plugin support
Provide plugin infrastructure and a minimal set of hooks. As
python-pluggy library is not yet available for all the distros that Ceph
is targeted at, a minimal implementation has been provided.

Fixes: http://tracker.ceph.com/issues/37530
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
2019-02-06 18:08:00 +01:00
Ernesto Puerta
006b0188af
mgr/dashboard: feature-toggles: add Option helper
A new helper class `Options` has been added to ease adding new
MODULE_OPTIONS.

Fixes: http://tracker.ceph.com/issues/37530
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
2019-02-06 18:08:00 +01:00
David Zafman
de98f2e0d9
Merge pull request #26290 from dzafman/wip-38027-38195
Wip 38027 38195: osd/osd-backfill-space.sh fails

Reviewed-by: Neha Ojha <nojha@redhat.com>
2019-02-06 08:41:40 -08:00
Lenz Grimmer
2275a41d09
Merge pull request #25918 from rjfd/wip-dashboard-nfs-backend
mgr/dashboard: NFS Ganesha management REST API

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2019-02-06 16:41:49 +01:00
Kefu Chai
c901d7b65c
Merge pull request #26177 from liewegas/wip-stricter-osd-gate
osd: refuse to start if we're > N+2 from recorded require_osd_release

Reviewed-By: Neha Ojha <nojha@redhat.com>
2019-02-06 19:02:34 +08:00
Kefu Chai
305eb0ebfd
Merge pull request #26181 from iliul/fix-pybind-mgr-pep8
pybind/mgr: PEP 8 code clean and fix typo

Reviewed-by: Dan Mick <dmick@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-02-06 19:01:45 +08:00
Kefu Chai
200879a769
Merge pull request #26258 from liewegas/wip-disable-krb
build: disable kerberos for nautilus

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-02-06 19:00:01 +08:00
Kefu Chai
8e74823d6e
Merge pull request #26259 from rzarzynski/wip-bl-freeze-alloc-unit
common: make CEPH_BUFFER_ALLOC_UNIT known at compile-time.

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2019-02-06 18:59:22 +08:00
Sebastian Wagner
c41e6a025c
Merge pull request #26094 from sebastian-philipp/orchestrator-cli-command
mgr/orchestrator: make use of @CLICommand

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Noah Watkins <noahwatkins@gmail.com>
2019-02-06 10:57:45 +01:00
David Zafman
f289816a66
Merge pull request #26178 from dzafman/wip-38070
mon: A PG with PG_STATE_REPAIR doesn't mean damaged data, PG_STATE_IN…

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2019-02-05 14:51:14 -08:00
Yehuda Sadeh
5be454f3d5
Merge pull request #26273 from yehudasa/wip-38174
vstart.sh: fix params generation for monmaptool

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2019-02-05 14:01:24 -08:00
David Zafman
36e305c4b6 test: Ignore kill_daemons() error
Workaround for: http://tracker.ceph.com/issues/38195

Signed-off-by: David Zafman <dzafman@redhat.com>
2019-02-05 11:31:32 -08:00
David Zafman
bca4fe98b1 test: Fix kill_daemon() to check after last large sleep
Signed-off-by: David Zafman <dzafman@redhat.com>
2019-02-05 11:30:04 -08:00
David Zafman
cc6339c0cd test: Increase timeouts in osd-backfill-space.sh because of failure seen
Fixes: http://tracker.ceph.com/issues/38027

Signed-off-by: David Zafman <dzafman@redhat.com>
2019-02-05 11:29:32 -08:00
Ilya Dryomov
442fcb9a4b
Merge pull request #26279 from idryomov/wip-krbd-bluestore
qa: objectstore snippets for krbd

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-02-05 19:44:36 +01:00
Ricardo Dias
721fab343c
mgr/dashboard: ganesha: support no namespace
Signed-off-by: Ricardo Dias <rdias@suse.com>
2019-02-05 16:07:18 +00:00
Lenz Grimmer
e0cc3d30ec
Merge pull request #25995 from tspmelo/wip-iscsi-ui
mgr/dashboard: iSCSI management UI

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2019-02-05 16:18:44 +01:00
Sebastian Wagner
38c664b4b9 mgr/orchestrator: fix broken device ls
* Added `InventoryDevice.from_ceph_volume_inventory`
* Improved documentation

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2019-02-05 15:23:35 +01:00
Tiago Melo
6ffaf6264e mgr/dashboard: Add iSCSI Form UI
Signed-off-by: Tiago Melo <tmelo@suse.com>
2019-02-05 12:19:52 +00:00
Tiago Melo
b07ef4f856 mgr/dashboard: Add read-only UI for iSCSI
Signed-off-by: Ricardo Marques <rimarques@suse.com>
Signed-off-by: Tiago Melo <tmelo@suse.com>
2019-02-05 12:19:52 +00:00
Ricardo Dias
076ccd5465
mgr/dashboard: ganesha: notify ganesha daemons to reload configuration
Signed-off-by: Ricardo Dias <rdias@suse.com>
2019-02-05 12:03:27 +00:00
Ricardo Dias
d8900d4ffe
mgr/dashboard: ganesha: add LookupError when checking RGW connectivity
Signed-off-by: Ricardo Dias <rdias@suse.com>
2019-02-05 12:02:59 +00:00
Tiago Melo
f718524ee7 mgr/dashboard: Fix TableComponent when changing columns afterViewInit
Angular was throwing an ExpressionChangedAfterItHasBeenCheckedError if you
changed columns information right after the table was initiated.

Signed-off-by: Tiago Melo <tmelo@suse.com>
2019-02-05 12:02:33 +00:00
Tiago Melo
4f27371760 mgr/dashboard: Set CdModal max-height
Signed-off-by: Tiago Melo <tmelo@suse.com>
2019-02-05 12:02:33 +00:00
Tiago Melo
4598bfb34b mgr/dashboard: Enhance CdValidators.validateIf method
Signed-off-by: Tiago Melo <tmelo@suse.com>
2019-02-05 12:02:33 +00:00
Tiago Melo
7acdff9a0f mgr/dashboard: Add generic Select component
Signed-off-by: Tiago Melo <tmelo@suse.com>
2019-02-05 12:02:33 +00:00
Kefu Chai
19691a7f06
Merge pull request #26202 from smithfarm/wip-fix-s390x-rpm-build
rpm: package crypto libraries for all archs

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-02-05 19:41:48 +08:00
Jeff Layton
d7c8968cf8
mgr/pybind/rados: add binding for rados_notify2
Add a new Ioctx.notify operation that we can call to send a rados
notification over an object.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
2019-02-05 11:00:38 +00:00
Sebastian Wagner
d71a97b7fa mgr/orchestrator: make use of @CLICommand
Also Modified some command to allow multiple hosts
Also: Added more tests

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2019-02-05 11:27:47 +01:00
Ilya Dryomov
711df71790 qa: objectstore snippets for krbd
krbd was being tested with filestore, up until recently when the
default for osd_objectstore was changed to bluestore.  This broke
rbd_simple_big.yaml because bluestore_block_size defaults to 10G.
Pick up the sepia setting of 90G from bluestore-bitmap.yaml.

Run fsx subsuite with both filestore and bluestore.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2019-02-05 11:23:42 +01:00
Yehuda Sadeh
e883e7398b
Merge pull request #26106 from yehudasa/wip-rgw-es-fixes
rgw: multiple es related fixes and improvements

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
2019-02-04 17:54:43 -08:00
Yehuda Sadeh
2ff5439c2b vstart.sh: fix params generation for monmaptool
Fixes: http://tracker.ceph.com/issues/38174

This broke in the msgr21 case, due to bash globbing in cases where
the generated string somehow matched names of certain files in local
directory. Also need to pass params to the prun function separately,
otherwise everything is quoted together.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2019-02-04 16:41:34 -08:00
Patrick Donnelly
206bcbcc89
Merge PR #26111 into master
* refs/pull/26111/head:
	mds: broadcast quota message to client when disable quota

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
2019-02-04 15:43:42 -08:00
Patrick Donnelly
e5a2964f55
Merge PR #26123 into master
* refs/pull/26123/head:
	mds: refactor MDSContext inheritance

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
2019-02-04 15:39:52 -08:00
Sebastian Wagner
0e443b7f5a
Merge pull request #26023 from jmolmo/inventory_pb_updated
mgr/ansible: Replace Ansible playbook used to retrieve storage devices data

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Sébastien Han <seb@redhat.com>
2019-02-04 23:00:00 +01:00
Yuri Weinstein
460af8203a
Merge pull request #26170 from ifed01/wip-ifed-fix-fsck-read
os/bluestore: deep fsck fails on inspecting very large onodes

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2019-02-04 12:51:15 -08:00
Yuri Weinstein
20ad73a1bb
Merge pull request #26223 from majianpeng/remove-unused-function
osd: remove unused function.

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-02-04 12:50:45 -08:00
Adam C. Emerson
81d1f3a6a7 Merge pull request #25278 from ZVampirEM77/wip-deleteobject-policy
rgw: fix obj can still be deleted even if deleteobject policy is set
rgw: cleanup for RGWDeleteObj::verify_permission(

Reviewed-by: Pritha Srivastava <prsrivas@redhat.com>
Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
2019-02-04 13:08:20 -05:00
Ilya Dryomov
1d94dcdb43
Merge pull request #26244 from idryomov/wip-krbd-alloc-size
krbd: alloc_size map option and tests

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-02-04 15:13:18 +01:00
Nathan Cutler
3feca71d70 rpm: package crypto libraries for all archs
Since 318a8e3c07 we are now building at least the
openssl crypto plugin on all architectures, not just x86_64.

This fixes the non-x86_64 builds for master.

Fixes: 318a8e3c07
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2019-02-04 12:43:02 +01:00
Tatjana Dehler
6116c96989
Merge pull request #25309 from Devp00l/wip-prometheus-alerting
mgr/dashboard: Prometheus integration

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2019-02-04 11:32:41 +01:00
Sage Weil
4edb005ed7 Merge PR #26256 into master
* refs/pull/26256/head:
	msg/async/ProtocolV2: respect policy.resetcheck on cookie==0

Reviewed-by: Ricardo Dias <rdias@suse.com>
2019-02-03 23:59:54 -06:00
Radoslaw Zarzynski
5176ced98b common: make CEPH_BUFFER_ALLOC_UNIT known at compile-time.
It sounds extremely unlikely that any platform Ceph targets can have
PAGE_SIZE lower than 4k. However, to handle these corner cases,
`bufferlist` was rounding to `CEPH_PAGE_SIZE` known at run-time only.
As a result, compilers were enforced to generate pretty inefficient
code like in `ceph::buffer::list::refill_append_space` (self is 1,10%):

```
       │         min(const _Tp& __a, const _Tp& __b)
       │         {
       │           // concept requirements
       │           __glibcxx_function_requires(_LessThanComparableConcept<_Tp>)
       │           //return __b < __a ? __b : __a;
       │           if (__b < __a)
  5,44 │       mov    _DYNAMIC+0x14a0,%rax
       │     _Z11round_up_toImjENSt13make_unsignedINSt11common_typeIJT_T0_EE4typeEE4typeES2_S3_():
       │       mov    $0x1000,%ecx
       │     _ZN4ceph6buffer4list19refill_append_spaceEj():
       │         size_t alen = round_up_to(need, CEPH_BUFFER_ALLOC_UNIT) -
       │           sizeof(raw_combined);
       │         buffer::hangable_ptr& new_back = \
       │           hangable_ptr::create(raw_combined::create(alen, 0, get_mempool()));
       │       mov    %rbp,%rdi
       │     _Z11round_up_toImjENSt13make_unsignedINSt11common_typeIJT_T0_EE4typeEE4typeES2_S3_():
  6,21 │       cmpl   $0x1000,(%rax)
  0,78 │       cmovbe (%rax),%ecx
       │       mov    %r12,%rax
       │       xor    %edx,%edx
  0,78 │       mov    %ecx,%ecx
 45,59 │       div    %rcx
```

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2019-02-03 22:54:10 +01:00
Sage Weil
9aaa354cad build: disable kerberos for nautilus
We can re-enable after we branch.  For N, though, there is no point in dragging
in the dependencies and implying there is something that works.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-02-03 14:27:49 -06:00
Kefu Chai
ff3386fd58
Merge pull request #26240 from votdev/improve_get_module_option
mgr: Use Py_BuildValue to create the argument tuple

Reviewed-by: Boris Ranto <branto@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-02-04 01:37:02 +08:00
Kefu Chai
2d4468c895
Merge pull request #26233 from liewegas/wip-bluestore-disable-csum
os/bluestore: add bluestore_ignore_data_csum option

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
Reviewed By: Xie Xingguo <xie.xingguo@zte.com.cn>
2019-02-04 01:24:08 +08:00
Kefu Chai
be56801eb8
Merge pull request #25077 from rzarzynski/wip-bl-kill_append_buffer
common: drop append_buffer from bufferlist. Use simple carriage instead

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-02-04 01:22:11 +08:00