]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agomgr/dashboard: remove confusing SyncObject stuff 15577/head
John Spray [Thu, 8 Jun 2017 12:57:50 +0000 (08:57 -0400)]
mgr/dashboard: remove confusing SyncObject stuff

This was a hangover from when these wrapper classes
were borrowed from Calamari, which used these
versions/equality functions to work out when
to go fetch data from the ceph cluster.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomgr/dashboard: fix server view on funny version format
John Spray [Thu, 8 Jun 2017 12:06:12 +0000 (08:06 -0400)]
mgr/dashboard: fix server view on funny version format

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomgr/dashboard: fix error handling in remote_view_cache
John Spray [Wed, 7 Jun 2017 16:50:38 +0000 (12:50 -0400)]
mgr/dashboard: fix error handling in remote_view_cache

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomgr/dashboard: keep a global librados instance
John Spray [Wed, 7 Jun 2017 16:48:40 +0000 (12:48 -0400)]
mgr/dashboard: keep a global librados instance

...so that classes that need one aren't creating
their own all the time.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #15575 from liewegas/wip-pgnls-note
Gregory Farnum [Thu, 8 Jun 2017 13:55:37 +0000 (06:55 -0700)]
Merge pull request #15575 from liewegas/wip-pgnls-note

PendingReleaseNotes: notes on whiteouts vs pgnls

8 years agoMerge pull request #15309 from ifed01/wip-bluestore-boost-statfs
Sage Weil [Thu, 8 Jun 2017 13:52:34 +0000 (08:52 -0500)]
Merge pull request #15309 from ifed01/wip-bluestore-boost-statfs

os/bluestore: keep statfs replica in RAM to avoid expensive KV retrieval

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoPendingReleaseNotes: notes on whiteouts vs pgnls 15575/head
Sage Weil [Thu, 8 Jun 2017 13:41:25 +0000 (09:41 -0400)]
PendingReleaseNotes: notes on whiteouts vs pgnls

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15532 from dillaman/wip-rbd-mirror-stress
Mykola Golub [Thu, 8 Jun 2017 11:42:29 +0000 (14:42 +0300)]
Merge pull request #15532 from dillaman/wip-rbd-mirror-stress

rbd-mirror: lock loss during sync should wait for in-flight copies

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #15518 from dillaman/wip-rbd-missing-default-pool
Mykola Golub [Thu, 8 Jun 2017 11:41:51 +0000 (14:41 +0300)]
Merge pull request #15518 from dillaman/wip-rbd-missing-default-pool

rbd: removed hardcoded default pool

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoos/bluestore: introduce a debug switch to bypass kv update. 15309/head
Igor Fedotov [Thu, 13 Apr 2017 14:51:33 +0000 (17:51 +0300)]
os/bluestore: introduce a debug switch to bypass kv update.

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoos/bluestore: introduce debug parameter to bypass bdev verification
Igor Fedotov [Fri, 26 May 2017 12:55:47 +0000 (05:55 -0700)]
os/bluestore: introduce debug parameter to bypass bdev verification

E.g. this allows to backup WAL/DB volumes after preconditioning and quickly rollback to that state when needed.

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoos/bluestore: keep statfs replica in memory to avoid expensive KV access
Igor Fedotov [Fri, 26 May 2017 12:33:05 +0000 (15:33 +0300)]
os/bluestore: keep statfs replica in memory to avoid expensive KV access

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoos/bluestore: move volatile_statfs struct out of TransContext
Igor Fedotov [Fri, 26 May 2017 12:07:28 +0000 (15:07 +0300)]
os/bluestore: move volatile_statfs struct out of TransContext

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #15433 from wjwithagen/wip-wjw-prettytable
Loic Dachary [Thu, 8 Jun 2017 10:52:31 +0000 (12:52 +0200)]
Merge pull request #15433 from wjwithagen/wip-wjw-prettytable

ceph-disk: add setting for external py-modules for tox-testing

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoceph-disk: use system modules if needed 15433/head
Willem Jan Withagen [Fri, 2 Jun 2017 14:53:43 +0000 (16:53 +0200)]
ceph-disk: use system modules if needed

 - prettytable usage was introduced in:
https://github.com/ceph/ceph/commit/3fa8bb1
   It is in the install-deps.sh file to be installed, but
   it is not per default installed in the testenvironment
   So allow tox tests to use "external" modules

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agoMerge pull request #14866 from chardan/jfw-wip-halflife_atomic_t-varan
Kefu Chai [Thu, 8 Jun 2017 01:57:26 +0000 (09:57 +0800)]
Merge pull request #14866 from chardan/jfw-wip-halflife_atomic_t-varan

common,test: migrate atomic_t to std::atomic

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15520 from liewegas/wip-max-object-size
Sage Weil [Wed, 7 Jun 2017 22:08:32 +0000 (17:08 -0500)]
Merge pull request #15520 from liewegas/wip-max-object-size

osd: reduce rados_max_object_size from 100 GB -> 128 MB

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoosd: reduce rados_max_object_size from 100 GB -> 128 MB 15520/head
Sage Weil [Tue, 6 Jun 2017 18:56:35 +0000 (14:56 -0400)]
osd: reduce rados_max_object_size from 100 GB -> 128 MB

I'm not sure why we had this so huge!  128 MB is a pretty reasonable size.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15230 from chardan/jfw-wip-halflife_atomic_t-xio
Sage Weil [Wed, 7 Jun 2017 21:00:30 +0000 (16:00 -0500)]
Merge pull request #15230 from chardan/jfw-wip-halflife_atomic_t-xio

xio: migrate atomic_t to std::atomic<>

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15516 from javacruft/i386-cmake-fixes
Sage Weil [Wed, 7 Jun 2017 21:00:10 +0000 (16:00 -0500)]
Merge pull request #15516 from javacruft/i386-cmake-fixes

cmake: misc fixes for build on i386

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15525 from wjwithagen/wip-wjw-clang-testosdmap
Sage Weil [Wed, 7 Jun 2017 20:59:54 +0000 (15:59 -0500)]
Merge pull request #15525 from wjwithagen/wip-wjw-clang-testosdmap

test: osd/TestOSDMap.cc: fix Clang complain about promotion

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agorbd: removed hardcoded default rbd pool name 15518/head
Jason Dillaman [Tue, 6 Jun 2017 17:24:54 +0000 (13:24 -0400)]
rbd: removed hardcoded default rbd pool name

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agorbd-nbd: removed default rbd pool name
Jason Dillaman [Tue, 6 Jun 2017 13:40:13 +0000 (09:40 -0400)]
rbd-nbd: removed default rbd pool name

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agorbd-replay: removed default rbd pool name
Jason Dillaman [Tue, 6 Jun 2017 13:39:18 +0000 (09:39 -0400)]
rbd-replay: removed default rbd pool name

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agopybind/rbd: module should depend on librbd not rbd CLI
Jason Dillaman [Tue, 6 Jun 2017 13:38:09 +0000 (09:38 -0400)]
pybind/rbd: module should depend on librbd not rbd CLI

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agocommon: new 'rbd_default_pool' configuration option
Jason Dillaman [Tue, 6 Jun 2017 02:08:01 +0000 (22:08 -0400)]
common: new 'rbd_default_pool' configuration option

The 'rbd' pool will no longer be automatically created. Allow
the user to specify a custom default RBD pool name.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agorbd-mirror: narrowed scope of exclusive lock op tracking 15532/head
Jason Dillaman [Wed, 7 Jun 2017 14:52:24 +0000 (10:52 -0400)]
rbd-mirror: narrowed scope of exclusive lock op tracking

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agorbd-mirror: partial revert of 649b29d
Jason Dillaman [Wed, 7 Jun 2017 14:06:59 +0000 (10:06 -0400)]
rbd-mirror: partial revert of 649b29d

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #15498 from adamemerson/wip-fixation
Adam C. Emerson [Wed, 7 Jun 2017 17:29:28 +0000 (13:29 -0400)]
Merge pull request #15498 from adamemerson/wip-fixation

test: Fix narrowing conversion
rgw: Support certain archaic and antiquated distributions

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15436 from liewegas/wip-versions
Yuri Weinstein [Wed, 7 Jun 2017 16:36:59 +0000 (09:36 -0700)]
Merge pull request #15436 from liewegas/wip-versions

mon: {mon,osd,mds} {versions,count-metadata}

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15501 from liewegas/wip-blocked-is-err
Sage Weil [Wed, 7 Jun 2017 16:17:39 +0000 (11:17 -0500)]
Merge pull request #15501 from liewegas/wip-blocked-is-err

mon/PGMap: call blocked requests ERR not WARN

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agomon/PGMap: call requests blocked for 128x as long ERR not WARN 15501/head
Sage Weil [Wed, 7 Jun 2017 16:16:58 +0000 (12:16 -0400)]
mon/PGMap: call requests blocked for 128x as long ERR not WARN

- rename the option (max -> warn)
- add an err_..._ratio multiplier
- switch to HEALTH_ERR once requests are blocked long enough
- make the error ratio high (default is 32*128s -> about an hour) so that
we don't trigger on a heavily loaded cluster.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agorgw: Support certain archaic and antiquated distributions 15498/head
Adam C. Emerson [Mon, 5 Jun 2017 19:46:45 +0000 (15:46 -0400)]
rgw: Support certain archaic and antiquated distributions

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
8 years agotest: Fix narrowing conversion
Adam C. Emerson [Mon, 5 Jun 2017 19:33:31 +0000 (15:33 -0400)]
test: Fix narrowing conversion

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
8 years agoMerge pull request #15531 from liewegas/wip-osd-pglog
Sage Weil [Wed, 7 Jun 2017 14:48:57 +0000 (09:48 -0500)]
Merge pull request #15531 from liewegas/wip-osd-pglog

osd: rename osd -> osd_pglog; include pglog-related bufferlists

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoosd/osd_types: put pg_log_entry_t::extra_reqids in osd_pglog mempool 15531/head
Sage Weil [Wed, 7 Jun 2017 01:57:04 +0000 (21:57 -0400)]
osd/osd_types: put pg_log_entry_t::extra_reqids in osd_pglog mempool

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: put pg_log_entry_t::snaps in osd_pglog mempool
Sage Weil [Tue, 6 Jun 2017 20:55:23 +0000 (16:55 -0400)]
osd: put pg_log_entry_t::snaps in osd_pglog mempool

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: map ObjectModDesc to osd_pglog pool
Sage Weil [Tue, 6 Jun 2017 20:50:22 +0000 (16:50 -0400)]
osd: map ObjectModDesc to osd_pglog pool

This can consume significant space for EC pools.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: move pglog to osd_pglog mempool
Sage Weil [Tue, 6 Jun 2017 20:49:11 +0000 (16:49 -0400)]
osd: move pglog to osd_pglog mempool

This actually everything in the osd mempool, so it's basically a rename.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15413 from tchaikov/wip-rgw-boost-cleanup
Kefu Chai [Wed, 7 Jun 2017 14:34:43 +0000 (22:34 +0800)]
Merge pull request #15413 from tchaikov/wip-rgw-boost-cleanup

rgw: drop asio/{yield,coroutine}.hpp replacements

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #15434 from yuyuyu101/wip-lz4
Sage Weil [Wed, 7 Jun 2017 14:07:45 +0000 (09:07 -0500)]
Merge pull request #15434 from yuyuyu101/wip-lz4

compressor: add LZ4 support

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15512 from jcsp/wip-mgrmap-epoch
Sage Weil [Wed, 7 Jun 2017 14:05:58 +0000 (09:05 -0500)]
Merge pull request #15512 from jcsp/wip-mgrmap-epoch

mon: don't prefix mgr summary with epoch number

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15437 from dachary/wip-bluestore
Sage Weil [Wed, 7 Jun 2017 14:02:29 +0000 (09:02 -0500)]
Merge pull request #15437 from dachary/wip-bluestore

ceph-disk: add --filestore argument, default to --bluestore

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15547 from wjwithagen/wip-wjw-freebsd-get_device_by_fd
Sage Weil [Wed, 7 Jun 2017 13:43:08 +0000 (08:43 -0500)]
Merge pull request #15547 from wjwithagen/wip-wjw-freebsd-get_device_by_fd

common/blkdev.cc: propagate get_device_by_fd to different OSes

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15435 from liewegas/wip-bluestore-warning
Sage Weil [Wed, 7 Jun 2017 13:41:41 +0000 (08:41 -0500)]
Merge pull request #15435 from liewegas/wip-bluestore-warning

os/bluestore: fix warning

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
8 years agoMerge pull request #15371 from liewegas/wip-mon-client-features
Sage Weil [Wed, 7 Jun 2017 13:31:46 +0000 (08:31 -0500)]
Merge pull request #15371 from liewegas/wip-mon-client-features

mon: track features from connect clients, and use it to gate set-require-min-compat-client

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agocommon/blkdev.cc: propagate get_device_by_fd to different OSes 15547/head
Willem Jan Withagen [Wed, 7 Jun 2017 09:21:57 +0000 (11:21 +0200)]
common/blkdev.cc: propagate get_device_by_fd to different OSes

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agoMerge pull request #15530 from tchaikov/wip-jq-without-first
Kefu Chai [Wed, 7 Jun 2017 08:44:54 +0000 (16:44 +0800)]
Merge pull request #15530 from tchaikov/wip-jq-without-first

qa/workunits/ceph-helpers.sh: use syntax understood by jq 1.3

Reviewed-by: David Zafman <dzafman@redhat.com>
8 years agoMerge pull request #15423 from liewegas/wip-fix-indent
Kefu Chai [Wed, 7 Jun 2017 05:09:45 +0000 (13:09 +0800)]
Merge pull request #15423 from liewegas/wip-fix-indent

mon/FSCommand: fix indentation

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15497 from liewegas/wip-log-last
Kefu Chai [Wed, 7 Jun 2017 04:30:06 +0000 (12:30 +0800)]
Merge pull request #15497 from liewegas/wip-log-last

mon/LogMonitor: 'log last' command

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15522 from liewegas/wip-19901
Kefu Chai [Wed, 7 Jun 2017 04:20:57 +0000 (12:20 +0800)]
Merge pull request #15522 from liewegas/wip-19901

ceph_test_rados_api_misc: fix LibRadosMiscConnectFailure.ConnectFailure retry

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agomon/OSDMonitor: validate set-require-min-compat-client against connected clients 15371/head
Sage Weil [Tue, 30 May 2017 22:29:03 +0000 (18:29 -0400)]
mon/OSDMonitor: validate set-require-min-compat-client against connected clients

Prevent the user from setting a require_min_compat_client if a disallowed
client is currently connected to the mon cluster.  Instead, you'll get an
error like

Error EPERM: cannot set require_min_compat_client to luminous: 1 connected client(s) look like jewel (missing 0x800000000200000); add --yes-i-really-mean-it to do it anyway

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agocommon: ceph_release_[from_]features
Sage Weil [Tue, 30 May 2017 22:18:41 +0000 (18:18 -0400)]
common: ceph_release_[from_]features

Map releases to client features (and back again).

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon: add 'features' command to show connected client features
Sage Weil [Tue, 30 May 2017 20:37:22 +0000 (16:37 -0400)]
mon: add 'features' command to show connected client features

for whole mon cluster

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15422 from liewegas/wip-osd-rotational
Sage Weil [Wed, 7 Jun 2017 03:09:46 +0000 (22:09 -0500)]
Merge pull request #15422 from liewegas/wip-osd-rotational

osd: hdd vs ssd defaults for osd op thread pool

Reviewed-by: Mark Nelson <mnelson@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #15517 from liewegas/wip-20197
Sage Weil [Wed, 7 Jun 2017 03:07:32 +0000 (22:07 -0500)]
Merge pull request #15517 from liewegas/wip-20197

qa/suites/rados/upgrade: restart mds

8 years agoMerge pull request #15523 from ceph/wip-16674
Sage Weil [Wed, 7 Jun 2017 03:04:48 +0000 (22:04 -0500)]
Merge pull request #15523 from ceph/wip-16674

selinux: Allow read on var_run_t

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoqa/workunits/ceph-helpers.sh: use syntax understood by jq 1.3 15530/head
Kefu Chai [Wed, 7 Jun 2017 01:32:19 +0000 (09:32 +0800)]
qa/workunits/ceph-helpers.sh: use syntax understood by jq 1.3

trusty still ships jq 1.3 which does not offer "first". see
https://stedolan.github.io/jq/manual/v1.3/ .

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14745 from trociny/wip-18789
Jason Dillaman [Wed, 7 Jun 2017 00:56:49 +0000 (20:56 -0400)]
Merge pull request #14745 from trociny/wip-18789

rbd-mirror: coordinate image syncs with leader

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #15243 from yuyuyu101/wip-20049
Haomai Wang [Wed, 7 Jun 2017 00:32:53 +0000 (08:32 +0800)]
Merge pull request #15243 from yuyuyu101/wip-20049

msg: don't set msgr addr when disabing client bind

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #14117 from zhangsw/fix-rgw-getobjectmetadata-bug
Yehuda Sadeh [Wed, 7 Jun 2017 00:18:39 +0000 (17:18 -0700)]
Merge pull request #14117 from zhangsw/fix-rgw-getobjectmetadata-bug

rgw: return the version id in get object and object metadata request.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #15386 from ivancich/wip-add-readme-that-dmclock-is-a-subtree
Josh Durgin [Tue, 6 Jun 2017 22:48:04 +0000 (15:48 -0700)]
Merge pull request #15386 from ivancich/wip-add-readme-that-dmclock-is-a-subtree

doc: add README to dmclock subdir to inform developers it's a git subtree

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #15392 from dillaman/wip-20049
Yuri Weinstein [Tue, 6 Jun 2017 22:18:51 +0000 (15:18 -0700)]
Merge pull request #15392 from dillaman/wip-20049

msg: do not enable client-side binding by default

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agotest: osd/TestOSDMap.cc: fix Clang complain about promotion 15525/head
Willem Jan Withagen [Tue, 6 Jun 2017 21:35:18 +0000 (23:35 +0200)]
test: osd/TestOSDMap.cc: fix Clang complain about promotion

/home/jenkins/workspace/ceph-freebsd/src/test/osd/TestOSDMap.cc:444:15: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'int' in initializer list [-Wc++11-narrowing]
    m.set(x, {i});
              ^
/home/jenkins/workspace/ceph-freebsd/src/test/osd/TestOSDMap.cc:444:15: note: insert an explicit cast to silence this issue
    m.set(x, {i});
              ^
              static_cast<int>( )
1 error generated.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agoMerge pull request #15513 from Fabian-Gruenbichler/fixmgrdesc
Sage Weil [Tue, 6 Jun 2017 20:31:22 +0000 (15:31 -0500)]
Merge pull request #15513 from Fabian-Gruenbichler/fixmgrdesc

debian: ceph-mgr: fix package description

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #15375 from ivancich/wip-fix-dmclock-testing
Sage Weil [Tue, 6 Jun 2017 20:27:07 +0000 (15:27 -0500)]
Merge pull request #15375 from ivancich/wip-fix-dmclock-testing

osd/dmclock/testing: reorganize testing, building now optional

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agoMerge pull request #15378 from Liuchang0812/print_ret_code_of_json_command
Sage Weil [Tue, 6 Jun 2017 20:26:28 +0000 (15:26 -0500)]
Merge pull request #15378 from Liuchang0812/print_ret_code_of_json_command

ceph.in: print return code when json_command failed

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15496 from wjwithagen/wip-wjw-host-to-ceph-errno
Sage Weil [Tue, 6 Jun 2017 20:26:15 +0000 (15:26 -0500)]
Merge pull request #15496 from wjwithagen/wip-wjw-host-to-ceph-errno

core: include/types.h, introduce host_to_ceph_errno

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15500 from liewegas/wip-20135
Sage Weil [Tue, 6 Jun 2017 20:25:37 +0000 (15:25 -0500)]
Merge pull request #15500 from liewegas/wip-20135

pybind/ceph_argparse: fix empty string check

8 years agoMerge pull request #15502 from xiexingguo/wip-fix-overload-extents
Sage Weil [Tue, 6 Jun 2017 20:25:16 +0000 (15:25 -0500)]
Merge pull request #15502 from xiexingguo/wip-fix-overload-extents

os/bluestore: avoid overloading extents during reshard; atomic deferred_batch_ops

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoqa/suites/rados/upgrade: restart mds 15517/head
Sage Weil [Tue, 6 Jun 2017 20:23:25 +0000 (16:23 -0400)]
qa/suites/rados/upgrade: restart mds

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoselinux: Allow read on var_run_t 15523/head
Boris Ranto [Tue, 6 Jun 2017 19:27:54 +0000 (21:27 +0200)]
selinux: Allow read on var_run_t

Fixes: http://tracker.ceph.com/issues/16674
Signed-off-by: Boris Ranto <branto@redhat.com>
8 years agoceph_test_rados_api_misc: fix LibRadosMiscConnectFailure.ConnectFailure retry 15522/head
Sage Weil [Tue, 6 Jun 2017 19:13:50 +0000 (15:13 -0400)]
ceph_test_rados_api_misc: fix LibRadosMiscConnectFailure.ConnectFailure retry

Fixes: http://tracker.ceph.com/issues/19901
Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd/dmclock/testing: reorganize testing, building now optional 15375/head
J. Eric Ivancich [Fri, 19 May 2017 20:54:33 +0000 (16:54 -0400)]
osd/dmclock/testing: reorganize testing, building now optional

Modify cmake files to take advantage or re-organization of dmclock's
cmake set-up, specifically not having dmclock's cmake files call
add_test. Remove dmclock tests from being dependencies on ceph's
"test" target. Make change so dmclock tests are not built unless
WITH_TESTS and WITH_DMCLOCK_TESTS are both set. This is so openSUSE
Leap will build correctly.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
8 years agoMerge commit '5c612d7e32a07a01b3b97f9cf58f2a3cef0e2e73'
J. Eric Ivancich [Tue, 6 Jun 2017 19:01:03 +0000 (15:01 -0400)]
Merge commit '5c612d7e32a07a01b3b97f9cf58f2a3cef0e2e73'

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
8 years agoSquashed 'src/dmclock/' changes from d6586d7..64bcc6e
J. Eric Ivancich [Tue, 6 Jun 2017 19:01:02 +0000 (15:01 -0400)]
Squashed 'src/dmclock/' changes from d6586d7..64bcc6e

64bcc6e Remove FindGTest and FindBoost, which already exist in cmake required version 2.8.11 and later. Also clean up.
ed6dc60 Do some clean-up and remove memory leaks from tests and simulations.
360172a Allow RunEvery object to be ended before destruction via "join" member function.
135b5d0 Fix two bugs discovered by valgrind. Do some other code clean-up as well.
a26d29e Modify cmake files to match naming of cmake's upstream gtest and ceph's boost.
e23e63f Reorganize CMakeLists.txt files, so that projects that incorporate dmclock can control whether add_test is called. Now, add_test is called only at the top-level. Projects that incorporate dmclock can use add_subdirectory on subdirectories beneath the top-level to selective exactly what is included.

git-subtree-dir: src/dmclock
git-subtree-split: 64bcc6ea697c7e790ec4a4229d1bb1d492f9e803

8 years agoqa/workunits/cephtool/test.sh: test 'log last [n]' 15497/head
Sage Weil [Tue, 6 Jun 2017 18:52:26 +0000 (14:52 -0400)]
qa/workunits/cephtool/test.sh: test 'log last [n]'

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agocommon/LogEntry: make LogEntryKey opaque and cache its hash value
Sage Weil [Tue, 6 Jun 2017 18:50:46 +0000 (14:50 -0400)]
common/LogEntry: make LogEntryKey opaque and cache its hash value

This avoids recalculating.  We eliminate the default ctor at the same
time and make the type totally opaque (so that its fields cannot be
modified except by the ctor and decode).

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15390 from liewegas/wip-osdmap-state
Sage Weil [Tue, 6 Jun 2017 18:19:18 +0000 (13:19 -0500)]
Merge pull request #15390 from liewegas/wip-osdmap-state

osd/OSDMap: make osd_state 32 bits wide

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #15515 from tchaikov/wip-crc32-aarch64
Dan Mick [Tue, 6 Jun 2017 18:01:53 +0000 (11:01 -0700)]
Merge pull request #15515 from tchaikov/wip-crc32-aarch64

crc32c: include acconfig.h to fix ceph_crc32c_aarch64()

Reviewed-by: Dan Mick <dmick@redhat.com>
8 years agoceph-disk: add --filestore argument, default to --bluestore 15437/head
Sage Weil [Wed, 19 Apr 2017 13:31:57 +0000 (09:31 -0400)]
ceph-disk: add --filestore argument, default to --bluestore

Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
8 years agobuild: misc fixes for cmake build on i386 15516/head
James Page [Tue, 6 Jun 2017 14:01:40 +0000 (15:01 +0100)]
build: misc fixes for cmake build on i386

Scope SIMD CPU flag detection base on target architecture,
resolving build failures in gf-complete on i386; this is
inline with the previous autotools based feature detection.

Only compile crypto/isa-l if yasm 64 bit complier is found,
effectively limiting scope to x86_64.

Signed-off-by: James Page <james.page@ubuntu.com>
8 years agocrc32c: include acconfig.h to fix ceph_crc32c_aarch64() 15515/head
Kefu Chai [Tue, 6 Jun 2017 13:40:19 +0000 (21:40 +0800)]
crc32c: include acconfig.h to fix ceph_crc32c_aarch64()

HAVE_ARMV8_CRC is defined by "acconfig.h". so we need to include it for
the definition.

it's a regresssion introduced by 2a3382f. in that change,
crc32c_intel_baseline.h was removed from crc32.cc, and that header
includes accconfig.h indirectly. that's why we will have a dummy
ceph_crc32c_aarch64() which always returns 0. the dummy implementation
was intended to please the compiler. but we can probably just drop it in
future as a cleanup.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15511 from tchaikov/wip-doc-cartesian-product
Kefu Chai [Tue, 6 Jun 2017 13:57:49 +0000 (21:57 +0800)]
Merge pull request #15511 from tchaikov/wip-doc-cartesian-product

doc: update sample explaning "%" operator in test suites

Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Loic Dachary <loic@dachary.org>
8 years agoMerge pull request #14074 from jecluis/wip-mon-osd-replacement
Sage Weil [Tue, 6 Jun 2017 13:25:15 +0000 (08:25 -0500)]
Merge pull request #14074 from jecluis/wip-mon-osd-replacement

mon: replace osds with `osd destroy` and `osd new`

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15487 from liewegas/wip-no-more-stat-spam
Sage Weil [Tue, 6 Jun 2017 13:24:48 +0000 (08:24 -0500)]
Merge pull request #15487 from liewegas/wip-no-more-stat-spam

mgr/DaemonServer: stop spamming log with pg stats

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15494 from liewegas/wip-20187
Sage Weil [Tue, 6 Jun 2017 13:24:08 +0000 (08:24 -0500)]
Merge pull request #15494 from liewegas/wip-20187

qa/workunits/cephtool/test.sh: fix osd full health detail grep

Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agopybind/ceph_argparse: fix no arg check 15500/head
Sage Weil [Tue, 6 Jun 2017 13:23:32 +0000 (09:23 -0400)]
pybind/ceph_argparse: fix no arg check

This fixes breakage from commit a1214a702cfd8465deb91847f4dc63c0e80fb586
that caused a [] to be appended to some json argument lists.

Fixes: http://tracker.ceph.com/issues/20135
Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoceph-mgr: fix package description 15513/head
Fabian Grünbichler [Thu, 18 May 2017 12:35:19 +0000 (14:35 +0200)]
ceph-mgr: fix package description

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
8 years agotool/ceph: print return code when json_command failed 15378/head
liuchang0812 [Wed, 31 May 2017 07:34:25 +0000 (15:34 +0800)]
tool/ceph: print return code when json_command failed

Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
8 years agodoc: update sample explaning "%" operator in tes suites 15511/head
Kefu Chai [Tue, 6 Jun 2017 12:06:52 +0000 (20:06 +0800)]
doc: update sample explaning "%" operator in tes suites

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomon: don't prefix mgr summary with epoch number 15512/head
John Spray [Tue, 6 Jun 2017 12:16:05 +0000 (13:16 +0100)]
mon: don't prefix mgr summary with epoch number

Missed this one when culling the various epochs
from the human readable ceph status output.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #15499 from jcsp/wip-doc-whitespace
John Spray [Tue, 6 Jun 2017 11:36:05 +0000 (12:36 +0100)]
Merge pull request #15499 from jcsp/wip-doc-whitespace

doc: fix syntax on code snippets in cephfs/multimds

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoMerge pull request #15492 from dillaman/wip-20185
Mykola Golub [Tue, 6 Jun 2017 10:49:29 +0000 (13:49 +0300)]
Merge pull request #15492 from dillaman/wip-20185

rbd: properly decode features when using image name optional

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #15483 from dillaman/wip-20182
Mykola Golub [Tue, 6 Jun 2017 10:48:51 +0000 (13:48 +0300)]
Merge pull request #15483 from dillaman/wip-20182

librbd: filter expected error codes from is_exclusive_lock_owner

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agorbd-mirror A/A: coordinate image syncs with leader 14745/head
Mykola Golub [Mon, 17 Apr 2017 19:05:25 +0000 (21:05 +0200)]
rbd-mirror A/A: coordinate image syncs with leader

Fixes: http://tracker.ceph.com/issues/18789
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #15490 from ceph/wip-fix-selinux
Boris Ranto [Tue, 6 Jun 2017 08:47:29 +0000 (10:47 +0200)]
Merge pull request #15490 from ceph/wip-fix-selinux

selinux: Install ceph-base before ceph-selinux

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agorbd-mirror: resolve potential recursive lock
Mykola Golub [Fri, 5 May 2017 09:56:50 +0000 (11:56 +0200)]
rbd-mirror: resolve potential recursive lock

Would have been possible when release_image had lead to cancel
sync (i.e. cancel_sync_request).

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agorbd-mirror: make sync throttler per pool
Mykola Golub [Sun, 16 Apr 2017 17:58:42 +0000 (19:58 +0200)]
rbd-mirror: make sync throttler per pool

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agotest/rbd_mirror: TestMockImageReplayer cleanup
Mykola Golub [Sat, 22 Apr 2017 10:26:16 +0000 (12:26 +0200)]
test/rbd_mirror: TestMockImageReplayer cleanup

Remove unnecessary ImageSyncThrottler dependency.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>