Commit Graph

21268 Commits

Author SHA1 Message Date
Yehuda Sadeh
0c7637d6d8 rgw: prepare_update_index should not error on system bucket
Should just return true. This way we don't need higher level
functions to be aware of system buckets. Also, don't use
marker.empty() to test for system bucket, use bucket_is_system().

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-09-21 09:53:49 -07:00
Sage Weil
9aa467dfc6 ceph-object-corpus: update with v0.52 objects
These were generated a few days prior to v0.52 release, but well after
freeze.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-20 16:49:57 -07:00
Samuel Just
a69593b8ec Merge remote-tracking branch 'upstream/wip-osd-qlock' 2012-09-20 16:11:05 -07:00
Sage Weil
0c07607fb8 qa: move all rados class unit tests into qa/workunits/cls
This includes the existing rbd one; teh suite is getting fixed to match.

See #3097.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-20 15:12:39 -07:00
Sage Weil
420baa9008 Makefile: rename test_rados_api_cls_lock -> test_cls_lock
Keep this consistent with the other rados classes

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-20 15:11:19 -07:00
Sam Lang
e975fec6f9 Merge branch 'wip-vstartfixes'
Reviewed-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Sage Weil <sage.weil@inktank.com>
2012-09-20 14:25:56 -07:00
Sam Lang
69743c123c vstart.sh: Alternative fix for vstart.sh -n
The previous fix (0f7c516f3e) breaks osd startup with -k.  This one
from dmick just tells the ceph-mon which keyring to use through the
command line rather than moving the keyring path to the [global]
section of the config file.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
2012-09-20 14:22:01 -07:00
Gary Lowell
c9e81fdb3c Makefile.am: librdb_fsx test needs math library on some platforms 2012-09-20 13:47:09 -07:00
Sage Weil
5d2c59e0f8 Merge remote-tracking branch 'gh/wip-1957'
Reviewed-by: Sage Weil <sage@inktank.com>
2012-09-20 11:54:17 -07:00
Sage Weil
93cd73f147 doc: link to full 0.48.2 changelog
Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-20 11:51:49 -07:00
Yan, Zheng
8276fa2901 mds: Clean up finished two phase commits
When handling master request with slaves, the mds could crash
after receiving all slaves' commit acknowledgement, but before
journalling the ECommitted. Current MDS recovery code does not
handle this case correctly, the request will be left in
LogSegment's uncommitted_masters after recovery is finished.
It prevents LogSegment from being trimmed. The fix is find and
clean up request of this kind when recovery enters rejoin stage.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-20 11:09:40 -07:00
Sam Lang
4d3955350a cfuse: Define CEPH_INO_DOTDOT (3) for top-level parentdir
Defines the macro CEPH_INO_DOTDOT (to 3) and uses it as the top-level
parent directory (..) inode number.  The value of 2 is already taken
by the .ceph hidden directory.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
2012-09-20 10:58:02 -07:00
Sage Weil
671c4c32f4 ceph_common.sh: 'hostname -s' (instead of cut ...)
This will also match up with the instructions in the docs.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-20 10:12:30 -07:00
Sage Weil
51d58159a3 doc: v0.48.2argonaut release notes
Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-20 09:42:58 -07:00
Sam Lang
fd205da183 cfuse: Add the parent entry (..) for a top-level readdir
In the lowlevel fuse api, the current (.) and parent (..) entries
must be added manually in a readdir call.  For the root directory
the parent is not a ceph inode, so we give it a fake inode value
(2) and intercept that inode on a getattr.

Fixes: #1957
Signed-off-by: Sam Lang <sam.lang@inktank.com>
2012-09-19 17:47:21 -07:00
Sage Weil
db94347d91 Merge branch 'wip-mon'
Reviewed-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
2012-09-19 17:05:45 -07:00
John Wilkins
d5a048cec5 doc: Removed legacy doc. Not needed.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-09-19 16:28:40 -07:00
John Wilkins
9fa5720846 doc: Removed legacy doc. Not needed.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-09-19 16:28:01 -07:00
John Wilkins
64198f8a15 doc: Removed legacy doc. Not needed.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-09-19 16:27:16 -07:00
John Wilkins
d50aab8442 doc: Added enabling Swift access to rgw config.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-09-19 16:26:40 -07:00
John Wilkins
4958063518 doc; Added troubleshooting to index.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-09-19 16:25:49 -07:00
John Wilkins
a83f50389e doc: Copied contents of rgw troubleshooting over to the new ops section.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-09-19 16:25:11 -07:00
John Wilkins
280aeaf035 doc: Reverted so that we don't force yes or non-interactive.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-09-19 16:24:12 -07:00
John Wilkins
9c8061fe5d doc: Removed legacy usage.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-09-19 16:23:26 -07:00
John Wilkins
b3651dac76 doc: Cleanup, spell check, grammar check mostly.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-09-19 16:22:38 -07:00
John Wilkins
b311a408a3 doc: Updating the index to remove legacy and uneeded entries.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-09-19 16:21:08 -07:00
Sam Lang
5e9158ebdb Fix description for --nodaemon
Signed-off-by: Sam Lang <sam.lang@inktank.com>
2012-09-19 15:34:24 -07:00
Sam Lang
50e7251dd0 Abort on failure
Signed-off-by: Sam Lang <sam.lang@inktank.com>
2012-09-19 14:34:04 -07:00
Sam Lang
31f430a9b2 Fixup usage to reflect options available
Signed-off-by: Sam Lang <sam.lang@inktank.com>
2012-09-19 14:33:16 -07:00
Sam Lang
faddb80c42 Swap current dir (.) with CEPH_BIN for OOT builds
With out-of-tree builds, vstart.sh needs CEPH_BIN to be set, and
needs to look for init-ceph in CEPH_BIN rather than just ./init-ceph.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
2012-09-19 13:57:53 -07:00
Sam Lang
0f7c516f3e Move keyring option to global section
Using vstart.sh -n uses ceph-authtool to generate the keyring file
in ./keyring.  The vstart.sh script then writes out the ceph.conf
with a keyring option in the [client] section, so when the monitors
start, they can't find a keyring file.  This commit puts the keyring in
the [global] section.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
2012-09-19 13:57:37 -07:00
Sage Weil
db04ce46f5 mon: make MRoute encoding backwards-compatible
If the target as the NULLROUTE feature, use a new encoding that explicitly
indicates whether a message follows.  If the feature is absent, use the
old encoding.  The mon is responsible for not trying to send a null reply
if the target does not have the feature.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-19 11:49:34 -07:00
Alex Elder
ed43d4de12 rbd/copy.sh: fix typo
Or maybe it was a spello, or a thinko, or something.  In any case
I'm pretty sure Josh intended to call the function he added in
commit 78d6a60ca, and not the non-existent "test_import_args".

Signed-off-by: Alex Elder <elder@inktank.com>
2012-09-18 22:51:10 -05:00
Sage Weil
471acda426 Merge remote-tracking branch 'gh/next' 2012-09-18 16:49:58 -07:00
Josh Durgin
f530659786 Merge remote branch 'origin/wip-librbd-locking'
Conflicts:
	qa/workunits/rbd/copy.sh

Reviewed-by: Sage Weil <sage.weil@inktank.com>
2012-09-18 16:06:25 -07:00
Josh Durgin
7a3d1e66ef librbd: bump version
This marks the availability of the cloning and locking functions.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-09-18 15:51:38 -07:00
Josh Durgin
855dff62ae cls_rbd: remove locking methods
These are unnecessary now that librbd is using the generic cls_lock.

Fixes: #2951
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-09-18 15:45:54 -07:00
Josh Durgin
8f2a0d91ab rbd: add locking commands
The locker (entity_name_t) will be different each time the rbd
command line tool is run, so 'lock remove' is always breaking a lock.

Fixes: #2556
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-09-18 15:45:43 -07:00
Josh Durgin
b66ef430a0 qa: update rbd tests and runner
* no longer need to wait for watch timeout since #2948 was fixed
* use --format 2 instead of --new-format
* add test_cls_rbd to run-rbd-tests script

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-09-18 15:43:45 -07:00
Josh Durgin
3a9e6650af librbd: use generic cls_lock instead of cls_rbd's locking
Update the librbd locking api to make more sense:
 * Add an optional tag to shared locking
 * only make shared vs exclusive different functions in the user-visible api
 * return a list of structs instead of a set of pairs
 * fix incorrect range checking in the C api
 * rename locks to lockers to be consistent with the generic locking class
 * rename other_locker parameter to client, to match the list_lockers usage

Fixes: #2952
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-09-18 15:43:13 -07:00
Josh Durgin
69ee9afa27 cls_lock_client: add ObjectOperation-based get_lock_info
This will be used by librbd to grab lock info along with
the rest of its header information in a single request.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-09-18 15:42:37 -07:00
Josh Durgin
6dcbbbb6fc cls_lock_types: add missing include
msg_types defines entity-related types used here.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-09-18 15:40:19 -07:00
Josh Durgin
67bbcf2c27 cls_lock_client: return error when decoding fails
Library code shouldn't be using cerr either.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-09-18 15:40:05 -07:00
Josh Durgin
d1252ea21e cls_lock_client: fix indentation
Add indentation settings to header, and reindent.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-09-18 15:39:56 -07:00
Josh Durgin
bf2e489248 cls_lock_client: change modified reference parameters to pointers
This makes it clear which parameters are modified,
as our style guide states.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-09-18 15:39:43 -07:00
Josh Durgin
2dca3a8616 cls_lock_client: clean up reference parameters
These should all be const. The remaining reference parameters
will be converted to pointers in another commit.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-09-18 15:36:11 -07:00
Josh Durgin
e71fdc75be cls_lock: fix some spacing
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-09-18 15:36:08 -07:00
Yehuda Sadeh
b69a9599d8 cls_lock: specify librados namespace explicitly
librados namespace was not specified, hence required including
source files to add using namespace. This fixes it.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-09-18 15:35:30 -07:00
Sage Weil
55673babb9 radosgw-admin: fix cli test
Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-18 15:28:32 -07:00
Josh Durgin
3372f1471c rbd: only open the destination pool for import
Otherwise importing into another pool when the default pool, rbd,
doesn't exist results in an error trying to open the rbd pool.

Reported-by: Sébastien Han <han.sebastien@gmail.com>
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-09-18 15:21:49 -07:00