Commit Graph

35851 Commits

Author SHA1 Message Date
Sage Weil
c050afdbe0 Merge remote-tracking branch 'gh/next' 2014-09-08 12:19:45 -07:00
Sage Weil
836a6701d6 doc/release-notes: v0.85
Signed-off-by: Sage Weil <sage@redhat.com>
2014-09-08 12:19:34 -07:00
John Wilkins
591a179540 doc: Added more robust usage example for uid and conf for QEMU.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-09-08 11:58:09 -07:00
John Wilkins
b178e974e0 doc: Clean up syntax to suppress warnings.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-09-08 11:26:37 -07:00
John Wilkins
4ad1106eda doc: Clean up syntax.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-09-08 11:24:28 -07:00
Sage Weil
312d7401ea Merge pull request #2421 from ceph/wip-paxos-dout
mon/Paxos: don't spam log with is_readable at dout level 1

Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-09-08 10:06:09 -07:00
Adam Crume
7531b280e1 lttng: Fix 'make tag' when configured --without-lttng
Signed-off-by: Adam Crume <adamcrume@gmail.com>
2014-09-08 09:16:51 -07:00
Sage Weil
1c346017e9 mon/Paxos: make is_readable debug output show result
Signed-off-by: Sage Weil <sage@redhat.com>
2014-09-08 08:39:50 -07:00
Sage Weil
62ca27d0b1 mon/Paxos: don't spam log with is_readable at dout level 1
Backport: firefly, dumpling
Reported-by: Aanchal Agrawal <Aanchal.Agrawal@sandisk.com>
Signed-off-by: Sage Weil <sage@redhat.com>
2014-09-08 08:34:36 -07:00
Jenkins
a0c22842db 0.85 2014-09-08 06:31:31 -07:00
John Spray
27340b1d20 Merge pull request #2395 from ceph/wip-9282
mds: warn clients which aren't revoking caps
2014-09-08 12:43:12 +01:00
John Spray
d27ac4411c Merge pull request #2391 from ceph/wip-mds-lock
Wip mds lock

Reviewed-by: John Spray <john.spray@redhat.com>
2014-09-08 12:18:34 +01:00
John Spray
5561d7ebea Merge pull request #2404 from ceph/wip-9358
osdc/Journaler: fix try_read_entry()/wait_for_readable() locking

Reviewed-by: John Spray <john.spray@redhat.com>
2014-09-08 12:17:30 +01:00
Loic Dachary
1250c31e49 Merge pull request #2365 from infernix/centos5
Include types.h after stdint.h to accommodate for older distributions. 

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
2014-09-07 22:54:59 +02:00
Gerben Meijer
f0e0c31510 Include types.h after stdint.h to accomodate for older distributions. This fixes compilation on CentOS 5.
Signed-off-by: Gerben Meijer <infernix@gmail.com>
2014-09-07 22:50:39 +02:00
Jason Dillaman
9254792663 rbd should use write-back when caching is enabled
librbd now defaults to write-through until the first flush
is received.  For rbd, force the use of write-through.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2014-09-07 04:59:54 -04:00
Loic Dachary
21e84d6728 Merge pull request #2415 from johnkeepmoving/fix-off-error-in-rbd.cc
correct error of repeatedly adding io_size to off in do_bench_write

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
2014-09-07 09:22:08 +02:00
jiangheng
0fb3e52e16 correct error of repeatedly adding io_size to off in do_bench_write
Signed-off-by: jiangheng <jiangheng0511@gmail.com>
2014-09-07 14:48:03 +08:00
Jason Dillaman
4fc9fffc49 Enforce cache size on read requests
In-flight cache reads were not previously counted against
new cache read requests, which could result in very large
cache usage.  This effect is most noticeable when writing
small chunks to a cloned image since each write requires
a full object read from the parent.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2014-09-06 23:04:50 -04:00
Loic Dachary
7d8fe2d994 Merge pull request #2396 from ceph/wip-SCA-20140902
SCA and Coverity fixes

Reviewed-by: Loic Dachary <loic@dachary.org>
2014-09-06 22:51:13 +02:00
Loic Dachary
fd8d1fcb11 Merge pull request #2398 from xiaoxichen/refactor_lrc_crush
Refactor ErasureCodeLrc::create_ruleset

Reviewed-by: Loic Dachary <loic@dachary.org>
2014-09-06 12:40:35 +02:00
Loic Dachary
f0a4a2fc9c tests: flush logs before grepping them
Otherwise the test races with the daemon writing the logs and can
sometime fail.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-09-06 12:26:31 +02:00
Loic Dachary
98b18ed3f1 Merge pull request #2410 from dachary/wip-9368
erasure-code: init function is extern "C"
2014-09-06 03:01:48 +02:00
Loic Dachary
03aa113bcc erasure-code: init function is extern "C"
Otherwise it is not found and the real cause obscured by the test
setup. The thread returns immediately and the timeout test sometime
fails.

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

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-09-06 02:55:15 +02:00
John Wilkins
484fb85765 doc: Update logging path to reflect log rotate script default path.
Fixes: #9351

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-09-05 14:17:47 -07:00
Josh Durgin
5a8826730e Merge pull request #2407 from ceph/wip-formatter-va
formatter: clean up dump_format()

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-09-05 14:09:51 -07:00
Loic Dachary
fcf8059721 Merge pull request #2408 from theanalyst/doc/contributing
doc: Add a contributing file at the root of repo

Reviewed-by: Loic Dachary <loic@dachary.org>
2014-09-05 20:59:39 +02:00
Abhishek Lekshmanan
f0a1d281c7 doc: Add a contributing file at the root of repo
Github shows up a `guidelines for contributing` while opening a new pull
request for any repository with a CONTRIBUTING file at the repo
root, which allows for a quick overview to contribute to the
repository.

Currently this file just links to the Submitting Patches and the
documentation start guide.

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-09-06 00:23:24 +05:30
Yehuda Sadeh
4c4131c6a7 Merge pull request #2406 from alram/master
rgw: add .log to default log path

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2014-09-05 10:48:20 -07:00
Alexandre Marangone
4673242089 rgw: add .log to default log path
Fixes: #9353
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
2014-09-05 10:36:24 -07:00
Yehuda Sadeh
6fac8152c3 formatter: clean up dump_format()
Create a common dump_format_va() function, and make all the different
variants call it.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2014-09-05 10:29:08 -07:00
Yehuda Sadeh
8c60286891 Merge pull request #2329 from theanalyst/f/s3_bucket_loc
WIP: S3: Implementation for S3 Get Bucket Location

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2014-09-05 09:06:39 -07:00
Loic Dachary
6cac39e828 Merge pull request #2405 from dachary/wip-workunits
qa: scripts to help test ceph-qa-suite

Reviewed-by: Cheng Cheng <ccheng.leo@gmail.com>
2014-09-05 17:56:45 +02:00
Loic Dachary
df3c70a954 qa: scripts to help test ceph-qa-suite
This workunit will be used by tests as a placeholder that always return
true. This is helpful in tests when a script from the qa/workunits
directory is mandatory but we do not care about testing anything.  For
an example of how it can be used, check
https://github.com/ceph/ceph-qa-suite/pull/120

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-09-05 17:49:40 +02:00
Yan, Zheng
2280736c4d osdc/Journaler: fix try_read_entry()/wait_for_readable() locking
These two functions should be protected by the Journal::mutex. Furthermore,
wait_for_readable() is racy. The journal may have already become readable
when it is called.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
2014-09-05 22:21:55 +08:00
Yan, Zheng
94173a37f5 mds: warn clients which aren't revoking caps
Add a list to Locker to track revoking caps. print a warning message if client does not
release caps within the given time.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
2014-09-05 13:07:26 +08:00
Abhishek Lekshmanan
d8e672f351 rgw: Implementation for S3 Get Bucket Location
S3 API supports getting the location for a bucket, which gives out one
of those geographic zones (US-WEST-1, EU for eg). Also it returns an
empty string for the default region.
(http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETlocation.html)

Since LocationConstraint corresponds to regions in our case, this API
returns the region, for the "default" region empty string is returned

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
2014-09-05 09:06:27 +05:30
Abhishek Lekshmanan
9e503b56fc test/formatter: Add tests for dump_format_ns
Adding basic unit test to test the new formatter class'
dump_format_ns. Since the functionality only affects XML (and other
implementations mimic dump_format exactly), tests are added for these.
`fmt.close_section()` is avoided in the tests as this calls an
assert (and there is no section to close) and this triggers a test
failure.

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
2014-09-05 09:04:48 +05:30
Abhishek Lekshmanan
eaa2bb0aab rgw_formats: dump_format_ns implementation
Since the base formatter was extended with a dump_format_ns class,
implementing this here. For now, this is exactly same as dump_format, as
the concept of ns in json is not used.

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
2014-09-05 09:04:48 +05:30
Abhishek Lekshmanan
2fb51b2b58 Formatter: add a dump_format_ns to base Formatter
`dump_format_ns` is a generic formatter to dump a simple format along
with a namespace. It is `dump_format` with an optional ns. This also
extends the XML formatter with this functionality. This allows creation
of xml tags with ns and a specified format. The JSON Format doesn't
define a ns, and here the functionality is exactly same as that of
`dump_format`

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
2014-09-05 09:04:48 +05:30
Xiaoxi Chen
14d87bd534 Refactor ErasureCodeLrc::create_ruleset
Refactor ErasureCodeLrc::create_ruleset
1.Use CrushWrapper instead of crush C-api.
2.Make ruleset_id == rule_id, consist as the behavior in
  CrushWrapper::add_simple_ruleset().

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
2014-09-05 09:21:51 +08:00
Yan, Zheng
b32712f1fc Merge pull request #2375 from ceph/wip-8648
mds: clear objects' dirty flags after log segment is expired
2014-09-05 08:56:36 +08:00
David Zafman
677bb45b88 Merge pull request #2393 from dachary/wip-warning
erasure-code: warning fix

Reviewed-by: David Zafman <dzafman@redhat.com>
2014-09-04 17:33:21 -07:00
Yan, Zheng
eae88dad4c mds: clear objects' dirty flags after log segment is expired
When standby-replay MDS detects a log segment is expired, it should check
the expired segment's dirty lists and clear corresponding objects' dirty
bits. Otherwise these objects will be pinned in the standby-replay MDS's
cache forever.

Fixes: #8648
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2014-09-05 08:33:21 +08:00
John Wilkins
bbb77006ec Merge pull request #2399 from ceph/wip-8366
doc: adds a navigational menu for docs

Reviewed-by: John Wilkins <john.wilkins@inktank.com>
2014-09-04 10:51:17 -07:00
Alfredo Deza
69638dfaeb doc: fix missing bracket
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
2014-09-04 13:44:37 -04:00
Alfredo Deza
35663fa55a doc: attempt to get the ayni JS into all head tags
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
2014-09-04 13:44:32 -04:00
Danny Al-Gaaf
409c955608 OSDMonitor.cc: fix potential division by zero
Fix for:

CID 1232602 (#1 of 1): Division or modulo by zero (DIVIDE_BY_ZERO)
 divide_by_zero: In expression num_pg_copies / num_osds, division
 by expression num_osds which may be zero has undefined behavior.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-09-04 16:09:01 +02:00
Danny Al-Gaaf
7b77210740 objectstore/store_test.cc: fix unintentional integer overflow
CID 1232603 (#1 of 1): Unintentional integer overflow (OVERFLOW_BEFORE_WIDEN)
 overflow_before_widen: Potentially overflowing expression
 objs_per_folder * folders_range(rng) with type int (32 bits,
 signed) is evaluated using 32-bit arithmetic before being
 used in a context which expects an expression of type
 uint64_t (64 bits, unsigned). To avoid overflow, cast
 either operand to uint64_t before performing the multiplication.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-09-04 14:58:50 +02:00
Danny Al-Gaaf
6b70483232 os/HashIndex.cc: fix unintentional integer overflow
CID 1232604 (#1 of 1): Unintentional integer overflow (OVERFLOW_BEFORE_WIDEN)
 overflow_before_widen: Potentially overflowing expression
 (unsigned int)abs(this->merge_threshold) * 16U * this->split_multiplier
 with type unsigned int (32 bits, unsigned) is evaluated using 32-bit
 arithmetic before being used in a context which expects an expression of
 type uint64_t const (64 bits, unsigned). To avoid overflow, cast either
 operand to uint64_t const before performing the multiplication.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-09-04 14:36:18 +02:00