]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
10 years agorgw: Use attrs from source bucket on copy 4745/head
Javier M. Mellid [Fri, 15 May 2015 12:22:29 +0000 (14:22 +0200)]
rgw: Use attrs from source bucket on copy

On copy objects, when bucket source is the same as the destination, use attrs
from source bucket.

Fixes: #11639
Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
10 years agoMerge pull request #4226 from ceph/wip-11276
Gregory Farnum [Thu, 14 May 2015 23:37:07 +0000 (16:37 -0700)]
Merge pull request #4226 from ceph/wip-11276

#11276: make ceph-fuse well behaved with pool quotas

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #4622 from xiaoxichen/wip-rocksdb-conf
Sage Weil [Thu, 14 May 2015 23:22:31 +0000 (16:22 -0700)]
Merge pull request #4622 from xiaoxichen/wip-rocksdb-conf

Wip rocksdb conf

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #4606 from ceph/wip-rgw-init
Travis Rhoden [Thu, 14 May 2015 17:03:42 +0000 (13:03 -0400)]
Merge pull request #4606 from ceph/wip-rgw-init

init-radosgw: check in /var/lib/ceph/radosgw ; unify w/ sysv version

Reviewed-by: Travis Rhoden <trhoden@redhat.com>
10 years agoinit-radosgw.sysv: remove 4606/head
Sage Weil [Thu, 7 May 2015 22:40:05 +0000 (15:40 -0700)]
init-radosgw.sysv: remove

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoinit-radosgw: unify init-radosgw[.sysv]
Sage Weil [Thu, 7 May 2015 22:39:22 +0000 (15:39 -0700)]
init-radosgw: unify init-radosgw[.sysv]

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoinit-radosgw: look in /var/lib/ceph/radosgw
Sage Weil [Thu, 7 May 2015 22:29:11 +0000 (15:29 -0700)]
init-radosgw: look in /var/lib/ceph/radosgw

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #4680 from ceph/wip-fix-group-in-doxygen
Loic Dachary [Thu, 14 May 2015 13:31:17 +0000 (15:31 +0200)]
Merge pull request #4680 from ceph/wip-fix-group-in-doxygen

doc: fix group in doxygen

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agodoc: customize css for the group title 4680/head
Kefu Chai [Thu, 14 May 2015 11:08:35 +0000 (19:08 +0800)]
doc: customize css for the group title

Fixes: #9442
Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agodoc: use @name to define a group, not @group
Kefu Chai [Thu, 14 May 2015 10:51:22 +0000 (18:51 +0800)]
doc: use @name to define a group, not @group

we are able to output a specified group using the directive
of `doxygengroup` in breathe. this directive prints out the
description of the group. but it's not realistic to enumerate
all groups defined in source code in the rst files. but the
doxygen command @name also helps to group functions together.
the downside of this approach is that we can not add more
items to a group later on. but it should be fine with us,
since in our case, all the grouped items are living in a single
header file.

Fixes: #9442
Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #4671 from dachary/wip-contributing
Loic Dachary [Thu, 14 May 2015 07:04:36 +0000 (09:04 +0200)]
Merge pull request #4671 from dachary/wip-contributing

doc: recommendations related to performances / cleanup

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #4674 from flaf/master
Loic Dachary [Thu, 14 May 2015 00:08:49 +0000 (02:08 +0200)]
Merge pull request #4674 from flaf/master

Doc: add a note about a CRUSH corner case with `ceph osd out`

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #4673 from dachary/wip-bencher
Sage Weil [Thu, 14 May 2015 00:06:46 +0000 (17:06 -0700)]
Merge pull request #4673 from dachary/wip-bencher

tools: remove obsolete aio_bench argument placeholder

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoDoc: add a note about a CRUSH corner case with `ceph osd out` 4674/head
lafont [Thu, 14 May 2015 00:01:01 +0000 (02:01 +0200)]
Doc: add a note about a CRUSH corner case with `ceph osd out`

Signed-off-by: François Lafont <francois.lafont@ac-versailles.fr>
10 years agotools: remove obsolete aio_bench argument placeholder 4673/head
Loic Dachary [Wed, 13 May 2015 23:59:38 +0000 (01:59 +0200)]
tools: remove obsolete aio_bench argument placeholder

It was a noop and has been removed by
1ac727982213bf676beefe9340d6822193dbb700

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #4672 from dachary/wip-bencher
Loic Dachary [Wed, 13 May 2015 23:03:32 +0000 (01:03 +0200)]
Merge pull request #4672 from dachary/wip-bencher

common: fix ObjBencher::aio_bench signature

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agocommon: fix ObjBencher::aio_bench signature 4672/head
Loic Dachary [Wed, 13 May 2015 22:54:07 +0000 (00:54 +0200)]
common: fix ObjBencher::aio_bench signature

It was broken by 1ac727982213bf676beefe9340d6822193dbb700

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #4592 from ceph/wip-7746
Josh Durgin [Wed, 13 May 2015 21:38:58 +0000 (17:38 -0400)]
Merge pull request #4592 from ceph/wip-7746

rbd: add disk usage tool

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #4308 from dachary/wip-bencher
Loic Dachary [Wed, 13 May 2015 21:00:05 +0000 (23:00 +0200)]
Merge pull request #4308 from dachary/wip-bencher

common: clarify some obj_bencher code

Reviewed-by: Dmitry Yatsushkevich <dmitry.yatsushkevich@gmail.com>
10 years agoMerge pull request #4650 from stiopaa1/bufferIterator
Loic Dachary [Wed, 13 May 2015 20:52:09 +0000 (22:52 +0200)]
Merge pull request #4650 from stiopaa1/bufferIterator

buffer.h: Removed unnecessary copy constructor, assignment operator a…

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agodoc: recommendations related to performances / cleanup 4671/head
Loic Dachary [Wed, 13 May 2015 20:28:14 +0000 (22:28 +0200)]
doc: recommendations related to performances / cleanup

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #4668 from ceph/wip-rados-binary-omapsetval
Loic Dachary [Wed, 13 May 2015 20:34:22 +0000 (22:34 +0200)]
Merge pull request #4668 from ceph/wip-rados-binary-omapsetval

rados cli: setomapval can now read from stdin

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #4473 from ceph/wip-10809-11135-10290
David Zafman [Wed, 13 May 2015 20:10:39 +0000 (13:10 -0700)]
Merge pull request #4473 from ceph/wip-10809-11135-10290

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
10 years agotest: Add config changes to all tests to avoid order dependency 4473/head
David Zafman [Tue, 12 May 2015 22:28:07 +0000 (15:28 -0700)]
test: Add config changes to all tests to avoid order dependency

ReplayCorrupt was crashing because journal_ignore_corruption wasn't set true
Improve ReplayCorrupt by checking setting of bool corrupt and use ASSERT_FALSE()

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoosd: Add admin socket feature set_recovery_delay
David Zafman [Thu, 30 Apr 2015 17:20:24 +0000 (10:20 -0700)]
osd: Add admin socket feature set_recovery_delay

Set the value of osd_recovery_delay_start to specified seconds

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph-objectstore-tool: For import/export --debug dump the log
David Zafman [Mon, 27 Apr 2015 22:37:14 +0000 (15:37 -0700)]
ceph-objectstore-tool: For import/export --debug dump the log

Move log dumping code to common function dump_log()

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agotest: Use ceph-objectstore-tool --no-overwrite for import-rados
David Zafman [Tue, 3 Feb 2015 01:41:12 +0000 (17:41 -0800)]
test: Use ceph-objectstore-tool --no-overwrite for import-rados

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agotest: Test ceph-objectstore-tool --dry-run in select operations
David Zafman [Fri, 30 Jan 2015 01:15:13 +0000 (17:15 -0800)]
test: Test ceph-objectstore-tool --dry-run in select operations

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agotest: Fix ceph-objectstore-tool test missing fd.close()
David Zafman [Fri, 30 Jan 2015 01:14:39 +0000 (17:14 -0800)]
test: Fix ceph-objectstore-tool test missing fd.close()

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agotest: Fix ceph-objectstore-tool test error message
David Zafman [Fri, 30 Jan 2015 01:13:41 +0000 (17:13 -0800)]
test: Fix ceph-objectstore-tool test error message

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph-objectstore-tool: If object re-appears after removal, just skip it
David Zafman [Sat, 31 Jan 2015 00:56:10 +0000 (16:56 -0800)]
ceph-objectstore-tool: If object re-appears after removal, just skip it

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph-objectstore-tool: Add --no-overwrite flag for import-rados
David Zafman [Sat, 31 Jan 2015 00:11:13 +0000 (16:11 -0800)]
ceph-objectstore-tool: Add --no-overwrite flag for import-rados

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph-objectstore-tool: Remove list-lost because now we have --dry-run flag
David Zafman [Tue, 3 Feb 2015 00:23:18 +0000 (16:23 -0800)]
ceph-objectstore-tool: Remove list-lost because now we have --dry-run flag

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph-objectstore-tool: Add --dry-run option
David Zafman [Fri, 23 Jan 2015 15:34:11 +0000 (07:34 -0800)]
ceph-objectstore-tool: Add --dry-run option

Fixes: #10290
Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph-objectstore-tool: Add dump-info command to show object info
David Zafman [Thu, 22 Jan 2015 18:07:09 +0000 (10:07 -0800)]
ceph-objectstore-tool: Add dump-info command to show object info

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph-objectstore-tool: Use empty string for <object> to specify pgmeta object
David Zafman [Tue, 27 Jan 2015 22:32:42 +0000 (14:32 -0800)]
ceph-objectstore-tool: Use empty string for <object> to specify pgmeta object

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph-objectstore-tool: Add a couple of strategically placed prints
John Spray [Mon, 20 Apr 2015 16:28:15 +0000 (17:28 +0100)]
ceph-objectstore-tool: Add a couple of strategically placed prints

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoceph-objectstore-tool: Clean up error handling
David Zafman [Mon, 20 Apr 2015 23:10:18 +0000 (16:10 -0700)]
ceph-objectstore-tool: Clean up error handling

Use negative errors throughout and positive error to specify exit status
cpp_strerror() handles negative errors
Clean up main() code to use local "ret"
Let end of main() decide how to treat the final value of "ret"

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph-objectstore-tool: Create section around log/missing/divergent_priors of --op log
David Zafman [Wed, 15 Apr 2015 22:40:41 +0000 (15:40 -0700)]
ceph-objectstore-tool: Create section around log/missing/divergent_priors of --op log

Remove extra new lines in the output

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph-objectstore-tool: Add divergent_priors handling
David Zafman [Tue, 14 Apr 2015 20:49:26 +0000 (13:49 -0700)]
ceph-objectstore-tool: Add divergent_priors handling

Add to --op log output
Add to metadata_section for export
Add filtering of divergent_priors in case of splits

Fixes: #11237
Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agotest: ceph-objectstore-tool: Remove duplicate debug messages, keep cmd/log/call together
David Zafman [Wed, 1 Apr 2015 17:32:32 +0000 (10:32 -0700)]
test: ceph-objectstore-tool: Remove duplicate debug messages, keep cmd/log/call together

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agotest: ceph-objectstore-tool import after split testing
David Zafman [Sat, 28 Mar 2015 02:47:01 +0000 (19:47 -0700)]
test: ceph-objectstore-tool import after split testing

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agotest: Use CEPH_DIR where appropriate
David Zafman [Tue, 31 Mar 2015 15:16:03 +0000 (08:16 -0700)]
test: Use CEPH_DIR where appropriate

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agotest: Limit how long ceph-objectstore-tool test will wait for health
David Zafman [Tue, 31 Mar 2015 00:35:07 +0000 (17:35 -0700)]
test: Limit how long ceph-objectstore-tool test will wait for health

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agotest: Add optional arg to vstart() to provide additional args to vstart
David Zafman [Tue, 31 Mar 2015 00:33:46 +0000 (17:33 -0700)]
test: Add optional arg to vstart() to provide additional args to vstart

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agotest: Test ceph-objectstore-tool --op dump-journal output
David Zafman [Fri, 6 Mar 2015 03:35:27 +0000 (19:35 -0800)]
test: Test ceph-objectstore-tool --op dump-journal output

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agotest: Pep8 fixes for ceph-objectstore-tool test
David Zafman [Tue, 17 Mar 2015 21:56:06 +0000 (14:56 -0700)]
test: Pep8 fixes for ceph-objectstore-tool test

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph-objectstore-tool: Add --force option which is used for import only
David Zafman [Wed, 18 Mar 2015 17:05:24 +0000 (10:05 -0700)]
ceph-objectstore-tool: Add --force option which is used for import only

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph-objectstore-tool: Fix pgid scan to skip snapdirs
David Zafman [Fri, 13 Mar 2015 07:41:39 +0000 (00:41 -0700)]
ceph-objectstore-tool: Fix pgid scan to skip snapdirs

Long standing bug where it wasn't skipping snapdirs if !debug
For debug output use stderr like all other cases

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph-objectstore-tool: Add dump-journal op
David Zafman [Mon, 9 Feb 2015 20:24:19 +0000 (12:24 -0800)]
ceph-objectstore-tool: Add dump-journal op

Have dump-journal op directly dump a filestore journal without
mounting or try to dump after mounting.

Fixes: #11135
Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoosd: FileJournal: Add _fdump() that takes Formatter instead of ostream
David Zafman [Fri, 6 Mar 2015 03:16:45 +0000 (19:16 -0800)]
osd: FileJournal: Add _fdump() that takes Formatter instead of ostream

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agotest: Fix ceph-objectstore-tool test, overwrite OTHERFILE so second check is meaningful
David Zafman [Fri, 6 Mar 2015 02:37:44 +0000 (18:37 -0800)]
test: Fix ceph-objectstore-tool test, overwrite OTHERFILE so second check is meaningful

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agotest: ceph_test_filejournal: Conform to test infrastructure requirements
David Zafman [Fri, 6 Mar 2015 00:37:46 +0000 (16:37 -0800)]
test: ceph_test_filejournal: Conform to test infrastructure requirements

Only call RUN_ALL_TESTS() once

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agotest: ceph_test_filejournal need to force aio because testing with a file
David Zafman [Fri, 6 Mar 2015 00:13:50 +0000 (16:13 -0800)]
test: ceph_test_filejournal need to force aio because testing with a file

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agotest: ceph_test_filejournal fix missing argument to FileJournal constructor
David Zafman [Fri, 6 Mar 2015 00:04:36 +0000 (16:04 -0800)]
test: ceph_test_filejournal fix missing argument to FileJournal constructor

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agotest: ceph_test_filejournal Add check of journalq in WriteTrim test
David Zafman [Fri, 20 Feb 2015 03:48:11 +0000 (19:48 -0800)]
test: ceph_test_filejournal  Add check of journalq in WriteTrim test

Commit all journal entries and check for empty journalq

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agofilestore: Change int open_journal() to void new_journal()
David Zafman [Wed, 4 Mar 2015 03:51:02 +0000 (19:51 -0800)]
filestore: Change int open_journal() to void new_journal()

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoosd: Fix log output in FileJournal::read_entry() coming from do_read_entry()
David Zafman [Fri, 20 Feb 2015 04:17:33 +0000 (20:17 -0800)]
osd: Fix log output in FileJournal::read_entry() coming from do_read_entry()

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoos: Add some logging used only by test code
David Zafman [Fri, 20 Feb 2015 03:46:15 +0000 (19:46 -0800)]
os: Add some logging used only by test code

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoosd: Add simple_dump() to FileJournal for unit testing
David Zafman [Wed, 18 Feb 2015 20:34:35 +0000 (12:34 -0800)]
osd: Add simple_dump() to FileJournal for unit testing

Allow a dump when entries aren't ObjectStore::Transaction's

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoosd: FileJournal clean-up
David Zafman [Wed, 18 Feb 2015 20:29:38 +0000 (12:29 -0800)]
osd: FileJournal clean-up

Move aio / directio adjustments to constructor
Indicate functions which only operate before journal is active
Make functions const when possible
Move push_back() of journalq to read_entry()
Change dump() to use do_read_entry() to minimize side effects

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoosd: Dump header in FileJournal::dump()
David Zafman [Fri, 6 Feb 2015 02:48:22 +0000 (18:48 -0800)]
osd: Dump header in FileJournal::dump()

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoosd: FileJournal::read_entry() can't use a zero seq to check for corruption
David Zafman [Fri, 6 Feb 2015 02:40:25 +0000 (18:40 -0800)]
osd: FileJournal::read_entry() can't use a zero seq to check for corruption

Seen when using dump() on a journal which has all entries committed

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoosd: Fix flushing in FileJournal::dump()
David Zafman [Fri, 6 Feb 2015 02:36:01 +0000 (18:36 -0800)]
osd: Fix flushing in FileJournal::dump()

Use ostream arg since caller is specifying
Move flush after last section close

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph-objectstore-tool: On any exit release CephContext so logging can flush
David Zafman [Mon, 9 Feb 2015 20:46:20 +0000 (12:46 -0800)]
ceph-objectstore-tool: On any exit release CephContext so logging can flush

Add myexit() which will put() the g_ceph_context if present before exit
Must umount() once the objectstore has been mounted

Fixes: #10809
Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph-objectstore-tool: Check for keyvaluestore experimental feature
David Zafman [Tue, 10 Feb 2015 01:28:04 +0000 (17:28 -0800)]
ceph-objectstore-tool: Check for keyvaluestore experimental feature

Don't list keyvaluestore as a valid type if feature not enabled

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph-objectstore-tool: Eliminate obscure "Invalid params" error
David Zafman [Tue, 10 Feb 2015 01:14:50 +0000 (17:14 -0800)]
ceph-objectstore-tool: Eliminate obscure "Invalid params" error

Will fail later with "No such file or directory" for an empty data-path
because we've already checked for vm.count("data-path")

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph-objectstore-tool: Check pgid validity earlier like we did before
David Zafman [Mon, 9 Feb 2015 23:37:57 +0000 (15:37 -0800)]
ceph-objectstore-tool: Check pgid validity earlier like we did before

This code was not doing the umount() even though it was moved after mount()

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph-dencoder: Add ability to import from stdin by specifying "-"
David Zafman [Thu, 22 Jan 2015 21:02:39 +0000 (13:02 -0800)]
ceph-dencoder: Add ability to import from stdin by specifying "-"

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoMerge pull request #4375 from tchaikov/wip-ceph-unrecognized-exception
Loic Dachary [Wed, 13 May 2015 19:32:02 +0000 (21:32 +0200)]
Merge pull request #4375 from tchaikov/wip-ceph-unrecognized-exception

ceph.in: do not throw on unknown errno

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agobuffer.h: added some consts 4650/head
Michal Jarzabek [Wed, 13 May 2015 18:59:27 +0000 (19:59 +0100)]
buffer.h: added some consts

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
10 years agobuffer.h: Removed unnecessary copy constructor and assignment operator
Michal Jarzabek [Wed, 13 May 2015 18:57:32 +0000 (19:57 +0100)]
buffer.h: Removed unnecessary copy constructor and assignment operator

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
10 years agoMerge pull request #4151 from dmitryya/issue_7401
Loic Dachary [Wed, 13 May 2015 18:00:25 +0000 (20:00 +0200)]
Merge pull request #4151 from dmitryya/issue_7401

obj_bencher: status_printer waits before the first calculation

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #4552 from stiopaa1/bufferLinkage
Loic Dachary [Wed, 13 May 2015 17:57:14 +0000 (19:57 +0200)]
Merge pull request #4552 from stiopaa1/bufferLinkage

common/buffer.cc: change linkage of few variables to internal

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #4663 from dachary/wip-11598-ceph-detect-init
Loic Dachary [Wed, 13 May 2015 17:14:31 +0000 (19:14 +0200)]
Merge pull request #4663 from dachary/wip-11598-ceph-detect-init

ceph-detect-init: plain setup.py install on make install

Reviewed-by: Kernel Neophyte <neophyte.hacker001@gmail.com>
10 years agoMerge pull request #4666 from SUSE/wip-11610-next
Ken Dreyer [Wed, 13 May 2015 16:05:43 +0000 (10:05 -0600)]
Merge pull request #4666 from SUSE/wip-11610-next

ceph.spec.in: include SUSE in _with_systemd

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
10 years agotest/cli-integration/rbd: verify formatting for 'rbd disk-usage' 4592/head
Jason Dillaman [Wed, 13 May 2015 15:20:08 +0000 (11:20 -0400)]
test/cli-integration/rbd: verify formatting for 'rbd disk-usage'

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agoceph.in: do not throw on unknown errno 4375/head
Kefu Chai [Thu, 16 Apr 2015 10:29:00 +0000 (18:29 +0800)]
ceph.in: do not throw on unknown errno

some of the errnos are not listed in errno.errorcode. if we happen
to run into them, print 'Unknown' instead.

Fixes: #11354
Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agoqa/workunits/rados/test_rados_tool: added test for omapsetval via stdin 4668/head
Jason Dillaman [Wed, 13 May 2015 14:39:33 +0000 (10:39 -0400)]
qa/workunits/rados/test_rados_tool: added test for omapsetval via stdin

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agorbd: add disk usage tool
Jason Dillaman [Wed, 6 May 2015 20:43:29 +0000 (16:43 -0400)]
rbd: add disk usage tool

The new disk usage tool uses the new fast diff object map feature
(when enabled) to quickly calculate the provisioned vs actual usage
of images and associated snapshots within a pool.

Fixes: #7746
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agotests: disable deep-flatten feature for the krbd fsx test
Ilya Dryomov [Wed, 13 May 2015 14:10:39 +0000 (17:10 +0300)]
tests: disable deep-flatten feature for the krbd fsx test

krbd doesn't support fast-diff or deep-flatten yet.  Had to do this
with two commits because fast-diff is in next and deep-flatten isn't.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
10 years agorados cli: setomapval can now read from stdin
Jason Dillaman [Wed, 13 May 2015 14:10:02 +0000 (10:10 -0400)]
rados cli: setomapval can now read from stdin

This will allow a user to store binary values within omap.  Since
RBD uses binary omap values, this will assist with certain recovery
operations.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agoMerge remote-tracking branch 'origin/next'
Ilya Dryomov [Wed, 13 May 2015 14:00:44 +0000 (17:00 +0300)]
Merge remote-tracking branch 'origin/next'

10 years agoMerge pull request #4665 from ceph/wip-11551-next
Ilya Dryomov [Wed, 13 May 2015 13:57:05 +0000 (16:57 +0300)]
Merge pull request #4665 from ceph/wip-11551-next

tests: disable new RBD features for the krbd fsx test

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
10 years agoMerge pull request #4644 from ceph/wip-11405
Josh Durgin [Wed, 13 May 2015 13:53:07 +0000 (06:53 -0700)]
Merge pull request #4644 from ceph/wip-11405

librbd: new QA client upgrade tests

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agotests: disable fast-diff feature for the krbd fsx test 4665/head
Jason Dillaman [Wed, 13 May 2015 12:08:46 +0000 (08:08 -0400)]
tests: disable fast-diff feature for the krbd fsx test

The kernel does not yet support fast-diff.

Fixes: #11551
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agoMerge pull request #4627 from dachary/wip-install-deps-clean
Kefu Chai [Wed, 13 May 2015 13:44:04 +0000 (21:44 +0800)]
Merge pull request #4627 from dachary/wip-install-deps-clean

install-deps.sh: only pip install after make clean

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoceph.spec.in: include SUSE in _with_systemd 4666/head
Nathan Cutler [Wed, 13 May 2015 12:57:48 +0000 (14:57 +0200)]
ceph.spec.in: include SUSE in _with_systemd

The master specfile newly defines a _with_systemd variable that should be true
for the set of distros that are using systemd. Since this set of distros
includes SUSE/openSUSE (at least for the more recent versions where ceph is
supported), this commit sets _with_systemdto true on SUSE/openSUSE.

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

Signed-off-by: Nathan Cutler <ncutler@suse.cz>
10 years agoMerge pull request #4536 from ceph/wip-mds-snaps
John Spray [Wed, 13 May 2015 10:56:09 +0000 (12:56 +0200)]
Merge pull request #4536 from ceph/wip-mds-snaps

Wip mds snaps

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoceph-detect-init: plain setup.py install on make install 4663/head
Loic Dachary [Wed, 13 May 2015 10:45:58 +0000 (12:45 +0200)]
ceph-detect-init: plain setup.py install on make install

If no DESTDIR environment variable is set, just

  python setup.py install

instead of setting --root, --prefix or --install-layout. These options
are tested to do the right thing in the context of RPM and deb packaging
but they are presumably not what someone using make install manually
would want.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #4646 from theanalyst/doc/release/v0.94.2
Loic Dachary [Wed, 13 May 2015 07:32:45 +0000 (09:32 +0200)]
Merge pull request #4646 from theanalyst/doc/release/v0.94.2

doc: more entries for release notes in v0.94.2

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agodoc: more entries for release notes in v0.94.2 4646/head
Abhishek Lekshmanan [Mon, 11 May 2015 16:16:33 +0000 (21:46 +0530)]
doc: more entries for release notes in v0.94.2

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
10 years agoinstall-deps.sh: only pip install after make clean 4627/head
Loic Dachary [Fri, 8 May 2015 18:53:54 +0000 (20:53 +0200)]
install-deps.sh: only pip install after make clean

Do not re-install all python dependencies if there already exists a
wheelhouse directory. It makes it so running install-deps.sh twice will
only access the network the first time. The directories where the python
dependencies are installed are removed by make clean. Refreshing the
python dependencies cache can be done via make clean ; install-deps.sh

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #4521 from tchaikov/wip-fix-malformed_input-macros
Kefu Chai [Wed, 13 May 2015 03:29:57 +0000 (11:29 +0800)]
Merge pull request #4521 from tchaikov/wip-fix-malformed_input-macros

common: fix the macros for malformed_input::what()

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agocommon: fix the macros for malformed_input::what() 4521/head
Kefu Chai [Fri, 1 May 2015 11:52:25 +0000 (04:52 -0700)]
common: fix the macros for malformed_input::what()

the thrown exception of malformed_input should carry the function name in
which it was thrown. but what we have now is something like:
"buffer::malformed_input: __PRETTY_FUNCTION__ unknown encoding version >
100"
because __PRETTY_FUNCTION__ is not a macro any more. see
- https://gcc.gnu.org/onlinedocs/gcc-3.1/gcc/Function-Names.html
- https://gcc.gnu.org/onlinedocs/gcc/Function-Names.html
and it is not a string literal, so neither can we can concat it with
the literal err message.

Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agotest/KeyValueDBMemory : update init() 4622/head
Xiaoxi Chen [Tue, 12 May 2015 03:50:11 +0000 (11:50 +0800)]
test/KeyValueDBMemory : update init()

make it build.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
10 years agoos/RocksDBStore: interpret some configurations.
Xiaoxi Chen [Mon, 11 May 2015 15:30:22 +0000 (23:30 +0800)]
os/RocksDBStore: interpret some configurations.

compact_on_mount,
compaction_threads,
flusher_threads,
disableWAL.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
10 years agocommon/str_map: trim start/tailing writesapce in key and value.
Xiaoxi Chen [Mon, 11 May 2015 06:46:53 +0000 (14:46 +0800)]
common/str_map: trim start/tailing writesapce in key and value.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
10 years ago/s/omap_rocksdb_option/filestore_rocksdb_option
Xiaoxi Chen [Mon, 11 May 2015 06:02:27 +0000 (14:02 +0800)]
/s/omap_rocksdb_option/filestore_rocksdb_option

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
10 years agoos/RocksDBStore: compact_on_mount not support now
Xiaoxi Chen [Fri, 8 May 2015 15:07:20 +0000 (23:07 +0800)]
os/RocksDBStore: compact_on_mount not support now

will fix it.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>