Commit Graph

37113 Commits

Author SHA1 Message Date
David Zafman
eaf1d1e352 tests: ceph_objectstore_tool.py fix off by 1 ATTR_OBJS handling
Signed-off-by: David Zafman <dzafman@redhat.com>
2014-11-15 23:29:08 +01:00
Loic Dachary
dcf09aed12 common: do not omit shard when ghobject NO_GEN is set
Do not silence the display of shard_id when generation is NO_GEN.
Erasure coded objects JSON representation used by ceph_objectstore_tool
need the shard_id to find the file containing the chunk.

Minimal testing is added to ceph_objectstore_tool.py

http://tracker.ceph.com/issues/10063 Fixes: #10063

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2014-11-15 23:27:15 +01:00
Loic Dachary
6d04b3c13a tests: run ceph_objectstore_tool.py from make check
http://tracker.ceph.com/issues/10064 Fixes: #10064

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2014-11-15 23:27:15 +01:00
Loic Dachary
4c94f1778f tests: ceph_objectstore_tool.py skip if /dev/tty fails
Some environments do not have a /dev/tty. When opening /dev/tty fails,
skip the test instead of returning an error.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2014-11-15 23:27:15 +01:00
Loic Dachary
fc435ff362 tests: ceph_objectstore_tool.py encapsulate init-ceph stop
Call init-ceph in kill_daemons and add a call to kill_daemon when main
returns on error so that it never leaves daemons hanging.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2014-11-15 23:27:15 +01:00
Loic Dachary
0f3d7b1315 tests: ceph_objectstore_tool.py main returns
Instead of calling sys.exit() the main function returns the desired exit
code.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2014-11-15 23:27:15 +01:00
Loic Dachary
e8f34bd62b tests: ceph_objectstore_tool.py replace stop.sh with init-ceph
The stop.sh will stop all ceph-* processes. Use the init-ceph script
instead to selectively kill the daemons run by the vstart.sh cluster
used for ceph_objectstore_tool.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2014-11-15 23:27:15 +01:00
Loic Dachary
e303d1afde tests: ceph_objectstore_tool.py use a dedicated directory
Set CEPH_DIR to a directory that is specific to ceph_objectstore_tool so
that it can run in parallel with other vstart.sh clusters.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2014-11-15 23:27:15 +01:00
Loic Dachary
235257c257 tests: ceph_objectstore_tool.py run faster by default
By default use only a small number of objects to speed up the tests. If
the argument "big" is given, use a large number of objects as it may
help find some problems.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2014-11-15 23:27:15 +01:00
Loic Dachary
f04d4e7539 tests: ceph_objectstore_tool.py run mon and osd on specific port
By default vstart.sh runs MDS but they are not needed for the tests,
only run mon and osd instead. Instead of using the default vstart.sh
port which may conflict with a already running vstart.sh, set the
CEPH_PORT=7400 which is not used by any other test run with make check.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2014-11-15 23:27:15 +01:00
Loic Dachary
783378c019 tests: ceph_objectstore_tool.py can use a WARN cluster
The tests do not need HEALTH_OK exclusively, a HEALTH_WARN cluster can
also run them successfully.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2014-11-15 23:27:15 +01:00
Loic Dachary
74506d2506 tests: ceph_objectstore_tool.py use env python
Using #/usr/bin/env python instead of a hard coded path is more flexible
and can also be used to run from virtualenv.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2014-11-15 23:27:15 +01:00
Loic Dachary
d1c4e5b640 vstart: use hostname -s instead of fqdn
Otherwise init-ceph.in will fail if hostname returns a fqdn. It
validates the host entry of the [osd.x] section does not contain dots.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2014-11-15 23:27:15 +01:00
Dan Mick
06a245a984 Add annotation to all assembly files to turn off stack-execute bit
See discussion in http://tracker.ceph.com/issues/10114

Building with these changes allows output from readelf like this:

 $ readelf -lW src/.libs/librados.so.2 | grep GNU_STACK
  GNU_STACK      0x000000 0x0000000000000000 0x0000000000000000 0x000000
0x000000 RW  0x8

(note the absence of 'X' in 'RW')

Fixes: #10114
Signed-off-by: Dan Mick <dan.mick@redhat.com>
2014-11-14 17:59:57 -08:00
Greg Farnum
b10bd19f34 tools: Close the fd before returning in Dumper
CID 1251577
CID 717084

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2014-11-14 14:28:25 -08:00
Loic Dachary
8144ab0c23 Merge pull request #2935 from dachary/wip-mailmap
mailmap: Loic Dachary name normalization
2014-11-14 22:46:28 +01:00
Loic Dachary
0c8955bac4 mailmap: Loic Dachary name normalization
Do not rewrite the past.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2014-11-14 22:42:24 +01:00
Sage Weil
b6d618005f test_async_driver: fix warning
test/msgr/test_async_driver.cc:233:209: instantiated from here

Signed-off-by: Sage Weil <sage@redhat.com>
2014-11-14 10:37:10 -08:00
John Wilkins
bec99559f3 Merge pull request #2389 from ceph/wip-doc-documenting-ceph
doc: Update documenting ceph to include CentOS/RHEL

Reviewed-by: John Wilkins <jowilkin@redhat.com>
2014-11-14 10:13:12 -08:00
John Wilkins
175d6e03ba doc: Removed separate build file for rpm.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-11-14 10:11:35 -08:00
Yehuda Sadeh
ad431b284d Merge pull request #2801 from CzBiX/permanent-location
rgw: add location when data in another region.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2014-11-14 09:03:42 -08:00
Loic Dachary
069785e631 Merge pull request #2932 from nilamdyuti/wip-doc-documenting-ceph
doc: Adds build-doc guidelines for Fedora and CentOS/RHEL.

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2014-11-14 17:18:12 +01:00
Haomai Wang
d957fbdb74 Merge pull request #2930 from dachary/wip-warning
tests: fix cast compilation warning
2014-11-15 00:12:05 +08:00
Nilamdyuti Goswami
a5a0d5c83f doc: Adds build-doc guidelines for Fedora and CentOS/RHEL.
Signed-off-by: Nilamdyuti Goswami <ngoswami@redhat.com>
2014-11-14 21:06:15 +05:30
Loic Dachary
f0de7c5a0b Merge pull request #2923 from ktdreyer/doc-install-giant
doc: update packages page for Giant

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2014-11-14 16:17:54 +01:00
Ken Dreyer
4cdc9c7936 doc: update release descriptions on packages page
Firefly was listed as the "latest release" of Ceph. Add Giant and label
it as the latest release instead.

Releases A-C and E are no longer supported. D will receive updates for
some time longer, and F is a "long term stable" release.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
2014-11-14 07:49:39 -07:00
Loic Dachary
3b28fd0a8d tests: fix cast compilation warning
Signed-off-by: Loic Dachary <ldachary@redhat.com>
2014-11-14 15:01:34 +01:00
Loic Dachary
2ad6ff1565 Merge pull request #2928 from leseb/improve-exceptions
Improve readability of the exception

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2014-11-14 11:05:02 +01:00
Sébastien Han
088230efe8 Improve readability of the exception
The error messages were not really clear from a non-programmer
perspective. In the context of OpenStack all the drivers are falling
back to the exceptions provided by the rados library. Having clearer
error messages will help debugging misconfigured environment.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-11-14 11:00:00 +01:00
VRan Liu
3c4b782bcb rgw: add location when data in another region.
When the bucket of requested is in another region, Add location header
in response, so client can follow that to get data.

Signed-off-by: VRan Liu <gliuwr@gmail.com>
2014-11-14 17:11:21 +08:00
Sébastien Han
35ae591404 doc: update the OpenStack glance configuration
Juno is now using a section for configuring the stores, so let's use it.
Put spaces between flag and value for clarity and readibility.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-11-14 09:21:09 +01:00
Jason Dillaman
83e8b07a7b librbd: Only public API symbols from the shared library
The librbd shared library was previously exporting all
symbols.  librbd public API methods are now explicitly
exported and all other symbols are hidden.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2014-11-14 03:02:17 -05:00
Loic Dachary
caa97db964 Merge pull request #2925 from yuyuyu101/update-mailmap
Mailmap: add Rongze organization

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2014-11-14 08:42:35 +01:00
Haomai Wang
a04bb135a4 Mailmap: add Rongze organization
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2014-11-14 11:42:41 +08:00
Sage Weil
ef2565ecf1 vstart.sh: complain less about fullish mon disks
Lots of people develop on file systems  > 70% full.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-11-13 16:41:34 -08:00
Sage Weil
c15391b132 Merge remote-tracking branch 'gh/next' 2014-11-13 13:26:04 -08:00
Yan, Zheng
20f99ca526 mds: don't overwrite reply's snapbl
set_trace_dist() updates reply's snapbl, don't overwrite it. For MKSNAP
request, just need to set mdr->tracei, set_trace_dist() will set reply's
snapbl.

Reviewed-by: Sage Weil <sage@redhat.com>
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2014-11-13 13:25:39 -08:00
Loic Dachary
4509674d79 Merge pull request #2772 from ceph/wip-init-radosgw
init-radosgw.sysv: set ulimit -n before starting daemon

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2014-11-13 21:58:45 +01:00
Samuel Just
4d8e90be3a Merge pull request #2920 from ceph/wip-10095
crush: fix detach_bucket

Reviewed-by: Samuel Just <sjust@redhat.com>
2014-11-13 11:08:23 -08:00
Sage Weil
6f8b96a9fe crush/CrushWrapper: fix detach_bucket
In commit 9850227d2f we changed the call that
changed the weight of all instances of item to one that explicitly
changes it in the parent bucket, but parent_id may not be valid at the
call site.  Move this into the conditional block to fix.

Fixes: #10095
Signed-off-by: Sage Weil <sage@redhat.com>
2014-11-13 10:59:58 -08:00
Sage Weil
a46fb02381 Makefile: include 'ceph' in base target
This makes 'make base' enough to vstart.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-11-13 10:49:33 -08:00
Sage Weil
a820bf6f08 Merge pull request #2906 from ceph/wip-9835
osd: fix misdirected ec ops stuck in optracker (9835)

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-11-13 10:35:04 -08:00
Sage Weil
585b9065ec msg/Makefile: add new header to tarball
Signed-off-by: Sage Weil <sage@redhat.com>
2014-11-13 10:05:53 -08:00
Sage Weil
b61d834032 Merge pull request #2909 from yuyuyu101/wip-10079
AsyncMessenger: Add select support and tests for async drivers
2014-11-13 09:12:26 -08:00
Swami Reddy
6e5bae4cfc mailmap: Dan Mick name normalization
Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
2014-11-13 20:30:14 +05:30
Swami Reddy
5fdec031e2 mailmap: Xan Peng affiliation
Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
2014-11-13 20:30:13 +05:30
Swami Reddy
e8a60ce4bf mailmap: BJ Lougee affiliation
Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
2014-11-13 20:30:13 +05:30
Swami Reddy
e8daba61f9 mailmap: Derrick Schneider affiliation
Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
2014-11-13 20:30:13 +05:30
Swami Reddy
e3865883cd mailmap: Federico Gimenez name normalization
Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
2014-11-13 20:28:50 +05:30
Loic Dachary
1cd7422a3b mon: ceph-monstore-tool must close()
Otherwise it asserts because the destructor checks for the is_open flag.

http://tracker.ceph.com/issues/10093 Fixes: #10093

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2014-11-13 15:37:48 +01:00