Commit Graph

92295 Commits

Author SHA1 Message Date
Mykola Golub
efae1c7a79 rbd-nbd: support namespaces
Fixes: http://tracker.ceph.com/issues/24609
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-11-25 19:29:19 +02:00
Mykola Golub
f89c75f184
Merge pull request #25206 from dillaman/wip-36622
pybind/rbd: add namespace helper API methods

Reviewed-by: Mykola Golub <mgolub@suse.com>
2018-11-25 10:56:21 +02:00
Lenz Grimmer
60d4fa608e
Merge pull request #25221 from tspmelo/wip-37354
mgr/dashboard: Fix test_remove_not_expired_trash qa test

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
2018-11-23 13:03:45 +01:00
Lenz Grimmer
dc8237e94d
Merge pull request #24757 from votdev/issue_36480
mgr/dashboard: Can't handle user editing when tenants are specified

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2018-11-23 12:36:26 +01:00
Kefu Chai
4e2cb89ff2
Merge pull request #25186 from tchaikov/wip-vive-le-make-install
cmake: do not pass unnecessary param to setup.py

Reviewed-by: Alfredo Deza <adeza@redhat.com>
2018-11-23 09:30:28 +08:00
Jason Dillaman
1407693889
Merge pull request #25197 from iridescent-rsy/fix-typo
rbd-mirror,common: fix typos in logging messages and comments

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-11-22 10:51:45 -05:00
Jason Dillaman
f664422ff1
Merge pull request #25202 from trociny/wip-doc-rbd-qos
doc: describe RBD QoS settings

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
2018-11-22 10:50:54 -05:00
Jan Fajerski
ed05b163e7
Merge pull request #25182 from jan--f/mgr-prometheus-doc-mention-instance-label
doc/mgr/prometheus: readd section about custom instance labels
2018-11-22 14:29:43 +01:00
Sebastian Wagner
a7f1a24f8e
Merge pull request #25119 from sebastian-philipp/doc-orchestrator-cli-spec
doc/orchestrator: Integrate CLI specification into the documentation

Reviewed-by: Alfredo Deza <adeza@redhat.com>
Reviewed-by: Jan Fajerski <jfajerski@suse.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
2018-11-22 13:59:34 +01:00
Tiago Melo
0f6e8e5f3d mgr/dashboard: Fix test_remove_not_expired_trash qa test
Fixes: http://tracker.ceph.com/issues/37354

Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-11-22 11:39:24 +00:00
Lenz Grimmer
c881d63a69
Merge pull request #25144 from rhcs-dashboard/wip-37295-master
mgr/dashboard: Show pool dropdown for block-mgr

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
2018-11-22 10:54:02 +01:00
Lenz Grimmer
ddd8250cdc
Merge pull request #25159 from tspmelo/wip-i18n-doc
mgr/dashboard: Update I18N documentation

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
2018-11-22 10:53:22 +01:00
Nathan Cutler
3fd4629662
Merge pull request #25181 from smithfarm/wip-37301
build/ops: rpm: stop install-deps.sh clobbering spec file Python build setting

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: Tim Serong <tserong@suse.com>
2018-11-22 10:12:09 +01:00
Kefu Chai
c2612cf9db
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>
2018-11-22 16:53:13 +08:00
Kefu Chai
490d33332a
Merge pull request #25211 from badone/wip-selinux-cr-repo-issue
install-deps.sh: Remove CR repo

Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-11-22 16:34:37 +08:00
Jan Fajerski
e520d4f6f1
Merge pull request #24821 from k0ste/prometheus_metadata
mgr: prometheus: added bluestore db and wal/journal devices to ceph_disk_occupation metric.
2018-11-22 09:20:52 +01:00
Kefu Chai
1756025ce1
Merge pull request #25200 from tchaikov/wip-silence-Wunused
erasure-code,test: silence -Wunused-variable warnings

Reviewed-by: Neha Ojha <nojha@redhat.com>
2018-11-22 13:05:33 +08:00
Kefu Chai
dc6176e3b8
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>
2018-11-22 11:34:05 +08:00
Kefu Chai
7267c433df
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>
2018-11-22 11:32:15 +08:00
Jason Dillaman
1461c4dbc6
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>
2018-11-21 21:12:41 -05:00
Shiyang Ruan
22f90a4620 common: fix a typo.
Signed-off-by: Shiyang Ruan <ruansy.fnst@cn.fujitsu.com>
2018-11-22 09:23:49 +08:00
Jason Dillaman
6be74b76c4
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>
2018-11-21 20:17:07 -05:00
Jason Dillaman
91bd5a3447
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>
2018-11-21 19:14:48 -05:00
Jason Dillaman
006c68891c
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>
2018-11-21 19:13:52 -05:00
Jason Dillaman
ec96e4e635
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>
2018-11-21 19:13:19 -05:00
Jason Dillaman
4b3230b591
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>
2018-11-21 19:13:02 -05:00
Brad Hubbard
f39d9b7d1f 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>
2018-11-22 10:07:22 +10:00
runsisi
ca98567d71 test/librbd: metadata key for config should be prefixed with conf_
Signed-off-by: runsisi <luo.runbing@zte.com.cn>
2018-11-22 07:42:14 +08:00
Neha Ojha
c87e657f4e
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>
2018-11-21 11:48:07 -08:00
Sebastian Wagner
26a7236ab5 doc/orchestrator: Integrate CLI specification into the documentation
Also: Make it clear that the orchestrator is WIP

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-11-21 18:23:51 +01:00
Nathan Cutler
a691122a4e 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>
2018-11-21 16:51:16 +01:00
Jason Dillaman
a257bb603e pybind/rbd: add namespace helper API methods
Fixes: http://tracker.ceph.com/issues/36622
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-11-21 10:20:45 -05:00
Tiago Melo
9d617bbeb5 mgr/dashboard: Update I18N documentation
Add a Suggestions section.

Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-11-21 15:15:43 +00:00
Lenz Grimmer
11c61fc974
Merge pull request #25157 from tspmelo/wip-e2e-stop
mgr/dashboard: Fix run-frontend-e2e-tests.sh

Reviewed-by: Laura Paduano <lpaduano@suse.com>
2018-11-21 15:44:50 +01:00
Casey Bodley
2ca0acbd60 cmake: vstart-base only depends on ceph-mgr if WITH_MGR
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-11-21 09:44:16 -05:00
Casey Bodley
96d73b8349 cmake: dont depend on cython_rbd if WITH_RBD=OFF
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-11-21 09:15:07 -05:00
Casey Bodley
035e872680 cmake: dont build ceph-mds if WITH_CEPHFS=OFF
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-11-21 09:15:07 -05:00
Lenz Grimmer
0b521bbdab
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>
2018-11-21 14:55:39 +01:00
Mykola Golub
d04114c4a8 doc: describe RBD QoS settings
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-11-21 15:25:17 +02:00
Kefu Chai
b86150b4b2 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>
2018-11-21 20:47:56 +08:00
alfonsomthd
fc07fb95df 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>
2018-11-21 13:46:56 +01:00
Sebastian Wagner
8fe92c3534
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>
2018-11-21 13:37:51 +01:00
Konstantin Shalygin
12fbf48e63
mgr: prometheus: added bluestore db and wal devices to ceph_disk_occupation metric.
Signed-off-by: Konstantin Shalygin <k0ste@k0ste.ru>
2018-11-21 19:12:42 +07:00
Tim Serong
ec2567e289 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>
2018-11-21 22:50:55 +11:00
Kefu Chai
31654a2ba6 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>
2018-11-21 17:03:30 +08:00
Sage Weil
d0810de25b Merge PR #25167 into master
* refs/pull/25167/head:
	mgr: Diskprediction local activate when config changes

Reviewed-by: Sage Weil <sage@redhat.com>
2018-11-20 17:35:16 -06:00
Sage Weil
2ec2c5ef9e Merge PR #24795 into master
* refs/pull/24795/head:
	qa/tasks/ceph: gather crash dumps
2018-11-20 17:34:54 -06:00
Yuri Weinstein
1b9f62513b
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>
2018-11-20 14:01:41 -08:00
Yuri Weinstein
9c873b2a2d
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>
2018-11-20 14:00:57 -08:00
Yuri Weinstein
e682970f35
Merge pull request #19684 from taoCH/wip-librgw-symbolic-link
librgw: support symbolic link

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
2018-11-20 14:00:41 -08:00