Commit Graph

88970 Commits

Author SHA1 Message Date
Alfredo Deza
f965f9db22 doc/ceph-volume decument batch reporting and bluestore support
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-08-06 08:25:53 -04:00
Laura Paduano
d5e52b1f14
Merge pull request #23316 from votdev/bug_25090
mgr/dashboard: Datatable error panel blinking on page loading

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
2018-08-06 13:15:34 +02:00
Kefu Chai
01f18efc3f Revert "rocksdb: pickup change to link against libsnappy.a"
This reverts commit 125b5da096.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-08-06 18:30:38 +08:00
Kefu Chai
4b09b2fbc4 cmake,make-dist: revert "build gperftools if WITH_STATIC_LIBSTDCXX"
as the higher version of libstdc++ is backward compatible with the lower
ones. so there is no need to statically link against C++ libraries. they
can always use the libstdc++ ships with the distro.

This reverts commit a6c73b6ac1

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-08-06 18:30:38 +08:00
Sebastian Wagner
ba363a5cb7
Merge pull request #22735 from votdev/bug_24677
mgr/dashboard: RGW proxy can't handle self-signed SSL certificates

Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
2018-08-06 11:06:24 +02:00
Tiago Melo
6953c561e4 mgr/dashboard: Escape regex pattern in DeletionModalComponent
Fixes: http://tracker.ceph.com/issues/24902

Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-08-06 09:57:18 +01:00
Kefu Chai
c32c6e286b cmake: cleanup snappy related script
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-08-06 15:46:07 +08:00
Kefu Chai
2063056f3a debian: strip "-Wl,-Bsymbolic-functions" from LDFLAGS
Fixes: http://tracker.ceph.com/issues/25209
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-08-06 15:46:07 +08:00
Yan, Zheng
2ca5708df6 mds: consider max age of dispatch queue when finding stale client
session renew messages from clients can be in the dispatch queue,
waiting for getting dispatched.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
2018-08-06 11:31:55 +08:00
Yan, Zheng
5a6a9a3fda mds: reset heartbeat map at potential time-consuming places
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Fixes: http://tracker.ceph.com/issues/26858
2018-08-06 11:31:26 +08:00
Jos Collin
16922bea46
Merge pull request #23310 from joscollin/wip-fix-rbd-doc-urls
doc: fix the broken urls

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
2018-08-06 07:10:49 +05:30
Patrick Donnelly
8c35b3b761
client: fix compile warning
/home/pdonnell/ceph/src/client/fuse_ll.cc: In member function ‘int CephFuse::Handle::init(int, const char**)’:
	/home/pdonnell/ceph/src/client/fuse_ll.cc:1126:59: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘Option::size_t’ [-Wformat=]
     	sprintf(strsplice, "max_write=%" PRIu64, fuse_max_write);

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-05 13:31:58 -07:00
Kefu Chai
637bb23580
Merge pull request #23424 from tchaikov/wip-fix-FTBFS-clang
osd: make OSD::HEARTBEAT_MAX_CONN inline

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
2018-08-05 22:35:59 +08:00
Sage Weil
efd9de4983 mon/OSDMonitor: remove ambiguous type case for 'osd pool set' value
This was there for compatibility with very old monitors.  Modern mons are
always taking a JSON string (which may in turn contain a string, int, or
float).

Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-04 21:55:07 -05:00
Sage Weil
bd565bca3f mon: use throwing variant of cmd_getval
This ensure we uniformly return EINVAL when the input JSON has a bad
value type.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-04 21:55:07 -05:00
Sage Weil
5945b5500e common/cmdparse: add cmd_getval_throws variants that throw bad_cmd_get
If input is bad (not missing).

Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-04 21:54:24 -05:00
Sage Weil
b684f02c72 mon: catch bad_cmd_exception and reply EINVAL
If we get bad input we should always reply EINVAL.  Note that bad_cmd_get
will be reserved for invalid input, not missing/optional input, like
passing a float when an int is expected.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-04 21:54:24 -05:00
Sage Weil
fecb9021c1 common/cmdparse: add bad_cmd_get exception
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-04 21:54:24 -05:00
Kefu Chai
f83db6e49e
Merge pull request #23423 from ctriple/master
doc/start: fix kube-helm.rst typo: docuiment -> document

Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-08-04 23:22:09 +08:00
Kefu Chai
aa956b2de7 osd: make OSD::HEARTBEAT_MAX_CONN inline
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-08-04 22:24:13 +08:00
Zhou Peng
b9c711efc9 doc/start: fix kube-helm.rst typo: docuiment -> document
Signed-off-by: Zhou Peng <p@ctriple.cn>
2018-08-04 20:47:57 +08:00
Xuehan Xu
8ebfa93982 cephfs-journal-tool: enable purge_queue journal's event commands
Resolves: http://tracker.ceph.com/issues/24604
Signed-off-by: Xuehan Xu <xuxuehan@360.cn>
2018-08-04 09:58:28 +08:00
Kefu Chai
da7602be50
Merge pull request #23411 from tchaikov/wip-install-py3-for-qa-cephfs
qa: install python3-cephfs for fs suite

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-04 08:05:31 +08:00
Sage Weil
2b4238e23f Merge PR #23185 into master
* refs/pull/23185/head:
	doc: Create pull_request_template.md

Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-08-03 14:13:44 -05:00
Patrick Donnelly
4c1c4810cf
Merge PR #23417 into master
* refs/pull/23417/head:
	pybind: remove execution permission bits of cephfs.pyx

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-03 09:44:37 -07:00
Kefu Chai
aab35ed55e pybind: remove execution permission bits of cephfs.pyx
they were added in c2a671a4b6

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-08-04 00:32:34 +08:00
Patrick Donnelly
c2a671a4b6
Merge PR #23158 into master
This is a milestone in the CephFS shell project. QA testing is still in the
works and will be merged separately. Installation code via CMake will also be
written in another PR.

* refs/pull/23158/head:
	doc: add cephfs-shell to cephfs doc index
	cephfs-shell: add new CephFS shell

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-03 09:22:34 -07:00
Patrick Donnelly
05eac20821
doc: add cephfs-shell to cephfs doc index
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-03 09:20:45 -07:00
Pavani Rajula
a4a96a4aa9
cephfs-shell: add new CephFS shell
The CephFS shell is an alternative client to access CephFS without mounting in
the usual way. The shell provides commands to interactively access the file
system, like put, ls, chmod, etc.

Fixes: http://tracker.ceph.com/issues/24286
Signed-off-by: Pavani Rajula <rpavani1998@gmail.com>
2018-08-03 09:17:28 -07:00
Sage Weil
52f9b3cb70 Merge PR #23307 into master
* refs/pull/23307/head:
	osd/OSD: fix HeartbeatInfo.is_healthy() check
	osd/OSD: use first_tx to calculate failed_for
	osd: refactor heartbeat health check

Reviewed-by: Sage Weil <sage@redhat.com>
2018-08-03 10:56:40 -05:00
Sage Weil
dd475adea1 Merge PR #22717 into master
* refs/pull/22717/head:
	mgr/DaemonServer: osd purge: accept --yes-i-really-mean-it too
	mon,mgr: guard 'osd purge' with safe-to-destroy check
	mon/MonCommands: hide 'osd destroy-actual'
	mon/MonCommands: add HIDDEN flag
	mon,mgr: guard 'osd destroy' with 'osd safe-to-destroy' check
	mon/MonCommand: deprecate 'osd rm'
	mon/OSDMonitor: point users at 'ceph osd safe-to-destroy' for purge|destroy

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2018-08-03 10:56:36 -05:00
Sage Weil
7c87d8d11f Merge PR #23339 into master
* refs/pull/23339/head:
	Revert "mgr/pybind: expose erasure code profiles"

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-08-03 10:56:31 -05:00
Volker Theile
8ed0e78ac6 mgr/dashboard: Datatable error panel blinking on page loading
Fixes https://tracker.ceph.com/issues/25090

Signed-off-by: Volker Theile <vtheile@suse.com>
2018-08-03 16:16:18 +02:00
Kefu Chai
9da93644c8
Merge pull request #23390 from tchaikov/wip-cmake-fmt-4.x
cmake: do not use Findfmt.cmake for checking libfmt-dev

Reviewed-by: Nathan Cutler <ncutler@suse.com>
2018-08-03 21:05:03 +08:00
Kefu Chai
0297369b99
Merge pull request #23352 from jcsp/wip-25197
mgrc: enable disabling stats via mgr_stats_threshold

Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-08-03 21:01:07 +08:00
Kefu Chai
4e263d187c
Merge pull request #23326 from tchaikov/wip-gnu-cold-attr
common/assert: mark assert helpers with [[gnu::cold]]

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
2018-08-03 20:59:28 +08:00
Kefu Chai
fe42027691
Merge pull request #23320 from tchaikov/wip-cmake-viva-les-local-symbols
cmake: always prefer local symbols

Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2018-08-03 20:57:07 +08:00
Kefu Chai
3a75264e99
Merge pull request #23330 from jcsp/wip-cli-eperm
ceph.in: friendlier message on EPERM

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-03 20:54:41 +08:00
Kefu Chai
6dbbb4e522 mgr: silence -Wunused-lambda-capture warning
ceph/src/mgr/DaemonServer.cc:1772:17: warning: lambda capture 'host' is
not used [-Wunused-lambda-capture]
          devid, [&f, &host] (const DeviceState& dev) {
                       ^

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-08-03 20:41:03 +08:00
Kefu Chai
71c7f6a950 tools/rados: silence clang++ warning
ceph/src/tools/rados/rados.cc:1951:47: warning: moving a temporary
object prevents copy elision [-Wpessimizing-move]
  boost::optional<pg_t> pgid(i != opts.end(), std::move(pg_t()));
                                              ^
ceph/src/tools/rados/rados.cc:1951:47: note: remove std::move
call here
  boost::optional<pg_t> pgid(i != opts.end(), std::move(pg_t()));

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-08-03 20:41:03 +08:00
Kefu Chai
9754b3769b qa/suites/fs: add python3-cephfs to packages
the default set of packages to install is in
$suite/qa/packages/packages.yaml . see get_package_list() in
teuthology/teuthology/task/install/__init__.py for how we prepare a
package list for install task.

for running python3 tests in
fs/basic_functional/tasks/volume-client, we need to install
python3-cephfs. please note that,
_package_override() in teuthology/teutholoy/task/install/rpm.py will
take care of the different naming on centos/rhel, where the python3
packages are named python34-*.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-08-03 20:29:49 +08:00
Igor Fedotov
45fab1d9d8 test/fio: new option to control file preallocation.
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
2018-08-03 13:11:30 +03:00
Ricardo Dias
5e36d78bc7
Merge pull request #23261 from dillaman/wip-vstart
vstart: do not attempt to re-initialize dashboard for existing cluster

Reviewed-by: John Spray <john.spray@redhat.com>
2018-08-03 10:12:25 +01:00
Kefu Chai
7e5c85b604 qa: do not install python3 packages in task.install
This reverts commit c1efd59f61

task.install.rpm installs packages listed in
$suites/qa/packages/packages.yaml, the packge list applies to the
upgrade tests also. but we don't have python3 bindings packages in jewel
-- they were introduced in kraken.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-08-03 17:02:51 +08:00
Yan, Zheng
1ff36edd2a mds: calculate load by checking self CPU usage
when mds_bal_mode is 2, system CPU load is treated as mds load.
This is not good when the machine runs multiple tasks.

Fixes: http://tracker.ceph.com/issues/26834
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
2018-08-03 16:07:22 +08:00
Volker Theile
670522ee31 mgr/dashboard: RGW proxy can't handle self-signed certificates
Fixes tracker.ceph.com/issues/24677

Signed-off-by: Volker Theile <vtheile@suse.com>
2018-08-03 08:48:05 +02:00
Kefu Chai
1739d6b777 test: use death_test_style="threadsafe" for Mutex.NormalAsserts
use threadsafe for running the Mutex assert test to run the test from
beginning to avoid the hang. this test overrides the symbol of
ceph::__ceph_assert_fail() with a local one offered by the application
links against libceph-common. but we intentionally forbid this behavior:
we do not allow libceph-common to reference the symbols exposed from
application with the same name. see http://tracker.ceph.com/issues/25154

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-08-03 10:02:34 +08:00
Kefu Chai
38e3446599 cmake: always prefer local symbols
Fixes: http://tracker.ceph.com/issues/25154
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-08-03 10:02:34 +08:00
Kefu Chai
917f4f84ab
Merge pull request #23384 from tchaikov/wip-cmake-cleanup
cmake: fix std::filesystem detection and extract sanitizer detection into its own module

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
2018-08-03 08:58:14 +08:00
Brad Hubbard
4996506a6b mgr/MgrClient: Protect daemon_health_metrics
Without holiding the lock update_daemon_health() can race with
send_report() corrupting the daemon_health_metrics vector.

Fixes: http://tracker.ceph.com/issues/23352

Signed-off-by: Kjetil Joergensen <kjetil@medallia.com>
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2018-08-03 07:44:02 +10:00