Commit Graph

34357 Commits

Author SHA1 Message Date
Samuel Just
e1fc96f713 Merge pull request #2071 from somnathr/wip-sd-cpu-optimized
Wip sd cpu optimized

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-07-11 14:42:48 -07:00
Samuel Just
f9d0e8ff10 Merge pull request #2088 from guangyy/wip-8733
Fix the PG listing issue which could miss objects for EC pool

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-07-11 10:20:04 -07:00
Sage Weil
bf048976f5 Merge pull request #2092 from onlyjob/rbdmap
rbdmap: per-device mount (Closes: #8538)

Reviewed-by: Sage Weil <sage@redhat.com>
2014-07-11 09:03:03 -07:00
Dmitry Smirnov
b844ec93c5 rbdmap: per-device mount (Closes: #8538)
`/etc/init.d/rbdmap start` was doing `mount -a`. Although (arguably)
`mount -a -O _netdev` could be less disruptive, it's not RBD mapping job to
mount unrelated devices and potentially do it at the wrong time.

Solution is to call `mount {device}` which works as expected and mounts
device even if it given in form `mount /dev/rbd/pool/imagename` while
`/etc/fstab` uses UUID or LABEL notation.

Furthermore this commit

 * fixes global exit code (it was always 0): now it is 0 only when
   all devices were (un)mounted successfully; otherwise non-zero.
 * replaces `mount -a` with per-device post-mapping `mount {dev}`
 * show mapping progress using LSB functions per device instead of for
   {start|stop} invocation.
 * capture output of `(u)mount` (if any) and report it as "info".

Signed-off-by: Dmitry Smirnov <onlyjob@member.fsf.org>
2014-07-11 19:50:24 +10:00
Ma, Jianpeng
02683ac6e8 rbd.cc: Check io-size avoid floating point exception.
In func do_bench_write if io_size is zero,it can cause floating point execption.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-07-10 17:59:18 -07:00
Sage Weil
026b127aa9 doc/changelog/v0.80.2: include tag
Signed-off-by: Sage Weil <sage@inktank.com>
2014-07-10 13:24:08 -07:00
Somnath Roy
74f5e5e9dc PG::op_must_wait_for_map: pass the epoch rather than the map
have_same_or_newer_map is also modified to accept epoch instead of
map.

Signed-off-by: Somnath Roy <somnath.roy@sandisk.com>
2014-07-10 12:00:20 -07:00
John Wilkins
60f27a2602 Merge branch 'master' of https://github.com/ceph/ceph 2014-07-10 11:30:41 -07:00
John Wilkins
98f92d84d6 doc: Added CentOS/RHEL install for git.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-07-10 11:30:00 -07:00
Sage Weil
115c07857c rgw: modelines
Signed-off-by: Sage Weil <sage@inktank.com>
2014-07-10 10:54:51 -07:00
John Wilkins
0839e2a6de doc: Added keyring location note to resolve pull abandoned pull request #1946.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-07-10 08:05:42 -07:00
Guang Yang
228760ce3a Fix the PG listing issue which could miss objects for EC pool (where there is object shard and generation).
Backport: firefly
Signed-off-by: Guang Yang (yguang@yahoo-inc.com)
2014-07-10 01:05:40 +00:00
John Wilkins
bd6ba10042 doc: Clean up formatting, usage and removed duplicate section.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-07-09 17:18:03 -07:00
Sage Weil
15d5b514cc doc/release-notes: v0.80.2
Signed-off-by: Sage Weil <sage@redhat.com>
2014-07-09 17:12:39 -07:00
John Wilkins
7e3ad1a6fc Merge pull request #1905 from leseb/doc-rbd-icehouse
doc: rbd icehouse updated. Need to remove duplicate section.

Reviewed-by: John Wilkins <john.wilkins@inktank.com>
2014-07-09 16:27:52 -07:00
John Wilkins
8a0e498c78 Merge pull request #2087 from theanalyst/doc/typo-fix
doc: Fixing a few typos in docs

Reviewed-by: John Wilkins <john.wilkins@inktank.com>
2014-07-09 16:05:57 -07:00
Greg Farnum
c15e524169 Revert "qa: add an fsx run which turns on kernel debugging"
This reverts commit 29c33f0c05.
We don't need the debugging any more, and having two separate fsx runners
already caused one update-in-the-wrong-place issue.

Signed-off-by: Greg Farnum <greg@inktank.com>
2014-07-09 10:49:59 -07:00
Abhishek Lekshmanan
2217f2bd0a doc: fix a typo in quickstart doc
* doc/start/documenting-ceph.rst: s/along side/alongside

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-07-09 11:18:49 +05:30
Abhishek Lekshmanan
7a0ea798cf doc: fix a few typos in radosgw docs
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-07-09 11:18:09 +05:30
Abhishek Lekshmanan
d0892831f9 doc: fix a few typos in rados docs
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-07-09 11:15:08 +05:30
Abhishek Lekshmanan
cc5c33f566 doc: fix a few typos in the dev docs
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-07-09 11:05:46 +05:30
Abhishek Lekshmanan
e23ed9b7dc doc: fix a few typos in rbd docs
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-07-09 10:58:59 +05:30
Abhishek Lekshmanan
d693d7bf7b doc: Fix a few typos in the install docs
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-07-09 10:47:51 +05:30
Abhishek Lekshmanan
bb881e53da doc: fix a few typos in architecture page
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-07-09 10:28:35 +05:30
Abhishek Lekshmanan
fcbdd2fe9f doc: Fix a typo in the rbd man page
's/specifially/specifically'

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-07-09 10:27:41 +05:30
Sage Weil
a2164e73c0 Merge pull request #2029 from ceph/wip-8523
mon: OSDMonitor: add 'osd pool get-quota' command

Reviewed-by: Sage Weil <sage@redhat.com>
2014-07-08 17:56:54 -07:00
Sage Weil
7756a136d2 Merge remote-tracking branch 'gh/next' 2014-07-08 11:45:22 -07:00
Joao Eduardo Luis
b927c0de7d qa/workunits: cephtool: test for 'osd pool {get,set}-quota'
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-07-08 19:33:14 +01:00
Joao Eduardo Luis
714a9bb5a0 mon: OSDMonitor: add 'osd pool get-quota' command
Enables us to obtain current quotas for a given pool.

Fixes: #8523

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-07-08 19:33:14 +01:00
Samuel Just
abb59aced8 Merge pull request #2076 from cernceph/wip-wbthrottle-perfcounters
decrement WBThrottle perfcounters in clear_object

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-07-08 10:25:20 -07:00
Sage Weil
e553c3414b Merge pull request #2082 from ceph/wip-8727
messages: MForward: fix compat version

Reviewed-by: Sage Weil <sage@redhat.com>
2014-07-08 10:05:33 -07:00
Joao Eduardo Luis
c92feebb81 messages: MForward: fix compat version
A while ago we bumped the head version and reset the compat version to 0.
Doing this so happens to make the messenger assume that the message does
not support the compat versioning and sets the compat version to the head
version -- thus making compat = 2 when it should have been 1.

The nasty side-effect of this is that upgrading from emperor to firefly
will have emperor-leaders being unable to decode forwarded messages from
firefly-peons.

Fixes: #8727

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-07-08 16:46:27 +01:00
Sage Weil
59379a4583 Merge pull request #2081 from ceph/wip-osd-leaks
osd: fix several memory leaks from fast dispatch

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-07-07 21:08:21 -07:00
Sage Weil
0bf4f652b7 osd: clear sessions_waiting_on_map on shutdown
Wake up these ops and drop the Session refs on shutdown.

Signed-off-by: Sage Weil <sage@inktank.com>
2014-07-07 16:17:47 -07:00
Sage Weil
aefbac5e43 osd: fix session leak when waiting on map
We don't want to leak the Session if this Session is already waiting on
a map.

Introduced by eb30f88c94.

Signed-off-by: Sage Weil <sage@inktank.com>
2014-07-07 16:17:47 -07:00
Gregory Farnum
ca1dc3c9dc Merge pull request #2037 from ceph/wip-async-log
MDS: Encode log events in a separate thread from main execution.

This is a first small step in multi-threading the MDS daemon.

Reviewed-by: Greg Farnum <greg@inktank.com>
2014-07-07 15:37:13 -07:00
Sage Weil
17ad083145 osd: clear Sessions for loopback Connections on shutdown
Starting with the fast dispatch patches, we are calling the handle_connect
on loopback.  Make sure we zap them on shutdown to break the Session <->
Connection ref cycle.

Signed-off-by: Sage Weil <sage@inktank.com>
2014-07-07 15:12:10 -07:00
Sage Weil
231fe1b685 Revert "OSD: move waiting_for_pg into Session"
This reverts commit ecda2fef8c.

This leaves Session* refs indefinitely in the map.

This was one source of #7995.

Signed-off-by: Sage Weil <sage@inktank.com>
2014-07-07 15:11:30 -07:00
Sage Weil
083f9fe445 Merge pull request #2080 from ceph/wip-8306-rebase
Wip 8306 rebase

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
2014-07-07 14:52:17 -07:00
Greg Farnum
aa1be2e306 OSD: fix debug logging output
The snapmapper and infos statements were backwards. Now they aren't.

Signed-off-by: Greg Farnum <greg@inktank.com>
2014-07-07 14:10:07 -07:00
Sage Weil
0f74299543 Merge pull request #2078 from ceph/wip-8751
test: generalise default_pools in test_rados

Reviewed-by: Sage Weil <sage@redhat.com>
2014-07-07 13:23:25 -07:00
Dan Mick
b700963071 ceph.spec.in: add bash completion file for radosgw-admin
Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2014-07-07 13:12:41 -07:00
Dan Mick
235e4c7de8 ceph.spec.in: rhel7-related changes:
udev rules: /lib -> /usr/lib
/sbin binaries move to /usr/sbin or %{_sbindir}

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2014-07-07 13:12:41 -07:00
Dan Mick
7cf8132239 Fix/add missing dependencies:
- rbd-fuse depends on librados2/librbd1
- ceph-devel depends on specific releases of libs and libcephfs_jni1
- librbd1 depends on librados2
- python-ceph does not depend on libcephfs1

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2014-07-07 13:12:23 -07:00
Dan Mick
ec8af52a5e ceph.spec.in: whitespace fixes
Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2014-07-07 13:11:14 -07:00
Dan Mick
e131b9d5a5 ceph.spec.in: split out ceph-common as in Debian
Move files, postun scriptlet, and add dependencies on ceph-common
where appropriate

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2014-07-07 13:09:50 -07:00
John Spray
cca5841c40 test: generalise default_pools in test_rados
Instead of fragile assumptions about what pools
do or do not exist by default, simply use what
exists at test setup time as a baseline.

Fixes: #8751

Signed-off-by: John Spray <john.spray@redhat.com>
2014-07-07 18:19:46 +01:00
Sage Weil
768d48f6ef Merge pull request #2074 from onlyjob/docs
doc: mention kernel support for rbd format 2

Reviewed-by: Sage Weil <sage@redhat.com>
2014-07-07 09:07:04 -07:00
Sage Weil
a2337474f5 Merge pull request #2077 from ceph/wip-8754
tests: don't depend on 'data' pool in rbd test

Reviewed-by: Sage Weil <sage@redhat.com>
2014-07-07 09:04:57 -07:00
John Spray
a7a631d1e2 tests: don't depend on 'data' pool in rbd test
Since we removed the default 'data' and 'metadata' pools,
tests which need a pool should create it themselves.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-07-07 15:45:54 +01:00