Commit Graph

22146 Commits

Author SHA1 Message Date
John Wilkins
764ec3650f Merge branch 'master' of https://github.com/ceph/ceph 2012-11-07 14:03:34 -08:00
John Wilkins
0a939d0427 doc: Removed legacy OpenStack installation.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-11-07 14:02:51 -08:00
John Wilkins
5ef58d3e74 doc: Added topic for adding an OSD and adjusting CRUSH weights.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-11-07 14:01:00 -08:00
Gary Lowell
c357474dbf ceph.spec.in: Remove ceph version requirement from ceph-fuse package.
The ceph-fuse rpm package now only requires ceph as a pre-req, not a specific
version.
2012-11-07 12:41:10 -08:00
tamil
cca606f423 Update log file when rgw is not running
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2012-11-07 11:49:54 -08:00
Samuel Just
13486857cf osd/: add pool min_size parameter for min acting set size
Otherwise, a pg might go active with a single osd in the
acting set.  If that osd subsequently dies, we potentially
loose client writes.  Note: it's still possible for the
acting set to exceed min_size but fail to obey the spirit
of the user's crush settings (e.g., min_size is 2, but both
osds happen to be no the sam node).

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil: <sage@inktank.com>
2012-11-07 11:37:42 -08:00
Samuel Just
3faefdd242 Merge remote-tracking branch 'upstream/wip_lost_unfound_event'
Reviewed-by: Sage Weil <sage@inktank.com>
2012-11-07 11:35:04 -08:00
Samuel Just
3b26a4d909 Merge remote-tracking branch 'upstream/wip-xattr'
Reviewed-by: Samuel Just <sam.just@inktank.com>
2012-11-07 09:52:54 -08:00
Sage Weil
456c90b08d Makefile: add missing rgw_resolve.h to dist tarball
Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-07 04:46:21 -08:00
Sage Weil
02527d4091 qa: disable xfstest 45 until mount issue is resolved on precise
Meh

Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-07 04:14:12 -08:00
Dan Mick
0c989794bd Merge branch 'next' 2012-11-06 15:52:38 -08:00
Dan Mick
0baa9275ea cls_rbd: send proper format of key to "last_read" for dir_list
rbd ls of format-2 images was looping on the first 64 (when more than 64
were present).  The key name passed to the omap layer needs to always
contain the prefix, and the "inside-the-loop next-chunk" statement
was missing the "add the prefix" call.

Also, add a test for listing 100 images, format 1 and 2.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2012-11-06 15:51:44 -08:00
Yehuda Sadeh
fe9a441037 rgw: document cname configurable
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-11-06 15:49:18 -08:00
Yehuda Sadeh
c89d85c77d Merge remote-tracking branch 'origin/master' into wip-3206 2012-11-06 15:20:07 -08:00
Yehuda Sadeh
951c6be42a rgw: resolve hostname dns cname record
Implements #3206
This allows using vanity domains. A CNAME record can now
be set for the domain that would point at the rgw instance,
with or without a bucket set as a subdomain.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-11-06 15:19:47 -08:00
Noah Watkins
6aa9cff219 java: use accessors for mode flag tests
Add isDir(), isFile(), and isSymlink() for read-only tests corresponding
to the S_ISREG test and friends.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
Reviewed-by: Joe Buck <jbbuck@gmail.com>
2012-11-06 13:50:38 -08:00
Yehuda Sadeh
84299e16f3 rgw: fix multipart overwrite
Fixes: #3400
Removed a few lines of code that prematurely created the head
part of the final object (before creating the manifest).

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-11-06 10:17:14 -08:00
Yehuda Sadeh
be6d563653 rgw: don't reset multipart parts when updating their metadata
Fixes: #3401
The problem was that put_obj_meta() was assuming object is going
to be reset, so it was resetting the object anyway. This is not
true when dealing with the immutable multipart upload parts.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-11-06 10:16:59 -08:00
Yehuda Sadeh
488b019adf rgw: break out of read loop if we got zero bytes
If the part that we're reading is corrupted and we end up
reading zero bytes, we need to exit, otherwise we'd just
loop forever.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-11-06 10:16:17 -08:00
John Wilkins
9a1ee028d6 Merge branch 'master' of https://github.com/ceph/ceph 2012-11-06 09:14:11 -08:00
John Wilkins
138262f683 doc: fixed some inccorrect syntax.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-11-06 09:13:54 -08:00
Dan Mick
241569c595 rbd: allow removal of image even if rbd_children deletion fails
Users have been seeing failures where rbd rm is half-done; could be
because of outstanding watches on the rbd_header object.  The state
is that rbd_children no longer contains the child, but other pieces
remain; remove considers this a failure.

Fix: test for ENOENT from remove_child, and treat that as an ignorable
error and drive on.  Simulate this in copy.sh by removing the
rbd_children object altogether, which also results in ENOENT return
from remove_child.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2012-11-05 21:41:34 -08:00
Dan Mick
4b4e0fa609 rbd: allow removal of image even if rbd_children deletion fails
Users have been seeing failures where rbd rm is half-done; could be
because of outstanding watches on the rbd_header object.  The state
is that rbd_children no longer contains the child, but other pieces
remain; remove considers this a failure.

Fix: test for ENOENT from remove_child, and treat that as an ignorable
error and drive on.  Simulate this in copy.sh by removing the
rbd_children object altogether, which also results in ENOENT return
from remove_child.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2012-11-05 20:15:41 -08:00
John Wilkins
15b3d98fc4 doc: Minor edits and added reference to Cephx intro.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-11-05 11:02:55 -08:00
Samuel Just
85cd694846 osd/: encode LOST_REVERT reverting_to in prior_version pos
This will allow older osds to interpret the LOST_REVERT event
correctly.

Signed-off-by: Samuel Just <sam.just@inktank.com>
2012-11-05 11:02:32 -08:00
Samuel Just
bad0114503 PG: use remove_object_with_snap_hardlinks for divergent objects
Otherwise, we end up leaving snap hardlinks in the snapshot
index directories.  This eventually results in an EEXIST error
when we attempt to re-link the clone into place during
recovery.

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2012-11-05 10:48:16 -08:00
Sage Weil
699e54dfeb rbd: stripe count is not measured in bytes
Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 09:57:39 -08:00
Sage Weil
0db11c79c2 chain_xattr: use sys_* methods
The sys_* wrappers return -errno on error; use those!

Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:14:20 -08:00
Sage Weil
8c3481d94a os/FileStore: chain_*() methods return error codes; don't check errno
Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:54 -08:00
Yehuda Sadeh
9cf0be71a8 chain_xattr: comment about how xattrs are named
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-11-05 00:13:54 -08:00
Sage Weil
2bf6a2bfef os/chain_xattr: whitespace, constify *end
Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:54 -08:00
Sage Weil
be438dc834 os/chain_xattr: do not double memory buffer (again)
This appears to be a typo; there is no need to double (again) the size of
the buffer we allocate.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:54 -08:00
Sage Weil
b7f89cb7b0 os/chain_xattr: fix listxattr buffer size
Intenrally allocate 2x the raw listxattr result; tell the user the same.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:53 -08:00
Sage Weil
54966006bc os/FileStore: introduce lfn_close()
Match every lfn_open() with lfn_close() (instead of close(2)).

Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:53 -08:00
Sage Weil
51d3faafb9 os/FileStore: remove lfn_*xattr helpers
No longer used!

Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:53 -08:00
Sage Weil
044be91604 os/FileStore: recast _rmattr on top of chain_f*
Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:53 -08:00
Sage Weil
6a6699bd1a os/FileStore: recast _setattrs() on top of chain_f* methods
This lets us open an fd once and use that.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:53 -08:00
Sage Weil
41bc77f5f3 os/FileStore: drop _getattr() helpers
Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:53 -08:00
Sage Weil
d59cf332da os/FileStore: use new helpers from collection_{get,set,rm}attr[s]
Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:53 -08:00
Sage Weil
b6bfeed922 os/FileStore: use _fgetattr() from getattr()
Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:53 -08:00
Sage Weil
307fd429db os/FileStore: remove unused _getattrs() methods
We are now using the _fgetattrs() variant everywhere instead.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:53 -08:00
Sage Weil
1862ddd885 os/FileStore: use _fgetattrs() from collection_getattr()
Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:53 -08:00
Sage Weil
a367e6e99c os/FileStore: use _fgetattrs() from _rmattrs()
Note that we subtly change failure handling to be more strict: if we
fail to open the file, we error out; before we ignored errors from
_getattr().

Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:52 -08:00
Sage Weil
cab1d6356d os/FileStore: use _fgetattrs() for _setattrs()
If we're using omap for spillover, we need to load the xattrs so that
they can be removed if necessary.

Note that we subtly change the failure behavior here to be more
strict: if we can't open the file, we fail, whereas before we did not.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:52 -08:00
Sage Weil
ad5ac17f0b os/FileStore: use _fgetattrs() for CLONE
We have the src fd.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:52 -08:00
Sage Weil
769f47321d os/FileStore: use _fgetattrs() for GETATTRS op
Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:52 -08:00
Sage Weil
68377f9c31 os/FileStore: add _fgetattr(), _fgetattrs() helpers
Introduce new fd-based getattr[s] helpers.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:52 -08:00
Sage Weil
bb127bd16d os/FileStore: use f*xattr() methods to test xattr support
Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:52 -08:00
Sage Weil
4e5530351a os/chain_xattr: move chained xattr helpers into separate file/module
* Rename do_* -> chain_*.
* Move #defines to a header.
* Fix *Index users
* Implement both *xattr() and f*xattr() variants for get, set, list,
  remove.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:52 -08:00
Noah Watkins
72a710ac47 client: return EBADF for invalid file desc
Adds get_filehandle to Client which resolves a file descriptor or
returns NULL if the file descriptor is invalid. Libcephfs calls that
accept a file descriptor are changed to return -EBADF when
get_filehandle returns NULL.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2012-11-04 07:14:50 -08:00