Commit Graph

88760 Commits

Author SHA1 Message Date
Sage Weil
c13aa38175 Merge PR #22607 into master
* refs/pull/22607/head:
	common/options: convert many TYPE_[U]INT -> TYPE_SIZE
	common/options: remove journal_max_corrupt_search

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-07-30 08:45:17 -05:00
Dan van der Ster
261d8ac94d ceph-volume: enable ceph-osd during lvm activation
Enable the ceph-osd@<id> unit during lvm activate to link these
units to the ceph-osd.target.

Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
Fixes: http://tracker.ceph.com/issues/24152
2018-07-30 15:07:54 +02:00
Dan van der Ster
3e6f387be1 ceph-volume: optional systemd enable --runtime
Allow units to be enabled but not persisted across a reboot,
and use this when enabling osds.

Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
2018-07-30 14:57:03 +02:00
Lenz Grimmer
a8dc0e593f
Merge pull request #23287 from Devp00l/wip-duplicate-error-messages
mgr/dashboard: Fix duplicate error messages

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2018-07-30 11:39:05 +02:00
Ricardo Dias
00ec05abbd
Merge pull request #22669 from votdev/feature_24574
mgr/dashboard: Cleanup RGW config checks

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
2018-07-30 09:53:16 +01:00
Nathan Cutler
17d9b5be4d qa/upgrade: cleanup for nautilus
Drop unused suites, which ATM means all of them except upgrade/luminous-x
which recently got a cleanup in https://github.com/ceph/ceph/pull/23162

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2018-07-29 19:56:53 +02:00
Nathan Cutler
cecbf3e5dd
Merge pull request #23162 from smithfarm/wip-upgrade-cleanup
tests: upgrade/luminous-x: fix order of final-workload directory

Reviewed-by: Sage Weil <sage@redhat.com>
2018-07-29 18:08:48 +02:00
Kefu Chai
2e01287031 cmake: do not link libs against ${ALLOC_LIBS}
let libcommon or libceph-common take care of this.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-07-29 21:25:52 +08:00
Kefu Chai
a6c73b6ac1 cmake,make-dist: build gperftools if WITH_STATIC_LIBSTDCXX
we could create a mini project to build a shared library, and use
try_compile() to test if the found gperftools is compiled with -fPIC.
but as we are targeting mostly xenial when enabling
WITH_STATIC_LIBSTDCXX, and google-perftools on xenial by default
is built without -fPIC. so let's keep it simple.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-07-29 21:25:52 +08:00
Pavani Rajula
46057cefc1
Provided API to change umask
Signed-off-by: Pavani Rajula <rpavani1998@gmail.com>
2018-07-28 16:22:58 -07:00
Yuri Weinstein
bba79cdb9f qa/tests: added mimic-x to the schedule
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
2018-07-28 14:42:39 -07:00
Sage Weil
922bfc5f3b common/options: convert many TYPE_[U]INT -> TYPE_SIZE
Note that the _cost options are in fact in units of bytes.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-28 15:11:05 -05:00
Kefu Chai
a61493062c cmake: link against libsnappy.a if WITH_STATIC_LIBSTDCXX
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-07-29 01:44:18 +08:00
Kefu Chai
125b5da096 rocksdb: pickup change to link against libsnappy.a
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-07-29 01:44:18 +08:00
Kefu Chai
d245ffb0e6 cmake: fix "WITH_STATIC_LIBSTDCXX"
- do not link libkv with ALLOC_LIBS, it turns out that if we link
tcmalloc *before* -static-libstdc++ -static-libgcc, libstdc++ and gcc
libs will show up in `ldd` output
- add `-static-libstdc++ -static-libgcc` to CMAKE_SHARED_LINKER_FLAGS
and CMAKE_EXE_LINKER_FLAGS instead of adding them to all shared
libraries and executable. simpler this way.
- link against libtcmalloc statically, because libtcmalloc is a C++
library, linking against it dynamically and linking against C++ runtime
statically will pull in depdencies on two versions of C++ runtime, which
will bring down the app at run-time.
- do not pass '-pie' to linker when building executable if
`WITH_STATIC_LIBSTDCXX` and tcmalloc is used, because the static tcmalloc
is not compiled with PIC.
- only apply '-pie' if ENABLE_SHARED is enabled.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-07-29 01:44:18 +08:00
Kefu Chai
74fd334a6e crimson/common: write configs synchronously on shard.0
to avoid potential racings on the same shard. before this change, we
apply the change in async. after this change, all changes happens on the
owner shard (i.e. shard.0), and the changes are applied synchronously.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-07-28 23:13:41 +08:00
Jos Collin
152f4fba1e
doc: s/Ceph FS/CephFS
Fixes: https://github.com/ceph/ceph/pull/22784#discussion_r200755460
Signed-off-by: Jos Collin <jcollin@redhat.com>
2018-07-28 19:59:33 +05:30
Kefu Chai
54c0e4385b crimson/common: throw if fails to change config
simpler this way, and this allows us to have more detailed error message
so we can present it to end-user. skipping the updating step if no
changes is made is nice to have, but changing settings is not in the
critical path. so let's keep it simple.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-07-28 21:01:52 +08:00
Kefu Chai
24a90d2d3a common/config: do not use magic number in set_mon_vals()
before this change, we compare the retcode of _set_val() with 1, and 0,
which are pratically magic numbers. after this change, we use
ConfigValues::set_value_result_t for non-error retcode.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-07-28 21:01:52 +08:00
Kefu Chai
d76fbf67a6
Merge pull request #23043 from tchaikov/wip-python-cephfs-dependencies
deb,rpm: fix python-cephfs dependencies

Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-07-28 09:53:32 +08:00
Patrick Donnelly
4853aa7d42
ceph_volume_client: add delay for MDSMap to be distributed
Otherwise the setxattr will fail if the mds has not yet received the MDSMap
which adds the new data pool.

Fixes: https://tracker.ceph.com/issues/25141

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-07-27 17:02:48 -07:00
Abhishek L
726ca169ee
Merge pull request #23288 from theanalyst/doc/releases/13.2.1
doc: releases: mimic 13.2.1 release notes

Reviewed-By: Sage Weil  <sweil@redhat.com>
2018-07-28 00:18:46 +02:00
Alfredo Deza
ba755c115f
Merge pull request #23278 from b-ranto/wip-volume-selinux
ceph-volume: Restore SELinux context

Reviewed-by: Alfredo Deza <adeza@redhat.com>
2018-07-27 17:57:46 -04:00
Noah Watkins
dc65182d21
Merge pull request #23106 from noahdesu/always-on-mgr-modules2
mgr: create always on class of modules
2018-07-27 13:42:19 -07:00
Casey Bodley
3a55e13c44
Merge pull request #23143 from joke-lee/qa-admin-api-user-info-through-access-key
qa: add test for https://github.com/ceph/ceph/pull/22790

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2018-07-27 15:27:32 -04:00
Andrew Schoen
a8c71c9021
Merge pull request #23289 from alfredodeza/wip-rm24993-2
ceph-volume ensure encoded bytes are always used

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
2018-07-27 19:00:19 +00:00
Boris Ranto
61dbf4ac2a ceph-volume: Restore SELinux context
We need to reset the root context of the file system after mounting it.
Otherwise, the SELinux policy rules will not be preserved.

Fixes: https://tracker.ceph.com/issues/24785
Signed-off-by: Boris Ranto <branto@redhat.com>
2018-07-27 20:27:22 +02:00
Jason Dillaman
38206b62f1
Merge pull request #23277 from zy751713126/fix_note
cls/rbd: fix method comment

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-07-27 14:14:06 -04:00
Kefu Chai
5108af0d02
Merge pull request #23279 from tchaikov/wip-cmake-cleanup
cmake: cleanups

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2018-07-28 00:49:24 +08:00
Kefu Chai
a7082cf31d
Merge pull request #23283 from tchaikov/wip-cmake-fmt
cmake: bump up the required fmt version

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2018-07-28 00:11:58 +08:00
Abhishek Lekshmanan
3b0647edeb doc: releases: mimic 13.2.1 release notes
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2018-07-27 17:41:32 +02:00
Alfredo Deza
1802c386da ceph-volume tests.util verify as_bytes behavior
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-07-27 11:16:30 -04:00
Alfredo Deza
31f565e90b ceph-volume tests catch utf-8 encoded stdin errors
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-07-27 11:16:30 -04:00
Alfredo Deza
6a9368c1db ceph-volume process use the as_bytes util for stdin
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-07-27 11:16:30 -04:00
Alfredo Deza
fb51816544 ceph-volume util create a helper for converting to bytes
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-07-27 11:16:30 -04:00
Lenz Grimmer
3f12764a2b
Merge pull request #22994 from tspmelo/wip-prettier-lint
mgr/dashboard: Improve prettier scripts and documentation

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2018-07-27 16:38:16 +02:00
Stephan Müller
70d47a5b1f mgr/dashboard: Fix duplicate error messages
Duplicate error messages currently appear if the task wrapper service is
used. It calls 'notifyTask' on a failed task, this would be fine if
we didn't have the API interceptor, which watches all API requests and
triggers 'notifyTask' itself if an error appears.

Fixes issue #25139

Signed-off-by: Stephan Müller <smueller@suse.com>
2018-07-27 16:26:59 +02:00
Volker Theile
2312839198 mgr/dashboard: Set timeout in RestClient calls
Set a default timeout of 45 seconds to all REST client calls. This can be customized via 'ceph dashboard set-rest-requests-timeout <seconds>'. Currently the REST client is only used by the RGW controller.

Signed-off-by: Volker Theile <vtheile@suse.com>
2018-07-27 14:03:06 +02:00
Lenz Grimmer
794126b7b9
Merge pull request #23281 from tspmelo/wip-opaque
mgr/dashboard: Fix localStorage problem in Jest

Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-07-27 12:56:46 +02:00
Kefu Chai
b1c4c9e9a1 cmake: bump up the required fmt version
seastar actually requires fmt 4.0.0 and up, as 3.0.2 does not offer
fmt/printf.h. see
https://github.com/fmtlib/fmt/blob/master/ChangeLog.rst#400---2017-06-27
.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-07-27 18:52:54 +08:00
Tiago Melo
e184719640 mgr/dashboard: Fix localStorage problem in Jest
Latest version of Jest was showing the following error:
"SecurityError: localStorage is not available for opaque origins"

Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-07-27 10:52:57 +01:00
Kefu Chai
0b53f7c67b cmake: extract mgr into its own CMakeLists.txt
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-07-27 17:10:29 +08:00
Kefu Chai
85a3c63644 cmake: extract common,msg out of src/CMakeLists.txt
* add arch as a static library.
* add crc32 as a static library. its only dependency is libarch.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-07-27 17:09:26 +08:00
zhengyin
3f87e1e41e cls/rbd: fix note
Signed-off-by: Zheng Yin <zhengyin@cmss.chinamobile.com>
2018-07-27 13:39:04 +08:00
Kefu Chai
591167e0cc
Merge pull request #23254 from tchaikov/wip-cmake-cleanup
cmake: modularize src/perfglue

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2018-07-27 13:12:54 +08:00
Kefu Chai
a8d23b465d
Merge pull request #23255 from tchaikov/wip-seastar-yaml-cpp
seastar: lower the required yaml-cpp version to 0.5.1

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2018-07-27 13:12:28 +08:00
Kefu Chai
702a447685
Merge pull request #23253 from smithfarm/wip-doc-dev-toc
doc: make it easier to reach the old dev doc TOC

Reviewed-by: Dan Mick <dan.mick@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-07-27 13:09:49 +08:00
Kefu Chai
40e76aa4f0 common/config: fix the lock in ConfigProxy::diff()
it's a regression introduced by e406d8eb9e

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-07-27 12:14:55 +08:00
Nathan Cutler
c9b14a26f4 doc/dev/internals: drop :orphan: directive
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2018-07-27 05:53:18 +02:00
Nathan Cutler
f89bde3f93
Merge pull request #23165 from smithfarm/wip-doc-snaptrim-nit
doc/rados/operations/pg-states: fix PG state names, part 2

Reviewed-by: Jos Collin <jcollin@redhat.com>
2018-07-27 00:06:34 +02:00