]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
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 agoosd: Show number of divergent_priors in log message
David Zafman [Thu, 9 Apr 2015 23:26:07 +0000 (16:26 -0700)]
osd: Show number of divergent_priors in log message

Report dirty_divergent_priors as true or false
Use dout(5) so tests can verify divergent_priors created

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoosd: Fix double counting of of num_read/num_write
David Zafman [Thu, 22 Jan 2015 21:37:49 +0000 (13:37 -0800)]
osd: Fix double counting of of num_read/num_write

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoMerge pull request #4588 from dachary/wip-11398-kill-daemons
Kefu Chai [Fri, 8 May 2015 10:26:09 +0000 (18:26 +0800)]
Merge pull request #4588 from dachary/wip-11398-kill-daemons

tests: ceph-helpers kill_daemons fails when kill fails

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #4616 from ceph/wip-fix-FTBFS-boost-1.58
Kefu Chai [Fri, 8 May 2015 10:18:05 +0000 (18:18 +0800)]
Merge pull request #4616 from ceph/wip-fix-FTBFS-boost-1.58

mon: remove unused variable

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #4615 from dachary/wip-11575-pip-log
Kefu Chai [Fri, 8 May 2015 08:51:09 +0000 (16:51 +0800)]
Merge pull request #4615 from dachary/wip-11575-pip-log

tests: pip must not log in $HOME/.pip

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agotests: ceph-helpers kill_daemons fails when kill fails 4588/head
Loic Dachary [Wed, 6 May 2015 18:14:37 +0000 (20:14 +0200)]
tests: ceph-helpers kill_daemons fails when kill fails

Instead of silently leaving the daemons running, it returns failure so
the caller can decide what to do with this situation. The timeout is
also extended to minutes instead of seconds to gracefully handle the
rare situations when a machine is extra slow for some reason.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agomon: remove unused variable 4616/head
Kefu Chai [Fri, 8 May 2015 07:21:20 +0000 (15:21 +0800)]
mon: remove unused variable

* as a side effect, this change silences
  http://tracker.ceph.com/issues/11576

Fixes: #11576
Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agoinstall-deps.sh: exit on error if dependencies cannot be installed 4615/head
Loic Dachary [Fri, 8 May 2015 07:19:44 +0000 (09:19 +0200)]
install-deps.sh: exit on error if dependencies cannot be installed

Now that pre-installing pip dependencies is done at the end of the
script, the last command to run is no longer the installation
command. Therefore the status of the script is no longer the status of
the install command and no longer reflect success or failure to install
the dependencies. Add explicit || exit 1 to commands that are to be
treated as fatal errors.

Also set -e so that another error has a better chance to be caught.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agotests: pip must not log in $HOME/.pip
Loic Dachary [Fri, 8 May 2015 06:57:24 +0000 (08:57 +0200)]
tests: pip must not log in $HOME/.pip

Because it may not have permission to when running in a container and
scripts run from source are not expected to modify anything outside of
the source tree anyway.

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agoMerge pull request #4614 from ceph/wip-11574-fix-FTBFS
Gregory Farnum [Fri, 8 May 2015 04:55:36 +0000 (21:55 -0700)]
Merge pull request #4614 from ceph/wip-11574-fix-FTBFS

json_sprit: fix the FTBFS on old gcc

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agojson_sprit: fix the FTBFS on old gcc 4614/head
Kefu Chai [Fri, 8 May 2015 04:01:16 +0000 (12:01 +0800)]
json_sprit: fix the FTBFS on old gcc

Fixes: #11574
Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #4611 from yuyuyu101/wip-async-fix-9
Haomai Wang [Fri, 8 May 2015 03:00:08 +0000 (11:00 +0800)]
Merge pull request #4611 from yuyuyu101/wip-async-fix-9

AsyncConnection: verify connection's state is expected

10 years agoAsyncConnection: verify connection's state is expected 4611/head
Haomai Wang [Fri, 8 May 2015 02:24:37 +0000 (10:24 +0800)]
AsyncConnection: verify connection's state is expected

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agoMerge pull request #4604 from ceph/wip-11568
Yan, Zheng [Fri, 8 May 2015 01:13:26 +0000 (09:13 +0800)]
Merge pull request #4604 from ceph/wip-11568

#11568: fix error handling in check_pool_perm

10 years agoMerge pull request #4608 from ceph/wip_11547
Josh Durgin [Fri, 8 May 2015 00:18:15 +0000 (17:18 -0700)]
Merge pull request #4608 from ceph/wip_11547

Added a "ceph hello world" for a simple check for ceph-deploy qa suite

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoAdded a "ceph hello world" for a simple check for ceph-deploy qa suite 4608/head
Yuri Weinstein [Fri, 8 May 2015 00:12:35 +0000 (17:12 -0700)]
Added a "ceph hello world" for a simple check for ceph-deploy qa suite

Signed-off-by: Yuri Weinstein <yuri.weinstein@inktank.com>
10 years agoMerge pull request #4520 from ceph/wip-mds-damage-handling
Gregory Farnum [Thu, 7 May 2015 23:26:57 +0000 (16:26 -0700)]
Merge pull request #4520 from ceph/wip-mds-damage-handling

MDS: improve handling of damaged metadata

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #4607 from dachary/wip-11532-limits
Gregory Farnum [Thu, 7 May 2015 23:18:40 +0000 (16:18 -0700)]
Merge pull request #4607 from dachary/wip-11532-limits

tests: need 1024 files per process not 100024

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agotests: need 1024 files per process not 100024 4607/head
Loic Dachary [Thu, 7 May 2015 23:14:47 +0000 (01:14 +0200)]
tests: need 1024 files per process not 100024

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #4605 from dachary/wip-11532-limits
Gregory Farnum [Thu, 7 May 2015 22:59:52 +0000 (15:59 -0700)]
Merge pull request #4605 from dachary/wip-11532-limits

tests: fail make check if nproc is too low

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agotests: fail make check if nproc is too low 4605/head
Loic Dachary [Thu, 7 May 2015 21:12:33 +0000 (23:12 +0200)]
tests: fail make check if nproc is too low

When running tests in parallel with make -jX, the ulimit -u (number of
processor / thread per user) needs to be at least X * 1024. If not it
will fail in mysterious ways. Since there is no convenient way to figure
out the value of X ( see
http://blog.jgc.org/2015/03/gnu-make-insanity-finding-value-of-j.html
for a non trivial an entertaining solution) add a very conservative
check that assumes the user will run make -jX where X is nproc / 2.

It will be annoying for users who want to run make check, not use -j,
and have a low ulimit -u. But the error suggest a way to override this
with

   make CHECK_ULIMIT=false check

This is a minor irritation compared to the puzzling behavior of make
check when ulimit is exceeded.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #4599 from dachary/wip-releases
Sage Weil [Thu, 7 May 2015 21:19:38 +0000 (14:19 -0700)]
Merge pull request #4599 from dachary/wip-releases

release cycle / timeline updates

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #4532 from dachary/wip-init-system-detection
Loic Dachary [Thu, 7 May 2015 20:21:26 +0000 (22:21 +0200)]
Merge pull request #4532 from dachary/wip-init-system-detection

ceph-detect-init helper and associated tests

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoclient: fix error handling in check_pool_perm 4604/head
John Spray [Thu, 7 May 2015 17:42:01 +0000 (18:42 +0100)]
client: fix error handling in check_pool_perm

Previously, on an error such as a pool not existing,
the caller doing the check would error out, but
anyone waiting on waiting_for_pool_perm would
block indefinitely (symptom was that reads on a
file with a bogus layout would block forever).

Fix by triggering the wait list on errors and
clear the CHECKING state so that the other callers
also perform the check and find the error.

Additionally, don't return the RADOS error code
up to filesystem users, because it can be
misleading.  For example, nonexistent pool is
ENOENT, but we shouldn't give ENOENT on IO
to a file which does exist, we should give EIO.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoclient: use SaferCond in check_pool_perm
John Spray [Thu, 7 May 2015 17:17:37 +0000 (18:17 +0100)]
client: use SaferCond in check_pool_perm

Just because it's easier to read.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #4543 from yuyuyu101/wip-async-fix-8
Haomai Wang [Thu, 7 May 2015 16:27:03 +0000 (00:27 +0800)]
Merge pull request #4543 from yuyuyu101/wip-async-fix-8

Wip async fix 8

10 years agoMerge pull request #4003 from ceph/wip-fix-cmake-nss
Orit Wasserman [Thu, 7 May 2015 16:14:57 +0000 (18:14 +0200)]
Merge pull request #4003 from ceph/wip-fix-cmake-nss

Fix nss for cmake

10 years agoMerge pull request #3743 from trociny/wip-osd_create
Kefu Chai [Thu, 7 May 2015 16:13:37 +0000 (00:13 +0800)]
Merge pull request #3743 from trociny/wip-osd_create

mon: osd create: add optional 'id' parameter

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
10 years agoMerge pull request #4422 from ceph/wip-10154
Josh Durgin [Thu, 7 May 2015 15:29:25 +0000 (08:29 -0700)]
Merge pull request #4422 from ceph/wip-10154

librbd: deep-flatten of cloned images

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #4603 from ceph/wip-11557
Loic Dachary [Thu, 7 May 2015 15:09:18 +0000 (17:09 +0200)]
Merge pull request #4603 from ceph/wip-11557

librbd: fast diff should treat all _EXISTS objects as dirty

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agosrc/CMakeLists.txt: fix build to work with nss 4003/head
Danny Al-Gaaf [Sun, 15 Mar 2015 19:11:48 +0000 (20:11 +0100)]
src/CMakeLists.txt: fix build to work with nss

Add nss and nspr include dirs to CXX_FLAGS if all dependencies
are found.

the ceph-authtool target needs also ${CRYPTO_LIBS}.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoCMakeLists.txt: fix detection of nss
Danny Al-Gaaf [Sun, 15 Mar 2015 19:06:46 +0000 (20:06 +0100)]
CMakeLists.txt: fix detection of nss

Libnss needs also to check for libnspr and add the related
-l targets to CRYPTO_LIBS, otherwise the build will fail.

Make sure USE_NSS is set correctly to 0 if cryptopp found
and in case nss was found set USE_CRYPTOPP also to 0.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agocrypto: fix cmake error '#elif with no expression'
Danny Al-Gaaf [Thu, 7 May 2015 11:23:37 +0000 (13:23 +0200)]
crypto: fix cmake error '#elif with no expression'

It needs to be '#elif defined()' to work with cmake.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoCMake: add FindNSPR.cmake
Danny Al-Gaaf [Sun, 15 Mar 2015 18:08:26 +0000 (19:08 +0100)]
CMake: add FindNSPR.cmake

The nss lib needs the nspr library to build. Add file to
get the nspr lib/includes from the pc file.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoMerge pull request #4460 from yuyuyu101/wip-fix-pycephfs
John Spray [Thu, 7 May 2015 09:58:26 +0000 (11:58 +0200)]
Merge pull request #4460 from yuyuyu101/wip-fix-pycephfs

Libcephfs: Add python bindings

Reviewed-by: John Spray <john.spray@redhat.com>
10 years agodoc: clarify the release cycle and LTS meaning 4599/head
Loic Dachary [Thu, 7 May 2015 08:30:23 +0000 (10:30 +0200)]
doc: clarify the release cycle and LTS meaning

* Explain the development cycle and stable release cycle
* Replace the 18 month duration with the LTS+2 overlap logic
* Explain that the estimated retirement is an educated guess
  that depends on the stable release frequency
* Replace Support with Stable in LTS to avoid confusion with
  professional services
* Do not promise bugs will be handled, only that they will be triaged

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agodoc: add v9.0.0 to the release timeline
Loic Dachary [Thu, 7 May 2015 08:29:38 +0000 (10:29 +0200)]
doc: add v9.0.0 to the release timeline

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agodoc: replace End Of Life with retirement
Loic Dachary [Thu, 7 May 2015 08:28:48 +0000 (10:28 +0200)]
doc: replace End Of Life with retirement

End Of Life has a definitive tone that is scary.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agodoc: fix releases broken links
Loic Dachary [Thu, 7 May 2015 08:27:11 +0000 (10:27 +0200)]
doc: fix releases broken links

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agolibrbd: copyup now optionally updates the snapshot object maps 4422/head
Jason Dillaman [Tue, 21 Apr 2015 14:17:17 +0000 (10:17 -0400)]
librbd: copyup now optionally updates the snapshot object maps

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agolibrbd: allow updates to snapshot object maps
Jason Dillaman [Tue, 21 Apr 2015 14:15:58 +0000 (10:15 -0400)]
librbd: allow updates to snapshot object maps

The modified copyup behavior will need to update snapshot object
maps when performing a copyup since the object will now exist within
all snapshots of the image.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agolibrbd: AsyncRequest is now optional for AsyncObjectThrottle
Jason Dillaman [Tue, 21 Apr 2015 13:54:53 +0000 (09:54 -0400)]
librbd: AsyncRequest is now optional for AsyncObjectThrottle

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agolibrbd: progress context is now optional for AsyncObjectThrottle
Jason Dillaman [Tue, 21 Apr 2015 13:49:32 +0000 (09:49 -0400)]
librbd: progress context is now optional for AsyncObjectThrottle

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agotests: verify object map is updated after full copyup
Jason Dillaman [Mon, 20 Apr 2015 19:08:56 +0000 (15:08 -0400)]
tests: verify object map is updated after full copyup

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agotests: verify new librbd snapshot copyup behavior
Jason Dillaman [Mon, 20 Apr 2015 14:20:56 +0000 (10:20 -0400)]
tests: verify new librbd snapshot copyup behavior

Copyup should make the object available for all existing snapshots in
addition to the HEAD object.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agotests: add new feature code to rbd test list
Jason Dillaman [Mon, 20 Apr 2015 18:39:57 +0000 (14:39 -0400)]
tests: add new feature code to rbd test list

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agotests: verify cls_rbd::remove_parent handles snapshots
Jason Dillaman [Mon, 20 Apr 2015 18:29:16 +0000 (14:29 -0400)]
tests: verify cls_rbd::remove_parent handles snapshots

When the deep-flatten feature is enabled, the remove_parent
class method should also remove the parent from all snapshots.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agocls_rbd: remove_parent now updates snapshots if deep-flatten enabled
Jason Dillaman [Mon, 20 Apr 2015 18:14:10 +0000 (14:14 -0400)]
cls_rbd: remove_parent now updates snapshots if deep-flatten enabled

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agolibrbd: always deregister child clone from parent with deep flatten
Jason Dillaman [Mon, 20 Apr 2015 17:38:10 +0000 (13:38 -0400)]
librbd: always deregister child clone from parent with deep flatten

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agolibrados_test_stub: support AIO snapshot context
Jason Dillaman [Mon, 20 Apr 2015 16:12:05 +0000 (12:12 -0400)]
librados_test_stub: support AIO snapshot context

AIO operations can be executed with a different snapshot
context from the IoCtx.  librbd takes advantage of this
capability to perform a deep object copyup.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agolibrbd: copyup should use empty snapshot context
Jason Dillaman [Thu, 16 Apr 2015 20:27:56 +0000 (16:27 -0400)]
librbd: copyup should use empty snapshot context

This allows child object to exist through all existing
snapshots as well as HEAD.  If the operation was a CoW,
issue the write ops as a separate RADOS op with the
correct snapshot context.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agoMerge pull request #4523 from ceph/wip-mds-flushsnapack
Yan, Zheng [Thu, 7 May 2015 01:57:03 +0000 (09:57 +0800)]
Merge pull request #4523 from ceph/wip-mds-flushsnapack

mds: send FLUSHSNAP_ACK even if FLUSHSNAP message is unexpected

10 years agolibrbd: move copyup class method call to CopyupRequest
Jason Dillaman [Thu, 16 Apr 2015 18:15:10 +0000 (14:15 -0400)]
librbd: move copyup class method call to CopyupRequest

Move AbstractWrite's invocation of copyup to the CopyupRequest
class.  The AioRequest write path will now always create a
CopyupRequest, which will now append the actual write ops to the
copyup.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agolibrbd: add new deep-flatten RBD feature
Jason Dillaman [Wed, 15 Apr 2015 18:25:08 +0000 (14:25 -0400)]
librbd: add new deep-flatten RBD feature

Copy-on-read/write will now use an empty snapshot context to
deep-copy the object through all existing snapshots.  With the
deep-flatten feature enabled, the flatten operation will now
disconnect a child image from its parent even if it has existing
snapshots.

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