Commit Graph

12525 Commits

Author SHA1 Message Date
Tommi Virtanen
fa7e469c7e Make clitests avoid existing ceph.conf files. 2011-01-14 17:27:59 -08:00
Tommi Virtanen
ba4de2e1ff Add TODO note for cauthtool -c conflict.
This triggered in unrelated ways while testing CEPH_CONF
support.
2011-01-14 17:27:59 -08:00
Tommi Virtanen
886c7d35c0 Command line -c should still override CEPH_CONF from env. 2011-01-14 17:27:59 -08:00
Tommi Virtanen
5a0bc6b78f Sanitize environment before running clitests.
This avoids CEPH_KEYRING etc from slipping in.
2011-01-14 17:27:59 -08:00
Yehuda Sadeh
0c6fb520dc cfuse: fix crash when bad address provided 2011-01-14 16:57:33 -08:00
Yehuda Sadeh
7d7af85c3a auth: new rotating secret ttl should depend on now() + ttl
Before it only depended on the previous rotating secret (which was
always bigger than g_clock.now()). Since the tickets rotation is
never being done exactly when the old ticket expires (probably takes
a few seconds after that), then we ended up having tickets that expire
much sooner than we expected.
2011-01-14 16:34:45 -08:00
Tommi Virtanen
ae47f3c32f Merge remote branch 'newdream/unstable' into unstable 2011-01-14 16:33:00 -08:00
Tommi Virtanen
a90329aef4 Revert "unit tests: do standard ceph init before tests"
This reverts commit 77f90978dc.

Unit tests should not parse the normal "-c ceph.conf" command line
arguments, they should not read config files, etc. If something
needs initializing for a specific unit tests, we'll either fix it
to not need it, initialize it just for that, or figure some nicer
way of doing this.

The commit also broke "make distcheck".
2011-01-14 16:27:24 -08:00
Tommi Virtanen
0259e57b7a Make git ignore *.t.err files generated by clitests. 2011-01-14 16:27:24 -08:00
Tommi Virtanen
bdc1e26019 Make git ignore more generated files in src/gtest. 2011-01-14 16:27:24 -08:00
Tommi Virtanen
dab99b048d Patch cram so it is able to write *.err files outside the source tree.
https://bitbucket.org/brodie/cram/issue/9/allow-read-only-directories-for-t

Found by "make distcheck".
2011-01-14 16:27:24 -08:00
Tommi Virtanen
95d7d6e2b6 Clean up test virtualenv on "make clean".
Found by "make distcheck".
2011-01-14 16:27:24 -08:00
Tommi Virtanen
a549955ec9 Include the cli tests in a dist tarball.
Found by "make distcheck".
2011-01-14 16:27:24 -08:00
Tommi Virtanen
58f6d09eac Also distribute pre-downloaded tarballs.
Found by "make distcheck".
2011-01-14 16:27:24 -08:00
Tommi Virtanen
5045695cd8 Teach run-cli-tests about build dirs.
An optional argument points can tell it where to put
generated files (in this case, virtualenv). Provide
the argument in Makefile.am.

Options are still passed to cram, so you can say
"./src/test/run-cli-tests -i".
2011-01-14 16:27:16 -08:00
Tommi Virtanen
b0fc2ca0a4 Rename variable in run-cli-tests.
Emphasize the fact that the path is the source dir, not the build dir.
2011-01-14 15:24:47 -08:00
Tommi Virtanen
f599b0b629 run-cli-tests is in srcdir not in build dir.
Found by "make distcheck".
2011-01-14 15:24:47 -08:00
Tommi Virtanen
d8073c8bf7 Include run-cli-tests in release tarball.
Found by "make distcheck".
2011-01-14 15:24:47 -08:00
Tommi Virtanen
52e1edb021 Merge branch 'tests-broken' into unstable 2011-01-14 15:22:01 -08:00
Tommi Virtanen
5f239fa647 Fix clitests for cconf usage change. 2011-01-14 15:21:46 -08:00
Tommi Virtanen
986e5c19ee Merge branch 'tests-broken' into unstable 2011-01-14 15:07:41 -08:00
Tommi Virtanen
62d9de4766 Fix clitests for cauthtool usage change. 2011-01-14 15:06:35 -08:00
Tommi Virtanen
73dd32c2e2 Merge commit 'cfae10b8f8b0d91f37dc6eb72f3b3f8285bb15e7' into tests-broken-2 2011-01-14 15:04:16 -08:00
Tommi Virtanen
1d7460a96a Plaintext keyring format is supposed to be user-friendly, so test it. 2011-01-14 15:01:11 -08:00
Tommi Virtanen
0d0e03e02c Now that cauthtool has two kinds of keyrings, test them both. 2011-01-14 15:00:47 -08:00
Tommi Virtanen
67bec9c423 Fix a bug where "cauthtool --create-keyring" (no --bin) wrote garbage.
This only triggered when running without --gen-key or --add-key.
2011-01-14 14:33:07 -08:00
Colin Patrick McCabe
c85d5eadbe common: Add CEPH_CONF override
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-01-14 08:10:58 -08:00
Colin Patrick McCabe
77f90978dc unit tests: do standard ceph init before tests
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-01-14 05:58:36 -08:00
Colin Patrick McCabe
512cc974fb qa: Add tiobench test
Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
2011-01-14 04:38:51 -08:00
Colin Patrick McCabe
08caffe7b0 vstart.sh: don't depend on /usr/bin/host
Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
2011-01-14 03:13:07 -08:00
Sage Weil
3f4434f7b9 mds: use common helper to journal a client session close
We saw a bug where an ESession close was followed by an EMetaBlob on that
session (see 6d0dc4bf64).  My best guess is
that a session timeout raced with a request waiting on locks (only the
explicit client close path was calling request_kill).  To avoid that,
introduce a helper to journal client close so that the common work (killing
any pending requests AND releasing prealloc inos) happen in all cases.

Fixes #708 (I hope!).

Signed-off-by: Sage Weil <sage@newdream.net>
2011-01-13 22:08:56 -08:00
Yehuda Sadeh
ef8a60fd85 cconf: fix usage parsing, add --resolve search
--resolve-search is used to resolve a search path result
2011-01-13 16:11:08 -08:00
Yehuda Sadeh
cfae10b8f8 keyring: default keyring file name is 'keyring'
update accordingly the tools, scripts, man page
2011-01-13 16:11:08 -08:00
Yehuda Sadeh
58a0f384bd cauthtool: default keyring format is plaintext, add --bin 2011-01-13 16:11:08 -08:00
Yehuda Sadeh
2b2d52cfaf config: keyring uses a search path again 2011-01-13 16:11:08 -08:00
Colin Patrick McCabe
34adf360f1 common: fix buffer::list::decode_base64
buffer::list::decode_base64 needs to check for decode failures.

Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
2011-01-13 08:58:07 -08:00
Sage Weil
62024d0448 qa: add xattr check
Signed-off-by: Sage Weil <sage@newdream.net>
2011-01-13 15:47:30 -08:00
Sage Weil
f650e3dac1 Merge branch 'testing' into unstable
Conflicts:
	configure.ac
2011-01-13 13:24:52 -08:00
Sage Weil
e060d7a115 filejournal: rewrite completion handling, fix ordering on full->notfull
Rewriting the completion handling to be simpler, clearer, so that it is
easier to maintain a strict completion ordering invariant.

This also fixes an ordering bug: When restarting journal, we defer
initially until we get a committed_thru from the previous commit and then
do all those completions.  That same logic needs to also apply to new items
submitted during that commit interval.  This was broken before, but the
simpler structure fixes it.  Fixes #666.

Tested-by: Jim Schutt <jaschut@sandia.gov>
Signed-off-by: Sage Weil <sage@newdream.net>
2011-01-13 13:14:40 -08:00
Samuel Just
f2755a5337 PG: activate should not enqueue snap_trimmer on a replica
Previously, activate would queue_snap_trim() for replicas if snap_trimq
ended up non-empty, guaranteeing a crash for any replica starting up
while purged_snaps lagged behind pool->cached_removed_snaps.

This should fix #702.

Signed-off-by: Samuel Just <samuelj@hq.newdream.net>
2011-01-13 13:16:40 -08:00
Tommi Virtanen
1869ffc0c9 Fix confusing comment about gtest automake hookup. 2011-01-13 11:32:16 -08:00
Colin Patrick McCabe
4b2ffba95a unit: add IncorrectBase64Encoding test
Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
2011-01-13 10:34:35 -08:00
Colin Patrick McCabe
e7153f383f unit: Add test/base64.cc
Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
2011-01-13 10:23:49 -08:00
Tommi Virtanen
983e62c81d Add a target to build but not run unittests.
Use with "make -C src unittests".
2011-01-13 09:50:46 -08:00
Samuel Just
1cdb01b47b ReplicatedPG: Fix oi.size bug in _rollback_to
_rollback_to calls _delete_head before cloning the clone into place.
_delete_head sets the object info size to 0.  _rollback_to now resets
the size to match the rolled back object.  Previously, this bug
manifested as a failed assert in scrub when checking the object sizes.

Signed-off-by: Samuel Just <samuelj@hq.newdream.net>
2011-01-12 15:13:16 -08:00
Samuel Just
9c80239b6a ReplicatedPG: register_object_context and register_snapset_context cleanup
Previously, get_object_context and get_snapset_context did not register
the resulting objects.  In some cases, these objects would not get
registered and multiple copies would end up created.  This caused a bug
in find_object_context where get_snapset_context could return an object
distinct from the one referenced by the object returned from
get_object_context.

Signed-off-by: Samuel Just <samuelj@hq.newdream.net>
2011-01-12 13:51:55 -08:00
Tommi Virtanen
688bdca2f1 Fix src/test/run-cli-tests to work with any cwd. 2011-01-12 13:28:11 -08:00
Samuel Just
8f327d11ca ReplicatedPG: snap_trimmer work around
Currently, an OSD bug is causing snap_trimq to contain some snaps
already in purged_snaps.  This work around should let kvmtest
come back up.  A real fix is still needed.

Signed-off-by: Samuel Just <samuelj@hq.newdream.net>
2011-01-12 12:07:44 -08:00
Sage Weil
7ab1f75ebb Merge branch 'clitests-3' into unstable 2011-01-12 12:04:16 -08:00
Tommi Virtanen
903ed4af42 Adjust clitests after cauthtool changes. 2011-01-12 11:10:24 -08:00