Commit Graph

37532 Commits

Author SHA1 Message Date
Sage Weil
a282f7e119 Merge pull request #3142 from ceph/wip-10220
mon: suspend proposing paxos values when flushing pending writes

Reviewed-by: Sage Weil <sage@redhat.com>
2014-12-15 10:44:51 -08:00
Loic Dachary
1396e55d77 Merge pull request #3182 from ceph/wip-9405
librbd: fixed garbage output from test LibRBD.TestIOPP

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2014-12-15 19:18:01 +01:00
Jason Dillaman
394fd4c212 librbd: fixed garbage output from test LibRBD.TestIOPP
buffer::list::c_str does not actually provide a C-style, NULL
terminated string.  As a result, its use for console output
resulted in stray garbage characters being printed.

Fixes: #9405
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2014-12-15 12:44:44 -05:00
Sage Weil
3b5ff219fb Merge pull request #3161 from anandgbhat/wip-jemalloc
jemalloc-support: Added --with-jemalloc configure option

Reviewed-by: Sage Weil <sage@redhat.com>
2014-12-15 09:37:57 -08:00
Loic Dachary
0b8512eb0b Merge pull request #3180 from ktdreyer/doc-corpus-spelling
doc: fix spelling in corpus page

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2014-12-15 18:20:09 +01:00
Joao Eduardo Luis
18534615f1 mon: Paxos: reset accept timeout before submiting work to the store
Otherwise we may trigger the timeout while waiting for the work to be
committed to the store -- and it would only take the write to take a bit
longer than 10 seconds (default accept timeout).

We do wait for the work to be properly committed to the store before
extending the lease though.

Fixes: #10220

Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
2014-12-15 16:49:55 +00:00
João Eduardo Luís
639096d9f7 Merge pull request #3146 from ceph/wip-9323
mon: allow full flag to be manually cleared

Reviewed-by: Joao Eduardo Luis <joao@redhat.com>
2014-12-15 16:36:08 +00:00
Ken Dreyer
31adfeb046 doc: fix spelling in corpus page
Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
2014-12-15 07:57:14 -07:00
Loic Dachary
a58385a848 Merge pull request #3075 from theanalyst/doc/v0.89/mailmap
mailmap updates

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2014-12-15 10:16:54 +01:00
Abhishek Lekshmanan
f0961ae9e7 mailmap: Blaine Gardner affiliation
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-12-15 11:22:46 +05:30
Abhishek Lekshmanan
b0e88a0252 mailmap: Lei Dong affiliation
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-12-15 11:22:46 +05:30
Abhishek Lekshmanan
6d683d10e7 mailmap: Sandon Van Ness name normalization
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-12-15 11:22:46 +05:30
shishir gowda
973e9f755a jemalloc-support: Added --with-jemalloc configure option
If --with-jemalloc option is not specified, then it defaults to tcmalloc.

If --with-jemalloc is specified, then --without-tcmalloc is required.
Also if a rocksdb static linking is desired --with-librocksdb-static,
do not use --with-jemalloc, as rocksdb uses tcmalloc for builds.

Support for jemalloc in package build and perf stats/heap profiler is
underway

Signed-off-by: shishir gowda <shishir.gowda@sandisk.com>
2014-12-15 11:22:29 +05:30
Abhishek Lekshmanan
ad20551157 mailmap: Chendi Xue name normalization
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>

Conflicts:
	.mailmap
2014-12-15 11:22:27 +05:30
Abhishek Lekshmanan
04ab4099fc mailmap: Ding Dinghua affiliation
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-12-15 11:20:31 +05:30
Abhishek Lekshmanan
d048ec9024 mailmap: Dongmao Zhang affiliation
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-12-15 11:20:31 +05:30
Abhishek Lekshmanan
a3dd8b0bc3 mailmap: Kefu Chai affiliation
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-12-15 11:20:31 +05:30
Abhishek Lekshmanan
c40176ee76 mailmap: Michal Jarzabek affiliation
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-12-15 11:20:31 +05:30
Abhishek Lekshmanan
5d973846ba mailmap: Xinze Chi affiliation
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-12-15 11:20:31 +05:30
Abhishek Lekshmanan
1fd074d231 mailmap: Karl Eichwalder affiliation
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-12-15 11:20:31 +05:30
Abhishek Lekshmanan
e90818fd93 mailmap: Dan Mick name normalization
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-12-15 11:20:31 +05:30
Abhishek Lekshmanan
cc0551814d mailmap: Adam Spiers affiliation
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-12-15 11:20:31 +05:30
Abhishek Lekshmanan
41707ee08e mailmap: Nilamdyuti Goswami affiliation
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-12-15 11:20:31 +05:30
Sage Weil
ee10896880 Merge pull request #3175 from ceph/wip-test-huge-tickets
qa: add script to test how libceph handles huge auth tickets

Reviewed-by: Sage Weil <sage@redhat.com>
2014-12-14 09:44:21 -08:00
Sage Weil
af76f7810a Merge pull request #3174 from dachary/wip-warning
tests: fix signedness compilation warnings
2014-12-13 22:09:14 -08:00
Loic Dachary
4b9b0417e4 Merge pull request #2986 from ceph/wip-9998
crush: fix weight underfloat issue

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2014-12-14 00:52:08 +01:00
Ilya Dryomov
35f084d078 qa: add script to test how libceph handles huge auth tickets
Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
2014-12-13 20:49:04 +03:00
Loic Dachary
b9ddb83321 Merge pull request #3112 from xiaoxichen/cleanup_getheader
Cleanup:Use get_type()instead of get_header().type

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2014-12-13 18:22:12 +01:00
Loic Dachary
e7d434b583 tests: fix signedness compilation warnings
Signed-off-by: Loic Dachary <ldachary@redhat.com>
2014-12-13 17:55:21 +01:00
Loic Dachary
710680188d Merge pull request #3172 from dachary/wip-10146-retrigger-udev
ceph-disk: test re-using an existing journal partition

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2014-12-13 17:42:29 +01:00
Loic Dachary
b6401c10f2 ceph-disk: LOG.info instead of print
When a non fatal error happens with parted, use LOG.info to display it
instead of print.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2014-12-13 16:44:59 +01:00
Dan van der Ster
e0f052a10d ceph-disk: test re-using an existing journal partition
Add a ceph-disk test to first setup an OSD with a separate journal
block device, then tear down the OSD (simulating a failure) and create
a new OSD which re-uses the same journal device.

Add create_dev / destroy_dev helpers that encapsulate the operations
that ensure the partition table is up to date in the kernel and the
symlinks are created as expected. In particular it makes sure the kernel
is aware that the partition table of a newly created device is
empty. If the device previously existed and the kernel was not informed
of the latest partition table updates via partprobe / partx, it may
have cached an old partition table which can create all sorts of
unexpected behaviors such as a failure to create the by-partuuid
symbolic links as described in http://tracker.ceph.com/issues/10146
Refs: #10146

Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
Signed-off-by: Loic Dachary <ldachary@redhat.com>
2014-12-13 15:01:45 +01:00
Dan van der Ster
0e4cb57bcc ceph-disk: fix get_partition_uuid for loop/cciss
Loopback and cciss devices have an extra 'p' before the partition
number. Add exceptional handling of these devices.

Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
2014-12-13 15:01:45 +01:00
Dan van der Ster
29eb1350b4 ceph-disk: don't change the journal partition uuid
We observe that the new /dev/disk/by-partuuid/<journal_uuid>
symlink is not always created by udev when reusing a journal
partition. Fix by not changing the uuid of a journal partition
in this case -- instead we can reuse the existing uuid (and
journal_symlink) instead. We also now assert that the symlink
exists before further preparing the OSD.

Fixes: #10146
Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
Tested-by: Dan van der Ster <daniel.vanderster@cern.ch>
2014-12-13 15:01:45 +01:00
Loic Dachary
b9ddf97a0c documentation: simplify running make check
Encapsulate the compilation steps (install dependencies, autogen.sh,
configure, make check) in the run-make-check.sh script. Update the
developer documentation to point to this script instead of multiple
steps.

It is intended as a tool to help new developer make sure their patch is
sane, it focuses on efficiency (runs make check in parallel if possible)
and coverage (enables docker based tests if possible).

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2014-12-13 15:01:40 +01:00
Loic Dachary
35e4f425cf tests: install parted in centos container
Because ceph-disk depends on it.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2014-12-13 14:43:23 +01:00
Loic Dachary
85ab278abd tests: install hdparm in containers
The ceph-disk tests use hdparm, install it in containers that run
them.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2014-12-13 12:18:10 +01:00
Loic Dachary
60bca677be tests: update centos docker file to epel 7.5
Signed-off-by: Loic Dachary <ldachary@redhat.com>
2014-12-13 12:18:08 +01:00
Loic Dachary
e038b1266b tests: docker tests only need a workdir, not a clone
Instead of cloning the repository, create a work directory that has
symbolic links to the original .git, using

https://github.com/git/git/blob/master/contrib/workdir/git-new-workdir

It resolves the problem of fetching a commit that is not attached to any
ref, which is apparently not implemented in the git protocol (discussed
on irc.freenode.net#git).

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2014-12-13 12:17:34 +01:00
David Zafman
de29fada87 Merge pull request #3126 from ceph/wip-cleanup-removal
osd: Remove dead code related to old pg removal mechanism

Reviewed-by: Samuel Just <sjust@redhat.com>
2014-12-12 16:42:43 -08:00
Josh Durgin
d818a24eb1 Merge pull request #3141 from ceph/wip-librbd-test-cleanup
tests: Minor cleanup to librbd test

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2014-12-12 10:47:42 -08:00
Yehuda Sadeh
d8600c0664 Merge pull request #3160 from xylv/wip-8562-rebase
rgw: Conditional PUT on ETag

Reviewed-by: Yehuda Sadeh <yehuda@rehat.com>
2014-12-12 10:41:08 -08:00
Sage Weil
cc382d108a Merge remote-tracking branch 'gh/next' 2014-12-12 06:22:06 -08:00
Sage Weil
e21071b200 Merge pull request #3153 from ceph/wip-10296
osd: fix block device discard detection

Reviewed-by: Loic Dachary <loic@dachary.org>
Tested-by: Jianpeng Ma <jianpeng.ma@intel.com>
2014-12-12 06:21:46 -08:00
Loic Dachary
421c0a2879 Merge pull request #3144 from ceph/wip-aarch64
fixes for aarch64

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Haomai Wang <haomaiwang@gmail.com>
2014-12-12 09:48:49 +01:00
Ray Lv
7925b82c20 rgw: Conditional PUT on ETag
Fixes: #8562

Signed-off-by: Ray Lv <raylv@yahoo-inc.com>
2014-12-12 00:31:16 -08:00
Sage Weil
e8e27a817a unittest_blkdev: test an abbreviated /sys/block dir
Note that we assume unittest_blkdev is run from the current directory (or
rather that test/common/test_blkdev_sys_block exists).

Signed-off-by: Sage Weil <sage@redhat.com>
2014-12-11 20:58:59 -08:00
Sage Weil
5e454a8eb3 common/blkdev: add simple sandboxing function for testing
Signed-off-by: Sage Weil <sage@redhat.com>
2014-12-11 13:46:47 -08:00
Sage Weil
cfa54bbbc7 Merge pull request #3155 from athanatos/wip-8011
ReplicatedPG: fail a non-blocking flush if the object is being scrubbed

Reviewed-by: Sage Weil <sage@redhat.com>
2014-12-11 13:42:09 -08:00
Samuel Just
9b26de3f36 ReplicatedPG: fail a non-blocking flush if the object is being scrubbed
Fixes: #8011
Backport: firefly, giant
Signed-off-by: Samuel Just <sjust@redhat.com>
2014-12-11 13:30:11 -08:00