]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agoosd/PG: restrict want_acting to up+acting on recovery completion 13420/head
Sage Weil [Tue, 14 Feb 2017 20:00:09 +0000 (15:00 -0500)]
osd/PG: restrict want_acting to up+acting on recovery completion

On recovery completion we recalculate want_acting to see if we
should add recently backfilled osds into acting.  However, at
this point we may have gotten infos from others OSDs outside
of up/acting that could be used for want_acting.  We currently
assert that only up/acting osds are used in
PG::RecoveryState::Active::react(const AdvMap&), so we must
restrict want_acting to up/acting here.

We could remove this restriction, but it would mean

1) checking on every map change that want_acting hasn't been
invalidated, and if so, recalculating want_acting and requesting
a new pg_temp.  Also, presumably

2) on each new info, checking whether we can construct a better
want_acting, and if so, doing it.

That would be a good thing, but is a more complicated change.  In
reality this case comes up very rarely, so simply make our
post-recovery want_acting calculation limit itself to up+acting.

See 1db67c443d84dc5d1ff53cc820fdfd4a2128b680 for the assertion.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13389 from trociny/wip-rbd-nbd-unused_old_format
Jason Dillaman [Tue, 14 Feb 2017 16:42:22 +0000 (11:42 -0500)]
Merge pull request #13389 from trociny/wip-rbd-nbd-unused_old_format

rbd-nbd: no need to check image format any more

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13248 from rzarzynski/wip-rgw-18796
Casey Bodley [Tue, 14 Feb 2017 16:37:04 +0000 (11:37 -0500)]
Merge pull request #13248 from rzarzynski/wip-rgw-18796

rgw: improve handling of illformed Swift's container ACLs.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #12810 from zhangsw/fix-rgw-datasync-errorlog
Casey Bodley [Tue, 14 Feb 2017 16:36:04 +0000 (11:36 -0500)]
Merge pull request #12810 from zhangsw/fix-rgw-datasync-errorlog

rgw: error_code in error log is not right when data sync fails.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #13394 from tchaikov/wip-18838
John Spray [Tue, 14 Feb 2017 11:09:26 +0000 (11:09 +0000)]
Merge pull request #13394 from tchaikov/wip-18838

cmake: link consumers of libclient with libcommon

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #11128 from tchaikov/wip-16091
Josh Durgin [Tue, 14 Feb 2017 08:00:36 +0000 (00:00 -0800)]
Merge pull request #11128 from tchaikov/wip-16091

mon/MonClient: hunt monitors in parallel

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agomon/MonClient: remove unnecessary helper functions 11128/head
Kefu Chai [Wed, 12 Oct 2016 09:07:15 +0000 (17:07 +0800)]
mon/MonClient: remove unnecessary helper functions

refactor _reopen_session() by removing wrapper around it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomon/MonClient: remove unnecessary include
Kefu Chai [Sun, 9 Oct 2016 07:06:26 +0000 (15:06 +0800)]
mon/MonClient: remove unnecessary include

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomon/monclient: hunt for multiple monitor in parallel
Kefu Chai [Wed, 14 Sep 2016 13:39:04 +0000 (21:39 +0800)]
mon/monclient: hunt for multiple monitor in parallel

* add an option "mon_client_hunt_parallel" for the maxmimum number of parallel
  hunting sessions.

Fixes: http://tracker.ceph.com/issues/16091
Signed-off-by: Steven Dieffenbach <sdieffen@redhat.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomon/MonClient: mark monc_lock a mutable
Kefu Chai [Tue, 14 Feb 2017 02:58:17 +0000 (10:58 +0800)]
mon/MonClient: mark monc_lock a mutable

so we can label the getters of MonClient with the `const` specifier.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomon/MonClient: use __func__ for function names
Kefu Chai [Mon, 19 Sep 2016 09:54:27 +0000 (17:54 +0800)]
mon/MonClient: use __func__ for function names

Signed-off-by: Steven Dieffenbach <sdieffen@redhat.com>
8 years agoclient: move monc->set_want_keys() before monc->init()
Kefu Chai [Thu, 1 Dec 2016 14:27:30 +0000 (06:27 -0800)]
client: move monc->set_want_keys() before monc->init()

if monc's tick connect to the mon before monc.set_want_keys() is called,
monc won't ask for the key for MDS service, and hence will fail to
build_authorizer() for MDS service. this change ready us for the
feature of monc-connect-to-mon-in-parallel.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoauth: AuthClientHandler::init() pass parameter by const ref
Kefu Chai [Wed, 14 Sep 2016 13:38:46 +0000 (21:38 +0800)]
auth: AuthClientHandler::init() pass parameter by const ref

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13149 from liewegas/wip-list-objects
Sage Weil [Tue, 14 Feb 2017 04:20:20 +0000 (22:20 -0600)]
Merge pull request #13149 from liewegas/wip-list-objects

librados: remove legacy object listing API, clean up newer api

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #13409 from xiexingguo/wip-fix-throttler-name
Sage Weil [Tue, 14 Feb 2017 04:16:52 +0000 (22:16 -0600)]
Merge pull request #13409 from xiexingguo/wip-fix-throttler-name

os/bluestore: add "_" prefix for internal methods

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: add "_" prefix for internal methods 13409/head
xie xingguo [Tue, 14 Feb 2017 02:22:03 +0000 (10:22 +0800)]
os/bluestore: add "_" prefix for internal methods

These 4 methods are reserved for internal use only.
Prefix them with "_" to keep pace with others.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #13391 from Adirl/ibv_exp
Sage Weil [Tue, 14 Feb 2017 00:54:10 +0000 (18:54 -0600)]
Merge pull request #13391 from Adirl/ibv_exp

msg/async/rdma: check if exp verbs avail

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #13034 from wjwithagen/wip-wjw-brag
Sage Weil [Tue, 14 Feb 2017 00:51:26 +0000 (18:51 -0600)]
Merge pull request #13034 from wjwithagen/wip-wjw-brag

mailmap: Willem Jan Withagen affiliation

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #13209 from wjwithagen/wip-wjw-freebsd-init-ceph
Sage Weil [Tue, 14 Feb 2017 00:50:19 +0000 (18:50 -0600)]
Merge pull request #13209 from wjwithagen/wip-wjw-freebsd-init-ceph

init-ceph: Make init-ceph work under FreeBSD for init-system

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13377 from wjwithagen/wip-wjw-freebsd-jemalloc
Sage Weil [Tue, 14 Feb 2017 00:47:29 +0000 (18:47 -0600)]
Merge pull request #13377 from wjwithagen/wip-wjw-freebsd-jemalloc

CMakeLists.txt: suppress unneeded warning about jemalloc

8 years agoMerge pull request #13360 from ktdreyer/doc-firewalld-improvements
Sage Weil [Tue, 14 Feb 2017 00:46:15 +0000 (18:46 -0600)]
Merge pull request #13360 from ktdreyer/doc-firewalld-improvements

doc: improve firewalld instructions

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13399 from vumrao/wip-vumrao-18919
Sage Weil [Tue, 14 Feb 2017 00:42:15 +0000 (18:42 -0600)]
Merge pull request #13399 from vumrao/wip-vumrao-18919

rgw: change loglevel to 20 for 'System already converted' message

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #13396 from tchaikov/wip-doc-dedup-refs
Sage Weil [Tue, 14 Feb 2017 00:41:03 +0000 (18:41 -0600)]
Merge pull request #13396 from tchaikov/wip-doc-dedup-refs

doc: remove duplicated references

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #13400 from shinobu-x/wip-18840
Sage Weil [Tue, 14 Feb 2017 00:40:34 +0000 (18:40 -0600)]
Merge pull request #13400 from shinobu-x/wip-18840

doc: Modify Configuring Cinder section

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13405 from linuxbox2/wip-librgw-refcnt
Matt Benjamin [Mon, 13 Feb 2017 22:28:37 +0000 (17:28 -0500)]
Merge pull request #13405 from linuxbox2/wip-librgw-refcnt

Wip librgw refcnt

8 years agoMerge pull request #13403 from MichaelEischer/master
Jason Dillaman [Mon, 13 Feb 2017 21:31:53 +0000 (16:31 -0500)]
Merge pull request #13403 from MichaelEischer/master

doc: Fixes parameter name in rbd configuration on openstack havana/icehouse

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agorgw_file: fix hiwat behavior 13405/head
Matt Benjamin [Mon, 13 Feb 2017 01:18:26 +0000 (20:18 -0500)]
rgw_file: fix hiwat behavior

Removed logic to skip reclaim processing conditionally on hiwat,
this probably meant to be related to a lowat value, which does
not exist.

Having exercised the hiwat reclaim behavior, noticed that the
path which moves unreachable objects to LRU, could and probably
should remove them altogether when q.size exceeds hiwat.  Now
the max unreachable float is lane hiwat, for all lanes.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agorgw_file: refcnt bugfixes
Matt Benjamin [Sun, 12 Feb 2017 23:20:43 +0000 (18:20 -0500)]
rgw_file: refcnt bugfixes

This change includes 3 related changes:

1. add required lock flags for FHCache updates--this is a crash
   bug under concurrent update/lookup

2. omit to inc/dec refcnt on root filehandles in 2 places--the
   root handle current is not on the lru list, so it's not
   valid to do so

3. based on observation of LRU behavior during creates/deletes,
   update (cohort) LRU unref to move objects to LRU when their
   refcount falls to SENTINEL_REFCNT--this cheaply primes the
   current reclaim() mechanism, so very significanty improves
   space use (e.g., after deletes) in the absence of scans
   (which is common due to nfs-ganesha caching)

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agorgw_file: add refcount dout traces at debuglevel 17
Matt Benjamin [Sat, 11 Feb 2017 21:38:05 +0000 (16:38 -0500)]
rgw_file:  add refcount dout traces at debuglevel 17

These are helpful for checking RGWFileHandle refcnt invariants.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agorgw_file: add pretty-print for RGWFileHandle
Matt Benjamin [Fri, 10 Feb 2017 22:14:16 +0000 (17:14 -0500)]
rgw_file: add pretty-print for RGWFileHandle

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agodoc: Fixes parameter name in rbd configuration on openstack havana/icehouse 13403/head
Michael Eischer [Mon, 13 Feb 2017 19:58:49 +0000 (20:58 +0100)]
doc: Fixes parameter name in rbd configuration on openstack havana/icehouse

The documentation for using rbd together with openstack havana/icehouse
states that the parameter libvirt_disk_cachemodes should be added to
the nova.conf file. However, this is the only parameter that has no
legacy name with a 'libvirt_' prefix. (See
https://github.com/openstack/nova/blob/icehouse-eol/nova/virt/libvirt/driver.py#L252
for the configuration option)
Thus the configured disk_cachemodes were not applied, defaulting to
no caching.

Fixes: #17978
Signed-off-by: Michael Eischer <michael.eischer@fau.de>
8 years agorgw: change log level to 20 for 'System already converted' message 13399/head
Vikhyat Umrao [Mon, 13 Feb 2017 17:37:25 +0000 (23:07 +0530)]
rgw: change log level to 20 for 'System already converted' message

Fixes: http://tracker.ceph.com/issues/18919
Signed-off-by: Vikhyat Umrao <vumrao@redhat.com>
8 years agoDoc: Modify Configuring Cinder section 13400/head
Shinobu Kinjo [Mon, 13 Feb 2017 18:40:35 +0000 (03:40 +0900)]
Doc: Modify Configuring Cinder section

doc/rbd/rbd-openstack.rst: Add ``volume_backend_name`` in description of
cinder.conf

Fixes: http://tracker.ceph.com/issues/18840
Signed-off-by: Shinobu Kinjo <shinobu@redhat.com>
8 years agoMerge pull request #13017 from chuanhong-wang/dev_add_perfcount_for_backoff_throttle
Yuri Weinstein [Mon, 13 Feb 2017 17:02:40 +0000 (09:02 -0800)]
Merge pull request #13017 from chuanhong-wang/dev_add_perfcount_for_backoff_throttle

osd: adding PerfCounters for backoff throttle

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #13274 from ifed01/wip-bluestore-perf-counters
Yuri Weinstein [Mon, 13 Feb 2017 17:01:21 +0000 (09:01 -0800)]
Merge pull request #13274 from ifed01/wip-bluestore-perf-counters

os/bluestore: add more perf_counters to BlueStore

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13321 from liewegas/wip-kill-sortbitwise-harder
Sage Weil [Mon, 13 Feb 2017 16:43:56 +0000 (10:43 -0600)]
Merge pull request #13321 from liewegas/wip-kill-sortbitwise-harder

osd: kill sortbitwise

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
8 years agodoc: remove duplicated references 13396/head
Kefu Chai [Mon, 13 Feb 2017 16:17:36 +0000 (00:17 +0800)]
doc: remove duplicated references

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13303 from Jing-Scott/fix-swift-cannot-disable-object-versioning
Matt Benjamin [Mon, 13 Feb 2017 15:58:04 +0000 (10:58 -0500)]
Merge pull request #13303 from Jing-Scott/fix-swift-cannot-disable-object-versioning

rgw: fix swift cannot disable object versioning

@Jing-Scott  updated, addressing @rzarzynski's change request

8 years agoMerge pull request #13393 from ddiss/fix_rgw_fcgi_include
Kefu Chai [Mon, 13 Feb 2017 15:28:03 +0000 (23:28 +0800)]
Merge pull request #13393 from ddiss/fix_rgw_fcgi_include

rgw: set FCGI_INCLUDE_DIR for cephd_rgw_base

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoceph-fuse: always free allocated fuse_args 13394/head
Kefu Chai [Mon, 13 Feb 2017 14:26:42 +0000 (22:26 +0800)]
ceph-fuse: always free allocated fuse_args

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agocmake: link consumers of libclient with libcommon
Kefu Chai [Mon, 13 Feb 2017 14:04:24 +0000 (22:04 +0800)]
cmake: link consumers of libclient with libcommon

to avoid linking against to both libceph-common and libcommon at the same
time, because both of them will be registered as a provider of lttng
provider.

Fixes: http://tracker.ceph.com/issues/18838
Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13382 from xiexingguo/wip-counter-name
Sage Weil [Mon, 13 Feb 2017 14:25:51 +0000 (08:25 -0600)]
Merge pull request #13382 from xiexingguo/wip-counter-name

os/bluestore: fix wal-queue bytes-counter to keep pace with others

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agorgw: set FCGI_INCLUDE_DIR for cephd_rgw_base 13393/head
David Disseldorp [Mon, 13 Feb 2017 14:03:42 +0000 (15:03 +0100)]
rgw: set FCGI_INCLUDE_DIR for cephd_rgw_base

cephd_rgw_base build currently fails with fastcgi enabled:
--
In file included from /home/david/ceph/src/rgw/rgw_request.h:13:0,
from /home/david/ceph/src/rgw/rgw_main.cc:53:
/home/david/ceph/src/rgw/rgw_fcgi.h:8:21: fatal error: fcgiapp.h:
No such file or directory
^
--

This is despite the fact that fastcgi was detected and located at
configure time:
build/CMakeCache.txt:FCGI_INCLUDE_DIR:PATH=/usr/include/fastcgi

Fix this by ensuring that the cephd_rgw_base build target correctly uses
FCGI_INCLUDE_DIR.

Fixes: http://tracker.ceph.com/issues/18918
Signed-off-by: David Disseldorp <ddiss@suse.de>
8 years agoMerge pull request #13392 from Adirl/zero_inline
Haomai Wang [Mon, 13 Feb 2017 13:57:19 +0000 (21:57 +0800)]
Merge pull request #13392 from Adirl/zero_inline

msg/async/rdma: zero wqe inline

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agomsg/async/rdma: zero wqe inline 13392/head
Adir Lev [Mon, 13 Feb 2017 13:36:46 +0000 (13:36 +0000)]
msg/async/rdma: zero wqe inline

we dont use wqe inline

issue: none

Change-Id: Ib187eec3bc79f8caf040fbbfbf0a915186cd58ba
Signed-off-by: Adir Lev <adirl@mellanox.com>
8 years agomsg/async/rdma: check if exp verbs avail 13391/head
Adir Lev [Thu, 9 Feb 2017 15:52:22 +0000 (15:52 +0000)]
msg/async/rdma: check if exp verbs avail

issue: 975125

Change-Id: I9daa168ca0299887a7238a688508c773b98abde9
Signed-off-by: Adir Lev <adirl@mellanox.com>
Signed-off-by: Oren Duer <oren@mellanox.com>
8 years agorgw: fix swift cannot disable object versioning 13303/head
Jing Wenjun [Wed, 8 Feb 2017 07:07:43 +0000 (15:07 +0800)]
rgw: fix swift cannot disable object versioning

we should be able to disable object verioning by removing its X-Versions-Location
metadata header by sending an empty key value. this description can be found at
No.8 in http://docs.openstack.org/user-guide/cli-swift-set-object-versions.html.

Fixes: http://tracker.ceph.com/issues/18852
Signed-off-by: Jing Wenjun <jingwenjun@cmss.chinamobile.com>
8 years agoMerge pull request #13380 from tchaikov/wip-sepia-bt
Kefu Chai [Mon, 13 Feb 2017 12:48:17 +0000 (20:48 +0800)]
Merge pull request #13380 from tchaikov/wip-sepia-bt

script/sepia_bt.sh: no need to pass version and sha1 anymore

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoMerge pull request #13368 from smithfarm/wip-doc-dev
Nathan Cutler [Mon, 13 Feb 2017 11:39:59 +0000 (12:39 +0100)]
Merge pull request #13368 from smithfarm/wip-doc-dev

doc: instructions for provisioning OpenStack VMs ad hoc

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agorbd-nbd: no need to check image format any more 13389/head
Mykola Golub [Mon, 13 Feb 2017 09:45:56 +0000 (10:45 +0100)]
rbd-nbd: no need to check image format any more

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #13367 from tchaikov/wip-qa-jewel-x-singleton
Kefu Chai [Mon, 13 Feb 2017 06:54:27 +0000 (14:54 +0800)]
Merge pull request #13367 from tchaikov/wip-qa-jewel-x-singleton

test: Thrasher: update pgp_num of all expanded pools if not yet

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoscript/sepia_bt.sh: no need to pass version and sha1 anymore 13380/head
Kefu Chai [Mon, 13 Feb 2017 03:51:11 +0000 (11:51 +0800)]
script/sepia_bt.sh: no need to pass version and sha1 anymore

* try to figure out the working directory from the core dump's path
* add -C directory option, so user is able to specify the directory
  for the downloaded packages, and extracted files.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoos/bluestore: fix wal-queue bytes-counter to keep pace with others 13382/head
xie xingguo [Mon, 13 Feb 2017 06:09:45 +0000 (14:09 +0800)]
os/bluestore: fix wal-queue bytes-counter to keep pace with others

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agotest: Thrasher: restore changed options after done with thrash 13367/head
Kefu Chai [Sun, 12 Feb 2017 06:13:14 +0000 (14:13 +0800)]
test: Thrasher: restore changed options after done with thrash

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agotests: Thrasher: extract _set_config() method
Kefu Chai [Sun, 12 Feb 2017 06:20:53 +0000 (14:20 +0800)]
tests: Thrasher: extract _set_config() method

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agotests: CephManager: add get_config() method
Kefu Chai [Sun, 12 Feb 2017 06:12:25 +0000 (14:12 +0800)]
tests: CephManager: add get_config() method

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agotest: Thrasher: update pgp_num of all expanded pools if not yet
Kefu Chai [Sun, 12 Feb 2017 05:16:57 +0000 (13:16 +0800)]
test: Thrasher: update pgp_num of all expanded pools if not yet

otherwise wait_until_healthy will fail after timeout as seeing warning
like:

HEALTH_WARN pool cephfs_data pg_num 182 > pgp_num 172

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13378 from liewegas/wip-luminous
Yuri Weinstein [Sun, 12 Feb 2017 16:13:26 +0000 (08:13 -0800)]
Merge pull request #13378 from liewegas/wip-luminous

qa/rados/upgrade/jewel-x-singleton: run luminous.yaml at the end

Reviewed-by: Yuri Weinstein <yweins@redhat.com>
8 years agoMerge pull request #13365 from xiexingguo/wip-backoff-refleak
Sage Weil [Sun, 12 Feb 2017 14:50:38 +0000 (08:50 -0600)]
Merge pull request #13365 from xiexingguo/wip-backoff-refleak

osdc/Objecter: fix possible OSDSession leak on wrong connection

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13363 from jdurgin/wip-req-luminous-error
Sage Weil [Sun, 12 Feb 2017 14:49:57 +0000 (08:49 -0600)]
Merge pull request #13363 from jdurgin/wip-req-luminous-error

osd: clarify REQUIRE_LUMINOUS error message

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoqa/rados/upgrade/jewel-x-singleton: run luminous.yaml at the end 13378/head
Sage Weil [Fri, 10 Feb 2017 20:08:54 +0000 (15:08 -0500)]
qa/rados/upgrade/jewel-x-singleton: run luminous.yaml at the end

renumber too

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoCMakeLists.txt: suppress unneeded warningiabout jemalloc 13377/head
Willem Jan Withagen [Sun, 12 Feb 2017 14:03:56 +0000 (15:03 +0100)]
CMakeLists.txt: suppress unneeded warningiabout jemalloc

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agodoc: instructions for provisioning OpenStack VMs ad hoc 13368/head
Nathan Cutler [Sat, 11 Feb 2017 11:41:22 +0000 (12:41 +0100)]
doc: instructions for provisioning OpenStack VMs ad hoc

Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agoosd/PrimaryLogPG: unconditionally set PGNLS next to hobject 13321/head
Sage Weil [Wed, 8 Feb 2017 22:03:26 +0000 (17:03 -0500)]
osd/PrimaryLogPG: unconditionally set PGNLS next to hobject

Drop nibblewise workaround.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd/PG: drop get_sort_bitwise() accessors, flag
Sage Weil [Wed, 8 Feb 2017 22:01:47 +0000 (17:01 -0500)]
osd/PG: drop get_sort_bitwise() accessors, flag

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd/PG: always bitwise
Sage Weil [Wed, 8 Feb 2017 22:00:57 +0000 (17:00 -0500)]
osd/PG: always bitwise

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd/PG: drop bitwise arg to MissingLoc::rebuild()
Sage Weil [Wed, 8 Feb 2017 22:00:07 +0000 (17:00 -0500)]
osd/PG: drop bitwise arg to MissingLoc::rebuild()

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd/osd_types: make set_last_backfill() assume bitwise
Sage Weil [Wed, 8 Feb 2017 21:58:54 +0000 (16:58 -0500)]
osd/osd_types: make set_last_backfill() assume bitwise

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: BackfillInterval is always bitwise
Sage Weil [Wed, 8 Feb 2017 21:52:27 +0000 (16:52 -0500)]
osd: BackfillInterval is always bitwise

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: fix add_source_info
Sage Weil [Wed, 8 Feb 2017 21:46:26 +0000 (16:46 -0500)]
osd: fix add_source_info

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: fix write_blocked_by_scrub
Sage Weil [Wed, 8 Feb 2017 21:46:10 +0000 (16:46 -0500)]
osd: fix write_blocked_by_scrub

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd/osd_types: drop bitwise from ScrubMap
Sage Weil [Wed, 8 Feb 2017 21:42:59 +0000 (16:42 -0500)]
osd/osd_types: drop bitwise from ScrubMap

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agocommon/hobject: eliminate wonky compartors
Sage Weil [Fri, 10 Feb 2017 23:47:07 +0000 (18:47 -0500)]
common/hobject: eliminate wonky compartors

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agocommon/hobject: remove cmp_* comparators; add normal operators
Sage Weil [Fri, 10 Feb 2017 23:39:53 +0000 (18:39 -0500)]
common/hobject: remove cmp_* comparators; add normal operators

Fix up callers.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos: remove nibblewise sort order support
Sage Weil [Wed, 8 Feb 2017 20:10:18 +0000 (15:10 -0500)]
os: remove nibblewise sort order support

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: shutdown if sortbitwise flag is ever cleared
Sage Weil [Wed, 8 Feb 2017 19:45:40 +0000 (14:45 -0500)]
osd: shutdown if sortbitwise flag is ever cleared

Note we do this only in activate_map so that we can (while booting)
skip past maps that don't have it set.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13369 from idryomov/wip-doc-kernel-vers
Ilya Dryomov [Sat, 11 Feb 2017 15:01:02 +0000 (16:01 +0100)]
Merge pull request #13369 from idryomov/wip-doc-kernel-vers

doc: kernel client os-recommendations update

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13229 from trociny/wip-18335
Jason Dillaman [Sat, 11 Feb 2017 14:29:23 +0000 (09:29 -0500)]
Merge pull request #13229 from trociny/wip-18335

rbd-nbd: check /sys/block/nbdX/size to ensure kernel mapped correctly

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoinit-ceph.in: Make init-ceph work under FreeBSD for init-system 13209/head
Willem Jan Withagen [Sat, 11 Feb 2017 01:11:35 +0000 (02:11 +0100)]
init-ceph.in: Make init-ceph work under FreeBSD for init-system

 -  FreeBSD find does not have printf option
 -  use the packaged getopt in /usr/local
 -  Only apply user-facts when user ceph is available

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agoMerge pull request #13292 from tchaikov/wip-script-sepia-bt-support-xenial
Kefu Chai [Sat, 11 Feb 2017 04:22:34 +0000 (12:22 +0800)]
Merge pull request #13292 from tchaikov/wip-script-sepia-bt-support-xenial

script/sepia_bt.sh: support xenial

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoosdc/Objecter: fix possible OSDSession leak on wrong connection 13365/head
xie xingguo [Sat, 11 Feb 2017 02:57:58 +0000 (10:57 +0800)]
osdc/Objecter: fix possible OSDSession leak on wrong connection

This is introduced by the newly added backoff logic.
Not sure if it will really happen, but just in case.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #12342 from liewegas/wip-backoff 13366/head
Sage Weil [Sat, 11 Feb 2017 01:47:49 +0000 (19:47 -0600)]
Merge pull request #12342 from liewegas/wip-backoff

osd,osdc: pg and osd-based backoff

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoAffiliation updates 13034/head
Willem Jan Withagen [Fri, 20 Jan 2017 20:47:33 +0000 (21:47 +0100)]
Affiliation updates

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agodoc/dev/rados-client-protocol: describe some of rados protocol, including backoffs 12342/head
Sage Weil [Thu, 2 Feb 2017 19:42:36 +0000 (14:42 -0500)]
doc/dev/rados-client-protocol: describe some of rados protocol, including backoffs

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoqa/suites/rados/thrash: vary backoff settings
Sage Weil [Thu, 2 Feb 2017 03:38:30 +0000 (22:38 -0500)]
qa/suites/rados/thrash: vary backoff settings

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd/PrimaryLogPG: backoffs on individual objects
Sage Weil [Wed, 1 Feb 2017 22:37:39 +0000 (17:37 -0500)]
osd/PrimaryLogPG: backoffs on individual objects

Do these midway down do_op.  Reorder the scrub waitlist after the
degraded and unreadable waitlists.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosdc/Objecter: respect backoffs
Sage Weil [Wed, 1 Feb 2017 22:35:36 +0000 (17:35 -0500)]
osdc/Objecter: respect backoffs

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd/PrimaryLogPG: PG-wide backoffs
Sage Weil [Wed, 1 Feb 2017 22:30:32 +0000 (17:30 -0500)]
osd/PrimaryLogPG: PG-wide backoffs

Issue at top of do_request.  Release on activation or peering
interval change.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: dispatch OSDBackoff messages into PG workqueue
Sage Weil [Fri, 10 Feb 2017 23:55:55 +0000 (18:55 -0500)]
osd: dispatch OSDBackoff messages into PG workqueue

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: split backoffs on PG split
Sage Weil [Wed, 1 Feb 2017 22:27:32 +0000 (17:27 -0500)]
osd: split backoffs on PG split

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: add pg helpers for managing backoffs
Sage Weil [Wed, 1 Feb 2017 22:27:20 +0000 (17:27 -0500)]
osd: add pg helpers for managing backoffs

Link Backoff into Session, PG.  Tear them down on session
reset.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/ceph_features: RADOS_BACKOFF feature bit
Sage Weil [Fri, 4 Nov 2016 22:11:40 +0000 (18:11 -0400)]
include/ceph_features: RADOS_BACKOFF feature bit

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosdc/Objecter: fix typo
Sage Weil [Tue, 1 Nov 2016 19:02:17 +0000 (15:02 -0400)]
osdc/Objecter: fix typo

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agocommon/hobject: use hash field for hash<>
Sage Weil [Tue, 1 Nov 2016 18:05:51 +0000 (14:05 -0400)]
common/hobject: use hash field for hash<>

No reason to waste CPU recalculating a hash value!

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: add MOSDBackoff message type
Sage Weil [Mon, 17 Oct 2016 21:10:38 +0000 (17:10 -0400)]
osd: add MOSDBackoff message type

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: move Session class out of OSD
Sage Weil [Tue, 18 Oct 2016 22:43:09 +0000 (17:43 -0500)]
osd: move Session class out of OSD

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosdc/Objecter: attach OSDSession to Connection
Sage Weil [Thu, 22 Dec 2016 03:45:50 +0000 (22:45 -0500)]
osdc/Objecter: attach OSDSession to Connection

This lets us avoid an rbtree lookup.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: clarify REQUIRE_LUMINOUS error message 13363/head
Josh Durgin [Fri, 10 Feb 2017 22:27:14 +0000 (14:27 -0800)]
osd: clarify REQUIRE_LUMINOUS error message

This should be visible at the default log level, so users have some
hope of figuring out the problem.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
8 years agodoc: ref cephfs docs from os-recommendations 13369/head
John Spray [Wed, 19 Oct 2016 17:12:49 +0000 (18:12 +0100)]
doc: ref cephfs docs from os-recommendations

...instead of having potentially conflicting kernel
version information.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agodoc: update krbd kernel recommendations
Ilya Dryomov [Fri, 10 Feb 2017 20:20:16 +0000 (21:20 +0100)]
doc: update krbd kernel recommendations

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>