Commit Graph

28287 Commits

Author SHA1 Message Date
Yehuda Sadeh
d26ba3ab03 rgw: change cache / watch-notify init sequence
Fixes: #6046
We were initializing the watch-notify (through the cache
init) before reading the zone info which was much too
early, as we didn't have the control pool name yet. Now
simplifying init/cleanup a bit, cache doesn't call watch/notify
init and cleanup directly, but rather states its need
through a virtual callback.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-08-21 11:13:09 -07:00
Sage Weil
cf8dbd248b Merge remote-tracking branch 'gh/wip-6004' into next
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Yan, Zheng <zheng.z.yan@intel.com>
2013-08-20 16:57:46 -07:00
Sage Weil
edf2c3449e .gitignore: ignore test-driver
Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-20 16:54:20 -07:00
Sage Weil
9833e9dabe fuse: fix warning when compiled against old fuse versions
client/fuse_ll.cc: In function 'void invalidate_cb(void*, vinodeno_t, int64_t, int64_t)':
warning: client/fuse_ll.cc:540: unused variable 'fino'

Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-20 16:54:10 -07:00
Sage Weil
6abae35a39 json_spirit: remove unused typedef
In file included from json_spirit/json_spirit_writer.cpp:7:0:
json_spirit/json_spirit_writer_template.h: In function 'String_type json_spirit::non_printable_to_string(unsigned int)':
json_spirit/json_spirit_writer_template.h:37:50: warning: typedef 'Char_type' locally defined but not used [-Wunused-local-typedefs]
         typedef typename String_type::value_type Char_type;

(Also, ha ha, this file uses \r\n.)

Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-20 16:54:05 -07:00
Sage Weil
c9cdd19d1c gtest: add build-aux/test-driver to .gitignore
Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-20 16:54:02 -07:00
Dan Mick
0ccb9be3b6 Merge pull request #517 from dmick/wip-6049
mon/PGMap: OSD byte counts 4x too large (conversion to bytes overzealous)

Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-08-20 12:18:43 -07:00
Sage Weil
981eda9f77 mon/Paxos: always refresh after any store_state
If we store any new state, we need to refresh the services, even if we
are still in the midst of Paxos recovery.  This is because the
subscription path will share any committed state even when paxos is
still recovering.  This prevents a race like:

 - we have maps 10..20
 - we drop out of quorum
 - we are elected leader, paxos recovery starts
 - we get one LAST with committed states that trim maps 10..15
 - we get a subscribe for map 10..20
   - we crash because 10 is no longer on disk because the PaxosService
     is out of sync with the on-disk state.

Fixes: #6045
Backport: dumpling
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-08-20 11:27:23 -07:00
Sage Weil
7e0848d8f8 mon/Paxos: return whether store_state stored anything
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-08-20 11:27:09 -07:00
Sage Weil
b9dee2285d mon/Paxos: cleanup: use do_refresh from handle_commit
This avoid duplicated code by using the helper created exactly for this
purpose.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-08-20 11:26:57 -07:00
Sage Weil
6ef1970340 pybind: fix Rados.conf_parse_env test
This happens after we connect, which means we get ENOSYS always.
Instead, parse_env inside the normal setup method, which had the added
benefit of being able to debug these tests.

Backport: dumpling
Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-20 11:23:46 -07:00
Dan Mick
eca53bbf58 mon/PGMap: OSD byte counts 4x too large (conversion to bytes overzealous)
Fixes: #6049
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-08-20 11:14:43 -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
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
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
John Wilkins
31c1501ae1 doc: Updated script for dumpling.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-08-16 17:27:53 -07:00
John Wilkins
16f4bd51f0 doc: Updated APT script for dumpling.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-08-16 17:27:16 -07:00
John Wilkins
e97100db50 doc: Removed mkcephfs references. Did a bit of clean-up work.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-08-16 17:26:25 -07:00
Dan Mick
b007b3304c Merge pull request #509 from dmick/wip-rest-conf
config_opts: add two ceph-rest-api-only variables for convenience

Reviewed-by: Sage Weil <sage@inktank.com>
2013-08-16 17:05:52 -07:00
Samuel Just
211aadaee8 ReplicatedPG: add osd_recover_clone_overlap_limit to limit clones
We don't want to clone_range from clones too many times.
For now, just skip the cloning if there are too many holes.

Fixes: #5985
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-08-16 16:40:23 -07:00
Dan Mick
6f0a49829c config_opts: add two ceph-rest-api-only variables for convenience
These aren't used by the C++ code at all, but in order for
rados_conf_get to find them, they need to be listed.  They're
consumed by ceph_rest_api.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-08-16 16:38:11 -07:00
Samuel Just
967dc2388c Merge remote-tracking branch 'upstream/wip-zfs'
Reviewed-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-08-16 16:35:41 -07:00