]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
10 years agodoc: Removes ceph-deploy usage instances from ceph-disk man page.
Nilamdyuti Goswami [Tue, 25 Nov 2014 15:46:16 +0000 (21:16 +0530)]
doc: Removes ceph-deploy usage instances from ceph-disk man page.

Signed-off-by: Nilamdyuti Goswami <ngoswami@redhat.com>
10 years agodoc: Updates man page for ceph-disk utility.
Nilamdyuti Goswami [Mon, 24 Nov 2014 20:36:39 +0000 (02:06 +0530)]
doc: Updates man page for ceph-disk utility.

Signed-off-by: Nilamdyuti Goswami <ngoswami@redhat.com>
10 years agodoc: Adds man page for ceph-disk utility.
Nilamdyuti Goswami [Mon, 24 Nov 2014 16:35:11 +0000 (22:05 +0530)]
doc: Adds man page for ceph-disk utility.

Signed-off-by: Nilamdyuti Goswami <ngoswami@redhat.com>
10 years agoMerge pull request #2873 from ceph/wip-rbd-test-fixtures
Josh Durgin [Tue, 11 Nov 2014 06:42:39 +0000 (07:42 +0100)]
Merge pull request #2873 from ceph/wip-rbd-test-fixtures

librbd: Refactor librbd unit tests to use test fixtures

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #2893 from ceph/wip-10045
Sage Weil [Tue, 11 Nov 2014 02:11:18 +0000 (18:11 -0800)]
Merge pull request #2893 from ceph/wip-10045

common/Readahead: use correct lock when waiting on the pending ops

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agocommon/Readahead: use correct lock when waiting on the pending ops 2893/head
Jason Dillaman [Mon, 10 Nov 2014 21:08:05 +0000 (16:08 -0500)]
common/Readahead: use correct lock when waiting on the pending ops

Readahead was using the incorrect lock with the pending condition,
resulting in a failed assertion.  It now uses the lock associated
with pending ops.

Fixes: #10045
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agoMerge pull request #2380 from osynge/wip-suse-systemd-integration
Sage Weil [Tue, 11 Nov 2014 00:44:26 +0000 (16:44 -0800)]
Merge pull request #2380 from osynge/wip-suse-systemd-integration

systemd support in ceph-disk activate

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2446 from xylv/wip-9359
Yehuda Sadeh [Tue, 11 Nov 2014 00:35:02 +0000 (16:35 -0800)]
Merge pull request #2446 from xylv/wip-9359

rgw: Export user stats in get-user-info Adminops API

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #2725 from CzBiX/rgw-modified-since
Yehuda Sadeh [Tue, 11 Nov 2014 00:29:21 +0000 (16:29 -0800)]
Merge pull request #2725 from CzBiX/rgw-modified-since

rgw: correct "If-Modified-Since" handle.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #2782 from boydc2014/master
Sage Weil [Tue, 11 Nov 2014 00:21:08 +0000 (16:21 -0800)]
Merge pull request #2782 from boydc2014/master

rgw: fix can not disable max_size quota

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #2624 from ceph/wip-8911
Sage Weil [Tue, 11 Nov 2014 00:14:10 +0000 (16:14 -0800)]
Merge pull request #2624 from ceph/wip-8911

rgw: swift GET / HEAD object returns X-Timestamp field

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2851 from ceph/wip-9986
Samuel Just [Mon, 10 Nov 2014 23:00:26 +0000 (15:00 -0800)]
Merge pull request #2851 from ceph/wip-9986

objecter: fix map skipping

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2667 from yuandong1222/avoid-unused-pg_to_acting_osds-call
Samuel Just [Mon, 10 Nov 2014 22:58:56 +0000 (14:58 -0800)]
Merge pull request #2667 from yuandong1222/avoid-unused-pg_to_acting_osds-call

Avoid unused pg_to_acting_osds call in OSDMap::get_primary_shard

Reviewed-by: Samuel Just <sjust@redhat.com>
10 years agoMerge pull request #2474 from dachary/wip-9420-erasure-code-non-regression
Samuel Just [Mon, 10 Nov 2014 22:57:42 +0000 (14:57 -0800)]
Merge pull request #2474 from dachary/wip-9420-erasure-code-non-regression

erasure-code: store and compare encoded contents

Reviewed-by: Samuel Just <sjust@redhat.com>
10 years agoMerge pull request #2456 from ceph/wip-9031-9262
Samuel Just [Mon, 10 Nov 2014 22:56:30 +0000 (14:56 -0800)]
Merge pull request #2456 from ceph/wip-9031-9262

Wip 9031 9262

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2553 from ceph/wip-aio-journal
Samuel Just [Mon, 10 Nov 2014 22:55:04 +0000 (14:55 -0800)]
Merge pull request #2553 from ceph/wip-aio-journal

osd: clean up journal aio+dio header issue

Reviewed-by: Samuel Just <sjust@redhat.com>
10 years agoMerge pull request #2745 from ceph/wip-6756
Samuel Just [Mon, 10 Nov 2014 22:53:56 +0000 (14:53 -0800)]
Merge pull request #2745 from ceph/wip-6756

JounralingObjectStore: journal->committed_thru after replay

10 years agoMerge pull request #2773 from ceph/wip-9852
Samuel Just [Mon, 10 Nov 2014 22:52:10 +0000 (14:52 -0800)]
Merge pull request #2773 from ceph/wip-9852

mon: MDSMonitor: proper error output if pool DNE on 'add_data_pool'

Reviewed-by: Joao Eduardo Luis <joao@redhat.com>
10 years agoMerge pull request #2822 from ceph/wip-9887
Samuel Just [Mon, 10 Nov 2014 22:51:15 +0000 (14:51 -0800)]
Merge pull request #2822 from ceph/wip-9887

Wip 9887

Reviewed-by: Samuel Just <sjust@redhat.com>
10 years agoMerge pull request #2850 from ceph/wip-9987
Samuel Just [Mon, 10 Nov 2014 22:49:51 +0000 (14:49 -0800)]
Merge pull request #2850 from ceph/wip-9987

mon: fix min_last_epoch_started tracking

Reviewed-by: Joao Eduardo Luis <joao@redhat.com>
10 years agoMerge pull request #2862 from ceph/wip-log-client
Samuel Just [Mon, 10 Nov 2014 22:47:15 +0000 (14:47 -0800)]
Merge pull request #2862 from ceph/wip-log-client

osd, mds: fix cluster log

Reviewed-by: Joao Eduardo Luis <joao@redhat.com>
10 years agoMerge pull request #2689 from zhurongze/fix-crush
Sage Weil [Mon, 10 Nov 2014 17:02:28 +0000 (09:02 -0800)]
Merge pull request #2689 from zhurongze/fix-crush

crush: fix incorrect use of adjust_item_weight method

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2881 from ceph/wip-10030
Sage Weil [Mon, 10 Nov 2014 16:41:58 +0000 (08:41 -0800)]
Merge pull request #2881 from ceph/wip-10030

librbd: don't close an already closed parent image upon failure

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agocrush: fix incorrect use of adjust_item_weight method 2689/head
Rongze Zhu [Fri, 10 Oct 2014 11:18:00 +0000 (19:18 +0800)]
crush: fix incorrect use of adjust_item_weight method

adjust_item_weight method will adjust all buckets which the item
inside. If the osd.0 in host=fake01 and host=fake02, we execute
"ceph osd crush osd.0 10 host=fake01", it not only will adjust fake01's
weight, but also will adjust fake02's weight.

the patch add adjust_item_weightf_in_loc method and fix remove_item,
_remove_item_under, update_item, insert_item, detach_bucket methods.

Signed-off-by: Rongze Zhu <zrzhit@gmail.com>
10 years agoerasure-code: erasure_code_benchmark exhaustive erasure exploration 2474/head
Loic Dachary [Thu, 25 Sep 2014 12:46:07 +0000 (14:46 +0200)]
erasure-code: erasure_code_benchmark exhaustive erasure exploration

Add the --erasure-generation exhaustive flag to try all combinations of
erasures, not just one at random.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoerasure-code: add erasure_code_benchmark --verbose
Loic Dachary [Mon, 29 Sep 2014 09:17:13 +0000 (11:17 +0200)]
erasure-code: add erasure_code_benchmark --verbose

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoerasure_code: implement ceph_erasure_code to assert the existence of a plugin
Loic Dachary [Tue, 23 Sep 2014 12:37:57 +0000 (14:37 +0200)]
erasure_code: implement ceph_erasure_code to assert the existence of a plugin

This is handy when scripting in the context of teuthology and only
conditionally run tests for the isa plugin, for instance.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoerasure-code: ceph_erasure_code does not need to avoid dlclose
Loic Dachary [Tue, 23 Sep 2014 12:36:08 +0000 (14:36 +0200)]
erasure-code: ceph_erasure_code does not need to avoid dlclose

The only reason for not dlclosing plugins at exit is for callgrind but
ceph_erasure_code has no workload that would require callgrind.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoerasure-code: add corpus verification to make check
Loic Dachary [Tue, 23 Sep 2014 09:38:09 +0000 (11:38 +0200)]
erasure-code: add corpus verification to make check

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoerasure-code: Makefile.am cosmetics
Loic Dachary [Sat, 13 Sep 2014 10:58:27 +0000 (12:58 +0200)]
erasure-code: Makefile.am cosmetics

Cluster benchmark related lines together.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoerasure-code: s/alignement/alignment/ typos in jerasure
Loic Dachary [Sat, 13 Sep 2014 10:55:26 +0000 (12:55 +0200)]
erasure-code: s/alignement/alignment/ typos in jerasure

The jerasure-per-chunk-alignment prameter was mispelled and while
useable that would lead to confusion.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoerasure-code: workunit to check for encoding regression
Loic Dachary [Sat, 13 Sep 2014 11:36:09 +0000 (13:36 +0200)]
erasure-code: workunit to check for encoding regression

Clone the archive of encoded objects and decode all archived objects, up
to and including the current ceph version.

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

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoerasure-code: store and compare encoded contents
Loic Dachary [Sat, 13 Sep 2014 08:16:31 +0000 (10:16 +0200)]
erasure-code: store and compare encoded contents

Introduce ceph_erasure_code_non_regression to check and compare how an
erasure code plugin encodes and decodes content with a given set of
parameters. For instance:

./ceph_erasure_code_non_regression \
      --plugin jerasure \
      --parameter technique=reed_sol_van \
      --parameter k=2 \
      --parameter m=2 \
      --stripe-width 3181 \
      --create \
      --check

Will create an encoded object (--create) and store it into a directory
along with the chunks, one chunk per file. The directory name is derived
from the parameters. The content of the object is a random pattern of 31
bytes repeated to fill the object size specified with --stripe-width.

The check function (--check) reads the object back from the file,
encodes it and compares the result with the content of the chunks read
from the files. It also attempts recover from one or two erasures.

Chunks encoded by a given version of Ceph are expected to be encoded
exactly in the same way by all Ceph versions going forward.

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

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2888 from dachary/wip-9970-erasure-code-documentation
Loic Dachary [Mon, 10 Nov 2014 13:51:15 +0000 (14:51 +0100)]
Merge pull request #2888 from dachary/wip-9970-erasure-code-documentation

erasure-code: document pool operations

Reviewed-by: Laurent Guerby <laurent@guerby.net>
10 years agoerasure-code: document pool operations 2888/head
Loic Dachary [Sun, 9 Nov 2014 02:23:06 +0000 (03:23 +0100)]
erasure-code: document pool operations

A short introduction to the first time user of an erasure coded pool.
It includes a reminder of how it relates to cache tiering and links to
define new profiles with an example.

There was examples in the developer documentation but the operator
expects to find such a guide in the rados operations chapter.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #2750 from dachary/wip-9815-make-check-parallel
Loic Dachary [Mon, 10 Nov 2014 10:58:27 +0000 (11:58 +0100)]
Merge pull request #2750 from dachary/wip-9815-make-check-parallel

parallelize make check

Reviewed-by: Joao Eduardo Luis <joao@redhat.com>
10 years agotests: use kill -0 to check process existence 2750/head
Loic Dachary [Wed, 22 Oct 2014 03:05:45 +0000 (20:05 -0700)]
tests: use kill -0 to check process existence

When killing a daemon, instead of using kill -9 to check the process was
terminated, use kill -0. Should the pid of the process be reused
immediately after, it would be wrong to kill the new process. Worst case
scenario the kill_daemon function returns before the process is
confirmed to be killed but this is not treated as an error and is
unlikely to cause any problem.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agotests: looping to wait for an osd to be up is expected
Loic Dachary [Sun, 19 Oct 2014 15:59:17 +0000 (08:59 -0700)]
tests: looping to wait for an osd to be up is expected

Remove the reference to a bug that suggests otherwise.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agotests: increase timeout to accommodate slow machines
Loic Dachary [Sun, 19 Oct 2014 04:16:44 +0000 (21:16 -0700)]
tests: increase timeout to accommodate slow machines

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agotests: kill_daemon use $name.pid instead of pidfile
Loic Dachary [Sun, 19 Oct 2014 00:15:41 +0000 (17:15 -0700)]
tests: kill_daemon use $name.pid instead of pidfile

So that it can be used instead of stop.sh to stop vstart.sh daemons. The
problem with stop.sh is that it kills any daemon, not just a selection.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agotests: group workunits/cephtool/test.sh tests per daemon
Loic Dachary [Sat, 18 Oct 2014 22:51:41 +0000 (15:51 -0700)]
tests: group workunits/cephtool/test.sh tests per daemon

So all tests related to a given daemon (mon, osd, mds) can be run at
once.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agotests: run workunits/cephtool/test.sh
Loic Dachary [Sat, 18 Oct 2014 22:43:51 +0000 (15:43 -0700)]
tests: run workunits/cephtool/test.sh

Three scripts are added to run qa/workunits/cephtool/test.sh for each
daemon (mon, mds, osd) so they can be run in parallel.

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

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agotests: remove vstart_wrapped_tests.sh
Loic Dachary [Sat, 18 Oct 2014 22:41:40 +0000 (15:41 -0700)]
tests: remove vstart_wrapped_tests.sh

Listing tests to be run in a single script does not take advantage of
parallel runs in make.

The vstart_wrapper.sh script is reworked and made less specialized and
let the caller decide which daemons to run via CEPH_START and does not
enforce the number of deamons of each time. It no longer uses stop.sh to
avoid killing the osd/mon/mds that are unrelated to the tests.

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

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agotests: use different ports for each mon
Loic Dachary [Sat, 18 Oct 2014 20:15:41 +0000 (13:15 -0700)]
tests: use different ports for each mon

Run the mon on each test on a different port so they can run in
parallel.

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

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agotests: tolerate a disk 99% full
Loic Dachary [Sat, 18 Oct 2014 20:10:14 +0000 (13:10 -0700)]
tests: tolerate a disk 99% full

The tests do not need much space and will work fine even on a 99% full
disk.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2869 from fgimenez/fix-tests-on-btrfs
Sage Weil [Sun, 9 Nov 2014 05:05:40 +0000 (21:05 -0800)]
Merge pull request #2869 from fgimenez/fix-tests-on-btrfs

Fix tests on btrfs: leftover subvolumes removed

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #2860 from XinzeChi/master
Loic Dachary [Sat, 8 Nov 2014 15:03:45 +0000 (16:03 +0100)]
Merge pull request #2860 from XinzeChi/master

osd: cache pool: delete dead code in ReplicatedPG::agent_choose_mode

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agotest: use unsigned ints to compare against size()
Greg Farnum [Sat, 8 Nov 2014 00:20:57 +0000 (16:20 -0800)]
test: use unsigned ints to compare against size()

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #2814 from ceph/wip-inode-scrub
Gregory Farnum [Sat, 8 Nov 2014 00:16:02 +0000 (16:16 -0800)]
Merge pull request #2814 from ceph/wip-inode-scrub

Wip inode scrub

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #2884 from dachary/wip-mailmap
Loic Dachary [Fri, 7 Nov 2014 22:56:15 +0000 (23:56 +0100)]
Merge pull request #2884 from dachary/wip-mailmap

mailmap: Loic Dachary affiliation

10 years agomailmap: Loic Dachary affiliation 2884/head
Loic Dachary [Fri, 7 Nov 2014 22:54:07 +0000 (23:54 +0100)]
mailmap: Loic Dachary affiliation

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #2882 from ceph/wip-doc-dumpling-to-firefly
tmuthamizhan [Fri, 7 Nov 2014 22:09:02 +0000 (14:09 -0800)]
Merge pull request #2882 from ceph/wip-doc-dumpling-to-firefly

doc: Added Dumpling to Firefly upgrade section.

10 years agodoc: Added Dumpling to Firefly upgrade section. 2882/head
John Wilkins [Fri, 7 Nov 2014 21:16:45 +0000 (13:16 -0800)]
doc: Added Dumpling to Firefly upgrade section.

Fixes: #7679
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
10 years agoMerge remote-tracking branch 'origin/master' into wip-inode-scrub 2814/head
Greg Farnum [Fri, 7 Nov 2014 21:15:58 +0000 (13:15 -0800)]
Merge remote-tracking branch 'origin/master' into wip-inode-scrub

Conflicts:
src/common/Makefile.am
src/mds/Server.cc

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMDS: clean up internal MDRequests the standard way
Greg Farnum [Thu, 6 Nov 2014 19:10:29 +0000 (11:10 -0800)]
MDS: clean up internal MDRequests the standard way

All cleanup is now routed through respond_to_request(),
which invokes the internal_op_finish Context*, then does
mdcache->request_finish(). This is easier to reason about,
and indeed fixes a bug (I was not cleaning up locks
following flush). Use the MDSContinuation to facilitate
this in scrub's case.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMDS: CInode: break out of validation early on symlinks
Greg Farnum [Fri, 24 Oct 2014 23:38:24 +0000 (16:38 -0700)]
MDS: CInode: break out of validation early on symlinks

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agocommon/ceph_strings: add some MDS internal op names to ceph_mds_op_name()
Greg Farnum [Thu, 2 Oct 2014 22:21:31 +0000 (15:21 -0700)]
common/ceph_strings: add some MDS internal op names to ceph_mds_op_name()

In addition to my validate and flush, this is also missing exportdir.

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agoMDS: add a flush_dentry() function, and wire it up to the admin socket
Greg Farnum [Tue, 9 Sep 2014 21:55:42 +0000 (14:55 -0700)]
MDS: add a flush_dentry() function, and wire it up to the admin socket

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agoMDS: CInode: create a flush() function
Greg Farnum [Fri, 11 Jul 2014 21:20:05 +0000 (14:20 -0700)]
MDS: CInode: create a flush() function

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agoMDCache: handle internal ops in respond_to_request()
Greg Farnum [Fri, 29 Aug 2014 06:25:42 +0000 (23:25 -0700)]
MDCache: handle internal ops in respond_to_request()

This only works for those which have specified a finisher in the MDR.

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agoMDCache: make scrub_dentry schedulable and reentrant
Greg Farnum [Fri, 29 Aug 2014 06:03:59 +0000 (23:03 -0700)]
MDCache: make scrub_dentry schedulable and reentrant

Rather than assuming that any necessary inodes are in the cache, split up
MDCache::scrub_dentry into setup and work phases. Add an internal_op_finisher()
to MDRequest. Dispatch any CEPH_MDS_OP_VALIDATE internal operations to
scrub_dentry_work(). Taken together, these make everything work properly when
path_traverse() (by way of rdlock_path_pin_ref()) needs to go to disk before
satisfying the lookup.

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agoMDCache: "handle" request_forward on internal ops
Greg Farnum [Wed, 27 Aug 2014 21:11:26 +0000 (14:11 -0700)]
MDCache: "handle" request_forward on internal ops

For now, just return -EXDEV ("Cross-device link") on internal ops that
require forwarding, as forwarding internal ops will require a great deal more
infrastructure.. But push the issue down to this level instead of worrying
about it in path_traverse, and consider the possibility that the MDRequest
might not have a client_request that it's wrapped around.

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agoServer: rename reply_request() -> respond_to_request()
Greg Farnum [Thu, 21 Aug 2014 23:25:17 +0000 (16:25 -0700)]
Server: rename reply_request() -> respond_to_request()

This is no longer necessarily a reply; it could turn into a Context
activation or something.

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agoServer: rename reply_request -> reply_client_request; make it private
Greg Farnum [Thu, 21 Aug 2014 03:12:00 +0000 (20:12 -0700)]
Server: rename reply_request -> reply_client_request; make it private

The generic reply_request(MDRequest, int) is now the only caller. It's still
just building an MClientRequest to pass along, but we can change it a lot more
easily now to support responding to non-client requests.

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agoServer: add snapbl to MDRequest and eliminate last explicit MClientReply
Greg Farnum [Thu, 21 Aug 2014 03:02:45 +0000 (20:02 -0700)]
Server: add snapbl to MDRequest and eliminate last explicit MClientReply

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agoServer: use mdr->reply_extra_bl instead of explicit MClientReply
Greg Farnum [Thu, 21 Aug 2014 02:47:00 +0000 (19:47 -0700)]
Server: use mdr->reply_extra_bl instead of explicit MClientReply

Set the MClientReply::extra_bl from reply_extra_bl unconditionally in
reply_request(), instead of only in early_reply(). Further isolate
the reply_request() callers from the use of MClientReply this way.

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agoServer: do not use explicit MClientReply if we don't need to
Greg Farnum [Thu, 21 Aug 2014 02:38:45 +0000 (19:38 -0700)]
Server: do not use explicit MClientReply if we don't need to

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agoServer: remove tracei and tracedn parameters from reply_request
Greg Farnum [Fri, 1 Aug 2014 14:01:04 +0000 (07:01 -0700)]
Server: remove tracei and tracedn parameters from reply_request

We have members for these two parameters in the MDRequestImpl already, so
make use of them. This helps us move towards dropping the expectation of an
MClientRequest from functions like rdlock_path_pin_ref().

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agoMDCache: add a scrub_dentry() function, and wire it up to the admin socket
Greg Farnum [Fri, 11 Jul 2014 22:20:32 +0000 (15:20 -0700)]
MDCache: add a scrub_dentry() function, and wire it up to the admin socket

scrub_dentry() is passed a string path, and it validates it before replying. We
hook up an admin socket command "scrub_path" to call it and dump the output.

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agoMDS: CInode: implement validated_data::dump()
Greg Farnum [Thu, 2 Oct 2014 21:51:20 +0000 (14:51 -0700)]
MDS: CInode: implement validated_data::dump()

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agoMDS: CInode::validate_disk_state()
Greg Farnum [Thu, 10 Jul 2014 00:27:40 +0000 (17:27 -0700)]
MDS: CInode::validate_disk_state()

Add a function that will validate the on-disk state of the CInode. We currently
check that the on-disk backtrace matches (or is older) and compare rstats on
dirfrags against the parent dir's inode (for directories only).

TODO: validate that the on-disk Inode object matches what the parent
directory holds.

It's using a sort-of new programming model, trying to stuff stack data into
a Continuation object and write everything sequentially instead of having
a function and Context per IO.

Signed-off-by: Greg Farnum <greg@inktank.com>
Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoRebase: MDS: Add an MDSContinuation for ease of use
Greg Farnum [Wed, 5 Nov 2014 22:23:32 +0000 (14:23 -0800)]
Rebase: MDS: Add an MDSContinuation for ease of use

Unlike the regular Continuation, this one works in terms of an MDRequest
and has wrappers to provide Context callbacks that are either
internal MDS or IO appropriate.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agoContinuation: Add a new Continuation class.
Greg Farnum [Wed, 9 Jul 2014 23:53:53 +0000 (16:53 -0700)]
Continuation: Add a new Continuation class.

Signed-off-by: Greg Farnum <greg@inktank.com>
Signed-off-by: John Spray <john.spray@redhat.com>
SQUASH "Continuation: Add a new Continuation class."

10 years agoMDCache: create_unlinked_system_inode() as the guts of create_system_inode()
Greg Farnum [Wed, 1 Oct 2014 00:03:24 +0000 (17:03 -0700)]
MDCache: create_unlinked_system_inode() as the guts of create_system_inode()

This way we can create duplicate CInodes without actually linking them
into the cache. It'll be helpful for comparing different versions of
disk states and in-memory state, etc.

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agoMDS: MDRequestImpl: provide filepath/filepath2 substitute for MClientRequest
Greg Farnum [Tue, 15 Jul 2014 17:42:29 +0000 (10:42 -0700)]
MDS: MDRequestImpl: provide filepath/filepath2 substitute for MClientRequest

Use this passthru in the Server path locking functions so that we can get
locks or auth pins without an associated MClientRequest.

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agoMDRequest: dump internal op names as well as IDs
Greg Farnum [Thu, 2 Oct 2014 22:20:42 +0000 (15:20 -0700)]
MDRequest: dump internal op names as well as IDs

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agoMDCache: remove #if 0'd code
Greg Farnum [Fri, 1 Aug 2014 13:07:48 +0000 (06:07 -0700)]
MDCache: remove #if 0'd code

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agomdstypes: add a same_sums() function to nest_info_t
Greg Farnum [Fri, 26 Sep 2014 01:02:58 +0000 (18:02 -0700)]
mdstypes: add a same_sums() function to nest_info_t

operator== is checking equality of the version as well, but I want
something I can use to check that the internal sums match. This is useful
for eg comparing the sums of a set of dirfrags to the tally stored in
the inode.

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agotest/mds: unit tests for the inode_backtrace_t and inode_t compare() functions
Greg Farnum [Fri, 3 Oct 2014 21:33:56 +0000 (14:33 -0700)]
test/mds: unit tests for the inode_backtrace_t and inode_t compare() functions

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agomdstypes: write inode_t::compare() function
Greg Farnum [Wed, 1 Oct 2014 01:07:30 +0000 (18:07 -0700)]
mdstypes: write inode_t::compare() function

This compares one inode_t against another, seeing which version is newer
and checking that differences in the data members make sense given that.

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agoMDS: add operator==() and compare() for inode_backtrace_t
Greg Farnum [Thu, 10 Jul 2014 00:09:51 +0000 (17:09 -0700)]
MDS: add operator==() and compare() for inode_backtrace_t

The compare() function checks one backtrace against another and indicates
if they're equivalent (or divergent!) and the relative freshness.

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agoMDS: CInode: add a fetch_backtrace() utility function
Greg Farnum [Tue, 8 Jul 2014 23:21:34 +0000 (16:21 -0700)]
MDS: CInode: add a fetch_backtrace() utility function

Expose MDCache::fetch_backtrace and call it from the CInode context.

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agomds: add an MDSInternalContextWrapper and MDSIOContextWrapper
Greg Farnum [Thu, 28 Aug 2014 00:37:28 +0000 (17:37 -0700)]
mds: add an MDSInternalContextWrapper and MDSIOContextWrapper

These let us wrap generic function tooling up inside of the appropriate
type-checking, and verify we haven't done anything too stupid.

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agoqa/workunits/fs/misc: combine sudo and echo effectively
Greg Farnum [Fri, 7 Nov 2014 01:59:22 +0000 (17:59 -0800)]
qa/workunits/fs/misc: combine sudo and echo effectively

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agoqa: use sudo even more when rsyncing /usr
Greg Farnum [Fri, 7 Nov 2014 01:48:01 +0000 (17:48 -0800)]
qa: use sudo even more when rsyncing /usr

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #2593 from cernceph/wip-reusepart
Loic Dachary [Thu, 6 Nov 2014 21:02:43 +0000 (22:02 +0100)]
Merge pull request #2593 from cernceph/wip-reusepart

ceph-disk: set guid if reusing a journal partition

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2871 from branto1/wip-systemd-run-not-avail
Loic Dachary [Thu, 6 Nov 2014 15:44:54 +0000 (16:44 +0100)]
Merge pull request #2871 from branto1/wip-systemd-run-not-avail

Fix rhbz#1157938

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agoFedora 19 uses systemd but there is no systemd-run available in the release (rhbz... 2871/head
Boris Ranto [Thu, 6 Nov 2014 14:38:51 +0000 (15:38 +0100)]
Fedora 19 uses systemd but there is no systemd-run available in the release (rhbz#1157938), this patch makes sure that the init scripts check for availability of systemd-run before they use it (otherwise, they fall back to the default method)

Signed-off-by: Boris Ranto <branto@redhat.com>
10 years agoFix tests on btrfs: leftover subvolumes removed 2869/head
Federico Gimenez [Wed, 5 Nov 2014 14:58:36 +0000 (15:58 +0100)]
Fix tests on btrfs: leftover subvolumes removed

Signed-off-by: Federico Gimenez <fgimenez@coit.es>
10 years agoMerge pull request #2859 from ceph/wip-9877
Josh Durgin [Thu, 6 Nov 2014 12:18:41 +0000 (13:18 +0100)]
Merge pull request #2859 from ceph/wip-9877

rgw: RGWRados::get_obj() returns wrong len if len == 0

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
10 years agoMerge pull request #2865 from ceph/wip-9479
Josh Durgin [Thu, 6 Nov 2014 12:14:29 +0000 (13:14 +0100)]
Merge pull request #2865 from ceph/wip-9479

rgw: send back ETag on S3 object copy

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
10 years agoMerge pull request #2866 from ceph/wip-9973
Josh Durgin [Thu, 6 Nov 2014 12:13:17 +0000 (13:13 +0100)]
Merge pull request #2866 from ceph/wip-9973

rgw: remove swift user manifest (DLO) hash calculation

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
10 years agoMerge pull request #2867 from ceph/wip-9918
Josh Durgin [Thu, 6 Nov 2014 12:09:15 +0000 (13:09 +0100)]
Merge pull request #2867 from ceph/wip-9918

rgw: update swift subuser perm masks when authenticating

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
10 years agoMerge pull request #2864 from ceph/wip-9478
Josh Durgin [Thu, 6 Nov 2014 12:05:32 +0000 (13:05 +0100)]
Merge pull request #2864 from ceph/wip-9478

rgw: S3 object copy content type fix

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
10 years agoMerge pull request #2868 from zhouyuan/bench_tool_isa
Loic Dachary [Thu, 6 Nov 2014 10:12:12 +0000 (11:12 +0100)]
Merge pull request #2868 from zhouyuan/bench_tool_isa

EC: Allow bench.sh to test ISA backend also

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agolibrbd: don't close an already closed parent image upon failure 2881/head
Jason Dillaman [Thu, 6 Nov 2014 10:01:38 +0000 (05:01 -0500)]
librbd: don't close an already closed parent image upon failure

If librbd is not able to open a child's parent image, it will
incorrectly close the parent image twice, resulting in a crash.

Fixes: #10030
Backport: firefly, giant
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agoEC: Allow bench.sh to test ISA backend also 2868/head
Yuan Zhou [Thu, 6 Nov 2014 07:46:27 +0000 (15:46 +0800)]
EC: Allow bench.sh to test ISA backend also

Update bench.sh/plot tool to cover ISA backend.
ISA will output a fake echinique 'cauchy_good' so the plot tool
don't need to be changed.

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
10 years agoosd, mon: Send initial pg create time from mon to osd 2822/head
David Zafman [Tue, 28 Oct 2014 02:13:10 +0000 (19:13 -0700)]
osd, mon: Send initial pg create time from mon to osd

Fixes: #9887
Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agolibrbd: Refactor librbd unit tests to use test fixtures 2873/head
Jason Dillaman [Wed, 5 Nov 2014 22:43:10 +0000 (17:43 -0500)]
librbd: Refactor librbd unit tests to use test fixtures

Current librbd unit tests create and destroy pools for each
test.  By migrating to a test fixture, the same pool(s) are
now used for all tests within a test case.  This speeds up
the runtime of the librbd tests.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agorgw: update swift subuser perm masks when authenticating 2867/head
Yehuda Sadeh [Wed, 5 Nov 2014 22:38:46 +0000 (14:38 -0800)]
rgw: update swift subuser perm masks when authenticating

Fixes: #9918
Backport: firefly, giant
It seems that we weren't setting the swift perm mask correctly.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>