Commit Graph

28292 Commits

Author SHA1 Message Date
Greg Farnum
295a84b9d9 doc: include plan for new user_version support
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-08-27 17:00:44 -07:00
Greg Farnum
1f608bd967 ReplicatedPG: do not do a redundant set of ctx->new_obs.oi.version
We set this in the if below for writes, and for reads it doesn't need to
be updated (and isn't). Remove the confusing double-set so future code
inspectors don't get concerned there's a bug like I did.

Signed-off-by: Greg Farnum <greg@inktank.com>
2013-08-27 17:00:44 -07:00
Greg Farnum
37bba41be6 ReplicatedPG: remove long-dead branch
This was confusing the heck out of me when trying to figure out
why I was hitting an assert. So replace the if-else block with
a more appropriate assert and don't include any misleading calls
to prepare_transaction() from sub_op_modify().

Signed-off-by: Greg Farnum <greg@inktank.com>
2013-08-27 17:00:44 -07:00
Greg Farnum
f400816471 MOSDOpReply: rename *_version() -> *_replay_version()
We have been returning the object's "user version" and using that
for replay, but that is in fact incorrect. In preparation for fixing
up the user version semantics, rename get_version to get_replay_version
and set_version to set_replay_version.

Signed-off-by: Greg Farnum <greg@inktank.com>
2013-08-27 17:00:38 -07:00
Greg Farnum
7a7ae60851 MOSDOpReply: rename reassert_version -> replay_version
Because that's what it's for. reassert_version is a bit ambiguous.

Signed-off-by: Greg Farnum <greg@inktank.com>
2013-08-27 16:56:40 -07:00
Greg Farnum
b5ea74cec4 docs: document how the current OSD PG/object versions work
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-08-27 15:08:28 -07:00
Greg Farnum
226059e020 MOSDOpReply: set reassert_version for very old clients
I think this must make every sufficiently-old client fail on replay --
very bad!

Signed-off-by: Greg Farnum <greg@inktank.com>
2013-08-22 15:32:48 -07:00
athanatos
9cea33ab39 Merge pull request #516 from dachary/master
erasure code : plugin, interface and glossary documentation updates

Reviewed-by: Samuel Just <sam.just@inktank.com>
2013-08-20 10:34:32 -07:00
Loic Dachary
3a83129283 erasure code : plugin, interface and glossary documentation updates
* replace the erasure code plugin abstract interface with a doxygen link
  that will be populated when the header shows in master
* update the plugin documentation to reflect the current draft implementation
* fix broken link to PGBackend-h
* add a glossary to define chunk, stripe, shard and strip with a drawing

http://tracker.ceph.com/issues/4929 refs #4929

Signed-off-by: Loic Dachary <loic@dachary.org>
2013-08-20 17:34:52 +02:00
Sage Weil
928a0d4270 Merge remote-tracking branch 'gh/next' 2013-08-19 22:53:28 -07:00
Samuel Just
1f851cb248 PG: remove old log when we upgrade log version
Otherwise the log_oid will be non-empty and the next
boot will cause us to try to upgrade again.

Fixes: #6057
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-08-19 22:51:05 -07:00
Sage Weil
d948f07ae9 Merge branch 'wip-fallocate'
Reviewed-by: Sage Weil <sage@inktank.com>
2013-08-19 22:50:11 -07:00
Sage Weil
6eee73c9b7 ceph-fuse: fallocate appears in fuse 2.9.1, not 2.9
There is no macro to differentiate 2.9 from 2.9.1, so we have to wait
to use this until 3.0.  :(

Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-19 22:49:49 -07:00
Sage Weil
1019274743 client: do not mark_caps_dirty for generic fallocate
A normal fallocate in which the size is not changed is still a no-op.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-19 22:49:48 -07:00
Sage Weil
c339456514 client: guard fallocate with #ifdefs
Only include linux header if it's linux.  Only implement the fallocate
method if FALLOC_FL_PUNCH_HOLE is defined.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-19 22:49:48 -07:00
Li Wang
35b00c8b2c Ceph-fuse: Fallocate and punch hole support
This patch implements fallocate and punch hole support for Ceph fuse client.

Signed-off-by: Yunchuan Wen <yunchuanwen@ubuntukylin.com>
Signed-off-by: Li Wang <liwang@ubuntukylin.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-08-19 22:49:37 -07:00
Samuel Just
00080d785f PGLog: add a config to disable PGLog::check()
This is a debug check which may be causing excessive
cpu usage.

Reviewed-by: Sage Weil <sage@inktank.com>
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-08-19 18:04:55 -07:00
John Wilkins
2398c1b57d doc: Title change.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-08-19 17:27:10 -07:00
Sage Weil
220f7d6161 osd/ReplicatedPG: remove broken AccessMode logic
The original intent here was to handle reads in two modes.  For
workloads with read/modify/write ops, the RMW mode would:

 - queue writes for local store and replicas immediately
 - block reads until the write commits to all replicas

For mixed read/write workloads without read/modify/write ops, the
DELAYED mode would:

 - queue writes for replicas
 - allow local reads
 - once replicas commit, queue write locally
 - block local reads until local write completes

In reality, we never use the DELAYED mode.  It's untested and possibly
broken, and it is unlikely we will see a workload where it is important
in the near to mid term.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
2013-08-19 15:21:58 -07:00
Gregory Farnum
c64878b520 Merge pull request #508 from ceph/wip-5905
examples: add a librados/hello_world program

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Loic Dachary <loic@dachary.org>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
2013-08-19 15:14:40 -07:00
Greg Farnum
823435ce65 examples: add a librados/hello_world program
This is a simple program with lots of explanatory comments people
can use as a model for using librados.

Signed-off-by: Greg Farnum <greg@inktank.com>
2013-08-19 14:55:09 -07:00
Sage Weil
67a95b9880 ceph: parse CEPH_ARGS environment variable
Fixes: #6052
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
2013-08-19 12:48:58 -07:00
Sage Weil
eef7cacdb1 rados pybind: add conf_parse_env()
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
2013-08-19 12:48:58 -07:00
Sage Weil
68c1c70e1f Merge remote-tracking branch 'gh/next' 2013-08-19 12:41:54 -07:00
Sage Weil
9dda1cc044 doc/release-notes: v0.61.8
Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-19 12:41:44 -07:00
Sage Weil
233fed8c97 Merge pull request #513 from dalgaaf/fix/wip-da-documentation
Fix documentation issues
2013-08-19 12:32:30 -07:00
Danny Al-Gaaf
090e4c4a31 filestore-config-ref.rst: mark some filestore keys as deprecated
Marked the following keys as deprecated since v0.65:
- filestore flusher
- filestore flusher max fds
- filestore sync flush

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-08-19 20:56:48 +02:00
Sage Weil
a396e02713 Merge pull request #512 from ceph/wip-5988
Reviewed-by: Sage Weil <sage@inktank.com>
2013-08-19 11:16:57 -07:00
Samuel Just
0c5f842e49 Merge branch 'wip-erasure-coded-doc' 2013-08-19 11:02:45 -07:00
Greg Farnum
4e86be9232 librados: synchronous commands should return on commit instead of ack
This is unlikely to be noticed by anybody, but it is a big change. Document
in the PendingReleaseNotes and bump up the librados minor version number
to 68.

Signed-off-by: Greg Farnum <greg@inktank.com>
2013-08-19 10:29:49 -07:00
athanatos
efd1bce4cf Merge pull request #493 from dachary/wip-erasure-coding-doc
rearrange erasure code documents

Reviewed-by: Samuel Just <sam.just@inktank.com>
2013-08-19 10:28:48 -07:00
Greg Farnum
f5636be742 mon: make MonMap error message about unspecified monitors less specific.
The error message helpfully references the -m and -c CLI options for
specifying monitors, but this code can be invoked from non-core librados
client applications so that's unfortunately not kosher. Remove the
reference.

Fixes #5979.

Signed-off-by: Greg Farnum <greg@inktank.com>
2013-08-19 10:21:16 -07:00
Danny Al-Gaaf
a846294533 auth-config-ref.rst: fix signature keys
Fix names of cephx signature keys.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-08-19 10:33:37 +02:00
Sage Weil
4677041da3 objclass: move cls_log into class_api.cc
Not sure why but this seems to resolve a linking problem when loading
classes:

2013-08-17 13:28:19.015776 7fb2bcffa700  0 _load_class could not open class /usr/lib/rados-classes/libcls_hello.so (dlopen failed): /usr/lib/rados-classes/libcls_hello.so: undefined symbol: cls_log
2013-08-17 13:28:19.015786 7fb2bcffa700 -1 osd.4 12 class hello open got (5) Input/output error

In any case, it's simpler.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-17 14:30:37 -07:00
Sage Weil
70790ab6b4 doc/dev/filestore-filesystem-compatibliity: remove outdated xattr notes
Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-17 12:34:11 -07:00
Sage Weil
d7f1d166ea Merge pull request #494 from kri5/wip-s3-compliance-doc
doc: complete S3 features status from existing doc page
2013-08-17 11:00:59 -07:00
Sage Weil
87affa2d1c Merge pull request #491 from kri5/wip-clang-compilation
Fix compilation -Wmismatched-tags warnings

Reviewed-by: Loic Dachary <loic@dachary.org>
2013-08-17 10:59:01 -07:00
John Wilkins
2f221fe03c doc: Updated upgrade doc to include dumpling and incorporate ceph-deploy.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-08-17 10:35:32 -07:00
Sage Weil
ae7436ffb5 Merge pull request #479 from devoid/fix-5797
Document unstable nature of CephFS
2013-08-17 10:09:01 -07:00
Sage Weil
060a463754 Makefile: move objclass/*.cc to libosd.la
Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-17 09:40:44 -07:00
Sage Weil
8ac1af887b doc/changelog: add missing file
Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-17 08:38:55 -07:00
Sage Weil
d0a6ff9d27 os/FileStore: initialize blk_size on _detect_fs()
This was missed by a25d73effb.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-17 08:30:26 -07:00
Sage Weil
ed4fe32fa9 doc/release-notes: v0.67.1
Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-17 08:20:00 -07:00
Sage Weil
81ddf1e8ab Merge pull request #505 from ceph/wip-post-file
ceph-post-file: single command to upload a file to cephdrop
2013-08-16 23:41:38 -07:00
Sage Weil
4fd34befd5 mds: create only one ESubtreeMap during fs creation
Previously we would create an empty ESubtreeMap when we opened the log
segment and then immediately journal a second one that created the root
and mdsdir.  More importantly, for the second ESubtreeMap, we would not
wait for it to commit before requesting the ACTIVE state, leading to
#4894.

Instead, break start_new_segment() into two steps: one that creates the
in-memory LogSegment tracking structure, and one that journals the
ESubtreeMap.  Open things early and write the (one) ESubtreeMap at the
end of boot_create().. and then wait for it.

Fixes: #4894
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Yan, Zheng <zheng.z.yan@intel.com>
2013-08-16 22:08:00 -07:00
Sage Weil
6bb7c62528 doc: quickstart: be more explicit that node == mon node
This appears to be one source of confusion for new users that leads to
a failure to form an initial mon quorum.  See comments on

 http://tracker.ceph.com/issues/4924

Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-16 21:18:21 -07:00
Yehuda Sadeh
3cbf6a7b03 rgw: drain requests before exiting
Fixes: #5953

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-08-16 18:01:14 -07:00
Sage Weil
d08e05e463 ceph-post-file: single command to upload a file to cephdrop
Use sftp to upload to a directory that only this user and ceph devs can
access.

Distribute an ssh key to connect to the account.  This will let us revoke
the key in the future if we feel the need.  Also distribute a known_hosts
file so that users have some confidence that they are connecting to the
real ceph drop account and not some third party.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
2013-08-16 17:59:11 -07:00
John Wilkins
50cc2efccf doc: Removed old mkcephfs references.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-08-16 17:31:43 -07:00
John Wilkins
fa10c41dbc doc: Removed mkcephfs references.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-08-16 17:28:15 -07:00