]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agoos/bluestore: add main device expand capability.
Igor Fedotov [Fri, 23 Nov 2018 11:39:20 +0000 (14:39 +0300)]
os/bluestore: add main device expand capability.

One can do that via ceph-bluestore-tool's bluefs-bdev-expand command

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
6 years agoMerge pull request #25205 from smithfarm/wip-37330
Kefu Chai [Thu, 22 Nov 2018 08:53:13 +0000 (16:53 +0800)]
Merge pull request #25205 from smithfarm/wip-37330

build/ops: do_cmake.sh: automate py3 build options for certain distros

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #25211 from badone/wip-selinux-cr-repo-issue
Kefu Chai [Thu, 22 Nov 2018 08:34:37 +0000 (16:34 +0800)]
Merge pull request #25211 from badone/wip-selinux-cr-repo-issue

install-deps.sh: Remove CR repo

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #24821 from k0ste/prometheus_metadata
Jan Fajerski [Thu, 22 Nov 2018 08:20:52 +0000 (09:20 +0100)]
Merge pull request #24821 from k0ste/prometheus_metadata

mgr: prometheus: added bluestore db and wal/journal devices to ceph_disk_occupation metric.

6 years agoMerge pull request #25200 from tchaikov/wip-silence-Wunused
Kefu Chai [Thu, 22 Nov 2018 05:05:33 +0000 (13:05 +0800)]
Merge pull request #25200 from tchaikov/wip-silence-Wunused

erasure-code,test: silence -Wunused-variable warnings

Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #25199 from tchaikov/wip-mgr-silence-py2-warning
Kefu Chai [Thu, 22 Nov 2018 03:34:05 +0000 (11:34 +0800)]
Merge pull request #25199 from tchaikov/wip-mgr-silence-py2-warning

mgr: silence GCC warning

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #25204 from cbodley/wip-cmake-without-rbd-cephfs
Kefu Chai [Thu, 22 Nov 2018 03:32:15 +0000 (11:32 +0800)]
Merge pull request #25204 from cbodley/wip-cmake-without-rbd-cephfs

cmake: vstart target can build WITH_CEPHFS/RBD/MGR=OFF

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #25114 from trociny/wip-osd-perf-query-generic
Jason Dillaman [Thu, 22 Nov 2018 02:12:41 +0000 (21:12 -0500)]
Merge pull request #25114 from trociny/wip-osd-perf-query-generic

 mgr: generalize osd perf query and make counters accessible from modules

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #25209 from runsisi/wip-fix-missing-prefix
Jason Dillaman [Thu, 22 Nov 2018 01:17:07 +0000 (20:17 -0500)]
Merge pull request #25209 from runsisi/wip-fix-missing-prefix

test/librbd: metadata key for config should be prefixed with conf_

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #24936 from mikechristie/igw-selinux
Jason Dillaman [Thu, 22 Nov 2018 00:14:48 +0000 (19:14 -0500)]
Merge pull request #24936 from mikechristie/igw-selinux

selinux: add support for ceph iscsi

Reviewed-by: Boris Ranto <branto@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #24965 from yangdongsheng/token_fix
Jason Dillaman [Thu, 22 Nov 2018 00:13:52 +0000 (19:13 -0500)]
Merge pull request #24965 from yangdongsheng/token_fix

common: complete all throttle blockers when we set average or max to 0

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #25055 from runsisi/wip-fix-resize
Jason Dillaman [Thu, 22 Nov 2018 00:13:19 +0000 (19:13 -0500)]
Merge pull request #25055 from runsisi/wip-fix-resize

librbd: fix missing unblock_writes if shrink is not allowed

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #25152 from Songweibin/wip-fix-get-key
Jason Dillaman [Thu, 22 Nov 2018 00:13:02 +0000 (19:13 -0500)]
Merge pull request #25152 from Songweibin/wip-fix-get-key

 rbd: fix error parse arg when getting key

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoinstall-deps.sh: Remove CR repo 25211/head
Brad Hubbard [Thu, 22 Nov 2018 00:07:22 +0000 (10:07 +1000)]
install-deps.sh: Remove CR repo

Remove the continuous release repos for CentOS and Virtuozzo 7 as they
should no longer be needed since http://tracker.ceph.com/issues/13997 is
no longer relevant and the newer versions of selinux packages pulled in
by the build system are causing problems for systems without CR repos
enabled.

Fixes: https://tracker.ceph.com/issues/37335
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
6 years agotest/librbd: metadata key for config should be prefixed with conf_ 25209/head
runsisi [Wed, 21 Nov 2018 23:42:14 +0000 (07:42 +0800)]
test/librbd: metadata key for config should be prefixed with conf_

Signed-off-by: runsisi <luo.runbing@zte.com.cn>
6 years agoMerge pull request #24452 from noahdesu/doc-edit-report
Neha Ojha [Wed, 21 Nov 2018 19:48:07 +0000 (11:48 -0800)]
Merge pull request #24452 from noahdesu/doc-edit-report

doc: edit on github

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agobuild/ops: do_cmake.sh: automate py3 build options for certain distros 25205/head
Nathan Cutler [Wed, 21 Nov 2018 15:14:46 +0000 (16:14 +0100)]
build/ops: do_cmake.sh: automate py3 build options for certain distros

Before this patch, run-make-check.sh was setting the cmake options for
py3 build based only on the absence of a python2 binary in the system.
This was not sufficiently deterministic, and it didn't help folks who
run do_cmake.sh directly.

With this patch, we explicitly force the py3 build in do_cmake.sh, for
those OS types/versions we know need it.

Fixes: https://tracker.ceph.com/issues/37330
Signed-off-by: Nathan Cutler <ncutler@suse.com>
6 years agoMerge pull request #25157 from tspmelo/wip-e2e-stop
Lenz Grimmer [Wed, 21 Nov 2018 14:44:50 +0000 (15:44 +0100)]
Merge pull request #25157 from tspmelo/wip-e2e-stop

mgr/dashboard: Fix run-frontend-e2e-tests.sh

Reviewed-by: Laura Paduano <lpaduano@suse.com>
6 years agocmake: vstart-base only depends on ceph-mgr if WITH_MGR 25204/head
Casey Bodley [Wed, 21 Nov 2018 14:44:16 +0000 (09:44 -0500)]
cmake: vstart-base only depends on ceph-mgr if WITH_MGR

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agocmake: dont depend on cython_rbd if WITH_RBD=OFF
Casey Bodley [Wed, 21 Nov 2018 13:06:24 +0000 (08:06 -0500)]
cmake: dont depend on cython_rbd if WITH_RBD=OFF

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agocmake: dont build ceph-mds if WITH_CEPHFS=OFF
Casey Bodley [Wed, 21 Nov 2018 13:04:31 +0000 (08:04 -0500)]
cmake: dont build ceph-mds if WITH_CEPHFS=OFF

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #25155 from rhcs-dashboard/37283-mgr-info-card-improvements
Lenz Grimmer [Wed, 21 Nov 2018 13:55:39 +0000 (14:55 +0100)]
Merge pull request #25155 from rhcs-dashboard/37283-mgr-info-card-improvements

mgr/dashboard: Status info cards' improvements

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
6 years agoerasure-code,test: silence -Wunused-variable warnings 25200/head
Kefu Chai [Wed, 21 Nov 2018 12:43:38 +0000 (20:43 +0800)]
erasure-code,test: silence -Wunused-variable warnings

GCC 7.3 does not support [[maybe_unused]] very well, so it emits
-Wunused-variable warnings even if the variables are marked with
maybe_unused. moreover, the C++17 standard does not forbid these
warnings:

> For an entity marked maybe_unused, implementations are encouraged not
to emit a warning that the entity is unused, or that the entity is used
despite the presence of the attribute.

see also n4659, dcl.attr.unused

so, in this change, the warnings are silenced manually.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agomgr/dashboard: Status info cards' improvements 25155/head
alfonsomthd [Wed, 21 Nov 2018 12:46:56 +0000 (13:46 +0100)]
mgr/dashboard: Status info cards' improvements
- MGR info card:
  Show amount of daemons active instead of active mgr name.
  Daemons active text line: show mgr active name when 'on mouse over'.
- OSD/MDS info cards (for consistency):
  The same text appearance as MGR card.
- Hosts/Object Gateway/iSCSI cards: added 'total' after amount for clarification.
- Some CSS refactor.

Fixes: https://tracker.ceph.com/issues/37283
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
6 years agoMerge pull request #24610 from SUSE/wip-orchestrator-deepsea-redux
Sebastian Wagner [Wed, 21 Nov 2018 12:37:51 +0000 (13:37 +0100)]
Merge pull request #24610 from SUSE/wip-orchestrator-deepsea-redux

mgr/deepsea: DeepSea orchestrator module

Reviewed-by: Jan Fajerski <jfajerski@suse.com>
Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
6 years agomgr: prometheus: added bluestore db and wal devices to ceph_disk_occupation metric. 24821/head
Konstantin Shalygin [Tue, 30 Oct 2018 06:43:02 +0000 (13:43 +0700)]
mgr: prometheus: added bluestore db and wal devices to ceph_disk_occupation metric.

Signed-off-by: Konstantin Shalygin <k0ste@k0ste.ru>
6 years agomgr/deepsea: DeepSea orchestrator module 24610/head
Tim Serong [Tue, 16 Oct 2018 08:39:41 +0000 (19:39 +1100)]
mgr/deepsea: DeepSea orchestrator module

This module provides integration between Ceph's orchestrator framework
and DeepSea, a Ceph deployment and management system built upon Salt.

Included so far are implementations of get_inventory() and
describe_service().  This allows `ceph orchestrator device ls`, `ceph
orchestrator service ls` and `ceph orchestrator service status` to
operate correctly.

To test, try:

  # ceph mgr module enable orchestrator_cli
  # ceph mgr module enable deepsea
  # ceph orchestrator set backend deepsea
  # ceph deepsea config-set salt_api_url <salt api url>
  # ceph deepsea config-set salt_api_username <salt api username>
  # ceph deepsea config-set salt_api_password <salt api shared secret>
  # ceph orchestrator device ls
  # ceph orchestrator service ls

Signed-off-by: Tim Serong <tserong@suse.com>
6 years agomgr: silence GCC warning 25199/head
Kefu Chai [Wed, 21 Nov 2018 08:56:52 +0000 (16:56 +0800)]
mgr: silence GCC warning

the signature of PyObject_CallMethod() is different in python2 and
python3:

in python2: it is

PyObject* PyObject_CallMethod(PyObject *o, char *method, char *format,
...)

while in python3, it is

PyObject* PyObject_CallMethod(PyObject *obj, const char *name, const
char *format, ...)

so, if we compile mgr with python2, we will have following warning:

warning: ISO C++ forbids converting a string constant to ‘char*’
[-Wwrite-strings]
        (char*)NULL);
                   ^

it'd be simpler if we just const_cast<> the method name string, to
silence the warning just like other places we call
PyObject_CallMethod().

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #25167 into master
Sage Weil [Tue, 20 Nov 2018 23:35:16 +0000 (17:35 -0600)]
Merge PR #25167 into master

* refs/pull/25167/head:
mgr: Diskprediction local activate when config changes

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #24795 into master
Sage Weil [Tue, 20 Nov 2018 23:34:54 +0000 (17:34 -0600)]
Merge PR #24795 into master

* refs/pull/24795/head:
qa/tasks/ceph: gather crash dumps

6 years agoMerge pull request #14369 from rzarzynski/wip-rgw-19514
Yuri Weinstein [Tue, 20 Nov 2018 22:01:41 +0000 (14:01 -0800)]
Merge pull request #14369 from rzarzynski/wip-rgw-19514

rgw: fix wrong debug related to user ACLs in rgw_build_bucket_policies()

Reviewed-by: Adam Emerson <aemerson@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #16658 from rzarzynski/wip-rgw-20795
Yuri Weinstein [Tue, 20 Nov 2018 22:00:57 +0000 (14:00 -0800)]
Merge pull request #16658 from rzarzynski/wip-rgw-20795

rgw: Swift's TempURL can handle temp_url_expires written in ISO8601.

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
6 years agoMerge pull request #19684 from taoCH/wip-librgw-symbolic-link
Yuri Weinstein [Tue, 20 Nov 2018 22:00:41 +0000 (14:00 -0800)]
Merge pull request #19684 from taoCH/wip-librgw-symbolic-link

librgw: support symbolic link

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
6 years agomgr/osd_perf_query: improvements for testing module 25114/head
Mykola Golub [Thu, 15 Nov 2018 09:09:01 +0000 (11:09 +0200)]
mgr/osd_perf_query: improvements for testing module

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge pull request #22599 from anthonyeleven/patch-2
Robin H. Johnson [Tue, 20 Nov 2018 17:44:04 +0000 (09:44 -0800)]
Merge pull request #22599 from anthonyeleven/patch-2

doc: Tidy up description wording and spelling

6 years agoMerge PR #24737 into master
Sage Weil [Tue, 20 Nov 2018 15:50:04 +0000 (09:50 -0600)]
Merge PR #24737 into master

* refs/pull/24737/head:
doc/ceph-bluestore-tool: add help for migrate and new DB/WAL commands.

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #25010 from nathan-weinberg/breadcrumb-tests
Lenz Grimmer [Tue, 20 Nov 2018 15:36:48 +0000 (16:36 +0100)]
Merge pull request #25010 from nathan-weinberg/breadcrumb-tests

mgr/dashboard: Added additional breadcrumb tests to Cluster

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #25141 from rhcs-dashboard/wip-37293-master
Lenz Grimmer [Tue, 20 Nov 2018 15:34:59 +0000 (16:34 +0100)]
Merge pull request #25141 from rhcs-dashboard/wip-37293-master

mgr/dashboard: Fix Forbidden Error with some roles

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
6 years agoMerge pull request #25176 from cyx1231st/wip-crimson-msgr-extract-states
Kefu Chai [Tue, 20 Nov 2018 13:58:37 +0000 (21:58 +0800)]
Merge pull request #25176 from cyx1231st/wip-crimson-msgr-extract-states

crimson/net: encapsulate protocol implementations with states

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/net: remove recursive call to handle_connect_reply() 25176/head
Yingxin [Wed, 7 Nov 2018 11:58:24 +0000 (19:58 +0800)]
crimson/net: remove recursive call to handle_connect_reply()

Signed-off-by: Yingxin <yingxin.cheng@intel.com>
6 years agocrimson/net: fix minor issue and add TODO for error-handling
Yingxin [Tue, 20 Nov 2018 14:07:57 +0000 (22:07 +0800)]
crimson/net: fix minor issue and add TODO for error-handling

Signed-off-by: Yingxin <yingxin.cheng@intel.com>
6 years agocrimson/net: extract state transition out of repeat_connect()
Kefu Chai [Mon, 19 Nov 2018 08:09:53 +0000 (16:09 +0800)]
crimson/net: extract state transition out of repeat_connect()

and extract state transition out of repeat_handle_connect()

in this change, the connect/handle-connect loop is restructured, to
avoid ad-hoc state changes in helper functions. this pave the road to
explicit state transtion using named states.

also, exception is thrown instead in handle_connect_reply(), we should
not proceed in case of failures. and we need do error handling in the
named state in future.

currentl, `state` is set to `state_t::open` in `start_connect()` and
`start_accept()`, the next step is to set it in a named state.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #25149 from p-na/pna-fix-safe-to-destroy
Lenz Grimmer [Tue, 20 Nov 2018 13:33:42 +0000 (14:33 +0100)]
Merge pull request #25149 from p-na/pna-fix-safe-to-destroy

mgr/dashboard: Fix failing QA test: test_safe_to_destroy

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
6 years agocrimson/net: define an alias of seastar::stop_iteration
Kefu Chai [Mon, 19 Nov 2018 07:05:51 +0000 (15:05 +0800)]
crimson/net: define an alias of seastar::stop_iteration

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/net: check short reads in `read_exactly()`
Yingxin [Wed, 24 Oct 2018 14:49:30 +0000 (22:49 +0800)]
crimson/net: check short reads in `read_exactly()`

Signed-off-by: Yingxin <yingxin.cheng@intel.com>
6 years agoMerge PR #24844 into master
Sage Weil [Tue, 20 Nov 2018 12:51:29 +0000 (06:51 -0600)]
Merge PR #24844 into master

* refs/pull/24844/head:
osd: drop PGBackend::Listener::get_epoch().
osd: massively switch to get_osdmap_epoch().
osd: switch the return type of PG::get_osdmap().

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #24867 into master
Sage Weil [Tue, 20 Nov 2018 12:50:50 +0000 (06:50 -0600)]
Merge PR #24867 into master

* refs/pull/24867/head:
mon: compensate for not having STDLIB_MAP_SPLICING

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: João Eduardo Luís <joao@suse.de>
6 years agoMerge PR #24929 into master
Sage Weil [Tue, 20 Nov 2018 12:50:33 +0000 (06:50 -0600)]
Merge PR #24929 into master

* refs/pull/24929/head:
osd: set lower bound+docs on osd_max_write_size

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #25058 into master
Sage Weil [Tue, 20 Nov 2018 12:50:17 +0000 (06:50 -0600)]
Merge PR #25058 into master

* refs/pull/25058/head:
mgr: Fixed devicehealth plugin resource leak

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #25125 into master
Sage Weil [Tue, 20 Nov 2018 12:49:54 +0000 (06:49 -0600)]
Merge PR #25125 into master

* refs/pull/25125/head:
mon: require keyring even if cephx is optional

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoqa/tasks/ceph: gather crash dumps 24795/head
Sage Weil [Sun, 28 Oct 2018 14:26:00 +0000 (09:26 -0500)]
qa/tasks/ceph: gather crash dumps

Gather crash dumps as part of the teuthology run.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agocrimson/net: connection closed during connecting
Yingxin [Wed, 17 Oct 2018 20:45:53 +0000 (04:45 +0800)]
crimson/net: connection closed during connecting

It is possible during `seastar::connect()`, the connection is marked
closed (when SocketConnection::socket is unavailable), then
`seastar::connect()` successfully returns a connected socket.

Signed-off-by: Yingxin <yingxin.cheng@intel.com>
6 years agoMerge pull request #25121 from zmc/wip-dashboard-test-runner
Lenz Grimmer [Tue, 20 Nov 2018 11:29:35 +0000 (12:29 +0100)]
Merge pull request #25121 from zmc/wip-dashboard-test-runner

mgr/dashboard: Small improvements for running teuthology tests

Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
6 years agomgr: parse OSDPerfMetricQuery spec that comes from python module
Mykola Golub [Thu, 15 Nov 2018 08:59:40 +0000 (10:59 +0200)]
mgr: parse OSDPerfMetricQuery spec that comes from python module

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agomgr: make dynamic osd perf counters accessible from modules
Mykola Golub [Wed, 14 Nov 2018 07:33:01 +0000 (09:33 +0200)]
mgr: make dynamic osd perf counters accessible from modules

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agoosd: fixup to recently added dynamic perf stats
Mykola Golub [Wed, 14 Nov 2018 07:28:10 +0000 (09:28 +0200)]
osd: fixup to recently added dynamic perf stats

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agomgr: fix PyFormatter's dump_unsigned
Mykola Golub [Wed, 14 Nov 2018 07:26:03 +0000 (09:26 +0200)]
mgr: fix PyFormatter's dump_unsigned

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agomgr: store osd perf counters received in osd reports
Mykola Golub [Mon, 12 Nov 2018 18:41:42 +0000 (20:41 +0200)]
mgr: store osd perf counters received in osd reports

Make the counters accessible for the query owners.

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agomgr: generalize OSDPerfMetricQuery to support different queries
Mykola Golub [Mon, 12 Nov 2018 18:39:33 +0000 (20:39 +0200)]
mgr: generalize OSDPerfMetricQuery to support different queries

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge pull request #24851 from rhcs-dashboard/grafana-roles
Lenz Grimmer [Tue, 20 Nov 2018 09:21:04 +0000 (10:21 +0100)]
Merge pull request #24851 from rhcs-dashboard/grafana-roles

mgr/dashboard: Show/Hide Grafana tabs according to user role

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #24762 from tspmelo/wip-credits
Abhishek L [Tue, 20 Nov 2018 08:40:59 +0000 (09:40 +0100)]
Merge pull request #24762 from tspmelo/wip-credits

credits.sh: Ignore package-lock.json and .xlf files

Reviewed-By: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-By: Nathan Cutler <ncutler@suse.com>
Reviewed-By: Abhishek Lekshmanan <abhishek@suse.com>
6 years agoMerge pull request #25169 from tchaikov/wip-install-libboost-bionic
Kefu Chai [Tue, 20 Nov 2018 07:54:34 +0000 (15:54 +0800)]
Merge pull request #25169 from tchaikov/wip-install-libboost-bionic

install-deps.sh: fix gcc detection and install pre-built libboost on bionic

Tested-by: Changcheng Liu <changcheng.liu@intel.com>
Reviewed-by: Changcheng Liu <changcheng.liu@intel.com>
6 years agoinstall-deps.sh: install prebuilt libboost dependencies for bionic also 25169/head
Kefu Chai [Tue, 20 Nov 2018 04:43:34 +0000 (12:43 +0800)]
install-deps.sh: install prebuilt libboost dependencies for bionic also

* extract boost install function into a helper, so we don't need to
  repeat it when adding support for new distros.
* install ceph-libboost-* for bionic build also. we check for the
  existence in run-make-check.sh, so there is no need to update
  the build script elsewhere.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoinstall-deps.sh: correct gcc version info as major.minor.patch
Changcheng Liu [Fri, 26 Oct 2018 06:32:09 +0000 (14:32 +0800)]
install-deps.sh: correct gcc version info as major.minor.patch

On ubuntu 18.04, "gcc -dumpversion" output "7", it result in
that below check will return false:
    dpkg --compare-versions 7 ge 7.0
Then, this script will install other gcc.

Actully, the full gcc version "gcc -dumpfullversion" output is
"7.3.0", than below check will turn true:
    dpkg --compare-version 7.3.0 ge 7.0
So, there's no need to install other gcc.

In case of hitting error on ubuntu16.04, use below parameter:
   gcc -dumpfullversion -dumpversion

Signed-off-by: Changcheng Liu <changcheng.liu@intel.com>
6 years agomgr: Diskprediction local activate when config changes 25167/head
hsiang41 [Tue, 20 Nov 2018 03:03:03 +0000 (11:03 +0800)]
mgr: Diskprediction local activate when config changes

Trigger diskprediction local action when receive notify configuration changed.

Signed-off-by: Rick Chen <rick.chen@prophetstor.com>
6 years agoMerge PR #24874 into master
Sage Weil [Mon, 19 Nov 2018 23:31:17 +0000 (17:31 -0600)]
Merge PR #24874 into master

* refs/pull/24874/head:
os/filestore: collect partition/device metadata from journal
os/filestore: include journal in get_devices result

Reviewed-by: Rick Chen <rick.chen@prophetstor.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
6 years agoMerge PR #25140 into master
Sage Weil [Mon, 19 Nov 2018 23:29:57 +0000 (17:29 -0600)]
Merge PR #25140 into master

* refs/pull/25140/head:
mon: by default, do NOT warn about misplaced objects
mon: add mon_warn_on_misplaced option

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: João Eduardo Luís <joao@suse.de>
6 years agoMerge PR #25147 into master
Sage Weil [Mon, 19 Nov 2018 23:29:41 +0000 (17:29 -0600)]
Merge PR #25147 into master

* refs/pull/25147/head:
mgr/devicehealth: implement config_notify hook
mgr: call config_notify method when mgr's config has changed
mon/MonClient: add callback for (any) config change
common/config: fix debug output for config callbacks changes

Reviewed-by: Tim Serong <tserong@suse.com>
6 years agoMerge PR #25158 into master
Patrick Donnelly [Mon, 19 Nov 2018 22:17:14 +0000 (14:17 -0800)]
Merge PR #25158 into master

* refs/pull/25158/head:
[doc] Fix typo in luminious release notes

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agomgr/dashboard: Fix run-frontend-e2e-tests.sh 25157/head
Tiago Melo [Mon, 19 Nov 2018 15:07:07 +0000 (15:07 +0000)]
mgr/dashboard: Fix run-frontend-e2e-tests.sh

e2e tests were always returning positive result, even when they failed.

Fixed problem with jq, where it was failing when it was not receiving a string.

Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge PR #25111 into master
Sage Weil [Mon, 19 Nov 2018 19:15:21 +0000 (13:15 -0600)]
Merge PR #25111 into master

* refs/pull/25111/head:
test: Add test for requested scrub priority
osd: Prioritize user specified scrubs

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge pull request #23819 from dongbula/nf-add-bucket-option-in-usage
Yuri Weinstein [Mon, 19 Nov 2018 16:49:06 +0000 (08:49 -0800)]
Merge pull request #23819 from dongbula/nf-add-bucket-option-in-usage

rgw: add bucket as option when show/trim usage

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #23318 from theanalyst/wip-curl-errstring
Yuri Weinstein [Mon, 19 Nov 2018 16:47:27 +0000 (08:47 -0800)]
Merge pull request #23318 from theanalyst/wip-curl-errstring

rgw: http client: print curl error messages during curl failures

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #25069 from markhpc/wip-memory-autotune-doc
Neha Ojha [Mon, 19 Nov 2018 16:46:43 +0000 (22:16 +0530)]
Merge pull request #25069 from markhpc/wip-memory-autotune-doc

doc/rados: Add bluestore memory autotuning docs.

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #24492 from theanalyst/wip-rgw-es-attr-fixes
Yuri Weinstein [Mon, 19 Nov 2018 16:44:50 +0000 (08:44 -0800)]
Merge pull request #24492 from theanalyst/wip-rgw-es-attr-fixes

rgw: ES sync: be more restrictive on object system attrs

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #24730 from pritha-srivastava/wip-rgw-role-fixes
Yuri Weinstein [Mon, 19 Nov 2018 16:44:10 +0000 (08:44 -0800)]
Merge pull request #24730 from pritha-srivastava/wip-rgw-role-fixes

rgw: Minor fixes to radosgw-admin commands for a role.

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
6 years agoMerge pull request #24846 from taoCH/wip-fix-librgw-quota-check
Yuri Weinstein [Mon, 19 Nov 2018 16:43:10 +0000 (08:43 -0800)]
Merge pull request #24846 from taoCH/wip-fix-librgw-quota-check

rgw_file: not check max_objects when creating file

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
6 years ago[doc] Fix typo in luminious release notes 25158/head
Maxime [Mon, 19 Nov 2018 15:36:04 +0000 (16:36 +0100)]
[doc] Fix typo in luminious release notes

Signed-off-by: Maxime <maxime@root314.com>
6 years agoMerge pull request #24935 from leseb/rbd-mirror-on-reboot
Jason Dillaman [Mon, 19 Nov 2018 15:22:52 +0000 (20:52 +0530)]
Merge pull request #24935 from leseb/rbd-mirror-on-reboot

systemd: enable ceph-rbd-mirror.target

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #24863 from jtlayton/wip-orchestrator
Sebastian Wagner [Mon, 19 Nov 2018 13:55:30 +0000 (14:55 +0100)]
Merge pull request #24863 from jtlayton/wip-orchestrator

mgr/orchestrator: Add support for "ceph orchestrator service ls"

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Tim Serong <tserong@suse.com>
6 years agomgr/dashboard: Fix failing QA test: test_safe_to_destroy 25149/head
Patrick Nawracay [Sat, 17 Nov 2018 21:03:22 +0000 (22:03 +0100)]
mgr/dashboard: Fix failing QA test: test_safe_to_destroy

The behavior of `safe-to-destroy` has changed in
432f19435523d455ecd4f386e58ee1f033cf97e2 (PR#24799) and the backend
needs to be adapted accordingly.

Fixes: http://tracker.ceph.com/issues/37290
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
6 years agoMerge pull request #24932 from tspmelo/wip-nodejs-update
Lenz Grimmer [Mon, 19 Nov 2018 12:16:28 +0000 (13:16 +0100)]
Merge pull request #24932 from tspmelo/wip-nodejs-update

mgr/dashboard: Update Node.js to current LTS

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agoMerge pull request #24779 from smithfarm/wip-luminous-release-notes
Nathan Cutler [Mon, 19 Nov 2018 11:50:57 +0000 (12:50 +0100)]
Merge pull request #24779 from smithfarm/wip-luminous-release-notes

doc: Luminous v12.2.9 release notes

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
6 years agorbd: fix error parse arg when getting image-meta key 25152/head
songweibin [Mon, 19 Nov 2018 11:26:41 +0000 (19:26 +0800)]
rbd: fix error parse arg when getting image-meta key

Signed-off-by: songweibin <song.weibin@zte.com.cn>
6 years agorbd: fix error parse arg when getting config key
songweibin [Mon, 19 Nov 2018 11:23:51 +0000 (19:23 +0800)]
rbd: fix error parse arg when getting config key

Signed-off-by: songweibin <song.weibin@zte.com.cn>
6 years agoMerge pull request #25136 from Devp00l/wip-easy-e2e-dev
Lenz Grimmer [Mon, 19 Nov 2018 10:48:35 +0000 (11:48 +0100)]
Merge pull request #25136 from Devp00l/wip-easy-e2e-dev

mgr/dashboard: npm run e2e:dev

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #25139 from tchaikov/wip-xmlsec
Kefu Chai [Mon, 19 Nov 2018 08:54:20 +0000 (16:54 +0800)]
Merge pull request #25139 from tchaikov/wip-xmlsec

test/dashboard: fix segfault when importing dm.xmlsec.binding

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
6 years agomgr/dashboard: Show/Hide Grafana tabs according to user role 24851/head
Kanika Murarka [Mon, 19 Nov 2018 08:13:52 +0000 (13:43 +0530)]
mgr/dashboard: Show/Hide Grafana tabs according to user role

Fixes: http://tracker.ceph.com/issues/36655
Signed-off-by: Kanika Murarka <kmurarka@redhat.com>
6 years agoMerge pull request #25096 from dillaman/wip-rbd-mirror-peers
Mykola Golub [Mon, 19 Nov 2018 07:59:03 +0000 (09:59 +0200)]
Merge pull request #25096 from dillaman/wip-rbd-mirror-peers

librbd: move mirror peer attribute handling from CLI to API

Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge PR #20665 into master
Sage Weil [Sun, 18 Nov 2018 13:04:40 +0000 (07:04 -0600)]
Merge PR #20665 into master

* refs/pull/20665/head:
mgr/balancer: add crush_compat_metrics param

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agomgr/devicehealth: implement config_notify hook 25147/head
Sage Weil [Sat, 17 Nov 2018 13:15:36 +0000 (07:15 -0600)]
mgr/devicehealth: implement config_notify hook

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomgr: call config_notify method when mgr's config has changed
Sage Weil [Sat, 17 Nov 2018 13:15:19 +0000 (07:15 -0600)]
mgr: call config_notify method when mgr's config has changed

This provides a hook for the module to refresh any config values it has
cached in module-local variables.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/MonClient: add callback for (any) config change
Sage Weil [Sat, 17 Nov 2018 12:50:17 +0000 (06:50 -0600)]
mon/MonClient: add callback for (any) config change

This is a coarse "there was some config update".  It's fired whether or
not it values are observed.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #25135 from cbodley/wip-test-log-garble
Casey Bodley [Fri, 16 Nov 2018 19:23:39 +0000 (14:23 -0500)]
Merge pull request #25135 from cbodley/wip-test-log-garble

test: fix libc++ crash in Log.GarbleRecovery

Reviewed-by: Adam Kupczyk <akucpzyk@redhat.com>
6 years agomgr/dashboard: Fix Forbidden Error with some roles 25141/head
Ernesto Puerta [Fri, 16 Nov 2018 18:04:34 +0000 (19:04 +0100)]
mgr/dashboard: Fix Forbidden Error with some roles

Fixes: http://tracker.ceph.com/issues/37293
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
6 years agoRemove any dashboard .pyc files before testing 25121/head
Zack Cerza [Thu, 15 Nov 2018 18:47:30 +0000 (11:47 -0700)]
Remove any dashboard .pyc files before testing

Things like 'git rm' and 'git mv' don't clean up any .pyc files that
might have been generated previously, so if those aren't removed, we
might not be running the exact code that we intend to.

Signed-off-by: Zack Cerza <zack@redhat.com>
6 years agoWhen cloning teuthology, pass --depth 1
Zack Cerza [Thu, 15 Nov 2018 18:42:25 +0000 (11:42 -0700)]
When cloning teuthology, pass --depth 1

We don't need history, so we may as well save some time.

Signed-off-by: Zack Cerza <zack@redhat.com>
6 years agotest/dashboard: fix segfault when importing dm.xmlsec.binding 25139/head
Kefu Chai [Fri, 16 Nov 2018 17:25:47 +0000 (01:25 +0800)]
test/dashboard: fix segfault when importing dm.xmlsec.binding

python-saml depends on dm.xmlsec.binding which is a python binding of
xmlsec C library. but without -DXMLSEC_NO_SIZE_T the compiled
dm.xmlsec.binding segfaults when `import dm.xmlsec.binding`. see
https://github.com/onelogin/python-saml/issues/30 and
https://github.com/4teamwork/ftw.saml2auth/issues/3 .

in long term, we might want to switch to python-saml, see
http://tracker.ceph.com/issues/37081

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agomon: by default, do NOT warn about misplaced objects 25140/head
Sage Weil [Fri, 16 Nov 2018 17:03:37 +0000 (11:03 -0600)]
mon: by default, do NOT warn about misplaced objects

Misplaced objects are not something that puts the health or safety of
data in jeopardy.  Don't warn about it by default.

Since this is a change in behavior, add a release note.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon: add mon_warn_on_misplaced option
Sage Weil [Fri, 16 Nov 2018 17:00:52 +0000 (11:00 -0600)]
mon: add mon_warn_on_misplaced option

Control whether we issue HEALTH_WARN due to misplaced objects.

Signed-off-by: Sage Weil <sage@redhat.com>