Commit Graph

37320 Commits

Author SHA1 Message Date
Sage Weil
707a111d53 osd: pass Message* to most require_* helpers
These do nothing but op->get_req(); pass the Message* explicitly so that
non-OpRequest callers can use them.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-12-13 08:03:00 -08:00
Sage Weil
09c1648b32 osd: drop redundant check in handle_replica_op
This is what require_self_aliveness checks.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-12-13 08:03:00 -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
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
2246dca05f common/blkdev: fix block device discard check
- fix base name calculation (do not assume sda)
- reverse sense of check (it was returning false when true before?)
- add a generic helper to get other properties, too

Fixes: #10296
Signed-off-by: Sage Weil <sage@redhat.com>
2014-12-11 10:18:56 -08:00
Sage Weil
25e37837c3 common/blkdev: get_block_device_base
And a test.  Ideally the test would get run on a machine with weirdo
devices like /dev/cciss/c0d1.

This mirrors the logic in ceph-disk, which has been tested.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-12-11 10:18:56 -08:00
VRan Liu
8b195eccad check endpoints is not empty before use it.
Signed-off-by: VRan Liu <gliuwr@gmail.com>
(cherry picked from commit 9d5e4edc15678de675d7a77badcbace0b710d553)
2014-12-10 10:46:10 -08:00
Sage Weil
d7a9bf7cdb Merge pull request #3087 from dachary/wip-9785-dmcrypt-keys-permissions
ceph-disk: dmcrypt file permissions

Reviewed-by: Sage Weil <sage@redhat.com>
2014-12-05 08:39:30 -08:00
Loic Dachary
58682d1776 ceph-disk: dmcrypt file permissions
The directory in which key files are stored for dmcrypt must be 700 and
the file 600.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2014-12-05 11:06:20 +01:00
Sage Weil
c0685ec709 Merge remote-tracking branch 'gh/next' 2014-12-04 08:39:56 -08:00
Loic Dachary
ec2677eaa6 Merge pull request #3024 from ceph/wip-librados-symbols
librados: Only public API symbols from the shared library

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2014-12-04 15:10:10 +01:00
Loic Dachary
f9bd970ea3 Merge pull request #3028 from majianpeng/fix4
Add perf reset command.

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2014-12-04 07:39:40 +01:00
Yan, Zheng
f11fd66f80 Merge pull request #3074 from ceph/wip-10229
osdc/Filer: use finisher to execute C_Probe and C_PurgeRange
2014-12-04 13:32:32 +08:00
Yan, Zheng
d3ee89ace6 osdc/Filer: use finisher to execute C_Probe and C_PurgeRange
Currently contexts C_Probe/C_PurgeRange are executed while holding
OSDSession::completion_lock. C_Probe and C_PurgeRange may call
Objecter::stat() and Objecter::remove() respectively, which acquire
Objecter::rwlock. This can cause deadlock because there is intermediate
dependency between Objecter::rwlock and OSDSession::completion_lock:

 Objecter::rwlock -> OSDSession::lock -> OSDSession::completion_lock

The fix is exexcute C_Probe/C_PurgeRange in finisher thread.

Fixes: #10229
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2014-12-04 13:26:33 +08:00
Greg Farnum
d5e2c2cf10 mon: fix signed/unsigned comparison warning
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2014-12-03 10:45:52 -08:00
Jenkins
68fdc0f68e 0.89 2014-12-03 08:18:33 -08:00
Loic Dachary
6e69955ab5 Merge pull request #3065 from ceph/wip-cephtool-exec
qa: fix cephtool tests not getting run

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2014-12-03 16:28:51 +01:00
John Spray
d98cec7f9c qa: fix teardown in cephtool's test_mon_mds
This was missing from 17b5fc9a but we didn't notice
because the test wasn't being run by the gitbuilders.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-12-03 16:26:57 +01:00
Sage Weil
c4f934997a Merge pull request #3044 from osynge/wip=suse-systemd
better systemd support

Reviewed-by: Sage Weil <sage@redhat.com>
2014-12-02 20:56:55 -08:00
Sage Weil
cbac460950 Merge pull request #3067 from dachary/wip-cephtool
fix cephtools running only part of the tests + avoid killing wrong daemons

Reviewed-by: Sage Weil <sage@redhat.com>
2014-12-02 20:53:12 -08:00
Jianpeng Ma
8e5dbe7dff common/perf_counters: Remove the duplicated code.
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2014-12-03 10:28:00 +08:00
Jianpeng Ma
963b76494b test/perf_counters: Replace perfcounters_dump to perf dump.
The func of command  perfcounters_dump and 'perf dump' are the same .
But from the print 'ceph --admin-daemon help', it only print 'perf
dump'. So replace.
In order to keep consistent, still keep perfcounters_dump in code for
old user.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2014-12-03 10:26:26 +08:00
Jianpeng Ma
eafb22453f test/perf_counters: Add test case for cmd 'perf reset'
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2014-12-03 10:23:03 +08:00
Jianpeng Ma
5f8186b106 common/perf_counters: Add 'perf reset all|perfcountername' for 'ceph
--admin-daemon'

Using this command, we can reset all perfcounters or reset on specified
perfcounter.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2014-12-03 10:10:03 +08:00
Loic Dachary
f152bc69d0 Merge pull request #3068 from ktdreyer/doc-os-recommendations-cleanup
doc: os recommendations cleanup

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2014-12-03 01:23:52 +01:00
Ken Dreyer
5d3bff0494 doc: rm Fedora minor versions in os recommendations
Fedora doesn't have point releases, so it doesn't make sense to talk
about "Fedora 18.0" or "Fedora 19.0" - it's just "Fedora 18" or "Fedora
19".

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
2014-12-02 16:33:00 -07:00
Loic Dachary
e83321ee09 Merge pull request #3061 from ktdreyer/rpm-ceph-disk-man-page
packaging: package ceph-disk(8)

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2014-12-03 00:18:50 +01:00
Ken Dreyer
b743a95111 packaging: package ceph-disk(8)
The ceph-disk man page was added in
a450cab2b8, but this was not added to the
RPM or DEB packaging. Add it here.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
2014-12-02 16:13:19 -07:00
Ken Dreyer
2497f16a04 doc: rm old releases in os recommendations page
Similar to the change in commit
4cdc9c7936, remove the references to old
Ceph releases.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
2014-12-02 15:55:47 -07:00
Ken Dreyer
0bb2e1ed5e doc: clarify "B" flag in os recommendations page
We don't exactly do continuous builds on all the platforms marked with
"B", but we have published binary RPMs for them. Adjust the "B"
footnote definition to reflect this.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
2014-12-02 15:55:43 -07:00
Loic Dachary
3047c9e000 qa: cephtool/test.sh use regular strings to list tests
Using the array notation to list test is error prone and more
complicated to write.

It also fixes a bug : only the first test of each series (MON, OSD, MDS)
was run and the others were ignored.

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-12-02 23:52:48 +01:00
Loic Dachary
e3e5741581 tests: vstart_wrapper.sh must call vstart.sh with a list of daemons
The list of daemons is provided in the $CEPH_START environment variable
but vstart_wrapper.sh incorrectly uses the $VSTART_ARGS empty variable.

As a consequence vstart.sh calls init-ceph stop which kills daemons that
do not belong to the test.

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

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-12-02 23:52:48 +01:00
John Wilkins
56dae09b9c doc: Reformatting on rbd replay doc.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-12-02 11:23:55 -08:00
John Wilkins
b8f6b5f77c doc: Added rbd-replay-many and restructured index.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-12-02 11:23:29 -08:00
John Wilkins
54d5ed3732 doc: Fixed index syntax.
Signed-off-by: John Wilkins <jowilkin@redhat.com>
2014-12-02 11:23:00 -08:00
John Wilkins
deaae3f5dd Merge pull request #3051 from ceph/wip-doc-rbd-replay
doc: Document RBD Replay

Reviewed-by: John Wilkins <jowilkin@redhat.com>
2014-12-02 11:09:13 -08:00
John Wilkins
b1aa23ee6e Merge pull request #3060 from ktdreyer/doc-os-recommendations-centos-7
doc: add CentOS 7 to recommended OSes

Reviewed-by: John Wilkins <jowilkin@redhat.com>
2014-12-02 11:07:07 -08:00
Ken Dreyer
3012c4a097 doc: add CentOS 7 to recommended OSes
CentOS 7 was missing from the list of recommended OSes for Firefly. Add
it to the list.

Reported-By: Frank Even <lists+ceph.com@elitists.org>
Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
2014-12-02 11:53:54 -07:00
Yehuda Sadeh
06fe0f6ff4 Merge pull request #2993 from theanalyst/s3/keystone-date-fixes
rgw: check for timestamp for s3 keystone auth

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2014-12-02 09:39:02 -08:00
Loic Dachary
2604ae0907 Merge pull request #3058 from nilamdyuti/wip-doc-ceph-disk
doc: Adds man page for ceph disk in TOC.

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2014-12-02 18:16:56 +01:00
Nilamdyuti Goswami
6862891c9c doc: Adds man page for ceph disk in TOC.
Signed-off-by: Nilamdyuti Goswami <ngoswami@redhat.com>
2014-12-02 22:34:57 +05:30
John Spray
adaa291e81 Merge pull request #3056 from ceph/wip-9997-1
client: invalidate kernel dentries one by one

Reviewed-by: John Spray <john.spray@redhat.com>
2014-12-02 14:19:06 +00:00
Yan, Zheng
491da5173f client: invalidate kernel dentries one by one
Our trick to trim the whole kernel dentry tree does not work for 3.18+ kernel.
The fix is trim kernel dentries one by one.

Fixes: #9997
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2014-12-02 21:49:02 +08:00
John Spray
017f669cdb Merge pull request #3052 from ceph/wip-flush-journal-fix
mds: fix race of trimming log segments

Reviewed-by: John Spray <john.spray@redhat.com>
2014-12-02 13:18:10 +00:00
Loic Dachary
d0641b0e85 Merge pull request #2994 from dachary/wip-10175-compile-dependencies
script replacement for deps.{rpm,deb}.txt

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Thorsten Behrens <tbehrens@suse.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@redhat.com>
2014-12-02 10:32:15 +01:00
Yan, Zheng
2fa4884fd8 mds: fix race of trimming log segments
trimming old log segments can start new log segments, make sure
MDLog::trim_all() not expire newly started log segments.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
2014-12-02 16:20:21 +08:00
Sage Weil
9e3e4c8e51 Merge pull request #3041 from xiaoxichen/cleanup-noop
Cleanup noop in message

Reviewed-by: Sage Weil <sage@redhat.com>
2014-12-01 20:47:29 -08:00
Adam Crume
70e1a5dcbb doc: Document RBD Replay
Signed-off-by: Adam Crume <adamcrume@gmail.com>
2014-12-01 20:45:58 -08:00
Gregory Farnum
25fc21b837 Merge pull request #3008 from ceph/wip-10135
mon: OSDMonitor: allow adding tiers to FS pools

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2014-12-01 18:05:02 -08:00