Commit Graph

29584 Commits

Author SHA1 Message Date
Yehuda Sadeh
8ca71b86f8 Merge pull request #811 from dmsimard/wip_6710
Be more verbose in radosgw init script issues, return the right exit codes

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
2013-11-05 12:25:20 -08:00
David Moreau Simard
bbcddef877 Add a verbose argument and some verbosity
This allows a user to use "-v|--verbose" to get some insight as to
what could be preventing radosgw from starting properly.

Signed-off-by: David Moreau Simard <dmsimard@iweb.com>
2013-11-05 12:07:18 -05:00
David Moreau Simard
c4b0431b02 Verify that radosgw started, return appropriate exit code
Changed "/etc/init.d/radosgw status" into a function that now
returns the appropriate exit code.
We now also verify that radosgw actually started properly.

Signed-off-by: David Moreau Simard <dmsimard@iweb.com>
2013-11-05 11:57:26 -05:00
David Moreau Simard
0c610918c4 We should exit 1 if radosgw is not executable
An exit 0 means everything went okay - we should exit 1 if there is a problem in
starting radosgw.

Signed-off-by: David Moreau Simard <dmsimard@iweb.com>
2013-11-05 11:32:58 -05:00
Sage Weil
74873fd110 Merge pull request #816 from ceph/wip-fadvise
wbthrottle: use posix_fadvise if available

Reviewed-by: Sage Weil <sage@inktank.com>
2013-11-05 05:31:57 -08:00
Sage Weil
fe8e3be6dd Merge pull request #815 from ceph/wip-static-cast
assert: use feature test for static_cast

Reviewed-by: Sage Weil <sage@inktank.com>
2013-11-05 05:29:54 -08:00
Sage Weil
b4d0833dc2 Merge pull request #813 from ceph/wip-blkdev
support blkdev size query on osx/freebsd 

Reviewed-by: Sage Weil <sage@inktank.com>
2013-11-05 05:27:40 -08:00
Sage Weil
d35b282d9d Merge pull request #803 from ceph/wip-6698
upstart: fix ceph-crush-location default

Reviewed-by: Sage Weil <sage@inktank.com>
2013-11-04 18:37:59 -08:00
Noah Watkins
6821a6e83a assert: use feature test for static_cast
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2013-11-04 13:14:11 -08:00
Noah Watkins
330a6a769b wbthrottle: use posix_fadvise if available
Only adding information about data usage. This won't effect correctness.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2013-11-04 13:01:33 -08:00
Noah Watkins
324dd54534 test: test helper for get_block_device_size
This is the start of a potential unit test for get_block_device_size. An
actual unit test will probably need to be run as root, and either find a
device, have one specified, or create one (e.g. ramdisk)  in a platform
agnostic way. In the mean time, this tool can be run by hand, or called
for a bash script.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2013-11-04 10:13:50 -08:00
Noah Watkins
268785ff0c blkdev: support blkdev size query on osx
Support OSX, add checks for platform specific headers.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2013-11-04 10:13:50 -08:00
Sage Weil
254799bb86 Merge pull request #812 from ceph/revert-struct-init
Revert "fix -Wgnu-designator warnings"
2013-11-04 07:58:49 -08:00
Noah Watkins
41e052dc20 Revert "fix -Wgnu-designator warnings"
Struct initialization using dot notation as in C99, but that happens to
not be valid C++, although apparently in C++11 it is valid. We'll need a
way to keep clang from throwing warnings at this initialization style,
either using some macros to detect the comiler environment, or perhaps
moving struct initialization to a C file rather than C++.

This reverts commit 6efc2b54d5.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2013-11-04 06:23:22 -08:00
Xing Lin
96f4607bb0 test/libcephfs: free cmount after tests finishes
unmount and release cmount at the end of tests

Signed-off-by: Xing Lin <xinglin@cs.utah.edu>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-11-02 23:15:28 -07:00
Sage Weil
adee47f8eb Merge pull request #790 from ceph/wip-warnings
ease clang's anxieties

Reviewed-by: Sage Weil <sage@inktank.com>
2013-11-02 22:17:46 -07:00
Sage Weil
1faf4bab82 Merge pull request #793 from ceph/wip-pipe
pipe: use pipe2 feature test; check fcntl retval

Reviewed-by: Sage Weil <sage@inktank.com>
2013-11-02 22:16:18 -07:00
Sage Weil
1bb5aadbca upstart: fix ceph-crush-location default
Behave if it is not specified on ceph.conf.  (init-ceph also falls back
to the default.)

Fixes: #6698
Signed-off-by: Sage Weil <sage@inktank.com>
2013-11-01 16:45:01 -07:00
Loic Dachary
c3c962eb7d doc: radosgw workaround for OpenStack Horizon bug
Signed-off-by: Loic Dachary <loic@dachary.org>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-11-01 16:38:02 -07:00
Loic Dachary
cbc15bfcac doc: fix typo in openstack radosgw integration
s/type-object store/type object-store/

Signed-off-by: Loic Dachary <loic@dachary.org>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-11-01 16:38:02 -07:00
Sage Weil
4032501eb6 mon/OSDMonitor: refix warning
mon/OSDMonitor.cc: In member function 'int OSDMonitor::_prepare_rename_pool(int64_t, std::string)':
mon/OSDMonitor.cc:4370:55: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

Two fixes for this crossed paths in
0c186096bb and
2181b4c946

Signed-off-by: Sage Weil <sage@inktank.com>
2013-11-01 17:00:17 -07:00
Noah Watkins
59a55fdaaf pipe: use pipe2 feature test; check fcntl retval
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2013-11-01 16:21:14 -07:00
Noah Watkins
5d0d0a9122 fix -Wmismatched-tags warnings
Example: warning: class 'ObjecterDispatcher' was previously declared as
a struct [-Wmismatched-tags]

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2013-11-01 16:17:23 -07:00
Noah Watkins
6efc2b54d5 fix -Wgnu-designator warnings
Example: warning: use of GNU old-style field designator extension
[-Wgnu-designator]

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2013-11-01 16:17:23 -07:00
Noah Watkins
382149cc10 OSD: remove unused private var [-Wunused-private-field]
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2013-11-01 16:17:22 -07:00
Noah Watkins
cf29574203 CrushTester: remove unused private var [-Wunused-private-field]
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2013-11-01 16:17:22 -07:00
Noah Watkins
cc08a4ae3f auth: remove unused private var [-Wunused-private-field]
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2013-11-01 16:17:22 -07:00
Samuel Just
cd30e5fbb1 common/buffer.cc: fix rebuild_page_aligned typo
Introduced: 66a9fbe2c7
Fixes: #6003
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-11-01 16:12:02 -07:00
Noah Watkins
ffdd30efc8 test: add gcc compile test for installed headers
libcephfs/librados headers should work with gcc.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2013-11-01 16:09:12 -07:00
Christophe Courtaut
12238d0906 libcephfs: Fix compilation for C compiler
Use struct instead of class, even if it warns.

Warnings are lower priority than compilation break.

Signed-off-by: Christophe Courtaut <christophe.courtaut@gmail.com>
2013-11-01 16:09:08 -07:00
Christophe Courtaut
b3b1650121 ceph: Fix compilation with GCC compiler
Signed-off-by: Christophe Courtaut <christophe.courtaut@gmail.com>
2013-11-01 16:08:55 -07:00
Sage Weil
1671d7e8d5 Merge branch 'next' 2013-11-01 16:08:14 -07:00
David Moreau Simard
524aee6f95 Really use the hostname, otherwise ambiguous
"hostname" can return either the hostname or the fqdn depending on
configuration.
This refers to the issue http://tracker.ceph.com/issues/6706

Signed-off-by: David Moreau Simard <dmsimard@iweb.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-11-01 16:08:01 -07:00
Sage Weil
f2622a4a12 ceph-object-corpus: revert accidental revert
from 5df3024d78

Signed-off-by: Sage Weil <sage@inktank.com>
2013-11-01 16:07:44 -07:00
Wido den Hollander
df3af6c05e docs: Fix a typo in RGW documentation 2013-11-01 16:07:41 -07:00
Sage Weil
735d9a4ad1 Merge pull request #792 from ceph/wip-doc-openstack
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-11-01 16:07:21 -07:00
Sage Weil
f8217ab565 Merge pull request #766 from kri5/wip-5374
Rebase of Wip 5374 against master

Reviewed-by: Yehuda Sadeh <yehdua@inktank.com>
2013-11-01 16:06:52 -07:00
Ray Lv
588ed60a8e Wrap hex_to_num table into class HexTable
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
2013-11-01 16:03:55 -07:00
Ray Lv
148023d3c6 [rgw] Set initialized to true after populating table in hex_to_num()
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
2013-11-01 16:03:38 -07:00
Samuel Just
28e4271267 sharedptr_registry.hpp: removed ptrs need to not blast contents
See the included unit test update.  Consider:
1) x = lookup_or_create(1, 1)
2) remove(1)
3) y = lookup_or_create(1, 2)
4) x.reset()
5) z = lookup(1)

The bug is that z will be null since x.reset() caused the
cleanup callback to remove y's key value from contents.

To fix this, contents also records the pointer value for
the weak_ptr.  The removal callback only removes the
key from contents if it matches the ptr in contents.

This should work since the pointer passed to the removal
callback must be unique up to that point since it has
not yet been deleted.

This allowed a pg removal -> pg recreation -> pg removal
sequence to cause the second pg removal entry to be
erroneously cleared by the first pg removal's destructor
as it finally made its way through the removal queue.

Fixes: #5951
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
2013-11-01 16:02:21 -07:00
Noah Watkins
4402898390 prio-q: initialize cur iterator
For new SubQueues `cur` is not intialized, so front/pop_front will freak
out. I honestly I have no idea how this hasn't been seen, but it was
being triggered frequently on OSX.

Fixes: #6686

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
2013-11-01 16:02:15 -07:00
Samuel Just
353813b2e1 PGLog: remove obsolete assert in merge_log
This assert assumes that if olog.head != log.head, olog contains
a log entry at log.head, which may not be true since pg splitting
might have left the log with arbitrary holes.

Related: 0c2769d332
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-11-01 16:00:15 -07:00
Samuel Just
ca4c166b7e test/osd/RadosModel.h: select and reserve roll_back_to atomically
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-11-01 16:00:12 -07:00
Samuel Just
99c5319c2c test/rados/list.cc: we might get some objects more than once
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-11-01 16:00:08 -07:00
Sage Weil
4a41d3d24b os/chain_listxattr: fix leak fix
e22347df38 added a bad goto; just free
explicitly instead.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Noah Watkins <noahwatkins@gmail.com>
2013-11-01 15:58:07 -07:00
John Wilkins
a2090baf36 doc: Removed the Folsom reference.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-10-30 17:53:37 -07:00
John Wilkins
c9aa708ac5 doc: Restored show_image_direct and added a link to older versions.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-10-30 17:44:24 -07:00
John Wilkins
8193bad873 doc: Removed nova-volume, early Ceph references and Folsom references.
fixes: 5006

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-10-30 17:21:14 -07:00
Sage Weil
6b9104d8c8 doc/release-notes: formatting
Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-30 14:19:45 -07:00
Sage Weil
04710b55b4 doc/release-notes: fix formatting
Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-30 14:08:19 -07:00