]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agorpm: fix xmlsec1 build dependency for dashboard make check 26119/head
Nathan Cutler [Thu, 24 Jan 2019 18:31:20 +0000 (19:31 +0100)]
rpm: fix xmlsec1 build dependency for dashboard make check

Fixes: 46d286c7f71f4c43766d2a3d7597816346e36151
Signed-off-by: Nathan Cutler <ncutler@suse.com>
6 years agoMerge pull request #26046 from liewegas/wip-37976
Kefu Chai [Mon, 21 Jan 2019 10:44:41 +0000 (18:44 +0800)]
Merge pull request #26046 from liewegas/wip-37976

mgr/telemetry: fix total_objects

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #25712 from familyuu/configuration
Lenz Grimmer [Mon, 21 Jan 2019 08:34:35 +0000 (09:34 +0100)]
Merge pull request #25712 from familyuu/configuration

mgr/dashboard: Add a 'clear filter' button to configuration page

Reviewed-by: Sebastian Krah <skrah@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agomgr/telemetry: fix total_objects 26046/head
Sage Weil [Sun, 20 Jan 2019 21:59:50 +0000 (15:59 -0600)]
mgr/telemetry: fix total_objects

This field was removed from df output a while back in
342f309645df886fb96eb401634e38376553e6d9

Fixes: http://tracker.ceph.com/issues/37976
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #26031 into master
Sage Weil [Sun, 20 Jan 2019 21:55:50 +0000 (15:55 -0600)]
Merge PR #26031 into master

* refs/pull/26031/head:
mgr/BaseMgrModule: fix mon commands targetting a specific monitor
mgr/ActivePyModules: fix RestoreThread calls for get('devices')

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #25490 from Aran85/fix-ec-using-cache
Kefu Chai [Sun, 20 Jan 2019 02:33:51 +0000 (10:33 +0800)]
Merge pull request #25490 from Aran85/fix-ec-using-cache

osd: keep using cache even if op will invalid cache

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #25920 from wjwithagen/wjw-fix-freebsd-numa
Kefu Chai [Sun, 20 Jan 2019 02:32:21 +0000 (10:32 +0800)]
Merge pull request #25920 from wjwithagen/wjw-fix-freebsd-numa

common/numa: Add shim routines for NUMA on FreeBSD.

6 years agoMerge pull request #25938 from majianpeng/msg-remove-memcopy-message-header
Kefu Chai [Sun, 20 Jan 2019 02:31:26 +0000 (10:31 +0800)]
Merge pull request #25938 from majianpeng/msg-remove-memcopy-message-header

msg/async: reduce additional ceph_msg_header copy.

Reviewed-by: Xie Xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #26021 from majianpeng/osd-remove-unused-code
Kefu Chai [Sun, 20 Jan 2019 02:30:34 +0000 (10:30 +0800)]
Merge pull request #26021 from majianpeng/osd-remove-unused-code

osd: remove unused fields

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #26040 from tchaikov/wip-blkdev-stat
Kefu Chai [Sun, 20 Jan 2019 02:28:22 +0000 (10:28 +0800)]
Merge pull request #26040 from tchaikov/wip-blkdev-stat

common/blkdev: check retval of stat()

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #26041 from tchaikov/wip-kvstore-tool-gcc-ice
Kefu Chai [Sun, 20 Jan 2019 02:27:52 +0000 (10:27 +0800)]
Merge pull request #26041 from tchaikov/wip-kvstore-tool-gcc-ice

tools/ceph_kvstore_tool: extract StoreTool into kvstore_tool.cc

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #26012 into master
Patrick Donnelly [Sun, 20 Jan 2019 01:21:42 +0000 (17:21 -0800)]
Merge PR #26012 into master

* refs/pull/26012/head:
qa: add test that down fs does not ERR
mon/MDSMonitor: skip offline ERR for down fs

Reviewed-by: Douglas Fuller <dfuller@redhat.com>
6 years agoMerge PR #25993 into master
Patrick Donnelly [Sun, 20 Jan 2019 01:21:09 +0000 (17:21 -0800)]
Merge PR #25993 into master

* refs/pull/25993/head:
mds/FSMap: simplify encode/decode
mds: alias reference type for Filesystem
mds: add missing memory header include
include/encoding: eliminate smart_ptr temporaries

Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agoMerge PR #25976 into master
Patrick Donnelly [Sun, 20 Jan 2019 01:20:18 +0000 (17:20 -0800)]
Merge PR #25976 into master

* refs/pull/25976/head:
Objecter::calc_op_budget: Fix invalid access to extent union member

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agoMerge PR #25974 into master
Patrick Donnelly [Sun, 20 Jan 2019 01:19:19 +0000 (17:19 -0800)]
Merge PR #25974 into master

* refs/pull/25974/head:
MDSMonitor: add missing OSDMonitor writeable check
MDSMonitor: codify constraint for writeable OSDMap

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #25973 into master
Patrick Donnelly [Sun, 20 Jan 2019 01:18:08 +0000 (17:18 -0800)]
Merge PR #25973 into master

* refs/pull/25973/head:
qa: use simpler fs fail to bring fs down
MDSMonitor: add fs fail command

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Douglas Fuller <dfuller@redhat.com>
6 years agoMerge PR #25971 into master
Patrick Donnelly [Sun, 20 Jan 2019 01:17:04 +0000 (17:17 -0800)]
Merge PR #25971 into master

* refs/pull/25971/head:
qa: test hex dump_inode
pybind/ceph_argparse: accept int with non-decimal base

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #25650 into master
Patrick Donnelly [Sun, 20 Jan 2019 01:16:17 +0000 (17:16 -0800)]
Merge PR #25650 into master

* refs/pull/25650/head:
client: add ceph_stat/ceph_lstat/ceph_fstat api

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
6 years agotool/ceph_kvstore_tool: extract duration calc out 26041/head
Kefu Chai [Sat, 19 Jan 2019 16:48:40 +0000 (00:48 +0800)]
tool/ceph_kvstore_tool: extract duration calc out

simplify the code a little bit

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agotools/ceph_kvstore_tool: extract StoreTool into kvstore_tool.cc
Kefu Chai [Sat, 19 Jan 2019 16:01:55 +0000 (00:01 +0800)]
tools/ceph_kvstore_tool: extract StoreTool into kvstore_tool.cc

to workaround n bug in GCC 7.3, which leads to ICE like

build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos7/DIST/centos7/MACHINE_SIZE/huge/release/14.0.1-2751-gb268822/rpm/el7/BUILD/ceph-14.0.1-2751-gb268822/src/tools/ceph_kvstore_tool.cc:625:1:
internal compiler error: Segmentation fault
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agomgr/BaseMgrModule: fix mon commands targetting a specific monitor 26031/head
Sage Weil [Fri, 18 Jan 2019 21:14:19 +0000 (15:14 -0600)]
mgr/BaseMgrModule: fix mon commands targetting a specific monitor

We just need to use the right variant of start_mon_command().

Fixes: http://tracker.ceph.com/issues/37967
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomgr/ActivePyModules: fix RestoreThread calls for get('devices')
Sage Weil [Fri, 18 Jan 2019 15:24:34 +0000 (09:24 -0600)]
mgr/ActivePyModules: fix RestoreThread calls for get('devices')

Fixes 61aa7e2e0230bff49e757c32932d1db4bcad5f67

Fixes: http://tracker.ceph.com/issues/37736
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agocommon/blkdev: check retval of stat() 26040/head
Kefu Chai [Sat, 19 Jan 2019 13:09:59 +0000 (21:09 +0800)]
common/blkdev: check retval of stat()

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoqa: use simpler fs fail to bring fs down 25973/head
Patrick Donnelly [Tue, 15 Jan 2019 22:10:09 +0000 (14:10 -0800)]
qa: use simpler fs fail to bring fs down

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #25919 from yuriw/wip-yuriw-distros-master
David Galloway [Fri, 18 Jan 2019 18:03:17 +0000 (13:03 -0500)]
Merge pull request #25919 from yuriw/wip-yuriw-distros-master

qa/tests: added rhel 7.6

6 years agoMerge PR #26019 into master
Sage Weil [Fri, 18 Jan 2019 17:27:07 +0000 (11:27 -0600)]
Merge PR #26019 into master

* refs/pull/26019/head:
mon: implement hiding commands in ceph tool

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #25996 from yehudasa/wip-37885
Casey Bodley [Fri, 18 Jan 2019 16:45:29 +0000 (11:45 -0500)]
Merge pull request #25996 from yehudasa/wip-37885

qa/rgw/tempest: either force os_type or select random distro

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #26015 from noahdesu/osd-find-fsid
Noah Watkins [Fri, 18 Jan 2019 16:26:47 +0000 (08:26 -0800)]
Merge pull request #26015 from noahdesu/osd-find-fsid

cli: dump osd-fsid as part of osd find <id>

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sébastien Han <seb@redhat.com>
6 years agoMerge pull request #22797 from dzafman/wip-19753
David Zafman [Fri, 18 Jan 2019 15:42:00 +0000 (07:42 -0800)]
Merge pull request #22797 from dzafman/wip-19753

osd: Deny reservation if expected backfill size would put us over bac…

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge PR #25132 into master
Sage Weil [Fri, 18 Jan 2019 15:38:59 +0000 (09:38 -0600)]
Merge PR #25132 into master

* refs/pull/25132/head:
os/bluestore: implement kv update on bluefs extents info change.
os/bluestore: use original algorithm to calculate BlueFS gift size for explicit allocation.
os/bluestore: get rid of bluefs space gifting performed in background
os/bluestore: do KV/FM/allocator opening in two stages.
os/bluestore: detach FreelistManager from DB instance.
test/osd/store_test: add test case for explicit bluefs expanding.
os/bluestore: implement explicit bluefs space allocation at slow device
os/bluestore: unify allocator dump on bluefs space failures
os/bluestore: stop keeping bluefs_extents at KV

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #25972 from noahdesu/doc-release-ver-sort
Kefu Chai [Fri, 18 Jan 2019 14:52:50 +0000 (22:52 +0800)]
Merge pull request #25972 from noahdesu/doc-release-ver-sort

doc: sort releases by date and version

Reviewed-by: Nathan Cutler <ncutler@suse.com>
6 years agoMerge pull request #25891 from ifed01/wip-ifed-fix-compress-errors
Kefu Chai [Fri, 18 Jan 2019 14:41:08 +0000 (22:41 +0800)]
Merge pull request #25891 from ifed01/wip-ifed-fix-compress-errors

os/bluestore: do not assert on non-zero err codes from  compress() call

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #15168 from qwren/qat-crypto
Kefu Chai [Fri, 18 Jan 2019 14:39:13 +0000 (22:39 +0800)]
Merge pull request #15168 from qwren/qat-crypto

crypto: add openssl support for RGW encryption

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #25961 from p-na/wip-pna-fix-argparse
Kefu Chai [Fri, 18 Jan 2019 14:38:21 +0000 (22:38 +0800)]
Merge pull request #25961 from p-na/wip-pna-fix-argparse

ceph_argparse: fix --verbose

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #25324 from votdev/fix_raw_input
Alfredo Deza [Fri, 18 Jan 2019 14:19:27 +0000 (09:19 -0500)]
Merge pull request #25324 from votdev/fix_raw_input

ceph-volume: Adapt code to support Python3

Reviewed-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #25912 from sebastian-philipp/orchestrator-drive-group
Sebastian Wagner [Fri, 18 Jan 2019 13:59:48 +0000 (14:59 +0100)]
Merge pull request #25912 from sebastian-philipp/orchestrator-drive-group

mgr/orchestrator: Extend DriveGroupSpec

6 years agoMerge pull request #26006 from jtlayton/wip-orchestrator
Sebastian Wagner [Fri, 18 Jan 2019 13:57:54 +0000 (14:57 +0100)]
Merge pull request #26006 from jtlayton/wip-orchestrator

Clean up field names in ServiceDescription and add a service field

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
6 years agoMerge PR #25981 into master
Sage Weil [Fri, 18 Jan 2019 13:16:36 +0000 (07:16 -0600)]
Merge PR #25981 into master

* refs/pull/25981/head:
crush: switch to *get_or_create_class_id* helper whenever possible

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agomgr/orchestrator: Extend DriveGroupSpec 25912/head
Sebastian Wagner [Fri, 11 Jan 2019 12:33:05 +0000 (13:33 +0100)]
mgr/orchestrator: Extend DriveGroupSpec

Also: Added tox.

Co-authored-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
6 years agoMerge pull request #25602 from familyuu/pool
Lenz Grimmer [Fri, 18 Jan 2019 12:07:49 +0000 (13:07 +0100)]
Merge pull request #25602 from familyuu/pool

mgr/dashboard: Add pool cache tiering details tab

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #25651 from votdev/improve_basemgrmodule
Tim Serong [Fri, 18 Jan 2019 09:15:57 +0000 (19:15 +1000)]
Merge pull request #25651 from votdev/improve_basemgrmodule

mgr: Allow modules to get/set other module options

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
6 years agomgr/dashboard: Add a 'clear filter' button to configuration page 25712/head
guodan1 [Thu, 27 Dec 2018 09:08:51 +0000 (17:08 +0800)]
mgr/dashboard: Add a 'clear filter' button to configuration page

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

Signed-off-by: familyuu <guodan1@lenovo.com>
6 years agoMerge pull request #25304 from tchaikov/wip-crimson-osd
Kefu Chai [Fri, 18 Jan 2019 06:07:42 +0000 (14:07 +0800)]
Merge pull request #25304 from tchaikov/wip-crimson-osd

crimson/osd: crimson osd driver

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agoosd:remove unused fileds. 26021/head
Jianpeng Ma [Fri, 18 Jan 2019 05:35:39 +0000 (13:35 +0800)]
osd:remove unused fileds.

Session::received_map_epoch only used by OSD::dispatch_op_fast. But this
func removed in 3cc48278bf0ee5c9535, So remvoe related code.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
6 years agocrimson/osd: add mkfs() 25304/head
Kefu Chai [Fri, 18 Jan 2019 04:27:30 +0000 (12:27 +0800)]
crimson/osd: add mkfs()

we will need it for preparing crimson-osd without help of ceph-osd.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/osd: send beacon to mon periodically
Kefu Chai [Mon, 14 Jan 2019 09:48:18 +0000 (17:48 +0800)]
crimson/osd: send beacon to mon periodically

so monitor won't mark crimson-osd down and out

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/osd: enable crimson-osd to boot
Kefu Chai [Fri, 11 Jan 2019 10:47:39 +0000 (18:47 +0800)]
crimson/osd: enable crimson-osd to boot

* add state.h to encapsulate the state represeting different stages
  related to booting an OSD. the boot process of an OSD can be blocked
  by
  - waiting for PG consuming updated osdmaps
  - waiting for osdmaps marking osd.{whoami} up
  - waiting for new osdmaps to bring this osd up to speed.
  - waiting for current OSD to be healthy
  we could chain these "waits" in a more seastarized way, and let
OSD::start() wait on the future returned by this chain. but that'd
requires adding some seastar::shard_future<> as member variables of
`OSD` class, which is a little bit more convoluted than the state
machine approach used in this change. we could switch over to the
`future<>` chain approach, if we found that these futures could have
more consumers than merely `OSD::start()`.
* all osdmaps are now stored in an `std::map` in `OSD`, we can
  improve it by
  - caching it using an LRU cache
  - trimming the stale ones
  - persisting the evicted maps into the meta collection in ObjectStore
* superblock is not persited to store, neither is it read from the
  store.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agotest/crimson: s/get_connection/connect_to/
Kefu Chai [Wed, 16 Jan 2019 07:54:38 +0000 (15:54 +0800)]
test/crimson: s/get_connection/connect_to/

in aa3d6f66, we removed Messenger::get_connection(), so update the test
accordingly.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agomessages/MOSDBeacon: include PaxosServiceMessage.h
Kefu Chai [Mon, 14 Jan 2019 09:50:41 +0000 (17:50 +0800)]
messages/MOSDBeacon: include PaxosServiceMessage.h

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson: integrate mon::Client into OSD
Kefu Chai [Fri, 11 Jan 2019 10:21:25 +0000 (18:21 +0800)]
crimson: integrate mon::Client into OSD

and register them as dispatchers using ChainedDispatchers

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson: add ChainedDispatchers
Kefu Chai [Fri, 11 Jan 2019 09:53:15 +0000 (17:53 +0800)]
crimson: add ChainedDispatchers

it will be used to glue multiple dispatchers for subscribing events
emitted by messenger

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson: add prototype of crimson/osd
Kefu Chai [Tue, 9 Oct 2018 07:17:35 +0000 (15:17 +0800)]
crimson: add prototype of crimson/osd

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson: add a dummy object store
Kefu Chai [Mon, 7 Jan 2019 10:50:05 +0000 (18:50 +0800)]
crimson: add a dummy object store

CyanStore only provides just-enough facility for booting an OSD.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson: set src for message
Kefu Chai [Thu, 10 Jan 2019 13:15:18 +0000 (21:15 +0800)]
crimson: set src for message

monitor will panic at seeing a MOSDBoot message which is not from an
OSD. see OSDMonitor::preprocess_boot()
```
ceph_assert(m->get_orig_source_inst().name.is_osd());
```

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson: ignore v2 only addvec
Kefu Chai [Thu, 10 Jan 2019 13:14:28 +0000 (21:14 +0800)]
crimson: ignore v2 only addvec

crimson need to be v2 compatible. but let's leave this for another PR.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocmake: silence -Wsign-compare in libfmt
Kefu Chai [Mon, 14 Jan 2019 03:26:25 +0000 (11:26 +0800)]
cmake: silence -Wsign-compare in libfmt

* silence -Wsign-compare in libfmt
* silence -Wattributes in seastar

to silence warnings like:

/home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/seastar/fmt/include/fmt/format.h:
In instantiation of 'constexpr bool fmt::v5::internal::find(Ptr, Ptr, T,
Ptr&) [with bool IS_CONSTEXPR = false; T = char; Ptr = const wchar_t*]':
/home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/seastar/fmt/include/fmt/format.h:2154:32:
required from 'constexpr void
fmt::v5::internal::parse_format_string(fmt::v5::basic_string_view<Char>,
Handler&&)::writer::operator()(const Char*, const Char*) [with bool
IS_CONSTEXPR = false; Char = wchar_t; Handler =
fmt::v5::format_handler<fmt::v5::arg_formatter<fmt::v5::back_insert_range<fmt::v5::internal::basic_buffer<wchar_t>
> >, wchar_t,
fmt::v5::basic_format_context<std::back_insert_iterator<fmt::v5::internal::basic_buffer<wchar_t>
>, wchar_t> >&]'
/home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/seastar/fmt/include/fmt/format.h:2164:3:
required from 'constexpr void
fmt::v5::internal::parse_format_string(fmt::v5::basic_string_view<Char>,
Handler&&) [with bool IS_CONSTEXPR = false; Char = wchar_t; Handler =
fmt::v5::format_handler<fmt::v5::arg_formatter<fmt::v5::back_insert_range<fmt::v5::internal::basic_buffer<wchar_t>
> >, wchar_t,
fmt::v5::basic_format_context<std::back_insert_iterator<fmt::v5::internal::basic_buffer<wchar_t>
>, wchar_t> >&]'
/home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/seastar/fmt/include/fmt/format.h:3346:39:
required from 'typename Context::iterator fmt::v5::vformat_to(typename
ArgFormatter::range, fmt::v5::basic_string_view<Char>,
fmt::v5::basic_format_args<Context>) [with ArgFormatter =
fmt::v5::arg_formatter<fmt::v5::back_insert_range<fmt::v5::internal::basic_buffer<wchar_t>
> >; Char = wchar_t; Context =
fmt::v5::basic_format_context<std::back_insert_iterator<fmt::v5::internal::basic_buffer<wchar_t>
>, wchar_t>; typename Context::iterator =
std::back_insert_iterator<fmt::v5::internal::basic_buffer<wchar_t> >;
typename ArgFormatter::range =
fmt::v5::back_insert_range<fmt::v5::internal::basic_buffer<wchar_t> >]'
/home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/seastar/fmt/include/fmt/format.h:3457:64:
required from here

/home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/seastar/fmt/include/fmt/format.h:2120:14:
error: comparison of integer expressions of different signedness: 'const
wchar_t' and 'char' [-Werror=sign-compare]
     if (*out == value)
         ~~~~~^~~~~~~~
cc1plus: all warnings being treated as errors

where libfmt compares a wchar_t with a literal '}', which is char.
because the former is unsigned, and the latter is of a signed type,
GCC is annoyed. but since both of them are ASCII, and when performing
comparison, the signed one is converted to unsigned, then result of
comparison is correct per-se. hence, it's safe to silence this very
warning.

and warning like:

/home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/seastar/src/core/future-util.cc:61:5:
required from 'seastar::future<> seastar::sleep_abortable(typename
Clock::duration, seastar::abort_source&) [with Clock =
std::chrono::_V2::steady_clock; typename Clock::duration =
std::chrono::duration<long int, std::ratio<1, 1000000000> >]'
/home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/seastar/src/core/future-util.cc:68:105:
required from here
/home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/seastar/src/core/future-util.cc:48:28:
error: 'seastar::sleep_abortable(typename Clock::duration,
seastar::abort_source&)::sleeper::sleeper(typename Clock::duration,
seastar::abort_source&) [with Clock = std::chrono::_V2::steady_clock;
typename Clock::duration = std::chrono::duration<long int, std::ratio<1,
1000000000> >]::<lambda()>' declared with greater visibility than the
type of its field 'seastar::sleep_abortable(typename Clock::duration,
seastar::abort_source&)::sleeper::sleeper(typename Clock::duration,
seastar::abort_source&) [with Clock = std::chrono::_V2::steady_clock;
typename Clock::duration = std::chrono::duration<long int, std::ratio<1,
1000000000> >]::<lambda()>::<this capture>' [-Werror=attributes]
                 : tmr([this] { done.set_value(); }) {
                            ^
Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoseastar: pick up the cmake fix
Kefu Chai [Fri, 11 Jan 2019 12:55:01 +0000 (20:55 +0800)]
seastar: pick up the cmake fix

to pick up the fix for seastar/issues/576

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson: set default keyring path
Kefu Chai [Thu, 10 Jan 2019 13:12:25 +0000 (21:12 +0800)]
crimson: set default keyring path

otherwise crimson-osd won't be able to load the keyring

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson: add entity_addrvec_t interfaces to Messenger
Kefu Chai [Wed, 9 Jan 2019 15:51:44 +0000 (23:51 +0800)]
crimson: add entity_addrvec_t interfaces to Messenger

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/monc: add subcription helpers
Kefu Chai [Fri, 4 Jan 2019 12:56:25 +0000 (20:56 +0800)]
crimson/monc: add subcription helpers

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/monc: add start() method
Kefu Chai [Fri, 21 Dec 2018 10:30:37 +0000 (18:30 +0800)]
crimson/monc: add start() method

to boot strap mon::Client once seastar and msgr is ready. this allows us
to allocate mon::Client on stack.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agotest/crimson/monc: start/stop perf counter
Kefu Chai [Fri, 21 Dec 2018 10:34:22 +0000 (18:34 +0800)]
test/crimson/monc: start/stop perf counter

in CephContext::CephContext(), we assume that
ceph::common::local_perf_coll() is ready when a CephContext is to be
contructed. so we need to prepare start it before creating CephContext.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agomon: implement hiding commands in ceph tool 26019/head
Patrick Donnelly [Fri, 18 Jan 2019 04:08:53 +0000 (20:08 -0800)]
mon: implement hiding commands in ceph tool

Otherwise ceph.in doing get_command_descriptions sees the command does not
exist and will print an error.

Fixes: https://tracker.ceph.com/issues/37956
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #25900 into master
Sage Weil [Fri, 18 Jan 2019 03:02:59 +0000 (21:02 -0600)]
Merge PR #25900 into master

* refs/pull/25900/head:
qa/tasks/ceph.py: bracket addrvecs in mon_host etc
vstart.sh: bracket addrvec on mon_host for msgr2-only mode
unittest_addrs: entity_addr_t: strengthen tests slightly
common/ceph_argparse: make parse_ip_port_vec handle list of addrs or addrvecs
common/ceph_argparse: parse_ip_port_vec returns addrvecs, not addrds
msg/msg_types: entity_addrvec_t: require brackets for size >1
msg/msg_types: entity_addrvec_t: allow brackets when parsing addrvec to match output
msg/msg_types: entity_addrvec_t: allow only ',' as an addrvec separator
msg/msg_types: entity_addr_t: we should not parse an addrvec
msg/msg_types: entity_addr_t: fix empty string parse cases
msg/msg_types: entity_addr_t: is_ipv6() and is_ipv4()

Reviewed-by: Ricardo Dias <rdias@suse.com>
6 years agoqa: add test that down fs does not ERR 26012/head
Patrick Donnelly [Fri, 18 Jan 2019 01:22:32 +0000 (17:22 -0800)]
qa: add test that down fs does not ERR

Also fix other test cases to not rely on health warning.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agomon/MDSMonitor: skip offline ERR for down fs
Patrick Donnelly [Thu, 17 Jan 2019 16:41:42 +0000 (08:41 -0800)]
mon/MDSMonitor: skip offline ERR for down fs

The idea here is that a file system marked down is considered intentionally
archived by the sysadmin. Consider the future use-case where there are dozens
or hundreds of file systems in use by dynamic applications that come and go.  A
file system may only be brought up when the corresponding application is
online.

Fixes: http://tracker.ceph.com/issues/20611
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #25998 into master
Sage Weil [Fri, 18 Jan 2019 00:51:33 +0000 (18:51 -0600)]
Merge PR #25998 into master

* refs/pull/25998/head:
msg/Dispatcher: remove force_new arg from ms_get_authorizer()
crimson/net: drop authenticator retry
msg/simple: remove forced authorizer refresh

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoMerge PR #25937 into master
Sage Weil [Fri, 18 Jan 2019 00:51:16 +0000 (18:51 -0600)]
Merge PR #25937 into master

* refs/pull/25937/head:
qa: specify filestore for misc tests
osd/objectstore: change osd_objectstore default to bluestore

Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #25693 from shun-s/silence-mon-load-metadata
Xie Xingguo [Fri, 18 Jan 2019 00:49:23 +0000 (08:49 +0800)]
Merge pull request #25693 from shun-s/silence-mon-load-metadata

MDSMonitor: silence unable to load metadata

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
6 years agocli: dump osd-fsid as part of osd find <id> 26015/head
Noah Watkins [Thu, 17 Jan 2019 19:16:44 +0000 (11:16 -0800)]
cli: dump osd-fsid as part of osd find <id>

Dumps the osd-fsid uuid as part of the `osd find <id>` command.
Currently this uuid is only available as part of `osd dump` but
ceph-ansible has a use case to interrogate a single osd without needing
the entire osdmap dump.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
6 years agoMerge PR #25849 into master
Sage Weil [Thu, 17 Jan 2019 17:04:30 +0000 (11:04 -0600)]
Merge PR #25849 into master

* refs/pull/25849/head:
qa/suites/rados/upgrade: one mon per node, and enable-msgr2 at end
qa/rados/thrash-old-clients: avoid msgr2
mon: make bootstrap rank check more robust
mon: clean up probe debug output a bit
msg/async: use v1 for v1 <-> [v2,v1] peers
msg/async/AsyncMessenger: drop single-use _send_to
mon/HealthMonitor: raise MON_MSGR2_NOT_ENABLED if mons not bound to msgr2
doc/rados/operations/health-checks: document MON_* health warnings
mon/MonMapMonitor: add 'mon enable-msgr2' command
mon: respawn if rank addr changes
mon/MonMap: calc_addr_mons() after setting rank addrvec

Reviewed-by: Ricardo Dias <rdias@suse.com>
6 years agoqa/suites/rados/upgrade: one mon per node, and enable-msgr2 at end 25849/head
Sage Weil [Wed, 16 Jan 2019 23:27:37 +0000 (17:27 -0600)]
qa/suites/rados/upgrade: one mon per node, and enable-msgr2 at end

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoqa/rados/thrash-old-clients: avoid msgr2
Sage Weil [Thu, 17 Jan 2019 03:42:31 +0000 (21:42 -0600)]
qa/rados/thrash-old-clients: avoid msgr2

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoqa: test hex dump_inode 25971/head
Patrick Donnelly [Thu, 17 Jan 2019 15:37:44 +0000 (07:37 -0800)]
qa: test hex dump_inode

Fixes: http://tracker.ceph.com/issues/24721
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agopybind/ceph_argparse: accept int with non-decimal base
Patrick Donnelly [Tue, 15 Jan 2019 20:32:52 +0000 (12:32 -0800)]
pybind/ceph_argparse: accept int with non-decimal base

This is useful for passing hexadecimal inode numbers to the MDS asok commands.

Fixes: http://tracker.ceph.com/issues/24721
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #25654 from tspmelo/wip-missing-i18n
Lenz Grimmer [Thu, 17 Jan 2019 15:33:43 +0000 (16:33 +0100)]
Merge pull request #25654 from tspmelo/wip-missing-i18n

mgr/dashboard: Add missing frontend I18N

Reviewed-by: Sebastian Krah <skrah@suse.com>
6 years agoMerge pull request #25997 from zmc/wip-db-graf-validate
Lenz Grimmer [Thu, 17 Jan 2019 15:25:56 +0000 (16:25 +0100)]
Merge pull request #25997 from zmc/wip-db-graf-validate

mgr/dashboard: Fix /api/grafana/validation

Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoSQUASH: comment fix 26006/head
Jeff Layton [Thu, 17 Jan 2019 15:12:59 +0000 (10:12 -0500)]
SQUASH: comment fix

Signed-off-by: Jeff Layton <jlayton@redhat.com>
6 years agomgr/orchestrator_cli: display service.service_instance for clustered services
Jeff Layton [Wed, 16 Jan 2019 15:49:56 +0000 (10:49 -0500)]
mgr/orchestrator_cli: display service.service_instance for clustered services

Signed-off-by: Jeff Layton <jlayton@redhat.com>
6 years agomgr/rook: populate ServiceDescription.service for mds and nfs services
Jeff Layton [Thu, 17 Jan 2019 13:59:29 +0000 (08:59 -0500)]
mgr/rook: populate ServiceDescription.service for mds and nfs services

Signed-off-by: Jeff Layton <jlayton@redhat.com>
6 years agomgr/orchestrator: add a service field to ServiceDescription
Jeff Layton [Wed, 16 Jan 2019 15:45:08 +0000 (10:45 -0500)]
mgr/orchestrator: add a service field to ServiceDescription

service_instances that have this set are considered to be grouped.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
6 years agomgr/orchestrator: change "daemon_name" field in ServiceDescription to be "service_ins...
Jeff Layton [Thu, 17 Jan 2019 13:46:23 +0000 (08:46 -0500)]
mgr/orchestrator: change "daemon_name" field in ServiceDescription to be "service_instance"

Signed-off-by: Jeff Layton <jlayton@redhat.com>
6 years agomsg/Dispatcher: remove force_new arg from ms_get_authorizer() 25998/head
Sage Weil [Wed, 16 Jan 2019 21:45:32 +0000 (15:45 -0600)]
msg/Dispatcher: remove force_new arg from ms_get_authorizer()

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agocrimson/monc: set name using a setter
Kefu Chai [Wed, 28 Nov 2018 13:00:33 +0000 (21:00 +0800)]
crimson/monc: set name using a setter

* set entity_name using a setter not pass it to constructor, because
  the entity_name is retrieved in seastar's app.run() by ConfigProxy,
  while it'd be simpler if we can instantiate mon::Client in main()
  as a local variable, instead of managing it on heap using a smart
  pointer. so we cannot pass the entity_name as a parameter of ctor.
* also cleanup the #include's, as they are included already in the
  header.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson: pass entity_name and cluster to ctor of ConfigProxy
Kefu Chai [Wed, 28 Nov 2018 12:55:44 +0000 (20:55 +0800)]
crimson: pass entity_name and cluster to ctor of ConfigProxy

as we always need to set entity_name and cluster before start using
ConfigProxy, and we do not read these settings from config file,
this makes these two setting special. so it'd be simpler to just
pass them as parameters of constructor.

and more importantly, we need to parse the command line arguments
using ceph_argparse_early_args() first, as it will consume the parsed
arguments, and leave the unparsed ones in the input parameter of `args`,
and then, we can pass the unparsed args to app.run().

it's not a perfect solution. as there are some options that both parsers
are interested, for instance, `-c` -- ceph take it as the conf file's
path, while seastar takes it as the number of cores to use. but let's
feed ceph's parser first. unless it's fine to drop the backward
compatibility of command line syntax of ceph-osd.

Signed-off-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agocrimson/auth: add domain specific error types
Kefu Chai [Tue, 9 Oct 2018 07:18:14 +0000 (15:18 +0800)]
crimson/auth: add domain specific error types

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #25870 from votdev/validate_ip_addr
Lenz Grimmer [Thu, 17 Jan 2019 12:08:48 +0000 (13:08 +0100)]
Merge pull request #25870 from votdev/validate_ip_addr

mgr/dashboard: Improve RGW address parser

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
6 years agocommon/numa: Add shim routines for NUMA on FreeBSD. 25920/head
Willem Jan Withagen [Fri, 11 Jan 2019 17:40:22 +0000 (18:40 +0100)]
common/numa: Add shim routines for NUMA on FreeBSD.

FreeBSD has some of the numa features,
but for now faking them will do.

Also don't test NUMA on FreeBSD.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
6 years agoMerge pull request #25959 from xiexingguo/wip-memory-leak
Xie Xingguo [Thu, 17 Jan 2019 10:23:23 +0000 (18:23 +0800)]
Merge pull request #25959 from xiexingguo/wip-memory-leak

crush: fix memory leak

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #25941 from xiexingguo/wip-warn-enable-upmap
Xie Xingguo [Thu, 17 Jan 2019 10:22:28 +0000 (18:22 +0800)]
Merge pull request #25941 from xiexingguo/wip-warn-enable-upmap

mgr/balancer: blame if upmap won't actually work

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #25836 from votdev/improve_rgw_status_endpoint
Lenz Grimmer [Thu, 17 Jan 2019 08:05:34 +0000 (09:05 +0100)]
Merge pull request #25836 from votdev/improve_rgw_status_endpoint

mgr/dashboard: Improve exception handling in /api/rgw/status

Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
6 years agoMerge pull request #25950 from gregsfortytwo/wip-githubmap
Gregory Farnum [Thu, 17 Jan 2019 05:09:29 +0000 (21:09 -0800)]
Merge pull request #25950 from gregsfortytwo/wip-githubmap

Wip githubmap

6 years agoMerge pull request #25751 from batrick/stackstringstream-reset
Kefu Chai [Thu, 17 Jan 2019 02:43:35 +0000 (10:43 +0800)]
Merge pull request #25751 from batrick/stackstringstream-reset

common: reinit StackStringStream on clear

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agocrush: switch to *get_or_create_class_id* helper whenever possible 25981/head
xie xingguo [Tue, 15 Jan 2019 09:28:46 +0000 (17:28 +0800)]
crush: switch to *get_or_create_class_id* helper whenever possible

Because:
- it is simpler
- it is safer

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoMDSMon: silence unable to load metadata 25693/head
Song Shun [Mon, 24 Dec 2018 12:49:24 +0000 (20:49 +0800)]
MDSMon: silence unable to load metadata

  silence unable to load metadata

Signed-off-by: Song Shun <song.shun3@zte.com.cn>
6 years agocrimson/net: drop authenticator retry
Sage Weil [Wed, 16 Jan 2019 21:44:06 +0000 (15:44 -0600)]
crimson/net: drop authenticator retry

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomsg/simple: remove forced authorizer refresh
Sage Weil [Wed, 16 Jan 2019 21:39:53 +0000 (15:39 -0600)]
msg/simple: remove forced authorizer refresh

This synchronous check has always been kludgey; remove it and just fault
instead, just like we did with 794a8f9cf51cf176636d114ccfbbf68fbc304083
in AsyncMessenger.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #25994 into master
Patrick Donnelly [Wed, 16 Jan 2019 20:43:35 +0000 (12:43 -0800)]
Merge PR #25994 into master

* refs/pull/25994/head:
qa: silence read-only WRN for damage testing

Reviewed-by: Jeff Layton <jlayton@redhat.com>
6 years agomgr/dashboard: Fix /api/grafana/validation 25997/head
Zack Cerza [Wed, 16 Jan 2019 20:36:23 +0000 (13:36 -0700)]
mgr/dashboard: Fix /api/grafana/validation

If the Grafana URL contains a trailing slash, this endpoint ends up
returning a 404, disabling the integration entirely. Fix that.

Signed-off-by: Zack Cerza <zack@redhat.com>
6 years agoqa: silence read-only WRN for damage testing 25994/head
Patrick Donnelly [Wed, 16 Jan 2019 18:52:09 +0000 (10:52 -0800)]
qa: silence read-only WRN for damage testing

Fixes: http://tracker.ceph.com/issues/37944
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>