]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agomgr/dashboard: Fix growing table in firefox 23711/head
Tiago Melo [Thu, 23 Aug 2018 13:34:25 +0000 (14:34 +0100)]
mgr/dashboard: Fix growing table in firefox

It seems Firefox 52 has some kind of problem when
rendering our table inside a fieldset.

Since we don't really require the fieldset in the monitor page,
I have removed it to "fix" this problem.

Fixes: http://tracker.ceph.com/issues/26999
Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #23689 from tchaikov/wip-run-make-check-more-aio
Kefu Chai [Thu, 23 Aug 2018 02:10:29 +0000 (10:10 +0800)]
Merge pull request #23689 from tchaikov/wip-run-make-check-more-aio

run-make-check: increase fs.aio-max-nr to 1048576

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Liu-Chunmei <chunmei.liu@intel.com>
6 years agoMerge pull request #23675 from tserlin/tserlin-require-fuse
Kefu Chai [Wed, 22 Aug 2018 13:18:21 +0000 (21:18 +0800)]
Merge pull request #23675 from tserlin/tserlin-require-fuse

debian/control: require fuse for ceph-fuse

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23655 from tchaikov/wip-silence-Wsign-compare-warnings
Kefu Chai [Wed, 22 Aug 2018 13:17:19 +0000 (21:17 +0800)]
Merge pull request #23655 from tchaikov/wip-silence-Wsign-compare-warnings

test: silence -Wsign-compare warnings

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agorun-make-check: increase fs.aio-max-nr to 1048576 23689/head
Kefu Chai [Wed, 22 Aug 2018 11:49:57 +0000 (19:49 +0800)]
run-make-check: increase fs.aio-max-nr to 1048576

the solution was suggested by Yingxin Cheng. otherwise we could have
EAGAIN returned by io_setup(2).

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23630 from wjwithagen/wjw-fix-rbd-ggate-kldload
Mykola Golub [Wed, 22 Aug 2018 11:45:07 +0000 (14:45 +0300)]
Merge pull request #23630 from wjwithagen/wjw-fix-rbd-ggate-kldload

test/rbd: rbd_ggate test improvements

Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge pull request #23684 from tchaikov/wip-doc-balancer
Kefu Chai [Wed, 22 Aug 2018 10:50:54 +0000 (18:50 +0800)]
Merge pull request #23684 from tchaikov/wip-doc-balancer

doc/rados/operations: add balancer.rst to TOC

Reviewed-by: John Spray <john.spray@redhat.com>
6 years agodoc/rados/operations: add balancer.rst to TOC 23684/head
Kefu Chai [Wed, 22 Aug 2018 08:06:18 +0000 (16:06 +0800)]
doc/rados/operations: add balancer.rst to TOC

this helps user to find the balancer feature, and
also addresses the FTBFS of doc like

Warning, treated as error:
/home/jenkins-build/build/workspace/ceph-pr-docs/doc/rados/operations/balancer.rst:document
isn't included in any toctree

this doc was moved from doc/mgr/balancer.rst to
doc/rados/operations/balancer.rst in
a78d600e6b368255096d6f0bbee8e53553307118

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23642 from tchaikov/wip-crimson-msgr
Kefu Chai [Wed, 22 Aug 2018 08:00:14 +0000 (16:00 +0800)]
Merge pull request #23642 from tchaikov/wip-crimson-msgr

cmake,crimson/net: add keepalive support, and enable unittest_seastar_messenger in "make check"

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge PR #23635 into master
Patrick Donnelly [Tue, 21 Aug 2018 21:38:54 +0000 (14:38 -0700)]
Merge PR #23635 into master

* refs/pull/23635/head:
mds: use monotonic clock in beacon
mds: simplify beacon init

Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agoMerge pull request #21114 from colletj/colletj_rbd_image_timestamps
Jason Dillaman [Tue, 21 Aug 2018 20:17:37 +0000 (16:17 -0400)]
Merge pull request #21114 from colletj/colletj_rbd_image_timestamps

librbd: add rbd image access/modified timestamps

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: add image access/last modified timestamps
Julien Collet [Tue, 20 Feb 2018 09:14:00 +0000 (10:14 +0100)]
librbd: add image access/last modified timestamps

Add access and modify timestamps and associated tests
to RBD images.

Access (resp. modify) timestamps are updated on
read (resp. write) operations. A configurable throttling
mechanism is implemented (default to 60s).

Signed-off-by: Julien Collet <julien.collet@cern.ch>
6 years agodebian/control: require fuse for ceph-fuse 23675/head
Thomas Serlin [Tue, 21 Aug 2018 19:55:39 +0000 (15:55 -0400)]
debian/control: require fuse for ceph-fuse

This is the Ubuntu equivalent for:

https://github.com/ceph/ceph/pull/17120
http://tracker.ceph.com/issues/21057

Installing "ceph-fuse" should pull in the "fuse" package automatically.

Signed-off-by: Thomas Serlin <tserlin@redhat.com>
6 years agoMerge pull request #23649 from trociny/wip-26939
Jason Dillaman [Tue, 21 Aug 2018 18:38:32 +0000 (14:38 -0400)]
Merge pull request #23649 from trociny/wip-26939

librbd: journaling unable request can not be sent to remote lock owner

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #23311 from Songweibin/wip-fix-du-display
Jason Dillaman [Tue, 21 Aug 2018 18:37:46 +0000 (14:37 -0400)]
Merge pull request #23311 from Songweibin/wip-fix-du-display

tools/rbd: minor fixes for rbd du display

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #23638 from Songweibin/wip-filter-user-snapshots
Jason Dillaman [Tue, 21 Aug 2018 18:37:25 +0000 (14:37 -0400)]
Merge pull request #23638 from Songweibin/wip-filter-user-snapshots

rbd: filter out group/trash snapshots from snap_list

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #23615 from dmick/wip-ceph-mgr-deb
Kefu Chai [Tue, 21 Aug 2018 16:25:24 +0000 (00:25 +0800)]
Merge pull request #23615 from dmick/wip-ceph-mgr-deb

debian/rules: fix ceph-mgr .pyc files left behind

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23606 from ifed01/wip-ifed-stupid-get-fragmentation-fix
Kefu Chai [Tue, 21 Aug 2018 16:22:59 +0000 (00:22 +0800)]
Merge pull request #23606 from ifed01/wip-ifed-stupid-get-fragmentation-fix

os/bluestore: fix assertion in StupidAllocator::get_fragmentation

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23587 from xiexingguo/wip-recover-order
Kefu Chai [Tue, 21 Aug 2018 16:21:30 +0000 (00:21 +0800)]
Merge pull request #23587 from xiexingguo/wip-recover-order

osd/PrimaryLogPG: optimize recover order

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23558 from liewegas/wip-mgr-always-on
Kefu Chai [Tue, 21 Aug 2018 16:18:30 +0000 (00:18 +0800)]
Merge pull request #23558 from liewegas/wip-mgr-always-on

mgr: keep status, balancer always on

6 years agoMerge pull request #23573 from rzarzynski/wip-msg-26937
Kefu Chai [Tue, 21 Aug 2018 16:16:47 +0000 (00:16 +0800)]
Merge pull request #23573 from rzarzynski/wip-msg-26937

msg: entity_addr_t::parse doesn't do memset(this, 0, ...) for clean-up

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23641 from wjwithagen/wjw-fix-pthread_get_name_np
Kefu Chai [Tue, 21 Aug 2018 16:16:09 +0000 (00:16 +0800)]
Merge pull request #23641 from wjwithagen/wjw-fix-pthread_get_name_np

include/compat.h: make pthread_get_name_np work when available

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #23658 into master
Patrick Donnelly [Tue, 21 Aug 2018 15:49:54 +0000 (08:49 -0700)]
Merge PR #23658 into master

* refs/pull/23658/head:
qa: use cephfs standard configs for kclient

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agotest: silence -Wsign-compare warnings 23655/head
Kefu Chai [Mon, 20 Aug 2018 17:27:30 +0000 (01:27 +0800)]
test: silence -Wsign-compare warnings

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23657 from trociny/wip-wsign-compare
Jason Dillaman [Tue, 21 Aug 2018 13:37:23 +0000 (09:37 -0400)]
Merge pull request #23657 from trociny/wip-wsign-compare

test/librbd: fix compiler -Wsign-compare warnings

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #23591 from tchaikov/wip-lockless-auth
Kefu Chai [Tue, 21 Aug 2018 13:33:35 +0000 (21:33 +0800)]
Merge pull request #23591 from tchaikov/wip-lockless-auth

auth,common: add lockless auth

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #23567 from tchaikov/wip-cmake-cleanup
Kefu Chai [Tue, 21 Aug 2018 13:30:46 +0000 (21:30 +0800)]
Merge pull request #23567 from tchaikov/wip-cmake-cleanup

cmake: fix Debug build `WITH_SEASTAR=ON`

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
6 years agoMerge pull request #23631 from cyx1231st/test-seastar-config
Kefu Chai [Tue, 21 Aug 2018 13:08:37 +0000 (21:08 +0800)]
Merge pull request #23631 from cyx1231st/test-seastar-config

crimson/common: apply config changes also on shard.0

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/test: improve test_config with observers 23631/head
Yingxin [Mon, 20 Aug 2018 08:05:46 +0000 (16:05 +0800)]
crimson/test: improve test_config with observers

Signed-off-by: Yingxin <yingxin.cheng@intel.com>
6 years agoMerge pull request #23582 from badone/wip-remove-upstart
Kefu Chai [Tue, 21 Aug 2018 12:17:39 +0000 (20:17 +0800)]
Merge pull request #23582 from badone/wip-remove-upstart

Remove upstart files and references

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agotest/rbd: Improve/update rbd-ggate 23630/head
Willem Jan Withagen [Fri, 17 Aug 2018 14:46:32 +0000 (16:46 +0200)]
test/rbd: Improve/update rbd-ggate

* check if geom_gate can be loaded before doing the actual tests

Otherwise continuing does not make sense.
Major reason for this problem is due to mismatch between
kernel and module versions.

* After FreeBSD kernevel 1200078 ggate resizing is possible

So set the flag that resizing can be tested

* Only sudo commands that really need sudo

rbd-ggate list is available in regular user mode

* be a bit more verbose during testing and list the test purpose

* list-mapped is an option in rbd-nbd, not (yet) in rbd-ggate

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
6 years agocmake: should use lowercase for component name in FindSanitizers.cmake 23567/head
Kefu Chai [Sat, 11 Aug 2018 04:30:31 +0000 (12:30 +0800)]
cmake: should use lowercase for component name in FindSanitizers.cmake

and s/undefined-behavior/undefined_behavior/ to be compatible with
seastar

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agotest/crimson: exercise keepalive also 23642/head
Kefu Chai [Tue, 21 Aug 2018 08:18:24 +0000 (16:18 +0800)]
test/crimson: exercise keepalive also

allow one to pass options to unittest_seastar_messenger for specifying
- verbose
- keepalive-ratio
- rounds

so we can have better coverage of crimson/messenger. and make it less
chatty unless it's asked to do so.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/net: add keepalive support to Connection
Kefu Chai [Sat, 18 Aug 2018 10:04:20 +0000 (18:04 +0800)]
crimson/net: add keepalive support to Connection

* do not mix buffered writes and zero-copy writes.

/root/ceph/src/seastar/include/seastar/core/iostream-impl.hh:114:
seastar::future<> seastar::output_stream::write(seastar::net::packet)
[with CharType = char]: Assertion `!_end && "Mixing buffered writes and
zero-copy writes not supported yet"' failed.
Aborting on shard 0.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocmake: add unittest_seastar_messenger to "make check"
Kefu Chai [Mon, 20 Aug 2018 03:27:15 +0000 (11:27 +0800)]
cmake: add unittest_seastar_messenger to "make check"

as it's relatively stable at the moment. and as suggested by @cyx1231st
.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/net: use HAVE_FEATURE instead
Kefu Chai [Sat, 18 Aug 2018 10:17:51 +0000 (18:17 +0800)]
crimson/net: use HAVE_FEATURE instead

so we can check the marker the bit's incarnation also.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23654 from cbodley/wip-crypto-assert-always
Kefu Chai [Tue, 21 Aug 2018 03:00:50 +0000 (11:00 +0800)]
Merge pull request #23654 from cbodley/wip-crypto-assert-always

crypto: use ceph_assert_always for assertions

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #22668 into master
Patrick Donnelly [Mon, 20 Aug 2018 22:11:45 +0000 (15:11 -0700)]
Merge PR #22668 into master

* refs/pull/22668/head:
mds: reorganize and curate perf log counters
mds: show session load average in dump session
mds: allow request load average decay rate configurable via admin socket
mds: decay counter for tracking request load average
mds: add perf counters to track current open/stale sessions

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #23438 into master
Patrick Donnelly [Mon, 20 Aug 2018 22:11:38 +0000 (15:11 -0700)]
Merge PR #23438 into master

* refs/pull/23438/head:
client: fix choose_target_mds for requests that do name lookup

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #23467 into master
Patrick Donnelly [Mon, 20 Aug 2018 22:11:31 +0000 (15:11 -0700)]
Merge PR #23467 into master

* refs/pull/23467/head:
cephfs-journal-tool: enable purge_queue journal's event commands

Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agoMerge PR #23529 into master
Patrick Donnelly [Mon, 20 Aug 2018 22:11:23 +0000 (15:11 -0700)]
Merge PR #23529 into master

* refs/pull/23529/head:
mon: fix idempotent FS creation

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: João Eduardo Luís <joao@suse.de>
6 years agoMerge PR #23543 into master
Patrick Donnelly [Mon, 20 Aug 2018 22:11:17 +0000 (15:11 -0700)]
Merge PR #23543 into master

* refs/pull/23543/head:
tools/cephfs: make cephfs-data-scan prints the max used ino

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #23584 into master
Patrick Donnelly [Mon, 20 Aug 2018 22:11:10 +0000 (15:11 -0700)]
Merge PR #23584 into master

* refs/pull/23584/head:
mds: don't modify filepath when printing
mds: hold slave request refernce when dumping MDRequestImpl

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #23589 into master
Patrick Donnelly [Mon, 20 Aug 2018 22:11:01 +0000 (15:11 -0700)]
Merge PR #23589 into master

* refs/pull/23589/head:
mds: more description for failed authpin
mds: cleanup CDir freezing/frozen tree check

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agomds: use monotonic clock in beacon 23635/head
Patrick Donnelly [Fri, 17 Aug 2018 04:28:12 +0000 (21:28 -0700)]
mds: use monotonic clock in beacon

Also update other parts of MDS which interact.

Fixes: http://tracker.ceph.com/issues/26959
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoqa: use cephfs standard configs for kclient 23658/head
Patrick Donnelly [Mon, 20 Aug 2018 20:51:35 +0000 (13:51 -0700)]
qa: use cephfs standard configs for kclient

Specifically, qa/cephfs/begin.yaml.

Fixes: http://tracker.ceph.com/issues/26967
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agotest/librbd: fix compiler -Wsign-compare warnings 23657/head
Mykola Golub [Mon, 20 Aug 2018 19:15:03 +0000 (22:15 +0300)]
test/librbd: fix compiler -Wsign-compare warnings

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge pull request #23315 from Devp00l/wip-clean-notification-messages
Lenz Grimmer [Mon, 20 Aug 2018 18:05:35 +0000 (20:05 +0200)]
Merge pull request #23315 from Devp00l/wip-clean-notification-messages

mgr/dashboard: Cleaner notifications

Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #23637 from noahdesu/qa-mgr-mod-path
Noah Watkins [Mon, 20 Aug 2018 17:41:29 +0000 (10:41 -0700)]
Merge pull request #23637 from noahdesu/qa-mgr-mod-path

qa: fix manager module paths

6 years agocrypto: use ceph_assert_always for assertions 23654/head
Casey Bodley [Mon, 20 Aug 2018 15:05:39 +0000 (11:05 -0400)]
crypto: use ceph_assert_always for assertions

use ceph_assert_always() to enforce this comment in ceph_crypto.h:

This assert MUST NOT be compiled out, even on non-debug builds.

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #23639 from trociny/wip-24910
Jason Dillaman [Mon, 20 Aug 2018 13:11:17 +0000 (09:11 -0400)]
Merge pull request #23639 from trociny/wip-24910

librbd: potential race on image create request complete

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #23110 from Songweibin/wip-rbd-snap-rollback
Jason Dillaman [Mon, 20 Aug 2018 12:56:54 +0000 (08:56 -0400)]
Merge pull request #23110 from Songweibin/wip-rbd-snap-rollback

librbd: use object map when doing snap rollback

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: journaling unable request can not be sent to remote lock owner 23649/head
Mykola Golub [Mon, 20 Aug 2018 12:39:30 +0000 (15:39 +0300)]
librbd: journaling unable request can not be sent to remote lock owner

Fixes: http://tracker.ceph.com/issues/26939
Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge pull request #23609 from ErwanAliasr1/evelu-ccache
Erwan Velu [Mon, 20 Aug 2018 09:55:45 +0000 (11:55 +0200)]
Merge pull request #23609 from ErwanAliasr1/evelu-ccache

run-make-check: Showing configuration before the build

6 years agocrimson/common: apply config changes also on shard.0
Yingxin [Fri, 17 Aug 2018 22:07:29 +0000 (06:07 +0800)]
crimson/common: apply config changes also on shard.0

Signed-off-by: Yingxin <yingxin.cheng@intel.com>
6 years agoRemove upstart files and references 23582/head
Brad Hubbard [Wed, 15 Aug 2018 03:52:12 +0000 (13:52 +1000)]
Remove upstart files and references

Nautilus is not supported on any distros still running upstart so these
are redundant.

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
6 years agoMerge pull request #23601 from tchaikov/wip-pybind-freebsd-clang
Kefu Chai [Sun, 19 Aug 2018 15:59:28 +0000 (23:59 +0800)]
Merge pull request #23601 from tchaikov/wip-pybind-freebsd-clang

pybind: do not check MFLAGS

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
6 years agoMerge pull request #23593 from jtlayton/wip-jlayton-26948
Kefu Chai [Sun, 19 Aug 2018 15:10:51 +0000 (23:10 +0800)]
Merge pull request #23593 from jtlayton/wip-jlayton-26948

librados: add a rados_omap_iter_size function

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23588 from gmayyyha/ceph-df-json
Kefu Chai [Sun, 19 Aug 2018 15:10:01 +0000 (23:10 +0800)]
Merge pull request #23588 from gmayyyha/ceph-df-json

mon/PGMap: command 'ceph df -f json' output add total_percent_used

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23563 from yaozongyou/mon-ping-timeout
Kefu Chai [Sun, 19 Aug 2018 15:08:54 +0000 (23:08 +0800)]
Merge pull request #23563 from yaozongyou/mon-ping-timeout

mon/MonClient: use mon_client_ping_timeout during ping_monitor

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #10305 from majianpeng/memdb-perfcounter
Kefu Chai [Sun, 19 Aug 2018 15:08:24 +0000 (23:08 +0800)]
Merge pull request #10305 from majianpeng/memdb-perfcounter

kv/MemDB: add perfcounter.

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23628 from tchaikov/wip-cmake-gtest-cleanup
Kefu Chai [Sun, 19 Aug 2018 14:58:47 +0000 (22:58 +0800)]
Merge pull request #23628 from tchaikov/wip-cmake-gtest-cleanup

cmake: link against gtest in a better way

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
6 years agocore: make pthread_get_name_np work when available 23641/head
Willem Jan Withagen [Sun, 19 Aug 2018 00:47:54 +0000 (02:47 +0200)]
core: make pthread_get_name_np work when available

FreeBSD will have a pthread_get_name_np() in libpthread
Code for that was submitted

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
6 years agocpp-btree: do not #define NDEBUG 23591/head
Kefu Chai [Thu, 16 Aug 2018 08:52:26 +0000 (16:52 +0800)]
cpp-btree: do not #define NDEBUG

use no_debug instead, the NDEBUG macro pollutes all source files
including this header.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agotest/librados: do not use assert() for its side effect
Kefu Chai [Sun, 19 Aug 2018 04:16:24 +0000 (12:16 +0800)]
test/librados: do not use assert() for its side effect

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agolibrbd: potential race on image create request complete 23639/head
Mykola Golub [Sat, 18 Aug 2018 16:24:55 +0000 (19:24 +0300)]
librbd: potential race on image create request complete

Fixes: http://tracker.ceph.com/issues/24910
Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agoqa/tasks/mgr/test_module_selftest: use hello instead of status for disbled command... 23558/head
Sage Weil [Sat, 18 Aug 2018 14:29:00 +0000 (09:29 -0500)]
qa/tasks/mgr/test_module_selftest: use hello instead of status for disbled command test

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agodoc: move mgr/balancer to rados/operations/balancer
Sage Weil [Sat, 18 Aug 2018 14:24:31 +0000 (09:24 -0500)]
doc: move mgr/balancer to rados/operations/balancer

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomgr: keep status, balancer always on
Sage Weil [Mon, 13 Aug 2018 20:39:44 +0000 (15:39 -0500)]
mgr: keep status, balancer always on

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #23616 into master
Sage Weil [Sat, 18 Aug 2018 14:11:48 +0000 (09:11 -0500)]
Merge PR #23616 into master

* refs/pull/23616/head:
doc/releases/schedule: note Jewel EOL date

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #23618 into master
Sage Weil [Sat, 18 Aug 2018 14:10:32 +0000 (09:10 -0500)]
Merge PR #23618 into master

* refs/pull/23618/head:
doc: updated infernalis release reference link
doc: added ref label for infernalis release notes
doc: used reST label for ceph-deploy reference
doc: added reference label for ceph-deploy page
doc: updated cross referencing locations link

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agotest: Fix test to use -gt instead of creating an empty file "0" 23637/head
David Zafman [Sat, 18 Aug 2018 00:25:38 +0000 (17:25 -0700)]
test: Fix test to use -gt instead of creating an empty file "0"

Signed-off-by: David Zafman <dzafman@redhat.com>
6 years agoMerge PR #23636 into master
Patrick Donnelly [Sat, 18 Aug 2018 01:43:58 +0000 (18:43 -0700)]
Merge PR #23636 into master

* refs/pull/23636/head:
messages: fix get_opname return type

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23620 from tchaikov/wip-dpdk-cmake
Kefu Chai [Sat, 18 Aug 2018 01:42:25 +0000 (09:42 +0800)]
Merge pull request #23620 from tchaikov/wip-dpdk-cmake

cmake: add dpdk::dpdk if dpdk is built or found

Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agorbd: fix error processing images which have non-user snapshots 23638/head
songweibin [Sat, 18 Aug 2018 01:05:03 +0000 (09:05 +0800)]
rbd: fix error processing images which have non-user snapshots

Signed-off-by: songweibin <song.weibin@zte.com.cn>
6 years agorbd: fix error purging non-user snapshots
songweibin [Sat, 18 Aug 2018 00:50:24 +0000 (08:50 +0800)]
rbd: fix error purging non-user snapshots

Fixes:
  [root@ ~]# rbd snap rm img1@snap1
  [root@ ~]# rbd snap ls img1 -a
  SNAPID NAME                                 SIZE    TIMESTAMP                NAMESPACE
       4 f2e82bd1-e2ff-4a6b-aaef-5a12a2b23a30 100 MiB Sat Aug 18 08:48:34 2018 trash (snap1)
  [root@ ~]# rbd snap purge img1
  Removing all snapshots: 0% complete...failed.
  rbd: removing snaps failed: (2) No such file or directory

Signed-off-by: songweibin <song.weibin@zte.com.cn>
6 years agoqa/ceph_objectstore_tool.py: set mgr module path
Noah Watkins [Fri, 17 Aug 2018 22:24:10 +0000 (15:24 -0700)]
qa/ceph_objectstore_tool.py: set mgr module path

Signed-off-by: Noah Watkins <nwatkins@redhat.com>
6 years agoqa/standalone/ceph-helpers.sh: fix mgr module path
Noah Watkins [Fri, 17 Aug 2018 22:21:57 +0000 (15:21 -0700)]
qa/standalone/ceph-helpers.sh: fix mgr module path

callers of get_python_path were not passing in a $1 parameter, so
ceph_lib was an empty string resulting in an invalid path to the built
cython modules. assume this is called from the `lib` parent directory.

pass path to the manager modules when starting ceph-mgr.

Signed-off-by: Noah Watkins <nwatkins@redhat.com>
6 years agomessages: fix get_opname return type 23636/head
Patrick Donnelly [Fri, 17 Aug 2018 21:13:56 +0000 (14:13 -0700)]
messages: fix get_opname return type

It cannot be a constexpr.

Introduce-by: 00b867fae2e8e912119fc47348dee78631c6f66b / #23623
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #23574 from cbodley/wip-26895
Casey Bodley [Fri, 17 Aug 2018 20:52:18 +0000 (16:52 -0400)]
Merge pull request #23574 from cbodley/wip-26895

rgw multisite: bucket sync transitions back to StateInit on OP_SYNCSTOP

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agoMerge PR #23575 into master
Patrick Donnelly [Fri, 17 Aug 2018 19:04:42 +0000 (12:04 -0700)]
Merge PR #23575 into master

* refs/pull/23575/head:
tools/cephfs-shell:pep8 code clean
tools/cephfs-shell:resolved removing files using pattern inside sub-directories
tools/cephfs-shell:changed output representation for the commands cwd and ls
tools/cephfs-shell:resolved removing directories using pattern inside sub-directories

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #18096 into master
Sage Weil [Fri, 17 Aug 2018 18:56:22 +0000 (13:56 -0500)]
Merge PR #18096 into master

* refs/pull/18096/head:
os/bluestore: factor VDO into bluestore's 'allocated' value
os/filestore: estimate omap_allocated
os/ObjectMap: add get_db() accessor
osd/OSDMap: include data, omap in 'osd df' output
os/bluestore: report omap and internal metadata usage
os/bluestore/BlueFS: drop get_fs_usage(); add get_used()
kv: add per-prefix space estimation
osd: decouple statfs update from hb peers, pg count
osd: drop useless OSDService::update_osd_stat()
osd/osd_types: separate accounting for data, omap, and metadata
osd: re-add get_num_pgs()

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
6 years agotools/cephfs-shell:pep8 code clean 23575/head
Pavani Rajula [Tue, 14 Aug 2018 18:43:45 +0000 (00:13 +0530)]
tools/cephfs-shell:pep8 code clean

Signed-off-by: Pavani Rajula <rpavani1998@gmail.com>
6 years agotools/cephfs-shell:resolved removing files using pattern inside sub-directories
Pavani Rajula [Tue, 14 Aug 2018 18:27:54 +0000 (23:57 +0530)]
tools/cephfs-shell:resolved removing files using pattern inside sub-directories

Signed-off-by: Pavani Rajula <rpavani1998@gmail.com>
6 years agotools/cephfs-shell:changed output representation for the commands cwd and ls
Pavani Rajula [Tue, 14 Aug 2018 18:26:53 +0000 (23:56 +0530)]
tools/cephfs-shell:changed output representation for the commands cwd and ls

Signed-off-by: Pavani Rajula <rpavani1998@gmail.com>
6 years agotools/cephfs-shell:resolved removing directories using pattern inside sub-directories
Pavani Rajula [Tue, 14 Aug 2018 18:24:02 +0000 (23:54 +0530)]
tools/cephfs-shell:resolved removing directories using pattern inside sub-directories

Signed-off-by: Pavani Rajula <rpavani1998@gmail.com>
6 years agomds: simplify beacon init
Patrick Donnelly [Fri, 17 Aug 2018 04:26:41 +0000 (21:26 -0700)]
mds: simplify beacon init

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #23623 from tchaikov/wip-inline-constants
Kefu Chai [Fri, 17 Aug 2018 15:07:04 +0000 (23:07 +0800)]
Merge pull request #23623 from tchaikov/wip-inline-constants

messages: define HEAD_VERSION and COMPAT_VERSION inlined

Reviewed-by: Zheng Yan <zyan@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
6 years agomessages: define HEAD_VERSION and COMPAT_VERSION inlined 23623/head
Kefu Chai [Fri, 17 Aug 2018 09:14:28 +0000 (17:14 +0800)]
messages: define HEAD_VERSION and COMPAT_VERSION inlined

otherwise we could have ../lib/libceph-common.so.0: undefined reference
to `MOSDPGNotify::HEAD_VERSION

when the compiler tries to be smart and pass them by reference.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23419 from tspmelo/fix-26856
Lenz Grimmer [Fri, 17 Aug 2018 09:08:05 +0000 (11:08 +0200)]
Merge pull request #23419 from tspmelo/fix-26856

mgr/dashboard: Add decorator to skip parameter encoding

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agoMerge pull request #23446 from tspmelo/wip-25075
Lenz Grimmer [Fri, 17 Aug 2018 09:07:48 +0000 (11:07 +0200)]
Merge pull request #23446 from tspmelo/wip-25075

mgr/dashboard: Use human readable units on the sparkline graphs

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agoMerge pull request #23388 from ricardoasmarques/wip-fix-auto-logout
Lenz Grimmer [Fri, 17 Aug 2018 09:04:31 +0000 (11:04 +0200)]
Merge pull request #23388 from ricardoasmarques/wip-fix-auto-logout

mgr/dashboard: Fix redirect to login page on session lost

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agorun-make-check: Showing configuration before the build 23609/head
Erwan Velu [Thu, 16 Aug 2018 15:08:16 +0000 (17:08 +0200)]
run-make-check: Showing configuration before the build

The actual code is resetting the statistics before doing the actual compilation and prints them after the build.

That is nice to understand how much the cache was used but doesn't help understanding how much it _could_ have been used.

This patch is adding a reporting (-s) when cleaning the statistics so we can estimate :
- the actual number of files in cache
- the actual size of the cache

With this two missing information, its now possible estimate if there is some miss-usage of the cache.

Signed-off-by: Erwan Velu <erwan@redhat.com>
6 years agocmake: link against gtest in a better way 23628/head
Kefu Chai [Tue, 14 Aug 2018 08:11:13 +0000 (16:11 +0800)]
cmake: link against gtest in a better way

* add FindGMock.cmake which allows user to use the libgtest-dev
  shipped by distro
* add GMock::{GMock,Main}, GTest::{GTest,Main} targets to be
  compatible with FindGTest.cmake and FindGMock.cmake, which
  expose the built libraries with properties adhered to
  them. so the consumer of them can import them in a better way.
* update tests to drop the commands like
  set_target_properties(foo PROPERTIES COMPILE_FLAGS ${UNITTEST_CXX_FLAGS}),
  as they are already linked against gmock and gtest.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocmake: fix Finddpdk.cmake 23620/head
Kefu Chai [Fri, 17 Aug 2018 04:27:49 +0000 (12:27 +0800)]
cmake: fix Finddpdk.cmake

* add dpdk::dpdk if dpdk is built or found, as seastar checks for
  it before adding its component libraries. if user installs libdpdk
  and builds WITH_SEASTAR=ON or WITH_DPDK=ON, cmake fails to configure
  the building system without this fix.
* add dpdk::cflags target for populating the -march=<arch> compile
  option.
* also use pkg-config for finding dpdk.
* link common_async_dpdk against dpdk::dpdk instead

please note, the reason why we can remove the "-march=native" compile
option from Finddpdk.cmake, is that the distro shipped header files
are "generic" in the sense of "-march=<ARCH>", they do not enable
the arch specific intrinsic by default, hence the source files
including them do not need specific compiler options.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocmake: do not build DPDK with -march=native
Nathan Cutler [Thu, 2 Aug 2018 18:15:15 +0000 (20:15 +0200)]
cmake: do not build DPDK with -march=native

-march=native causes gcc to use opcodes according to whichever CPU happens to
be installed in the build host, which can be different for every build. This
makes it impossible to achieve a reproducible build.

Also, if the build host has a very new CPU, running the resulting binaries on
older CPUs (of the same family, i.e. x86_64) could result in segmentation
fault.

References: http://tracker.ceph.com/issues/24948
Signed-off-by: Nathan Cutler <ncutler@suse.com>
6 years agocmake: honour CMAKE_REQUIRED_LIBRARIES in CheckIncludeFiles
Kefu Chai [Fri, 17 Aug 2018 03:15:37 +0000 (11:15 +0800)]
cmake: honour CMAKE_REQUIRED_LIBRARIES in CheckIncludeFiles

to silence cmake warning regarding to CMP0075

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agodoc: updated infernalis release reference link 23618/head
James McClune [Fri, 17 Aug 2018 02:37:54 +0000 (22:37 -0400)]
doc: updated infernalis release reference link

Updated Infernalis reference link with reST label.

Signed-off-by: James McClune <jmcclune@mcclunetechnologies.net>
6 years agodoc: added ref label for infernalis release notes
James McClune [Fri, 17 Aug 2018 02:30:52 +0000 (22:30 -0400)]
doc: added ref label for infernalis release notes

Added reference label for Infernalis release notes.

Signed-off-by: James McClune <jmcclune@mcclunetechnologies.net>
6 years agodoc: used reST label for ceph-deploy reference
James McClune [Fri, 17 Aug 2018 02:17:47 +0000 (22:17 -0400)]
doc: used reST label for ceph-deploy reference

Updated ceph-deploy man page link with ref label. Fixes
404 error.

Signed-off-by: James McClune <jmcclune@mcclunetechnologies.net>