Commit Graph

44764 Commits

Author SHA1 Message Date
Daniel Gryniewicz
cb7fe45823 CMake - fix check for expat
Signed-off-by: Daniel Gryniewicz <dang@fprintf.net>
2015-09-23 10:55:54 -04:00
Daniel Gryniewicz
a7ce8f5d68 CMake - Add check for keyutils
Signed-off-by: Daniel Gryniewicz <dang@fprintf.net>
2015-09-23 10:55:54 -04:00
Daniel Gryniewicz
dcf647ec04 CMake - fix check for NSS
Signed-off-by: Daniel Gryniewicz <dang@fprintf.net>
2015-09-23 10:55:54 -04:00
Daniel Gryniewicz
b02e0f9bfe CMake - fix libatomic_ops and gperftools checks
Signed-off-by: Daniel Gryniewicz <dang@fprintf.net>
2015-09-23 10:55:54 -04:00
Sage Weil
3afd5178ff Merge remote-tracking branch 'gh/infernalis' 2015-09-23 10:46:51 -04:00
Sage Weil
68b5a8d10e Merge pull request #6037 from liewegas/wip-12407
init-radosgw: fix restart w/ multiple instances

Reviewed-by: Pavan Rallabhandi <pavan.rallabhandi@sandisk.com>
2015-09-22 15:12:17 -04:00
Orit Wasserman
f1ead76f80 Merge pull request #5928 from ceph/wip-12819-infernalis
Wip 12819 infernalis
2015-09-22 20:29:10 +02:00
Loic Dachary
8e6bf15fc9 Merge pull request #6006 from dachary/wip-12936-shec
erasure-code: workaround i386 optimization bug with SHEC

Reviewed-by: Sage Weil <sage@redhat.com>
2015-09-22 20:27:57 +02:00
Sage Weil
e17c8e1a7a init-radosgw: specify pid file to start-stop-daemon
This fixes restart when multiple instances are running.

Fixes: #12407
Tested-by: Pavan Rallabhandi <pavan.rallabhandi@sandisk.com>
Signed-off-by: Sage Weil <sage@redhat.com>
2015-09-22 14:13:43 -04:00
Sage Weil
fb5f058a92 Merge remote-tracking branch 'gh/infernalis' 2015-09-22 14:04:44 -04:00
David Zafman
424bcea999 Merge pull request #5922 from trociny/wip-pool-set-noscrub
osd: per pool control for scrub and deep-scrub

Reviewed-by: David Zafman <dzafman@redhat.com>
2015-09-22 09:32:18 -07:00
Kefu Chai
44a2609d1e Merge pull request #5846 from xiexingguo/xxg-wip-13002
msg/simple: start over after fails to bind a port in specified range

Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-09-22 23:54:32 +08:00
Loic Dachary
426435899c erasure-code: workaround i386 optimization bug with SHEC
http://tracker.ceph.com/issues/12936 Fixes: #12936

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-09-22 16:33:50 +02:00
Loic Dachary
4b71a54606 Merge pull request #5999 from dachary/wip-13000-ceph-disk
ceph-disk: fixes various race conditions

Reviewed-by: Sage Weil <sage@redhat.com>
2015-09-22 16:29:16 +02:00
Samuel Just
008cdd7c7f Merge pull request #6008 from liewegas/wip-13190
osd/ReplicatedPG: tolerate promotion completion with stopped agent

Reviewed-by: Samuel Just <sjust@redhat.com>
2015-09-22 07:24:27 -07:00
Sage Weil
c93008fbef Merge pull request #6011 from liewegas/wip-systemd
systemd: increase nproc ulimit
2015-09-22 09:32:08 -04:00
Sage Weil
0a3b5ddf5b Merge pull request #6019 from liewegas/wip-mon-dispatch-debug
mon/PaxosService: include msg and con ptr in dispatch debug
2015-09-22 08:29:16 -04:00
Josh Durgin
6799f44fa8 Merge pull request #5956 from xinxinsh/wip-13124
unify order limit

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-09-22 03:07:43 -04:00
Loic Dachary
182676d6bf tests: ceph-disk: workunit must fail when test fail
Signed-off-by: Joe Julian <me@joejulian.name>
2015-09-22 08:46:57 +02:00
Loic Dachary
0cf0e88e29 tests: ceph-disk: only install multipath on CentOS
If installed on Ubuntu where multipath does not activate properly, it
interferes with the other tests.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-09-22 08:46:57 +02:00
Loic Dachary
fb4dd7d4f2 tests: ceph-disk: inline run_osd
Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-09-22 08:46:57 +02:00
Loic Dachary
24b3a800e6 tests: ceph-disk: wait for the OSD to be up
After preparing an OSD, wait for the corresponding OSD to be up
according to ceph osd dump before asserting the devices are in the
expected state. Otherwise the test races with ceph-disk activate which
is run asynchronously via udev / upstart / system.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-09-22 08:46:57 +02:00
Loic Dachary
46a3c93ab3 tests: ceph-disk: race condition is fixed
It turns out it was not CentOS 7 specific. There is no excuse to skip
the tests anymore.

http://tracker.ceph.com/issues/12787 Refs: #12787

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-09-22 08:46:57 +02:00
Loic Dachary
d24f1f10aa tests: ceph-disk: multipath now auto activates
http://tracker.ceph.com/issues/12786 Refs: #12786

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-09-22 08:46:57 +02:00
Loic Dachary
d4d5153cd4 tests: ceph-disk: use sh() instead of helper() when possible
Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-09-22 08:46:57 +02:00
Loic Dachary
b6470382f8 tests: doc: ceph-disk workunit reminders
Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-09-22 08:46:57 +02:00
Loic Dachary
22a1f4cf74 ceph-disk: reduce debug verbosity
There is no need for debug traces from which() and it is very
noisy. Just get rid of it.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-09-22 08:46:57 +02:00
Loic Dachary
c86438cdce ceph-disk: ensure udev add on the data partition is last
When calling partprobe, we make sure there is at least one udev add
called for each partition created when preparing a device. But there is
no guarantee that the udev add for data partition will be last and the
following scenario can happen:

 - udev add data partition fails because the journal partition is owned
   by root
 - udev add journal partition chown the journal partition
 - no other udev add event is sent and the OSD does not activate

An additional, possibly redundant, udev add event is fired after
partprobe is run and after udevadm settles, to guarantee there is at
least one udev add data partition after the last udev add journal
partition.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-09-22 08:46:57 +02:00
Loic Dachary
0dd2364984 ceph-disk: move update_partition from main_prepare to prepare_dev
The update_partition call in main_prepare happens immediately after
prepare_dev but only if the data argument is a block device. There is no
reason for this separation: it is more sensible to call it from within
prepare_dev.

There is an additional test in prepare_dev that verifies partprobe won't
be called on a partition because it would not make sense.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-09-22 08:46:56 +02:00
Loic Dachary
e2c553ee95 ceph-disk: guard partprobe with udevadm settle
Call udevadm settle before and after partprobe.

A side effect of partprobe is to remove partitions and add them again.
The first udevadm settle waits for ongoing udev events to complete, just
in case one of them rely on an existing partition on dev.

The second udevadm settle guarantees to the caller that all udev events
related to the partition table change have been processed, i.e. the
95-ceph-osd.rules actions and mode changes, group changes etc. are
complete.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-09-22 08:46:56 +02:00
Loic Dachary
ad2d46ce85 ceph-disk: do not hide ceph-disk prepare stack trace
raise without an argument so the original stack trace is shown when
ceph-disk prepare fails.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-09-22 08:46:56 +02:00
Loic Dachary
5aeca731aa ceph-disk: support --verbose with --log-stdout
Set the LOG level as well as the channel level, otherwise the debug
messages are trimmed before they reach the channel. Also set the prefix
while we're at it.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-09-22 08:46:56 +02:00
Loic Dachary
9e796dc8b2 ceph-disk: prefer sgdisk to blkid to retrieve partition UUID
blkid 2.23.2 which is the default for official CentOS 7 cloud images
fails on journal device. It would be better to use blkid because it does
not trigger udev events, but it is more important to get reliable
results.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-09-22 08:46:56 +02:00
Loic Dachary
3d0e7ca6cb ceph-disk: make ceph-disk list /dev/vdb equivalent to list vdb
The ceph-disk list argument must be the device name without the leading
/dev/. This is error prone and silently does nothing. Strip the /dev/
prefix of ceph-disk list arguments so that it behaves as expected.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-09-22 08:46:56 +02:00
Loic Dachary
6ca6653d33 ceph-disk: - is translated into / with systemd
When running ceph-disk trigger /dev/dm-1 with systemd, the path name is
translated into /dev/dm/1 because of systemd escape rules. Explicitly
translate - into \x2d for systemd to preserve the -.

It would be better to use systemd-escape
http://www.freedesktop.org/software/systemd/man/systemd-escape.html
but it does not appear to be generally available on CentOS 7 and
probably other distributions.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-09-22 08:46:56 +02:00
Loic Dachary
17c6045773 ceph-disk: a journal partition may survive a data partition
When a data partition is removed and the journal partition is not
removed, ceph-disk list will not find a journal_for information and
should just ignore it.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-09-22 08:46:56 +02:00
Loic Dachary
d521a75061 ceph-disk: upstart must not run ceph-disk activate concurrently
Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-09-22 08:46:56 +02:00
Loic Dachary
f0a47578c7 ceph-disk: systemd must not kill a running ceph-disk
When activating a device, ceph-disk trigger restarts the ceph-disk
systemd service. Two consecutive udev add on the same device will
restart the ceph-disk systemd service and the second one may kill the
first one, leaving the device half activated.

The ceph-disk systemd service is instructed to not kill an existing
process when restarting. The second run waits (via flock) for the second
one to complete before running so that they do not overlap.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-09-22 08:46:56 +02:00
Loic Dachary
cc13fa05fd ceph-disk: fix typos in udev rules
Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-09-22 08:46:56 +02:00
Loic Dachary
b86d9fd973 ceph-disk: ensure ceph owner on udev change
On udev change the owner of the device switch back to the default. If
that happens on a journal while an OSD is being activated, it will fail
with permission denied.

Make sure all ceph device types are chown to ceph on udev change.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-09-22 08:46:56 +02:00
Josh Durgin
de9149d77e Merge pull request #5976 from yuyuyu101/wip-fix-metadata-conf
Librbd: Fix incorrect metadata filter behavior

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-09-22 01:19:58 -04:00
Josh Durgin
19a480b76d Merge pull request #5750 from wonzhq/rbd-write-full
librbd: do write_full for whole object write

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-09-21 19:13:37 -04:00
Gregory Farnum
ac2953a4d7 Merge pull request #5416 from zhouyuan/ceph_fuse_12204
ceph-fuse: warn and shut down when there is no MDS present

Reviewed-by: Yan, Zheng <zyan@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-09-21 16:02:33 -07:00
Gregory Farnum
42c657a6a9 Merge pull request #5826 from ukernel/wip-osx-port
fix compilation on OSX/FreeBSD

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-09-21 15:57:13 -07:00
Greg Farnum
fe54bd1bbe Merge branch 'wip-12971' of git://github.com/jcsp/ceph
Reviewed-by: Greg Farnum <gfarnum@redhat.com>

Conflicts:
	src/osdc/Objecter.cc

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2015-09-21 15:55:04 -07:00
Gregory Farnum
2c5dcd34c1 Merge pull request #5644 from majianpeng/mds-support-iohint
Mds journal support iohint

Reviewed-by: John Spray <john.spray@redhat.com>
2015-09-21 15:52:10 -07:00
Gregory Farnum
76e2e6271c Merge pull request #5966 from ukernel/wip-12506
Wip 12506

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-09-21 15:50:28 -07:00
Gregory Farnum
cb7786b17b Merge pull request #5962 from majianpeng/client-fix
Client fix mini bugs.

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-09-21 15:49:34 -07:00
Sage Weil
30332e3c78 mon/PaxosService: include msg and con ptr in dispatch debug
Signed-off-by: Sage Weil <sage@redhat.com>
2015-09-21 17:04:50 -04:00
Sage Weil
e664547c22 Merge pull request #6014 from athanatos/wip-13108
Revert "osd: purge the object from the cache when proxying and not pr…

Reviewed-by: Sage Weil <sage@redhat.com>
2015-09-21 14:51:50 -04:00