]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
10 years agoosd/ReplicatedPG: fix an indent in find_object_context 4480/head
Zhiqiang Wang [Tue, 28 Apr 2015 08:45:04 +0000 (16:45 +0800)]
osd/ReplicatedPG: fix an indent in find_object_context

Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
10 years agoMerge pull request #4454 from ceph/wip-11447
Josh Durgin [Mon, 27 Apr 2015 22:46:08 +0000 (15:46 -0700)]
Merge pull request #4454 from ceph/wip-11447

rgw: use correct oid when creating gc chains

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #4471 from ceph/wip-11477
Josh Durgin [Mon, 27 Apr 2015 19:51:12 +0000 (12:51 -0700)]
Merge pull request #4471 from ceph/wip-11477

rbd: correct issues with cli integration tests

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #4470 from ceph/wip-11475
Josh Durgin [Mon, 27 Apr 2015 19:45:18 +0000 (12:45 -0700)]
Merge pull request #4470 from ceph/wip-11475

librbd: correct issues discovered by Python unit tests

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agodoc/release-notes: v0.87.2
Sage Weil [Mon, 27 Apr 2015 18:44:53 +0000 (11:44 -0700)]
doc/release-notes: v0.87.2

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agotests: rbd cli integration test should explicitly select image format 4471/head
Jason Dillaman [Mon, 27 Apr 2015 05:58:06 +0000 (01:58 -0400)]
tests: rbd cli integration test should explicitly select image format

RBD format 2 is now the default image format, so tests involving the old
format should explicitly request the old format.

Fixes: #11477
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agolibrbd: do not attempt to retrieve metadata for old format images
Jason Dillaman [Mon, 27 Apr 2015 05:56:58 +0000 (01:56 -0400)]
librbd: do not attempt to retrieve metadata for old format images

An unnecessary error message is being logged due to a failure to retrieve
metadata for old-format images -- which don't support metadata.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agolibrbd: flatten should return -EROFS if image is read-only 4470/head
Jason Dillaman [Mon, 27 Apr 2015 05:03:52 +0000 (01:03 -0400)]
librbd: flatten should return -EROFS if image is read-only

Fixes: #11475
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agolibrbd: allow snapshots to be created when snapshot is active
Jason Dillaman [Mon, 27 Apr 2015 05:00:38 +0000 (01:00 -0400)]
librbd: allow snapshots to be created when snapshot is active

The librbd API previously permitted the creation of snapshots while
the image context was associated to another snapshot.  A recent code
cleanup broke that ability, so this re-introduces it.  The code change
also allows minor cleanup with rebuild_object_map.

Fixes: #11475
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agoMerge pull request #4455 from liewegas/wip-civetweb-gitignore
Sage Weil [Sun, 26 Apr 2015 00:06:35 +0000 (17:06 -0700)]
Merge pull request #4455 from liewegas/wip-civetweb-gitignore

civetweb: add .gitignore

10 years agoMerge pull request #4434 from ceph/wip-7385
Josh Durgin [Fri, 24 Apr 2015 18:45:54 +0000 (11:45 -0700)]
Merge pull request #4434 from ceph/wip-7385

librbd: updated cache max objects calculation

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #4395 from ceph/wip-11381
Gregory Farnum [Fri, 24 Apr 2015 18:20:41 +0000 (11:20 -0700)]
Merge pull request #4395 from ceph/wip-11381

Fix clear_pipe after reaping progress

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #4440 from ceph/wip-11442
Josh Durgin [Fri, 24 Apr 2015 18:18:38 +0000 (11:18 -0700)]
Merge pull request #4440 from ceph/wip-11442

Wip 11442

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #4401 from yuyuyu101/wip-async-fix-5
Sage Weil [Fri, 24 Apr 2015 17:43:06 +0000 (10:43 -0700)]
Merge pull request #4401 from yuyuyu101/wip-async-fix-5

Wip async fix 5

10 years agorgw_admin: add --remove-bad flag to bucket check 4440/head
Yehuda Sadeh [Wed, 22 Apr 2015 23:04:35 +0000 (16:04 -0700)]
rgw_admin: add --remove-bad flag to bucket check

Add this flag so that the bad object will be removed (should be called
only after user has verified that objects content is correct).

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #4438 from oritwas/wip-10295
Yehuda Sadeh [Fri, 24 Apr 2015 16:26:24 +0000 (09:26 -0700)]
Merge pull request #4438 from oritwas/wip-10295

rgw: civetweb should use unique request id

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoAsyncMessenger: Don't need to join thread if not started 4401/head
Haomai Wang [Fri, 24 Apr 2015 13:18:50 +0000 (21:18 +0800)]
AsyncMessenger: Don't need to join thread if not started

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agoFix clear_pipe after reaping progress 4395/head
Haomai Wang [Fri, 17 Apr 2015 14:07:00 +0000 (22:07 +0800)]
Fix clear_pipe after reaping progress

In pipe.cc:1353 we stop this connection and we will let reader and write threads stop. If now reader and writer quit ASAP and we call queue_reap to trigger the reap progress. Now we haven't call "connection_state->clear_pipe(this)" in pipe.cc:1379, so we may assert failure  here.

Fixes: #11381
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agocivetweb: add .gitignore 4455/head
Sage Weil [Thu, 23 Apr 2015 23:03:21 +0000 (16:03 -0700)]
civetweb: add .gitignore

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #4165 from liewegas/wip-post-file
Sage Weil [Thu, 23 Apr 2015 22:39:11 +0000 (15:39 -0700)]
Merge pull request #4165 from liewegas/wip-post-file

qa/workunits/post-file.sh: s/base-files/aclocal/

10 years agorgw: use correct oid when creating gc chains 4454/head
Yehuda Sadeh [Thu, 23 Apr 2015 22:33:03 +0000 (15:33 -0700)]
rgw: use correct oid when creating gc chains

Fixes: #11447
Backport: hammer

When creating gc chain, use the appropriate oid, otherwise objects will
leak.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #4439 from ceph/wip-11453-rgw-init-as-root
Sage Weil [Thu, 23 Apr 2015 22:05:57 +0000 (15:05 -0700)]
Merge pull request #4439 from ceph/wip-11453-rgw-init-as-root

#11453 init-radosgw: run RGW as root

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoinit-radosgw: run RGW as root 4439/head
Ken Dreyer [Wed, 22 Apr 2015 22:36:42 +0000 (16:36 -0600)]
init-radosgw: run RGW as root

The ceph-radosgw service fails to start if the httpd package is not
installed. This is because the init.d file attempts to start the RGW
process with the "apache" UID. If a user is running civetweb, there is
no reason for the httpd or apache2 package to be present on the system.

Switch the init scripts to use "root" as is done on Ubuntu.

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

Reported-by: Vickey Singh <vickey.singh22693@gmail.com>
Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
10 years agorgw: civetweb should use unique request id 4438/head
Orit Wasserman [Thu, 23 Apr 2015 15:36:47 +0000 (17:36 +0200)]
rgw: civetweb should use unique request id

max_req_id was moved to RGWRados and changed to atomic64_t.

The same request id resulted in gc giving the same idtag to all objects
resulting in a leakage of rados objects. It only kept the last deleted object in
it's queue, the previous objects were never freed.

Fixes: 10295
Backport: Hammer, Firefly

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
10 years agoMerge pull request #4451 from ceph/wip-kfsx-flush-on-discard
Josh Durgin [Thu, 23 Apr 2015 17:17:39 +0000 (10:17 -0700)]
Merge pull request #4451 from ceph/wip-kfsx-flush-on-discard

test_librbd_fsx: flush before discard in krbd mode

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agotest_librbd_fsx: flush before discard in krbd mode 4451/head
Ilya Dryomov [Thu, 23 Apr 2015 16:22:05 +0000 (19:22 +0300)]
test_librbd_fsx: flush before discard in krbd mode

We need to sync dirty pages before issuing BLKDISCARD, explained in
a comment.

Fixes: #11448
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
10 years agoMerge pull request #4448 from tchaikov/wip-check-libxml2-and-libcurl
Sage Weil [Thu, 23 Apr 2015 15:59:12 +0000 (08:59 -0700)]
Merge pull request #4448 from tchaikov/wip-check-libxml2-and-libcurl

configure.ac: check for libcurl and libxml2 if build libs3

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #4446 from osynge/wip-expat
Sage Weil [Thu, 23 Apr 2015 15:48:13 +0000 (08:48 -0700)]
Merge pull request #4446 from osynge/wip-expat

libexpat is now used for rgw

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #4444 from big-henry/wip-throttle
Kefu Chai [Thu, 23 Apr 2015 15:34:51 +0000 (23:34 +0800)]
Merge pull request #4444 from big-henry/wip-throttle

common: fix Throttle - unable to reenable throttling after disabling it

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoThrottle: reset max only if max changed 4444/head
Henry Chang [Thu, 23 Apr 2015 02:38:27 +0000 (10:38 +0800)]
Throttle: reset max only if max changed

Save some CPU cycles.

Signed-off-by: Henry Chang <henry@bigtera.com>
10 years agoThrottle: fix wait/get() with new max
Henry Chang [Wed, 22 Apr 2015 11:02:24 +0000 (19:02 +0800)]
Throttle: fix wait/get() with new max

We were unable to set a new non-zero max if the original max was 0.
Fix it. Also, add test cases for it.

Signed-off-by: Henry Chang <henry@bigtera.com>
10 years agoconfigure.ac: check for libcurl and libxml2 if build libs3 4448/head
Kefu Chai [Thu, 23 Apr 2015 12:18:20 +0000 (20:18 +0800)]
configure.ac: check for libcurl and libxml2 if build libs3

Fixes: #11458
Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agolibexpat is now used for rgw 4446/head
Owen Synge [Thu, 23 Apr 2015 08:14:33 +0000 (10:14 +0200)]
libexpat is now used for rgw

Check for expat.h
check libexpat has method XML_Parse.

Signed-off-by: Owen Synge <osynge@suse.com>
10 years agoMerge pull request #4435 from ceph/wip-11451 4447/head
Josh Durgin [Wed, 22 Apr 2015 23:36:44 +0000 (16:36 -0700)]
Merge pull request #4435 from ceph/wip-11451

rgw: fix s3 list buckets

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agorgw-admin: a tool to fix object locator issue
Yehuda Sadeh [Wed, 22 Apr 2015 22:39:05 +0000 (15:39 -0700)]
rgw-admin: a tool to fix object locator issue

Objects that start with underscore need to have an object locator,
this is due to an old behavior that we need to retain. Some objects
might have been created without the locator. This tool creates a new
rados object with the appropriate locator.

Syntax:

$ ./radosgw-admin bucket check --check-head-obj-locator \
                               --bucket=<bucket> [--fix]

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: set a special object locator if object starts with underscore
Yehuda Sadeh [Wed, 22 Apr 2015 00:31:41 +0000 (17:31 -0700)]
rgw: set a special object locator if object starts with underscore

Fixes: #11442
Backport: hammer

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: fix s3 list buckets 4435/head
Yehuda Sadeh [Wed, 22 Apr 2015 17:35:32 +0000 (10:35 -0700)]
rgw: fix s3 list buckets

Fixes: #11451
Backport: hammer
Got broken in commit:7dd54fa3621c04c8ea5723fb1bc06b91d81a0c6c.
Resurrect the option to list unlimited number of buckets using the S3
api.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agolibrbd: updated cache max objects calculation 4434/head
Jason Dillaman [Wed, 22 Apr 2015 15:27:35 +0000 (11:27 -0400)]
librbd: updated cache max objects calculation

The previous calculation was based upon the image's object size.
Since the cache stores smaller bufferheads, the object size is not
a good indicator of cache usage and was resulting in objects being
evicted from the cache too often.  Instead, base the max number of
objects on the memory load required to store the extra metadata
for the objects.

Fixes: #7385
Backport: firefly, hammer
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agoMerge pull request #4426 from liewegas/wip-11330
Kefu Chai [Wed, 22 Apr 2015 09:18:56 +0000 (17:18 +0800)]
Merge pull request #4426 from liewegas/wip-11330

logrotate: prefer service over invoke-rc.d

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #4425 from ceph/wip-10243
Orit Wasserman [Wed, 22 Apr 2015 08:38:33 +0000 (10:38 +0200)]
Merge pull request #4425 from ceph/wip-10243

civetweb: update max num of threads

10 years agoMerge pull request #4421 from dachary/wip-11441-osd-bench
Kefu Chai [Wed, 22 Apr 2015 07:37:54 +0000 (15:37 +0800)]
Merge pull request #4421 from dachary/wip-11441-osd-bench

tests: osd-bench.sh must be verbose on failure

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #4430 from zhouyuan/fix_make_debs
Loic Dachary [Wed, 22 Apr 2015 07:35:27 +0000 (09:35 +0200)]
Merge pull request #4430 from zhouyuan/fix_make_debs

misc: fix make debs script

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #4427 from big-henry/wip-mds-fix-integer-truncation
Yan, Zheng [Wed, 22 Apr 2015 07:20:54 +0000 (15:20 +0800)]
Merge pull request #4427 from big-henry/wip-mds-fix-integer-truncation

mds: fix integer truncation

10 years agomisc: fix make debs script 4430/head
Yuan Zhou [Wed, 22 Apr 2015 06:33:39 +0000 (14:33 +0800)]
misc: fix make debs script

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
10 years agoMerge pull request #4428 from wkennington/master.pgrefdebugging
Kefu Chai [Wed, 22 Apr 2015 05:58:21 +0000 (13:58 +0800)]
Merge pull request #4428 from wkennington/master.pgrefdebugging

configure.ac: fix the disablement of pgrefdebugging

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoFix the disablement of pgrefdebugging 4428/head
William A. Kennington III [Wed, 22 Apr 2015 05:18:56 +0000 (22:18 -0700)]
Fix the disablement of pgrefdebugging

Currently, if you add the flag --disable-pgrefdebugging during configure
it enables pgrefdebugging. The only way for it to actually be disabled
is to remove the flag entirely. This patch makes the flag respect the
--enable and --disable options correctly. Therefore,
--enable-pgrefdebugging is the only way to enable this now and
--enable-pgrefdebugging=no and --disable-pgrefdebugging work as
expected.

Signed-off-by: William A. Kennington III <william@wkennington.com>
10 years agomds: fix integer truncation 4427/head
Henry Chang [Wed, 22 Apr 2015 03:52:18 +0000 (11:52 +0800)]
mds: fix integer truncation

Client ID is a 64-bit integer. Unlike Ceph daemons, it may go beyond
2147483647 and cause problems.

Signed-off-by: Henry Chang <henry@bigtera.com>
10 years agoMerge pull request #4376 from majianpeng/needs-recovery
Kefu Chai [Wed, 22 Apr 2015 02:49:35 +0000 (10:49 +0800)]
Merge pull request #4376 from majianpeng/needs-recovery

osd: fix bugs for PG::needs_recovery()

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #4269 from majianpeng/add-recoverable
Kefu Chai [Wed, 22 Apr 2015 02:37:05 +0000 (10:37 +0800)]
Merge pull request #4269 from majianpeng/add-recoverable

osd: For ec pool recovery, only for can recoverable object.

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #4222 from majianpeng/scrub-fix1
Kefu Chai [Wed, 22 Apr 2015 02:06:40 +0000 (10:06 +0800)]
Merge pull request #4222 from majianpeng/scrub-fix1

osd/PG: check scrub state when handle CEPH_OSD_OP_SCRUB_MAP.

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agotest: add test-case for repair unrecovery-ec pg. 4269/head
Jianpeng Ma [Wed, 22 Apr 2015 01:45:04 +0000 (09:45 +0800)]
test: add test-case for repair unrecovery-ec pg.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoosd: Remove the duplicated func MissingLoc::get_all_missing.
Jianpeng Ma [Tue, 14 Apr 2015 05:29:54 +0000 (13:29 +0800)]
osd: Remove the duplicated func MissingLoc::get_all_missing.

It is the same as MissingLoc::get_needs_recovery.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoosd: For object op, first check object whether unfound.
Jianpeng Ma [Mon, 13 Apr 2015 03:20:52 +0000 (11:20 +0800)]
osd: For object op, first check object whether unfound.

If object unfound, asap return -EIO.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoosd: Fix ec pg repair endless when met unrecover object.
Jianpeng Ma [Tue, 14 Apr 2015 01:11:58 +0000 (09:11 +0800)]
osd: Fix ec pg repair endless when met unrecover object.

In repair_object, if bad_peer is replica, it don't add soid in
MissingLoc for ec pool. If there are more bad replica for ec pool
which cause object can't recover, the later recoverying will endless.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agoPG: For needs_recovery, asap return if need recover. 4376/head
Jianpeng Ma [Wed, 22 Apr 2015 01:17:39 +0000 (09:17 +0800)]
PG: For needs_recovery, asap return if need recover.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoPG: remove the duplicated code.
Jianpeng Ma [Mon, 20 Apr 2015 15:03:06 +0000 (23:03 +0800)]
PG: remove the duplicated code.

assert(!actingbackfill.empty()) is equal to
assert(actingbackfill.end() != actingbackfill.begin()).

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoPG: fix logic error: don't set need_recovery if peer_missing don't have acting osd.
Jianpeng Ma [Thu, 16 Apr 2015 14:59:54 +0000 (22:59 +0800)]
PG: fix logic error: don't set need_recovery if peer_missing don't have acting osd.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agologrotate.conf: prefer service over invoke-rc.d 4426/head
Sage Weil [Tue, 21 Apr 2015 23:08:09 +0000 (16:08 -0700)]
logrotate.conf: prefer service over invoke-rc.d

On trusty 14.04, service works but invoke-rc.d does not (but is present).

Fixes: #11330
Reported-by: Wim Heirman <wim@heirman.net>
Signed-off-by: Sage Weil <sage@redhat.com>
10 years agotests: osd-bench.sh must be verbose on failure 4421/head
Loic Dachary [Tue, 21 Apr 2015 14:15:15 +0000 (16:15 +0200)]
tests: osd-bench.sh must be verbose on failure

When a command fail as it should but it does not contain the expected
output, display the entire output to confirm it's a false negative.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agotests: convert osd-bench.sh to ceph-helpers.sh
Loic Dachary [Tue, 21 Apr 2015 14:12:56 +0000 (16:12 +0200)]
tests: convert osd-bench.sh to ceph-helpers.sh

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoceph-helpers: implement test_expect_failure
Loic Dachary [Tue, 21 Apr 2015 14:11:33 +0000 (16:11 +0200)]
ceph-helpers: implement test_expect_failure

To display the output in case the command did not fail with the expected
output.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #4399 from trociny/fix-osd_df_avgutil
Sage Weil [Tue, 21 Apr 2015 21:27:48 +0000 (14:27 -0700)]
Merge pull request #4399 from trociny/fix-osd_df_avgutil

mon: osd df: fix average_util calculation

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #4386 from ceph/wip-10657
Gregory Farnum [Tue, 21 Apr 2015 21:19:21 +0000 (14:19 -0700)]
Merge pull request #4386 from ceph/wip-10657

mds: warn when clients are not advancing their oldest_client_tid

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #4331 from ceph/wip-mds-misc
Gregory Farnum [Tue, 21 Apr 2015 21:13:09 +0000 (14:13 -0700)]
Merge pull request #4331 from ceph/wip-mds-misc

Wip mds misc

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #4424 from ceph/wip-doc-nuke-setmap
Josh Durgin [Tue, 21 Apr 2015 19:58:54 +0000 (12:58 -0700)]
Merge pull request #4424 from ceph/wip-doc-nuke-setmap

doc: don't mention ceph osd setmap

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agocivetweb: update max num of threads 4425/head
Yehuda Sadeh [Tue, 21 Apr 2015 18:08:45 +0000 (11:08 -0700)]
civetweb: update max num of threads

Fixes: #10243
cherry-picked upstream fixed into submodule

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #4420 from tchaikov/wip-man-fix-desc-in-name
Loic Dachary [Tue, 21 Apr 2015 17:34:45 +0000 (19:34 +0200)]
Merge pull request #4420 from tchaikov/wip-man-fix-desc-in-name

man: fix the description in NAME section

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #4409 from ceph/wip-11437
Josh Durgin [Tue, 21 Apr 2015 17:34:15 +0000 (10:34 -0700)]
Merge pull request #4409 from ceph/wip-11437

rgw: don't use end_marker for namespaced object listing

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #4408 from ceph/wip-11436
Josh Durgin [Tue, 21 Apr 2015 17:31:22 +0000 (10:31 -0700)]
Merge pull request #4408 from ceph/wip-11436

rgw: adjust return code if can't find upload

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #4407 from ceph/wip-11435
Josh Durgin [Tue, 21 Apr 2015 17:29:08 +0000 (10:29 -0700)]
Merge pull request #4407 from ceph/wip-11435

rgw: fail if parts not specified on complete-multipart-upload

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agodoc: don't mention ceph osd setmap 4424/head
Ilya Dryomov [Tue, 21 Apr 2015 17:27:59 +0000 (20:27 +0300)]
doc: don't mention ceph osd setmap

ceph osd setmap command was disabled and subsequently removed 5 years
ago.  See 9aadd41b2095 ("mon: disable 'osd setmap'") and 6d292397aa26
("mon: remove dead 'setmap' code").

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
10 years agoMerge pull request #4423 from ceph/wip-11370
Josh Durgin [Tue, 21 Apr 2015 17:23:44 +0000 (10:23 -0700)]
Merge pull request #4423 from ceph/wip-11370

librbd: better handling for duplicate flatten requests

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agolibrbd: better handling for duplicate flatten requests 4423/head
Jason Dillaman [Tue, 21 Apr 2015 16:59:33 +0000 (12:59 -0400)]
librbd: better handling for duplicate flatten requests

A proxied flatten request could be replayed, resulting in a
-EINVAL error code being generated on the second attempt. Filter
out that error if it is known the parent did exist before the
op started.

Fixes: #11370
Backport: hammer
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agoMerge pull request #4372 from xiaoxichen/fix_kv_compact_on_mount
Sage Weil [Tue, 21 Apr 2015 16:31:15 +0000 (09:31 -0700)]
Merge pull request #4372 from xiaoxichen/fix_kv_compact_on_mount

Fix kv compact on mount

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #4418 from oritwas/wip-11438
Yehuda Sadeh [Tue, 21 Apr 2015 15:44:52 +0000 (08:44 -0700)]
Merge pull request #4418 from oritwas/wip-11438

rgw: force content-type header for swift account responses without body

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoclient: add failure injection for not advancing oldest_tid 4386/head
Yan, Zheng [Tue, 21 Apr 2015 12:20:55 +0000 (20:20 +0800)]
client: add failure injection for not advancing oldest_tid

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: include size of completed_requests in session dump
Yan, Zheng [Thu, 16 Apr 2015 07:04:30 +0000 (15:04 +0800)]
mds: include size of completed_requests in session dump

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: warn when clients are not advancing their oldest_client_tid
Yan, Zheng [Thu, 16 Apr 2015 06:51:35 +0000 (14:51 +0800)]
mds: warn when clients are not advancing their oldest_client_tid

Fixes: #10657
Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agorgw: force content-type header for swift account responses without body 4418/head
Orit Wasserman [Tue, 21 Apr 2015 10:31:19 +0000 (12:31 +0200)]
rgw: force content-type header for swift account responses without body

This regression was introduced in commit 4cfeca03ade21861ab70ca759f94eb244c16cb39

Fixes: #11438
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
10 years agoman: fix the description in NAME section 4420/head
Kefu Chai [Tue, 21 Apr 2015 13:05:09 +0000 (21:05 +0800)]
man: fix the description in NAME section

Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #4370 from guangyy/wip-ec-test-fix
Loic Dachary [Tue, 21 Apr 2015 11:50:51 +0000 (13:50 +0200)]
Merge pull request #4370 from guangyy/wip-ec-test-fix

qa : misc fixes to stabilize test-erasure-code suite

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #4411 from hjwsm1989/wip-monstore-pool
Kefu Chai [Tue, 21 Apr 2015 11:36:36 +0000 (19:36 +0800)]
Merge pull request #4411 from hjwsm1989/wip-monstore-pool

mon: ceph-monstore-tool must do out_store.close() in "store-copy" command

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #4417 from osynge/wip-LimitNOFILE
Loic Dachary [Tue, 21 Apr 2015 09:50:19 +0000 (11:50 +0200)]
Merge pull request #4417 from osynge/wip-LimitNOFILE

Increase max files open limit for OSD daemon.

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agotools: ceph-monstore-tool must do out_store.close() 4411/head
huangjun [Tue, 21 Apr 2015 06:04:40 +0000 (14:04 +0800)]
tools: ceph-monstore-tool must do out_store.close()

this change fixes the "store-copy" command.
Like the bug reported in http://tracker.ceph.com/issues/10093.

Signed-off-by: huangjun <hjwsm1989@gmail.com>
10 years agoIncrease max files open limit for OSD daemon. 4417/head
Owen Synge [Tue, 21 Apr 2015 09:31:24 +0000 (11:31 +0200)]
Increase max files open limit for OSD daemon.

Under heavy load the number of file descriptors opened
by the OSD can go beyond the 64K file limit. This patch
increases the default to 128K.

Signed-off-by: Owen Synge <osynge@suse.com>
10 years agoclient: inlcude inline data in FLUSHSNAP cap message 4331/head
Yan, Zheng [Mon, 20 Apr 2015 03:25:49 +0000 (11:25 +0800)]
client: inlcude inline data in FLUSHSNAP cap message

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoclient: flush dirty snap data before allowing new writes
Yan, Zheng [Fri, 17 Apr 2015 12:27:56 +0000 (20:27 +0800)]
client: flush dirty snap data before allowing new writes

this guarantees that new writes do not overwrite existing dirty
snap data.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: properly update capability's client_follow
Yan, Zheng [Thu, 16 Apr 2015 08:34:25 +0000 (16:34 +0800)]
mds: properly update capability's client_follow

If snap inode exists, capability's client_follow has already been
updated by MDCache::cow_inode(). So we only update client_follow
when the inode was not COWed.

Besides, we need to check return of SnapRealm::get_snap_following().
It can return CEPH_NOSNAP, which is clearly invalid for client_follows.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: fix Locker::_do_null_snapflush
Yan, Zheng [Tue, 14 Apr 2015 04:02:49 +0000 (12:02 +0800)]
mds: fix Locker::_do_null_snapflush

the snapid check in Locker::_do_null_snapflush() prevents us from
flushing old snap inodes. The check does not make sense.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: do null snap flush when processing embeded cap releases
Yan, Zheng [Tue, 14 Apr 2015 03:41:46 +0000 (11:41 +0800)]
mds: do null snap flush when processing embeded cap releases

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: make sure snap inode's last match existing snapshots
Yan, Zheng [Fri, 10 Apr 2015 05:58:15 +0000 (13:58 +0800)]
mds: make sure snap inode's last match existing snapshots

MDCache::pick_inode_snap() and snap caps flushing code require
this.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: remove stray dentry from delayed list when it's queued for purging
Yan, Zheng [Thu, 9 Apr 2015 12:12:08 +0000 (20:12 +0800)]
mds: remove stray dentry from delayed list when it's queued for purging

this avoids assert(!dn->state_test(CDentry::STATE_PURGING)) in
eval_stray() being triggered when processing the delayed list.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: move snap inode to new dirfrag's dirty_rstat_inodes
Yan, Zheng [Thu, 9 Apr 2015 09:42:31 +0000 (17:42 +0800)]
mds: move snap inode to new dirfrag's dirty_rstat_inodes

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: keep auth pin on CDir when marking it dirty
Yan, Zheng [Thu, 9 Apr 2015 06:36:56 +0000 (14:36 +0800)]
mds: keep auth pin on CDir when marking it dirty

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoosd/PG: check scrub state when handle CEPH_OSD_OP_SCRUB_MAP. 4222/head
Jianpeng Ma [Tue, 21 Apr 2015 03:48:41 +0000 (11:48 +0800)]
osd/PG: check scrub state when handle CEPH_OSD_OP_SCRUB_MAP.

There is a chance which cause scrub stop before replica-node send
scrub-map.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoMerge pull request #4257 from rzarzynski/wip-10683
Yehuda Sadeh [Tue, 21 Apr 2015 00:24:11 +0000 (17:24 -0700)]
Merge pull request #4257 from rzarzynski/wip-10683

rgw: rectify support for GET on Swift's account with "limit" parameter == 0

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: don't use end_marker for namespaced object listing 4409/head
Yehuda Sadeh [Mon, 20 Apr 2015 23:00:34 +0000 (16:00 -0700)]
rgw: don't use end_marker for namespaced object listing

Fixes: #11437
Don't deal with end_marker if there's a namespace set for the object
listing. The cur_end_marker.empty() check is incorrect if no end_marker
is provided, but a namespace is set. Just avoid this issue entirely, as
it's not needed.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: adjust return code if can't find upload 4408/head
Yehuda Sadeh [Mon, 20 Apr 2015 22:01:34 +0000 (15:01 -0700)]
rgw: adjust return code if can't find upload

Fixes: #11436
Return NoSuchUpload (instead of NoSuchKey).

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: fail if parts not specified on complete-multipart-upload 4407/head
Yehuda Sadeh [Mon, 20 Apr 2015 21:47:16 +0000 (14:47 -0700)]
rgw: fail if parts not specified on complete-multipart-upload

Fixes: #11435
A complete multipart upload should not succeed if parts were not
specified. Also, adjust return codes.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #4406 from ceph/wip-11433
Jason Dillaman [Mon, 20 Apr 2015 20:47:20 +0000 (16:47 -0400)]
Merge pull request #4406 from ceph/wip-11433

librbd: always initialize perf counters

Reviewed-by: Jason Dillaman <dillaman@redhat.com>