]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
10 years agorgw: update keystone cache with token info 4017/head
Yehuda Sadeh [Tue, 3 Mar 2015 19:03:35 +0000 (11:03 -0800)]
rgw: update keystone cache with token info

Fixes: #11125
Backport: hammer, firefly

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #3872 from dachary/wip-7334-partx-test
Loic Dachary [Mon, 16 Mar 2015 18:21:23 +0000 (19:21 +0100)]
Merge pull request #3872 from dachary/wip-7334-partx-test

ceph-disk: test activate on the second journal

Reviewed-by: Alfredo Deza <adeza@redhat.com>
10 years agoMerge pull request #4014 from ceph/wip-mon-doc
Loic Dachary [Mon, 16 Mar 2015 17:52:50 +0000 (18:52 +0100)]
Merge pull request #4014 from ceph/wip-mon-doc

doc/rados/operations/add-or-rm-mons: revise doc a bit to be less confusing

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #3922 from ceph/wip-11053
John Spray [Mon, 16 Mar 2015 17:32:29 +0000 (13:32 -0400)]
Merge pull request #3922 from ceph/wip-11053

mds: fix assertion caused by system clock backwards

Reviewed-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #3752 from ceph/wip-10744
John Spray [Mon, 16 Mar 2015 17:06:49 +0000 (13:06 -0400)]
Merge pull request #3752 from ceph/wip-10744

mds: give up replicas of a stopping mds's stuff

Reviewed-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: give up replicas of a stopping mds's stuff 3752/head
John Spray [Tue, 10 Mar 2015 14:40:30 +0000 (14:40 +0000)]
mds: give up replicas of a stopping mds's stuff

In order for an MDS to make it through stopping when
it had some strays, the other ranks that serviced
the migrate_stray renames must ensure that they
give up any cache objects that belonged to
the stopping MDS, so that the stopping MDS
can finish emptying its cache.

Fixes: #10744
Signed-off-by: John Spray <john.spray@redhat.com>
10 years agodoc/rados/operations/add-or-rm-mons: revise doc a bit to be less confusing 4014/head
Sage Weil [Mon, 16 Mar 2015 16:32:22 +0000 (09:32 -0700)]
doc/rados/operations/add-or-rm-mons: revise doc a bit to be less confusing

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #4002 from zhicheng/master
Loic Dachary [Mon, 16 Mar 2015 08:03:00 +0000 (09:03 +0100)]
Merge pull request #4002 from zhicheng/master

fix doc/dev/network-protocol.rst typo

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #4007 from dachary/wip-warnings
Kefu Chai [Mon, 16 Mar 2015 07:33:53 +0000 (15:33 +0800)]
Merge pull request #4007 from dachary/wip-warnings

fix a few minor compilation warnings

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agofix a few minor compilation warnings 4007/head
Loic Dachary [Sun, 15 Mar 2015 23:14:00 +0000 (00:14 +0100)]
fix a few minor compilation warnings

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agofix doc/dev/network-protocol.rst typo 4002/head
Zhicheng Wei [Sun, 15 Mar 2015 04:12:26 +0000 (12:12 +0800)]
fix doc/dev/network-protocol.rst typo

Signed-off-by: Zhicheng Wei <zhicheng@opensourceforge.net>
10 years agoMerge pull request #3989 from javacruft/wip/fixup-cycles-crossarch
Sage Weil [Mon, 16 Mar 2015 01:12:34 +0000 (18:12 -0700)]
Merge pull request #3989 from javacruft/wip/fixup-cycles-crossarch

Add support for PPC architecture, provide fallback

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #4006 from dachary/wip-documentation
Loic Dachary [Sun, 15 Mar 2015 22:31:40 +0000 (23:31 +0100)]
Merge pull request #4006 from dachary/wip-documentation

doc: mark the ascii schema as a literal block

Reviewed-by: Yann Dupont <yann@objoo.org>
10 years agodoc: mark the ascii schema as a literal block 4006/head
Loic Dachary [Sun, 15 Mar 2015 21:47:59 +0000 (22:47 +0100)]
doc: mark the ascii schema as a literal block

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #4005 from dachary/wip-releases
Loic Dachary [Sun, 15 Mar 2015 21:39:39 +0000 (22:39 +0100)]
Merge pull request #4005 from dachary/wip-releases

doc: release timeline

Reviewed-by: Yann Dupont <yann@objoo.org>
10 years agoMerge pull request #3990 from zaitcev/first_contrib
Loic Dachary [Sun, 15 Mar 2015 21:13:50 +0000 (22:13 +0100)]
Merge pull request #3990 from zaitcev/first_contrib

Specify the actual struct used in protocol handshake

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #3992 from ceph/wip-package-perf-objectstore
Loic Dachary [Sun, 15 Mar 2015 21:12:05 +0000 (22:12 +0100)]
Merge pull request #3992 from ceph/wip-package-perf-objectstore

packaging: include ceph_perf_objectstore

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Dan Mick <dmick@redhat.com>
10 years agodoc: release timeline 4005/head
Loic Dachary [Sun, 15 Mar 2015 20:59:14 +0000 (21:59 +0100)]
doc: release timeline

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agopackaging: include ceph_perf_objectstore 3992/head
Ken Dreyer [Fri, 13 Mar 2015 22:08:35 +0000 (16:08 -0600)]
packaging: include ceph_perf_objectstore

The /usr/bin/ceph_perf_objectstore file is installed by default. Prior
to this commit it was missing from the packaging. This caused the RPM to
fail to build in mock.

Add ceph_perf_objectstore to the "ceph-test" RPM and Debian package.

If we end up developing further ceph_perf_* utilities, it would make
sense to glob them all with a wildcard, similar to what we are doing
with all the ceph_test_* utilities in ceph-test.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
10 years agoSpecify the actual struct used in protocol handshake 3990/head
Pete Zaitcev [Fri, 13 Mar 2015 20:13:02 +0000 (14:13 -0600)]
Specify the actual struct used in protocol handshake

Maybe it was sockaddr_storage in an older version, but it is
definitely entity_addr_t in "ceph v027".

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
10 years agoAdd support for PPC architecture, provide fallback 3989/head
James Page [Fri, 13 Mar 2015 19:46:04 +0000 (19:46 +0000)]
Add support for PPC architecture, provide fallback

Add high precision cpu cycles support for powerpc and powerpc64.

Provide a fallback for other architectures and warn during
compilation.

Signed-off-by: James Page <james.page@ubuntu.com>
10 years agoMerge pull request #3957 from xinxinsh/wip-cleanup
Kefu Chai [Fri, 13 Mar 2015 16:28:08 +0000 (00:28 +0800)]
Merge pull request #3957 from xinxinsh/wip-cleanup

os/{Level,Rocks}DBStore: cleanup in_prefix function

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #3985 from fmarsylle/master
Kefu Chai [Fri, 13 Mar 2015 15:33:26 +0000 (23:33 +0800)]
Merge pull request #3985 from fmarsylle/master

doc: s/that will called every time/that will be called every time/

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #3986 from Al3xis-N/master
Loic Dachary [Fri, 13 Mar 2015 14:17:05 +0000 (15:17 +0100)]
Merge pull request #3986 from Al3xis-N/master

doc: How to generate an object corpus : should be a subsection

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agodoc: How to generate an object corpus : should be a subsection 3986/head
smagtony@gmail.com [Fri, 13 Mar 2015 12:49:23 +0000 (13:49 +0100)]
doc: How to generate an object corpus : should be a subsection

Fixes: #11099
Signed-off-by: Alexis Normand <n.al3xis@gmail.com>
10 years agoMerge pull request #3987 from RobinDehu/master
Loic Dachary [Fri, 13 Mar 2015 14:09:26 +0000 (15:09 +0100)]
Merge pull request #3987 from RobinDehu/master

doc: extra \ in CEPH\_AUTH\_UNKNOWN

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agodoc: s/that will called every time/that will be called every time/ 3985/head
florian [Fri, 13 Mar 2015 13:02:09 +0000 (14:02 +0100)]
doc: s/that will called every time/that will be called every time/

fixes: #11098

Signed-off-by: florian marsylle <florian.marsylle@hotmail.fr>
10 years agodoc: extra \ in CEPH\_AUTH\_UNKNOWN 3987/head
dehu robin [Fri, 13 Mar 2015 11:53:57 +0000 (12:53 +0100)]
doc: extra \ in CEPH\_AUTH\_UNKNOWN

Suppress all \

fixes: #11097

Signed-off-by: DEHU Robin <robindehu@gmail.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 agoceph-disk: more robust parted output parser 3872/head
Loic Dachary [Sun, 8 Mar 2015 14:15:35 +0000 (15:15 +0100)]
ceph-disk: more robust parted output parser

In some cases, depending on the implementation or the operating system,

   parted --machine -- /dev/sdh print

may contain empty lines. The current parsing code is fragile and highly
depends on output details. Replace it with code that basically does the
same sanity checks (output not empty, existence of units, existence of
the dev entry) but handles the entire output instead of checking line by
line.

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

Signed-off-by: Loic Dachary <ldachary@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 agotests: ceph-disk.sh /dev/disk/by-partuuid and /dev/loop fixes
Loic Dachary [Tue, 10 Mar 2015 13:19:20 +0000 (14:19 +0100)]
tests: ceph-disk.sh /dev/disk/by-partuuid and /dev/loop fixes

On CentOS 6.X and RHEL 6.X:

* /dev/disk/by-partuuid is not updated, support files must be installed
  to create them when udev notices a partition modification.

* /dev/loop is not configured to handle partition tables, the default
  2.6.32 kernel must be configured with loop.max_part=16

Sanity checks are added to verify the above, attempt to fix it and fail
if it cannot be fixed or if a machine reboot is necessary.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
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 agocleanup in_prefix function 3957/head
xinxin shu [Wed, 11 Mar 2015 01:43:04 +0000 (09:43 +0800)]
cleanup in_prefix function

Signed-off-by: xinxin shu <xinxin.shu@intel.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 agotests: ceph-disk paritition creation and partition table in use
Loic Dachary [Wed, 4 Mar 2015 14:43:15 +0000 (15:43 +0100)]
tests: ceph-disk paritition creation and partition table in use

The kernel partition table notification (via partprobe, partx, etc.) may
behave differently when a partition is in use. Add a test case that
checks a new journal partition shows as expected, even if another
journal partition is in use.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agotests: ceph-disk.sh test for second journal partition
Loic Dachary [Wed, 4 Mar 2015 14:43:15 +0000 (15:43 +0100)]
tests: ceph-disk.sh test for second journal partition

Create an OSD with data on a disk, journal on another
This will add a new partition to $journal, the previous
one will remain.

Add 200MB to the file supporting the pseudo disk exposed via the loop
device: as we create more OSDs, more 100MB partitions will be created
for journals.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agotests: ceph-disk.sh cosmetic changes and reduced verbosity
Loic Dachary [Wed, 4 Mar 2015 14:43:15 +0000 (15:43 +0100)]
tests: ceph-disk.sh cosmetic changes and reduced verbosity

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agotests: do not use --journal-dio=true
Loic Dachary [Sat, 7 Mar 2015 20:22:30 +0000 (21:22 +0100)]
tests: do not use --journal-dio=true

Direct IO for the journal may cause subtle errors while running the
tests withing a container. Disable Direct IO for all ceph-disk.sh tests.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agotests: ceph-disk.sh may use uuidgen without PATH
Loic Dachary [Sat, 7 Mar 2015 16:23:21 +0000 (17:23 +0100)]
tests: ceph-disk.sh may use uuidgen without PATH

Store the absolute path in a variable to find uuidgen even if PATH is
empty.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agotests: ceph-disk.sh can be confused if there are two OSDs
Loic Dachary [Sat, 7 Mar 2015 15:10:15 +0000 (16:10 +0100)]
tests: ceph-disk.sh can be confused if there are two OSDs

Replace the fragile extaction of the whoami file with an explicit uuid
set for a given OSD. It can conveniently be translated back into an osd
id with ceph osd create uuid if needed.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agotests: teardown on ceph-disk error
Loic Dachary [Sat, 7 Mar 2015 09:47:10 +0000 (10:47 +0100)]
tests: teardown on ceph-disk error

The activate_dev error must kill all process with teardown before
attempting to umount the devices when an error happens. Otherwise the
device fails to be unmounted and the loop devices are never freed.

Signed-off-by: Loic Dachary <ldachary@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 agomds: fix assertion caused by system clock backwards 3922/head
Yan, Zheng [Tue, 10 Mar 2015 11:55:57 +0000 (19:55 +0800)]
mds: fix assertion caused by system clock backwards

Fixes: #11053
Signed-off-by: Yan, Zheng <zyan@redhat.com>
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>