]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
10 years agomon: add perf counters description 4255/head
Ved-vampir [Fri, 3 Apr 2015 08:12:10 +0000 (11:12 +0300)]
mon: add perf counters description

Sign-off-by: Alyona Kiseleva <akiselyova@mirantis.com>
10 years agoosdc: perf counters description added
Ved-vampir [Fri, 3 Apr 2015 08:11:03 +0000 (11:11 +0300)]
osdc: perf counters description added

Sign-off-by: Alyona Kiseleva <akiselyova@mirantis.com>
10 years agoMerge pull request #3979 from ceph/wip-rbd-map-options
Josh Durgin [Thu, 12 Mar 2015 21:36:05 +0000 (14:36 -0700)]
Merge pull request #3979 from ceph/wip-rbd-map-options

rbd: default map options, new options, misc

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agorbd: fix rw option skipping logic 3979/head
Ilya Dryomov [Wed, 11 Mar 2015 17:13:50 +0000 (20:13 +0300)]
rbd: fix rw option skipping logic

We slip in an extraneous comma if { "rw": "rw" } happens to be the
first map_options pair:

    # ./rbd map -o rw,share foo
    /dev/rbd0

    -> 127.0.0.1:6789 name=admin,key=client.admin,,share rbd foo -

The kernel mount options parser can handle it, but fix it nonetheless.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
10 years agorbd: recognize cephx_require_signatures and tcp_nodelay options
Ilya Dryomov [Thu, 12 Mar 2015 11:27:32 +0000 (14:27 +0300)]
rbd: recognize cephx_require_signatures and tcp_nodelay options

Support for these went into 3.19 and 4.0 kernels respectively.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
10 years agorbd: add rbd default map options config option
Ilya Dryomov [Thu, 12 Mar 2015 11:27:32 +0000 (14:27 +0300)]
rbd: add rbd default map options config option

Allow supplying rbd map -o / --options through 'rbd default map
options' config option.  Options specified on the command line take
precedence on a per-option basis, i.e. default and cli options are
merged with a preference for the latter.  For example:

    # grep 'rbd default map options' ceph.conf
            rbd default map options = "ro,nocrc"
    # ./rbd map -o noshare,rw foo
    /dev/rbd0

results in a rw mapping with nocrc,noshare.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
10 years agorbd: drop redefining map option warning
Ilya Dryomov [Thu, 12 Mar 2015 11:27:32 +0000 (14:27 +0300)]
rbd: drop redefining map option warning

For example:

    # ./rbd map -o share,noshare foo
    rbd: warning: redefining map option share: 'share' -> 'noshare'
    /dev/rbd0

mount(8) doesn't do this and it's a bit silly to begin with.  Drop this
in preparation for adding rbd default map options config option.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
10 years agorbd: regenerate rbd(8) man page
Ilya Dryomov [Thu, 12 Mar 2015 11:27:32 +0000 (14:27 +0300)]
rbd: regenerate rbd(8) man page

merge-diff and status commands, --image-features and --image-shared
options, other stuff.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
10 years agoMerge pull request #3924 from ktdreyer/wip-doc-rm-old-ceph-deploy-reference
Danny Al-Gaaf [Thu, 12 Mar 2015 10:11:36 +0000 (11:11 +0100)]
Merge pull request #3924 from ktdreyer/wip-doc-rm-old-ceph-deploy-reference

rm old ceph-deploy reference

Reviewed-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoMerge pull request #3965 from linuxbox2/xio-fixes
Kefu Chai [Thu, 12 Mar 2015 09:19:39 +0000 (17:19 +0800)]
Merge pull request #3965 from linuxbox2/xio-fixes

xio: Xio fixes

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoFix XioLoopbackConnection Lifecycle. 3965/head
Matt Benjamin [Wed, 11 Mar 2015 17:42:37 +0000 (13:42 -0400)]
Fix XioLoopbackConnection Lifecycle.

Since XioLoopbackConnection is a RefCountedObject, it can't be
an expanded member of XioMessenger.

Fixes cleanup/shutdown errors.

Signed-off-by: Matt Benjamin <matt@cohortfs.com>
10 years agoFix CMake build w/o RADOSGW.
Matt Benjamin [Tue, 10 Mar 2015 18:10:54 +0000 (14:10 -0400)]
Fix CMake build w/o RADOSGW.

Just fixes linkage of dencoder in test.  Fix the false assumption
that cls is only used if WITH_RADOSGW.

Signed-off-by: Matt Benjamin <matt@cohortfs.com>
10 years agoMerge pull request #3625 from majianpeng/objectcacher
Jason Dillaman [Wed, 11 Mar 2015 15:53:43 +0000 (11:53 -0400)]
Merge pull request #3625 from majianpeng/objectcacher

Bugs fix about ObjectCacher

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
10 years agoMerge pull request #3881 from ceph/wip-da-SCA-20150304
Kefu Chai [Wed, 11 Mar 2015 15:52:16 +0000 (23:52 +0800)]
Merge pull request #3881 from ceph/wip-da-SCA-20150304

SCA fixes

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agotools/rados/rados.cc: init some vars in constructor 3881/head
Danny Al-Gaaf [Thu, 5 Mar 2015 06:15:30 +0000 (07:15 +0100)]
tools/rados/rados.cc: init some vars in constructor

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agorgw_rados: don't assign value to parameter
Danny Al-Gaaf [Thu, 5 Mar 2015 05:47:57 +0000 (06:47 +0100)]
rgw_rados: don't assign value to parameter

Fix for cppcheck issue:
Assignment of function parameter has no effect outside the function.

Remove assignment to need_to_wait before exit.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agosrc/msg/xio/*: reduce scope of some vars
Danny Al-Gaaf [Thu, 5 Mar 2015 05:36:15 +0000 (06:36 +0100)]
src/msg/xio/*: reduce scope of some vars

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agorgw_quota.cc: init variables in constructor
Danny Al-Gaaf [Thu, 5 Mar 2015 05:35:27 +0000 (06:35 +0100)]
rgw_quota.cc: init variables in constructor

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoTestErasureCodeShec_thread.cc: reduce scope of var
Danny Al-Gaaf [Thu, 5 Mar 2015 05:23:16 +0000 (06:23 +0100)]
TestErasureCodeShec_thread.cc: reduce scope of var

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoObjectStoreTransactionBenchmark.cc: reduce scope of var
Danny Al-Gaaf [Thu, 5 Mar 2015 05:22:53 +0000 (06:22 +0100)]
ObjectStoreTransactionBenchmark.cc: reduce scope of var

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoobjectstore/store_test.cc: reduce scope of variable
Danny Al-Gaaf [Thu, 5 Mar 2015 05:22:18 +0000 (06:22 +0100)]
objectstore/store_test.cc: reduce scope of variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agorgw_rados.cc: reduce scope of variable
Danny Al-Gaaf [Thu, 5 Mar 2015 05:21:35 +0000 (06:21 +0100)]
rgw_rados.cc: reduce scope of variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agorgw_rados.cc: remove unused string vars
Danny Al-Gaaf [Thu, 5 Mar 2015 05:20:46 +0000 (06:20 +0100)]
rgw_rados.cc: remove unused string vars

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agolibrbd/internal.cc: reduce scope of some variables
Danny Al-Gaaf [Thu, 5 Mar 2015 05:18:04 +0000 (06:18 +0100)]
librbd/internal.cc: reduce scope of some variables

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agolibrbd/ObjectMap.cc: reduce scope of variable, prevent redef
Danny Al-Gaaf [Thu, 5 Mar 2015 05:16:06 +0000 (06:16 +0100)]
librbd/ObjectMap.cc: reduce scope of variable, prevent redef

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoErasureCodeShec::minimum_to_decode: reduce scope of variables
Danny Al-Gaaf [Thu, 5 Mar 2015 05:15:26 +0000 (06:15 +0100)]
ErasureCodeShec::minimum_to_decode: reduce scope of variables

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agorgw/rgw_op.cc: fix potential null-deref in strcmp()
Danny Al-Gaaf [Thu, 5 Mar 2015 05:04:37 +0000 (06:04 +0100)]
rgw/rgw_op.cc: fix potential null-deref in strcmp()

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agorgw_main.cc: fix null-deref in case get_storage() fails
Danny Al-Gaaf [Thu, 5 Mar 2015 04:26:48 +0000 (05:26 +0100)]
rgw_main.cc: fix null-deref in case get_storage() fails

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agomds/MDS.cc: add missing asserts to check return values
Danny Al-Gaaf [Thu, 5 Mar 2015 04:07:46 +0000 (05:07 +0100)]
mds/MDS.cc: add missing asserts to check return values

Change existing asserts in set_up_admin_socket() to
check (VAR == 0).

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoTestErasureCodeShec_all.cc: fix sprintf specifier
Danny Al-Gaaf [Thu, 5 Mar 2015 04:06:32 +0000 (05:06 +0100)]
TestErasureCodeShec_all.cc: fix sprintf specifier

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agorgw: use static_cast instead of c-style cast
Danny Al-Gaaf [Thu, 5 Mar 2015 02:48:01 +0000 (03:48 +0100)]
rgw: use static_cast instead of c-style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoosd/ReplicatedPG.cc: use static_cast instead of c-style cast
Danny Al-Gaaf [Thu, 5 Mar 2015 02:47:31 +0000 (03:47 +0100)]
osd/ReplicatedPG.cc: use static_cast instead of c-style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoTestErasureCodeShec_thread.cc: use static_cast instead of c-style
Danny Al-Gaaf [Thu, 5 Mar 2015 02:45:45 +0000 (03:45 +0100)]
TestErasureCodeShec_thread.cc: use static_cast instead of c-style

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoitest/msgr/test_msgr.cc: prefer ++operator for non-primitive iter
Danny Al-Gaaf [Wed, 4 Mar 2015 20:23:51 +0000 (21:23 +0100)]
itest/msgr/test_msgr.cc: prefer ++operator for non-primitive iter

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoMerge pull request #3666 from xroche/master
Yan, Zheng [Wed, 11 Mar 2015 12:30:26 +0000 (20:30 +0800)]
Merge pull request #3666 from xroche/master

Added ceph_flock() to libcephfs.

10 years agoMerge pull request #3920 from rajukv/xio-bugfix
Kefu Chai [Wed, 11 Mar 2015 06:37:57 +0000 (14:37 +0800)]
Merge pull request #3920 from rajukv/xio-bugfix

XIO: Handle requeue case of XIO messages

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoXIO: Handle requeue case of XIO messages 3920/head
Raju Kurunkad [Tue, 10 Mar 2015 07:58:28 +0000 (13:28 +0530)]
XIO: Handle requeue case of XIO messages

If we are not able to send the XIO message using xio_send_msg(),
remove the XIO message from the send Q, before queuing it to the resend
Q. Otherwise, boost will generate a assert.

Signed-off-by: Raju Kurunkad <raju.kurunkad@sandisk.com>
10 years agodoc/release-notes: v0.80.8 and .9 changelogs
Sage Weil [Tue, 10 Mar 2015 19:32:47 +0000 (12:32 -0700)]
doc/release-notes: v0.80.8 and .9 changelogs

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3871 from dachary/wip-install-deps
Ken Dreyer [Tue, 10 Mar 2015 16:41:09 +0000 (10:41 -0600)]
Merge pull request #3871 from dachary/wip-install-deps

tests: install-deps.sh install EPEL and RHEL Optional

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
10 years agorm old ceph-deploy reference 3924/head
Ken Dreyer [Tue, 10 Mar 2015 16:23:30 +0000 (10:23 -0600)]
rm old ceph-deploy reference

There's no need to refer to this old version of ceph-deploy. v1.1.3 is
circa June 2013, and since that time, we have shipped much newer version
of ceph-deploy (1.5.22 at the time of this writing). We should simply
state the behavior of modern ceph-deploys here.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
10 years agoMerge pull request #3887 from stiopaa1/feature10891
Kefu Chai [Tue, 10 Mar 2015 14:16:29 +0000 (22:16 +0800)]
Merge pull request #3887 from stiopaa1/feature10891

mon: add "osd pool get $pool all" command

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge remote-tracking branch 'gh/hammer'
Sage Weil [Tue, 10 Mar 2015 13:24:59 +0000 (06:24 -0700)]
Merge remote-tracking branch 'gh/hammer'

Conflicts:
src/gmock

10 years agotests: install-deps.sh install EPEL and RHEL Optional 3871/head
Loic Dachary [Wed, 4 Mar 2015 12:47:37 +0000 (13:47 +0100)]
tests: install-deps.sh install EPEL and RHEL Optional

On CentOS and RHEL, some dependencies come from EPEL.

Always enable RHEL Optional repository for RHEL as packages such as
packages such as libatomic_ops-devel or libedit-devel are only found
there in RHEL 6.5.

http://tracker.ceph.com/issues/11061 Refs: #11061

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #3901 from dachary/wip-10922-ceph-deploy-documentation
Danny Al-Gaaf [Tue, 10 Mar 2015 09:53:56 +0000 (10:53 +0100)]
Merge pull request #3901 from dachary/wip-10922-ceph-deploy-documentation

doc: preparing a device implies activate

Reviewed-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoMerge pull request #3907 from dachary/wip-test-delays
Danny Al-Gaaf [Tue, 10 Mar 2015 09:51:05 +0000 (10:51 +0100)]
Merge pull request #3907 from dachary/wip-test-delays

tests: increase the delay waiting for a cluster event

Reviewed-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoMerge pull request #3914 from ktdreyer/wip-doc-rgw-apache-log-perms
Danny Al-Gaaf [Tue, 10 Mar 2015 09:47:51 +0000 (10:47 +0100)]
Merge pull request #3914 from ktdreyer/wip-doc-rgw-apache-log-perms

doc: rm Apache log permissions instructions

Reviewed-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoMerge pull request #3917 from dachary/wip-rhel6-doc
Kefu Chai [Tue, 10 Mar 2015 08:02:12 +0000 (16:02 +0800)]
Merge pull request #3917 from dachary/wip-rhel6-doc

doc: rhel6.5 is rhel6

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #3890 from XunleiGFS/fix_C_TwoContexts
Kefu Chai [Tue, 10 Mar 2015 04:16:03 +0000 (12:16 +0800)]
Merge pull request #3890 from XunleiGFS/fix_C_TwoContexts

osdc: fix a memory leak in C_TwoContexts

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #3845 from ceph/wip-wn-rgw-hammer
Sage Weil [Tue, 10 Mar 2015 02:49:21 +0000 (19:49 -0700)]
Merge pull request #3845 from ceph/wip-wn-rgw-hammer

Wip wn rgw hammer

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3913 from yuyuyu101/wip-async-fix-throttle-deadlock
Sage Weil [Tue, 10 Mar 2015 02:48:11 +0000 (19:48 -0700)]
Merge pull request #3913 from yuyuyu101/wip-async-fix-throttle-deadlock

Wip async fix throttle deadlock

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3911 from athanatos/wip-11057
Sage Weil [Tue, 10 Mar 2015 02:43:02 +0000 (19:43 -0700)]
Merge pull request #3911 from athanatos/wip-11057

ReplicatedPG: block write on degraded object if there are waiters

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agodoc: rhel6.5 is rhel6 3917/head
Loic Dachary [Tue, 10 Mar 2015 01:06:10 +0000 (02:06 +0100)]
doc: rhel6.5 is rhel6

RHEL 6.5 is actually  http://ceph.com/rpm-giant/rhel6/

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #3909 from dachary/wip-11068-debian-jessie
Loic Dachary [Mon, 9 Mar 2015 22:40:04 +0000 (23:40 +0100)]
Merge pull request #3909 from dachary/wip-11068-debian-jessie

deb: add zlib1g-dev to Build-Depends for Debian/jessie

Reviewed-by: Yann Dupont <yann@objoo.org>
10 years agomon/OSDMonitor: refactor and new key "all" for osd pool get command 3887/head
Michal Jarzabek [Thu, 5 Mar 2015 18:01:05 +0000 (18:01 +0000)]
mon/OSDMonitor: refactor and new key "all" for osd pool get command

This will only output all the values applicable to a given type of pool.
So for example for a pool that is not a tier pool values like HIT_SET_TYPE,
HIT_SET_PERIOD, HIT_SET_COUNT etc. will be ignored.

Fixes: #10891
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
10 years agodoc: rm Apache log permissions instructions 3914/head
Ken Dreyer [Mon, 9 Mar 2015 19:12:25 +0000 (13:12 -0600)]
doc: rm Apache log permissions instructions

On all distros, Apache should be able to write to its own log directory.
If not, that is a severe distro bug that should be reported/fixed.

Remove the references to running "chown" on /var/log/httpd or
/var/log/apache2.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
10 years agodoc/release-notes: update notes for v0.80.9
Sage Weil [Mon, 9 Mar 2015 17:56:11 +0000 (10:56 -0700)]
doc/release-notes: update notes for v0.80.9

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3608 from guangyy/wip-rgw-quota-threads
Yehuda Sadeh [Mon, 9 Mar 2015 16:39:58 +0000 (09:39 -0700)]
Merge pull request #3608 from guangyy/wip-rgw-quota-threads

rgw: make quota/gc thread configurable for starting

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #3795 from rzarzynski/wip-10938
Yehuda Sadeh [Mon, 9 Mar 2015 16:37:02 +0000 (09:37 -0700)]
Merge pull request #3795 from rzarzynski/wip-10938

rgw: improve support for X-Timestamp header of Swift API

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoEvent: Let external events ran without lock/unlock 3913/head
Haomai Wang [Mon, 9 Mar 2015 16:26:22 +0000 (00:26 +0800)]
Event: Let external events ran without lock/unlock

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agoAsyncConnection: Don't block process when throttle is full
Haomai Wang [Mon, 9 Mar 2015 16:20:24 +0000 (00:20 +0800)]
AsyncConnection: Don't block process when throttle is full

If this connection is blocking on throttler and another worker thread
try to acquire this connection's lock, it will deadlock.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agoMerge pull request #3668 from ceph/wip-compact-container
Gregory Farnum [Mon, 9 Mar 2015 16:17:40 +0000 (12:17 -0400)]
Merge pull request #3668 from ceph/wip-compact-container

Optimize memory usage of MDS

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #3908 from gravitystorm/patch-2
Loic Dachary [Mon, 9 Mar 2015 15:35:28 +0000 (16:35 +0100)]
Merge pull request #3908 from gravitystorm/patch-2

fix typo

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agodeb: add zlib1g-dev to Build-Depends for Debian/jessie 3909/head
Loic Dachary [Mon, 9 Mar 2015 14:41:21 +0000 (15:41 +0100)]
deb: add zlib1g-dev to Build-Depends for Debian/jessie

The zlib1g-dev is installed indirectly for Ubuntu 12.04 or Ubuntu 14.04
but it is only suggested in Debian/jessie. Adding it to the
Build-depends is redundant and harmless for Ubuntu and resolves the
missing dependency for Debian.

http://tracker.ceph.com/issues/11068 Fixes: #11068

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agodoc: fix typo 3908/head
Andy Allan [Mon, 9 Mar 2015 14:41:18 +0000 (14:41 +0000)]
doc: fix typo

Signed-off-by: Andy Allan <github@gravitystorm.co.uk>
10 years agoMerge pull request #3882 from dachary/wip-install-deps-alternatives
Loic Dachary [Mon, 9 Mar 2015 12:53:25 +0000 (13:53 +0100)]
Merge pull request #3882 from dachary/wip-install-deps-alternatives

install-deps.sh: strip | in the list of packages

Reviewed-by: Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3897 from ceph/wip-11015
Sage Weil [Mon, 9 Mar 2015 12:41:21 +0000 (05:41 -0700)]
Merge pull request #3897 from ceph/wip-11015

crush: fix compilation of strwa2 buckets (fixes 11015)

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #3899 from yuyuyu101/hammer-test
Sage Weil [Mon, 9 Mar 2015 12:40:49 +0000 (05:40 -0700)]
Merge pull request #3899 from yuyuyu101/hammer-test

TestAsyncDriver: Fix typo in ceph_test_async_driver

10 years agoMerge pull request #3906 from dachary/wip-mailmap
Loic Dachary [Mon, 9 Mar 2015 12:28:17 +0000 (13:28 +0100)]
Merge pull request #3906 from dachary/wip-mailmap

mailmap: David Zhang affiliation

Reviewed-by: Zhi (David) Zhang <zhangz@yahoo-inc.com>
10 years agotests: increase the delay waiting for a cluster event 3907/head
Loic Dachary [Mon, 9 Mar 2015 11:56:31 +0000 (12:56 +0100)]
tests: increase the delay waiting for a cluster event

In some cases the machine running tests may be slow enough that it takes
more than a minute for an OSD to come up. It only happens rarely and
changing the wait period from 60 seconds to 120 seconds. Is so slow
that it takes more than 2 minutes to bring an OSD up, chances are a lot
more will go wrong anyway.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agomailmap: Zhi (David) Zhang affiliation 3906/head
Loic Dachary [Mon, 9 Mar 2015 10:46:20 +0000 (11:46 +0100)]
mailmap: Zhi (David) Zhang affiliation

And name normalization

Reviewed-by: Zhi (David) Zhang <zhangz@yahoo-inc.com>
Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agodoc: preparing a device implies activate 3901/head
Loic Dachary [Sat, 7 Mar 2015 23:18:24 +0000 (00:18 +0100)]
doc: preparing a device implies activate

http://tracker.ceph.com/issues/10922 Fixes: #10922

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agolibrbd: Add a paramter:purge_on_error in ImageCtx::invalidate_cache(). 3625/head
Jianpeng Ma [Mon, 9 Mar 2015 06:23:23 +0000 (14:23 +0800)]
librbd: Add a paramter:purge_on_error in ImageCtx::invalidate_cache().

If bh_write met error, it will try again. For closing image, if met this
issue, it will trigger a assert:
>>2015-02-03 15:22:49.198292 7ff62d537800 -1 osdc/ObjectCacher.cc: In
function 'ObjectCacher::~ObjectCacher()' thread 7ff62d537800 time
>>2015-02-03 15:22:49.195927osdc/ObjectCacher.cc: 551: FAILED
>>assert(i->empty())

Now add purge_on_error, when shutdown_cache it set true.
In ImageCtx::invalidate_cache, if met error and purge_on_error is true,
purge the dirty bh.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agolibrbd: Remvoe unused func ImageCtx::read_from_cache.
Jianpeng Ma [Thu, 5 Feb 2015 03:28:50 +0000 (11:28 +0800)]
librbd: Remvoe unused func ImageCtx::read_from_cache.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoosdc: clean up code in ObjectCacher::Object::map_write
Jianpeng Ma [Thu, 5 Feb 2015 03:03:10 +0000 (11:03 +0800)]
osdc: clean up code in ObjectCacher::Object::map_write

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoosdc: Don't pass mutex into ObjectCacher::_wait_for_write.
Jianpeng Ma [Thu, 5 Feb 2015 02:13:06 +0000 (10:13 +0800)]
osdc: Don't pass mutex into ObjectCacher::_wait_for_write.

Because the mutex is the same as ObjectCacher::lock.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoosdc: After write try merge bh.
Jianpeng Ma [Mon, 2 Mar 2015 03:23:44 +0000 (11:23 +0800)]
osdc: After write try merge bh.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoosdc: Make last missing bh to wake up the reader.
Jianpeng Ma [Mon, 2 Mar 2015 03:36:24 +0000 (11:36 +0800)]
osdc: Make last missing bh to wake up the reader.

Avoid wakeup early and wait again.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoosdc: For trust_enoent is true, there is only one extent.
Jianpeng Ma [Fri, 6 Feb 2015 01:53:36 +0000 (09:53 +0800)]
osdc: For trust_enoent is true, there is only one extent.

Now the judgement only in conditon which will return -ENOENT.
But o->exists don't depend on the extent size. It only depend on
trust_enoent. So move this judgement at the first of _readx().
Make this bug ASAP occur.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoosdc: In realease(Object *) make the error bh as clean and later remove.
Jianpeng Ma [Tue, 3 Feb 2015 06:59:05 +0000 (14:59 +0800)]
osdc: In realease(Object *) make the error bh as clean and later remove.

Avoid met this assert error:
  osdc/ObjectCacher.cc: 551: FAILED assert(i->empty())

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoosdc: In _readx() only no error can tidy read result.
Jianpeng Ma [Tue, 3 Feb 2015 06:46:39 +0000 (14:46 +0800)]
osdc: In _readx() only no error can tidy read result.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoMerge pull request #3874 from ceph/wip-10828
Sage Weil [Mon, 9 Mar 2015 04:04:19 +0000 (21:04 -0700)]
Merge pull request #3874 from ceph/wip-10828

objecter: fix linger cancel link bug 10828

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #3900 from dachary/wip-recursive-submodules
Loic Dachary [Sat, 7 Mar 2015 17:30:55 +0000 (18:30 +0100)]
Merge pull request #3900 from dachary/wip-recursive-submodules

autogen.sh: do not submodule --force if git does not support it

10 years agoautogen.sh: do not submodule --force if git does not support it 3900/head
Loic Dachary [Sat, 7 Mar 2015 16:11:58 +0000 (17:11 +0100)]
autogen.sh: do not submodule --force if git does not support it

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #3895 from dachary/wip-recursive-submodules
Loic Dachary [Sat, 7 Mar 2015 15:53:50 +0000 (16:53 +0100)]
Merge pull request #3895 from dachary/wip-recursive-submodules

doc,tests: force checkout of submodules

10 years agoTestAsyncDriver: Fix typo in ceph_test_async_driver 3899/head
Haomai Wang [Sat, 28 Feb 2015 09:42:52 +0000 (17:42 +0800)]
TestAsyncDriver: Fix typo in ceph_test_async_driver

Fix: #11058
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agoReplicatedPG: block write on degraded object if there are waiters 3911/head
Samuel Just [Sat, 7 Mar 2015 02:02:25 +0000 (18:02 -0800)]
ReplicatedPG: block write on degraded object if there are waiters

Suppose we have min_size of 2 and size of 3, foo exists only on the
primary.
- block op 1 on foo due to < min_size
- start recovery on foo for replicas 1 and 2
- complete push to replica 1 (2 copies now)
- allow op 2 on foo through since we have 2 copies
- complete recovery on foo, requeue op 1

Fixes: 11057
Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agocrushtool: test compilation of a rule with straw2 buckets 3897/head
Sage Weil [Sat, 7 Mar 2015 01:47:03 +0000 (17:47 -0800)]
crushtool: test compilation of a rule with straw2 buckets

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agocrush: parse alg names that include a digit
Sage Weil [Sat, 7 Mar 2015 01:43:11 +0000 (17:43 -0800)]
crush: parse alg names that include a digit

The str_p("straw2") won't parse straw2, it seems because the digit is throwing
it off.  Use the existing name rule instead which is more robust.  Note that
not constraining the alg value here is better anyway because instead of a
'cannot parse' error that is hard to debug we instead get a 'unknown alg foo'
error when doing the semantic pass.

Fixes: #11015
Signed-off-by: Sage Weil <sage@redhat.com>
10 years agotests: add Debian jessie dockerfile 3882/head
Loic Dachary [Thu, 5 Mar 2015 11:34:48 +0000 (12:34 +0100)]
tests: add Debian jessie dockerfile

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agotests: DEBIAN_FRONTEND=noninteractive apt-get install
Loic Dachary [Thu, 5 Mar 2015 11:17:26 +0000 (12:17 +0100)]
tests: DEBIAN_FRONTEND=noninteractive apt-get install

Go into non interactive mode when installing the compilation
dependencies, in case a package has a different default mode.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agotests: jq is not available on Ubuntu precise
Loic Dachary [Thu, 5 Mar 2015 11:06:21 +0000 (12:06 +0100)]
tests: jq is not available on Ubuntu precise

It should be installed from precise-backports but since it is not
currently used, just remove it.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoinstall-deps.sh: strip | in the list of packages
Loic Dachary [Thu, 5 Mar 2015 10:38:18 +0000 (11:38 +0100)]
install-deps.sh: strip | in the list of packages

Alternatives were introduced lately and the | needs to be stripped from
the list of packages to install otherwise apt-get will try to install
all packages.

Signed-off-by: Yann Dupont <yann@objoo.org>
10 years agorgw: flush watch after unregistering 3845/head
Yehuda Sadeh [Thu, 5 Mar 2015 21:03:02 +0000 (13:03 -0800)]
rgw: flush watch after unregistering

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #3835 from ceph/wip-mon-datahealth-fix.hammer
Sage Weil [Sat, 7 Mar 2015 00:20:52 +0000 (16:20 -0800)]
Merge pull request #3835 from ceph/wip-mon-datahealth-fix.hammer

[hammer] mon: initialize data store stats structs to avoid weird behaviors

10 years agoMerge pull request #3615 from ceph/wip-perf-watch
John Spray [Fri, 6 Mar 2015 19:18:59 +0000 (19:18 +0000)]
Merge pull request #3615 from ceph/wip-perf-watch

Performance watching CLI

10 years agoMerge pull request #3877 from ceph/hammer-backports-hadoop
Gregory Farnum [Fri, 6 Mar 2015 17:29:22 +0000 (09:29 -0800)]
Merge pull request #3877 from ceph/hammer-backports-hadoop

Hammer backports hadoop

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoClient: do not require successful remount when unmounting
Greg Farnum [Tue, 3 Mar 2015 06:29:10 +0000 (22:29 -0800)]
Client: do not require successful remount when unmounting

Fixes: #10982
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 71f2686252ffe29d0234cc8be7304be1450d090e)

10 years agodoc,tests: force checkout of submodules 3895/head
Loic Dachary [Fri, 6 Mar 2015 16:08:55 +0000 (17:08 +0100)]
doc,tests: force checkout of submodules

When updating submodules, always checkout even if the HEAD is the
desired commit hash (update --force) to avoid the following:

* a directory gmock exists in hammer
* a submodule gmock replaces the directory gmock in master
* checkout master + submodule update : gmock/.git is created
* checkout hammer : the gmock directory still contains the .git from
  master because it did not exist at the time and checkout won't
  remove untracked directories
* checkout master + submodule update : git rev-parse HEAD is
  at the desired commit although the content of the gmock directory
  is from hammer

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #3892 from cernceph/cephdisk
Sage Weil [Fri, 6 Mar 2015 15:50:41 +0000 (07:50 -0800)]
Merge pull request #3892 from cernceph/cephdisk

ceph-disk: activate-[all|journal] should suppress

Backport: hammer, giant, firefly
Reviewed-by: Sage Weil <sage@redhat.com>
10 years agotests: sync must also be recursive
Loic Dachary [Fri, 6 Mar 2015 14:29:22 +0000 (15:29 +0100)]
tests: sync must also be recursive

In case a submodule URL to a nested submodule changed

Signed-off-by: Loic Dachary <ldachary@redhat.com>