Commit Graph

19632 Commits

Author SHA1 Message Date
Sage Weil
1277a465b1 cephcontext: generalize admin socket hook
We'll process non-perfcounter commands too.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-29 10:09:31 -07:00
John Wilkins
73e29b658d doc: needed carriage returns between headings, code tag and syntax.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-05-25 16:15:14 -07:00
John Wilkins
d33f4fb627 doc: removed redundant install.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-05-25 16:03:48 -07:00
John Wilkins
68874afaaa doc: Filled in descriptions for object operations.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-05-25 16:03:02 -07:00
John Wilkins
6601ef9510 doc: Restored install for dev/unstable packages.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-05-24 16:54:15 -07:00
Sage Weil
ba5406235f filestore: make SNAP_DESTROY ioctl check more informative
Tell user about user_subvol_rm_allowed mount option.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-24 15:01:39 -07:00
Sage Weil
07c9eda2b1 filestore: fix btrfs subvol ioctl tests
Create a temp subvol that *we own* to test snaps against.  Otherwise, we
won't be able to remove them if we weren't the owner of the source subvol
we were snapshotting when we are not root.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-24 14:53:30 -07:00
Sage Weil
bea1e03135 filestore: verify that op_seq is nonzero
If we get zero from commit_op_seq something is very wrong, and we should
not continue.  Broken mkfs or something deleted commit_op_seq file.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-24 14:07:36 -07:00
Sage Weil
18b0d65750 vstart.sh: wipe out btrfs subvols in osd dirs
For testing on btrfs.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-24 14:05:27 -07:00
Sage Weil
0f38d756ab filestore: fix initial btrfs snap creation (on mkfs)
Create the snap_1 snap of current *after* we write the op_seq.  Otherwise
we will mistakingly believe the snapshot is of op seq 0.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-24 14:05:09 -07:00
Yehuda Sadeh
3ae84eec2d rgw: replace dump_format() with dump_int()
Cleanup, fixes issue #2469.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-05-24 13:07:03 -07:00
Josh Durgin
ca79f45a33 Merge branch 'stable' 2012-05-24 09:47:41 -07:00
Josh Durgin
9a9418ebfd librados, ObjectCacher: include limits.h for INT_MAX
This was required to build on CentOS 6.2. I'm not sure why it worked
without it on Debian.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-05-24 09:45:45 -07:00
Dan Mick
8c1c882999 rbd.py: Fix seemingly-random segfaults
Avoid resetting Image.closed until image is successfully opened.

Fixes: #2475
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2012-05-23 19:35:05 -07:00
Dan Mick
2f963fa7e8 librados: Remove errant sha1
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2012-05-23 19:33:41 -07:00
Dan Mick
6e46de3703 rbd.py doc: Fix markup on :class: references
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2012-05-23 19:33:19 -07:00
Sage Weil
9453413c49 Merge branch 'osd-mkfs'
Reviewed-by: Sam Just <sam.just@inktank.com>
2012-05-23 16:42:49 -07:00
Sage Weil
b5e7fdd3d7 Merge remote-tracking branch 'gh/wip-mon-auth'
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
2012-05-23 16:41:57 -07:00
Sage Weil
fbae60315d Merge branch 'stable' 2012-05-23 16:41:14 -07:00
Sage Weil
7805978c25 filestore: make read_fsid() out arg be a pointer
As per style guide.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-23 16:31:43 -07:00
Sage Weil
386139bb81 filestore: more informative fsid mkfs debug output
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-23 16:31:43 -07:00
Sage Weil
c96aa62d84 osd: verify fsid whoami to match on repeat mkfs
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-23 16:31:43 -07:00
Sage Weil
5bf5e91fd1 osd: require cluster fsid for mkfs
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-23 16:31:43 -07:00
Sage Weil
a980d018f0 osd: do not clobber existing key with --mkkey
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-23 16:31:43 -07:00
Sage Weil
c18e4d80a1 filestore: mkfs: do not clobber exisiting journal if it has matching fsid
If the journal is for *this* fs, do not clobber.  If it appears invalid in
any way, initialize it.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-23 16:31:43 -07:00
Sage Weil
a074d0b5c3 filejournal: add check() method
Check if a journal appears to be valid, where valid means the header is
intact and has a matching fsid.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-23 16:31:42 -07:00
Sage Weil
c498827f04 filestore: drop useless mkjournal error check
We don't care!

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-23 16:31:42 -07:00
Sage Weil
b04b73d473 filestore: mkfs: less noise about leveldb creation
and make it clear that we didn't necessarily create it; it may have already
been there.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-23 16:31:42 -07:00
Sage Weil
598dea1241 filestore: mkfs: only create snap_0 if we created current_op_seq
We only need to create snap_0 if we just created current_op_seq and this is
a brand-new dir.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-23 16:31:42 -07:00
Sage Weil
ec7bf5640f filestore: fix misplaced #endif
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-23 16:31:42 -07:00
John
09192d6597 doc/api/s3/bucketops.rst Corrected heading.
doc/install/chef.rst  Added Sam's edits to the Chef install.


Signed-off-by: John <john@admin-host.(none)>
2012-05-23 16:12:06 -07:00
Yehuda Sadeh
bf2028fc51 rgw: replace all bad use of formatter->dump_format()
This fixes #2465. We should never ever use the dumped value
as the format. Never.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-05-23 16:09:34 -07:00
John
3956cb8f19 doc/api/s3 <-chipping away at objectops and clean up. Added Copy Object.
doc/source <-fixed a typo, updates for installing on precise, rm $ from cmds
doc/start  <-replaced clone link with tarball link. Link to Ceph Source Code.


Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-05-23 15:44:11 -07:00
Sage Weil
36951d6e48 mon: use temp access_{r,all,cmd} variables to simplify the checks
Avoid duplicating the compound check all over the place.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-23 14:03:47 -07:00
Sage Weil
18af8137ce mon: drop redundant get_allow_all() cap check
check_privileges() already does this.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-23 13:49:40 -07:00
Sage Weil
ab04d95ad5 monmap: return ENOENT from build_from_host_list when no mons
Make sure we return an error when no monitors are parsed.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-23 11:25:46 -07:00
Sage Weil
80c6278f23 monmap: ignore conf mon entries when -m is specified
Use -m <addrs> instead of conf mons (instead of combining them into a
single large search pool).

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-23 11:25:27 -07:00
Sage Weil
8bf9fde89b v0.47.2 2012-05-23 10:55:49 -07:00
Sage Weil
26843ada65 Makefile: do not install librgw.h
Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-23 10:55:49 -07:00
Alexandre Oliva
a330c64cb0 Update ceph.spec for ceph-0.47
Add BuildRequires: libxml2-devel.
Move BuildRequires: libcurl-devel to a more proper place.

[libs3 and librgw.h bits of patch dropped -sw]

Signed-off-by: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-23 10:55:49 -07:00
Yehuda Sadeh
244992df6c libs3: remove make install target 2012-05-23 10:55:49 -07:00
Yehuda Sadeh
cf6db40a46 Makefile.am: only append libs3 to SUBDIRS when needed
We appended libs3 to SUBDIRS unconditionally, we only need that
when we actually want to compile it.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-05-23 10:55:49 -07:00
Sage Weil
f461e132d4 monclient: sanity check on monmap size
Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-23 10:40:07 -07:00
Sage Weil
d173c7bfeb monmap: avoid dup addrs in generated initial monmap
We were getting a dup addr from -m <foo> and ceph.conf.  Prefer the
ceph.conf name in this case.

Also check for dup names here just to be thorough (even though I don't
think that can come up currently).

Fixes: #2464
Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-23 10:39:48 -07:00
Sage Weil
75e9c0cba6 monmap: aseert addrs are unique on add(), calc_ranks()
Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-23 10:38:21 -07:00
Sage Weil
c31ab04b57 doc: librados: fix getxattr return code
Fixes: #2391
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-22 20:47:21 -07:00
Sage Weil
311a23ce85 mon: restrict mon 'join' message/command
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-22 18:31:48 -07:00
Sage Weil
e895d61f3e mon: apply 'r' and 'w' caps to mon and pg commands
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-22 18:31:48 -07:00
Sage Weil
fb6ed150c5 mon: apply 'r' and 'w' caps to mdsmap
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-22 18:31:48 -07:00
Sage Weil
c1c93e57b4 mon: apply 'r' and 'w' caps to osdmap
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-22 18:31:47 -07:00