]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agomgr/dashboard: Add support for managing individual OSD settings (backend) 23491/head
Patrick Nawracay [Thu, 2 Aug 2018 14:51:36 +0000 (16:51 +0200)]
mgr/dashboard: Add support for managing individual OSD settings (backend)

Add options to mark OSDs in/out/down/reweight/lost/remove/destroy/create

Fixes: http://tracker.ceph.com/issues/24270
Signed-off-by: Patrick Nawracay <pnawracay@suse.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 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 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 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 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 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 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 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>
6 years agodoc: added reference label for ceph-deploy page
James McClune [Fri, 17 Aug 2018 02:05:20 +0000 (22:05 -0400)]
doc: added reference label for ceph-deploy page

Added reST label for ceph-deploy page.

Signed-off-by: James McClune <jmcclune@mcclunetechnologies.net>
6 years agodoc: updated cross referencing locations link
James McClune [Fri, 17 Aug 2018 01:58:34 +0000 (21:58 -0400)]
doc: updated cross referencing locations link

Updated cross referencing locations link for doc/start/documenting-ceph.rst

Signed-off-by: James McClune <jmcclune@mcclunetechnologies.net>
6 years agomds: don't modify filepath when printing 23584/head
Yan, Zheng [Wed, 15 Aug 2018 02:47:08 +0000 (10:47 +0800)]
mds: don't modify filepath when printing

filepath::depth() may call parse_bits(), which modifies mutable member
'bits'. dump_ops_in_flight asok command prints filepath without holding
mds_lock. So multiple threads may call parse_bits() at the same time.

Fixes: http://tracker.ceph.com/issues/26894
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
6 years agomds: hold slave request refernce when dumping MDRequestImpl
Yan, Zheng [Wed, 15 Aug 2018 07:14:03 +0000 (15:14 +0800)]
mds: hold slave request refernce when dumping MDRequestImpl

dump_ops_in_flight asok command dumps MDRequestImpl without holding
mds_lock. MDS may free MDRequestImpl::slave_request in the middle of
dumping MDRequestImpl.

Fixes: http://tracker.ceph.com/issues/26894
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
6 years agoMerge PR #23468 into master
Patrick Donnelly [Thu, 16 Aug 2018 23:34:23 +0000 (16:34 -0700)]
Merge PR #23468 into master

* refs/pull/23468/head:
Allow to unittest shell using transcript

6 years agoMerge PR #22555 into master
Patrick Donnelly [Thu, 16 Aug 2018 23:17:42 +0000 (16:17 -0700)]
Merge PR #22555 into master

* refs/pull/22555/head:
msg: define MFoo::create helper
msg: add msgref cast method
msg: cleanup factory/ref definition in messages
mds: use message factory to avoid leaks
msg: add factory method to correctly construct smart_ptr
mds: remove dead MDS-MDS forwarding code
mds: manage Message lifetime with intrusive_ptr
common: add templated Context factory
msg: add const version of get_payload
msg: use queue of messages for dispatch
msg: dispatch intrusive_ptr Messages
msg: use deque for dispatcher pointers

Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agodoc/releases/schedule: note Jewel EOL date 23616/head
Nathan Cutler [Thu, 16 Aug 2018 21:32:06 +0000 (23:32 +0200)]
doc/releases/schedule: note Jewel EOL date

Signed-off-by: Nathan Cutler <ncutler@suse.com>
6 years agoMerge PR #23551 into master
Patrick Donnelly [Thu, 16 Aug 2018 16:57:27 +0000 (09:57 -0700)]
Merge PR #23551 into master

* refs/pull/23551/head:
qa: use recent kernel to kernel build testing

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23608 from tchaikov/wip-librbd-test
Jason Dillaman [Thu, 16 Aug 2018 16:43:04 +0000 (12:43 -0400)]
Merge pull request #23608 from tchaikov/wip-librbd-test

test/librbd: fix -Wsign-compare warnings

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoqa: use recent kernel to kernel build testing 23551/head
Patrick Donnelly [Tue, 7 Aug 2018 01:33:40 +0000 (18:33 -0700)]
qa: use recent kernel to kernel build testing

Fixes: http://tracker.ceph.com/issues/24679
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #23597 into master
Patrick Donnelly [Thu, 16 Aug 2018 16:14:11 +0000 (09:14 -0700)]
Merge PR #23597 into master

* refs/pull/23597/head:
qa: add cephfs-shell skeleton test case

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoqa: add cephfs-shell skeleton test case 23597/head
Patrick Donnelly [Wed, 15 Aug 2018 19:33:33 +0000 (12:33 -0700)]
qa: add cephfs-shell skeleton test case

Right now just tests that "help" works.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #21286 from joke-lee/wip-auth-uri-encode-decode
Matt Benjamin [Thu, 16 Aug 2018 15:58:14 +0000 (11:58 -0400)]
Merge pull request #21286 from joke-lee/wip-auth-uri-encode-decode

rgw:  should recode  canonical_uri when caculate s3 v4 auth

6 years agoMerge pull request #23533 from wjwithagen/wjw-fix-random_shuffle
Yuri Weinstein [Thu, 16 Aug 2018 15:09:21 +0000 (08:09 -0700)]
Merge pull request #23533 from wjwithagen/wjw-fix-random_shuffle

osd: make random shuffle comply with C++17

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoMerge pull request #23547 from yaozongyou/mon-get-rank
Yuri Weinstein [Thu, 16 Aug 2018 15:06:16 +0000 (08:06 -0700)]
Merge pull request #23547 from yaozongyou/mon-get-rank

mon/MonMap: remove duplicate code in get_rank

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Joao Eduardo Luis <joao@suse.de>
6 years agotest/librbd: fix -Wsign-compare warnings 23608/head
Kefu Chai [Thu, 16 Aug 2018 14:52:47 +0000 (22:52 +0800)]
test/librbd: fix -Wsign-compare warnings

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agomgr/dashboard: Rename to taskMessageService 23315/head
Stephan Müller [Wed, 8 Aug 2018 11:19:27 +0000 (13:19 +0200)]
mgr/dashboard: Rename to taskMessageService

Renames taskManagerMessageService to taskMessageService.

Signed-off-by: Stephan Müller <smueller@suse.com>
6 years agomgr/dashboard: Add decorator to skip parameter encoding 23419/head
Tiago Melo [Fri, 3 Aug 2018 16:58:21 +0000 (17:58 +0100)]
mgr/dashboard: Add decorator to skip parameter encoding

By enconding all parameters of api services we were also encoding parameters
that were being sent in the body of the request.
Those parameters don't need to be enconded and the server never decodes them.

With this new decorator you can specify if you don't want a parameter to be
enconded.

This is a regression introduced in f21d0da5a3e19e3f9bbde084e71b4a09f8dcb0a1.

Fixes: http://tracker.ceph.com/issues/26856
Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agomgr/dashboard: Cleaner notifications
Stephan Müller [Fri, 27 Jul 2018 09:34:51 +0000 (11:34 +0200)]
mgr/dashboard: Cleaner notifications

Now background tasks and recent notifications won't differ in their
wording anymore and all notifications have the same style.

Fixes: https://tracker.ceph.com/issues/24460
Signed-off-by: Stephan Müller <smueller@suse.com>
6 years agomgr/dashboard: Use human readable units on the sparkline graphs 23446/head
Tiago Melo [Mon, 6 Aug 2018 10:32:02 +0000 (11:32 +0100)]
mgr/dashboard: Use human readable units on the sparkline graphs

Fixes: http://tracker.ceph.com/issues/25075
Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #23445 from ricardoasmarques/wip-rbd-actions-disable
Lenz Grimmer [Thu, 16 Aug 2018 13:55:11 +0000 (15:55 +0200)]
Merge pull request #23445 from ricardoasmarques/wip-rbd-actions-disable

mgr/dashboard: Disable RBD actions during task execution

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 #23485 from javacruft/misc-32bit-fixes
Kefu Chai [Thu, 16 Aug 2018 12:57:59 +0000 (20:57 +0800)]
Merge pull request #23485 from javacruft/misc-32bit-fixes

build: 32 bit architecture fixes

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23581 from JiYou/fix.examples.Makefile
Kefu Chai [Thu, 16 Aug 2018 12:17:13 +0000 (20:17 +0800)]
Merge pull request #23581 from JiYou/fix.examples.Makefile

examples/Makefile: add -Wno-unused-parameter to avoid compile error

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoAllow to unittest shell using transcript 23468/head
Pavani Rajula [Thu, 16 Aug 2018 06:04:04 +0000 (11:34 +0530)]
Allow to unittest shell using transcript

Signed-off-by: Pavani Rajula <rpavani1998@gmail.com>
6 years agoMerge pull request #23600 from wjwithagen/wjw-fix-freebsd-manual
Kefu Chai [Thu, 16 Aug 2018 10:13:33 +0000 (18:13 +0800)]
Merge pull request #23600 from wjwithagen/wjw-fix-freebsd-manual

doc: fix/cleanup freebsd osd disk creation

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agopybind: do not check MFLAGS 23601/head
Kefu Chai [Thu, 16 Aug 2018 09:25:04 +0000 (17:25 +0800)]
pybind: do not check MFLAGS

clang does not check for directories passed by -iquote/path/to/foo.h, if
a header is included using `#include <foo.h>`

it complains:

/home/kefu/ceph/src/pybind/rados/tmpwzjOsS/rados_dummy.c:2:10: error:
'rados/librados.h' file not found with <angled> include; use "quotes"
instead
         ^~~~~~~~~~~~~~~~~~
         "rados/librados.h"
1 error generated.

and MFLAGS does not exist in the env variables of setup.py launched by
the top-level make.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agodoc: fix/cleanup osd disk creation 23600/head
Willem Jan Withagen [Thu, 16 Aug 2018 09:12:36 +0000 (11:12 +0200)]
doc: fix/cleanup osd disk creation

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
6 years agomsg: define MFoo::create helper 22555/head
Yan, Zheng [Thu, 16 Aug 2018 08:14:40 +0000 (16:14 +0800)]
msg: define MFoo::create helper

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
6 years agomds: reorganize and curate perf log counters 22668/head
Venky Shankar [Fri, 22 Jun 2018 05:43:37 +0000 (01:43 -0400)]
mds: reorganize and curate perf log counters

Categorize perf counters into high (PRIO_{CRITICAL/INTERESTING}),
medium (PRIO_USEFUL) and low priority (PRIO_DEBUGONLY). High and
medium priority stats are transmitted to ceph mgr and included in
prometheus output.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
Fixes: http://tracker.ceph.com/issues/24004
6 years agomds: show session load average in dump session
Venky Shankar [Wed, 4 Jul 2018 09:44:57 +0000 (05:44 -0400)]
mds: show session load average in dump session

Signed-off-by: Venky Shankar <vshankar@redhat.com>
6 years agomds: allow request load average decay rate configurable via admin socket
Venky Shankar [Tue, 3 Jul 2018 12:06:39 +0000 (08:06 -0400)]
mds: allow request load average decay rate configurable via admin socket

Signed-off-by: Venky Shankar <vshankar@redhat.com>
6 years agomds: decay counter for tracking request load average
Venky Shankar [Tue, 3 Jul 2018 12:04:56 +0000 (08:04 -0400)]
mds: decay counter for tracking request load average

Signed-off-by: Venky Shankar <vshankar@redhat.com>
6 years agomds: add perf counters to track current open/stale sessions
Venky Shankar [Wed, 27 Jun 2018 08:05:49 +0000 (04:05 -0400)]
mds: add perf counters to track current open/stale sessions

Signed-off-by: Venky Shankar <vshankar@redhat.com>
6 years agoexamples/Makefile: add -Wno-unused-parameter to avoid compile error 23581/head
Ji You [Wed, 15 Aug 2018 06:33:37 +0000 (23:33 -0700)]
examples/Makefile: add -Wno-unused-parameter to avoid compile error

Signed-off-by: You Ji <youji@ebay.com>
6 years agoos/bluestore: factor VDO into bluestore's 'allocated' value 18096/head
Sage Weil [Tue, 10 Apr 2018 18:00:42 +0000 (13:00 -0500)]
os/bluestore: factor VDO into bluestore's 'allocated' value

If we are on VDO, report the *raw* storage we've allocated, as reported
by VDO.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoos/filestore: estimate omap_allocated
Sage Weil [Mon, 9 Apr 2018 19:58:03 +0000 (14:58 -0500)]
os/filestore: estimate omap_allocated

Assume all of leveldb/rocksdb is omap.  This is an overestimate, but
better than nothing.

We don't populate the metadata overhead (no easy way to calculate this
that comes to mind).  And we don't populate the compression-related
fields.  It's possible we could make something up here in the VDO
case...

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoos/ObjectMap: add get_db() accessor
Sage Weil [Tue, 10 Apr 2018 17:55:55 +0000 (12:55 -0500)]
os/ObjectMap: add get_db() accessor

This is just to let us get at the underlying KeyValueDB for DBObjectMap.
It is not really better or worse than adding accessors for things like
GetEstimatedSize() to ObjectMap.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosd/OSDMap: include data, omap in 'osd df' output
Sage Weil [Tue, 3 Oct 2017 13:21:15 +0000 (08:21 -0500)]
osd/OSDMap: include data, omap in 'osd df' output

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoos/bluestore: report omap and internal metadata usage
Sage Weil [Tue, 3 Oct 2017 03:28:13 +0000 (22:28 -0500)]
os/bluestore: report omap and internal metadata usage

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoos/bluestore/BlueFS: drop get_fs_usage(); add get_used()
Sage Weil [Tue, 3 Oct 2017 03:22:16 +0000 (22:22 -0500)]
os/bluestore/BlueFS: drop get_fs_usage(); add get_used()

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agokv: add per-prefix space estimation
Sage Weil [Tue, 3 Oct 2017 03:17:54 +0000 (22:17 -0500)]
kv: add per-prefix space estimation

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosd: decouple statfs update from hb peers, pg count
Sage Weil [Tue, 3 Oct 2017 02:35:48 +0000 (21:35 -0500)]
osd: decouple statfs update from hb peers, pg count

These don't need to be updated in synchrony.  (In fact, the statfs update
could be much more infrequent.)

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosd: drop useless OSDService::update_osd_stat()
Sage Weil [Tue, 3 Oct 2017 02:32:01 +0000 (21:32 -0500)]
osd: drop useless OSDService::update_osd_stat()

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosd/osd_types: separate accounting for data, omap, and metadata
Sage Weil [Tue, 3 Oct 2017 02:27:58 +0000 (21:27 -0500)]
osd/osd_types: separate accounting for data, omap, and metadata

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosd: re-add get_num_pgs()
Sage Weil [Mon, 9 Apr 2018 16:39:25 +0000 (11:39 -0500)]
osd: re-add get_num_pgs()

We removed this but it's a useful accessor.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomsg: add msgref cast method
Patrick Donnelly [Tue, 14 Aug 2018 20:00:38 +0000 (13:00 -0700)]
msg: add msgref cast method

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agomsg: cleanup factory/ref definition in messages
Patrick Donnelly [Tue, 31 Jul 2018 20:59:52 +0000 (13:59 -0700)]
msg: cleanup factory/ref definition in messages

This eliminates duplicate code definitions.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agomds: use message factory to avoid leaks
Patrick Donnelly [Mon, 30 Jul 2018 17:23:28 +0000 (10:23 -0700)]
mds: use message factory to avoid leaks

Fixes: http://tracker.ceph.com/issues/24306
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agomsg: add factory method to correctly construct smart_ptr
Patrick Donnelly [Mon, 30 Jul 2018 17:03:23 +0000 (10:03 -0700)]
msg: add factory method to correctly construct smart_ptr

This is to avoid easy leaks of the form:

    boost::intrusive_ptr(new M*(...));

where a ref is leaked because constructing the intrusive_ptr adds a ref.

It is expected that eventually all constructors move to protected/private so
that the message's factory is the only way to build a new message (safely).

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agomds: remove dead MDS-MDS forwarding code
Patrick Donnelly [Sun, 29 Jul 2018 01:21:34 +0000 (18:21 -0700)]
mds: remove dead MDS-MDS forwarding code

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>