Commit Graph

41903 Commits

Author SHA1 Message Date
Danny Al-Gaaf
258b7b9a31 rgw/rgw_rados.cc: remove dead code
CID 1274290 (#1 of 1): Logically dead code (DEADCODE)
dead_error_line: Execution cannot reach this statement return r;.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-06-01 06:59:26 +02:00
Danny Al-Gaaf
af144371f0 test/librbd/fsx.cc: reduce scope of variables
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-06-01 06:59:26 +02:00
Danny Al-Gaaf
83cb6095dd mds/MDS.cc: silence coverity DIV_BY_ZERO
Silence coverity: ls.empty() check should already imply that
ls.size() != 0.

CID 1295402 (#1 of 1): Division or modulo by zero (DIVIDE_BY_ZERO)
 divide_by_zero: In expression rand() % ls.size(), modulo by
 expression ls.size() which may be zero has undefined behavior.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-06-01 06:59:26 +02:00
Danny Al-Gaaf
958289b0f9 test/librbd/fsx.cc: fix format specifier
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-06-01 06:59:25 +02:00
Danny Al-Gaaf
b705949a61 test_internal.cc: prefer ++operator for non-primitive iter
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-06-01 06:59:25 +02:00
Danny Al-Gaaf
e60c9c2213 rgw/rgw_op.cc: prefer empty() over 'size() == 0' for emptiness check
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-06-01 06:59:25 +02:00
Danny Al-Gaaf
d312847336 librbd/internal.cc: close resource leak
Fix for:

CID 1295405 (#1 of 1): Resource leak (RESOURCE_LEAK)
 leaked_storage: Variable req_comp going out of scope leaks
 the storage it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-06-01 06:59:25 +02:00
Sage Weil
c8705e5ae5 Merge remote-tracking branch 'gh/next' 2015-05-31 12:43:33 -04:00
Sage Weil
f5a95804af unittest_ceph_argparse: test float parsing
Signed-off-by: Sage Weil <sage@redhat.com>
2015-05-31 12:43:01 -04:00
Rajesh Nambiar
4487d13cc6 Allow float value by allowing . in input value
Dont bail out if the input value happens to be .

Fixes: #11620
Signed-off-by: Rajesh Nambiar <rajesh.n@msystechnologies.com>
Tested-by: Sage Weil <sage@redhat.com>
2015-05-31 12:38:03 -04:00
Yehuda Sadeh
5652518cf8 Merge pull request #4810 from zaitcev/context_io_init_undup
rgw: Drop a redundant context_io.init

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-05-30 20:25:45 +03:00
Pete Zaitcev
55b9e4e29b rgw: Drop a redundant context_io.init
Interestingly enough, the function is not even entirely idempotent:
it prints debugging output, duplicated.

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
2015-05-30 11:19:25 -06:00
Loic Dachary
a6479e4efe Merge pull request #4812 from yuyuyu101/fix-perf-incompatible
PerfLocal: Doesnt' compile div64 for non-64 bits arch

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-05-30 16:17:46 +02:00
Haomai Wang
6fcf162dea PerfLocal: Doesnt' compile div64 for non-64 bits arch
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2015-05-30 21:13:12 +08:00
Loic Dachary
830054b419 Merge pull request #4797 from dachary/wip-11665-erasure-code-lrc
tests: add lrc tests to osd-scrub-repair.sh

Reviewed-by: Shylesh Kumar <shmohan@redhat.com>
2015-05-30 12:19:59 +02:00
Kefu Chai
17855b4288 Merge pull request #4799 from dachary/wip-install-deps
install-deps.sh: robust pip and wheel installation

Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-05-30 17:47:36 +08:00
Loic Dachary
8199e0064b install-deps.sh: do not store pip cache outside of the tree
Signed-off-by: Loic Dachary <ldachary@redhat.org>
2015-05-30 11:00:56 +02:00
Sage Weil
013f9af82c Merge pull request #4727 from tchaikov/wip-osdmaptool-dump-tree-with-format
osdmaptool: dump tree with given format

Reviewed-by: Sage Weil <sage@redhat.com>
2015-05-29 17:43:54 -07:00
Loic Dachary
bbf75f811c install-deps.sh: keep debian alternatives
Instead of removing the | when an alternative is found in the control
file such as

     cryptsetup-bin | cryptsetup

remove the surrounding spaces so that it is treated as a regular
expression that matches either one.

Replace the form

    sudo bash -c "FOO=bar ..."

with

    sudo env FOO=bar ...

to reduce the levels of shell escaping.

Reported-by: http://dyweni.com/
Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-29 23:55:01 +02:00
Loic Dachary
cbc96a08d0 install-deps.sh: robust pip and wheel installation
The wheel and pip module must not only be installed in each wheelhouse
directory for tox to find. They must also be installed in the virtual
environment that populates the wheelhouse directory. Otherwise older pip
modules such as the one found by default on Ubuntu 12.04 will fail.

Python 2.7.3 on Ubuntu 12.04 also requires that distribute >= 0.7.3 is
installed although it is redundant with setuptools, otherwise it will
fail to run the wheel module.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-29 23:43:06 +02:00
Sage Weil
64096b8709 Merge pull request #4805 from athanatos/wip-11787
Wip 11787

Reviewed-by: Sage Weil <sage@redhat.com>
2015-05-29 14:21:52 -07:00
Samuel Just
33150c509d Merge remote-tracking branch 'upstream/wip-txn-noappend-sam-rebased'
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
2015-05-29 14:20:29 -07:00
Sage Weil
d07100b660 Merge pull request #4526 from athanatos/wip-11296
Wip 11296

Reviewed-by: Sage Weil <sage@redhat.com>
2015-05-29 14:19:44 -07:00
Samuel Just
8a95f13a69 Merge remote-tracking branch 'upstream/wip-11493'
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2015-05-29 14:17:42 -07:00
Sage Weil
315260a58c Merge pull request #4803 from athanatos/wip-11677
Wip 11677 -- fixes for rw rados ops with snaps

Reviewed-by: Sage Weil <sage@redhat.com>
2015-05-29 14:11:12 -07:00
Samuel Just
be873eb8da ReplicatedPG::release_op_ctx_locks: requeue in scrub queue if blocked
Otherwise we can reorder an op around another op which got blocked by a
scrub which started after the first blocked on an obc.

Fixes: #11691
Signed-off-by: Samuel Just <sjust@redhat.com>
2015-05-29 14:09:11 -07:00
Samuel Just
5c2b795724 ReplicatedPG::finish_ctx: take excl lock if operation is rw
Fixes: #11677
Signed-off-by: Samuel Just <sjust@redhat.com>
2015-05-29 14:09:05 -07:00
Sage Weil
f9ce2d78cf Merge pull request #4804 from athanatos/wip-11771
osd_types::is_new_interval: size change triggers new interval

Reviewed-by: Sage Weil <sage@redhat.com>
2015-05-29 14:03:36 -07:00
Samuel Just
d7fabebf84 Merge pull request #4070 from ceph/wip-chain-xattr
os/chain_xattr: cope with xfs limit of 254 bytes for inlined xattrs.

Reviewed-by: Haomai Wang <haomaiwang@gmail.com>
Reviewed-by: Ning Yao <zay11022@gmail.com>
2015-05-29 10:57:29 -07:00
Samuel Just
2b28150765 Merge pull request #4059 from majianpeng/copyget-digest
Replicated: For COPY_GET, only src has data/omap digest, the dst can do.

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
2015-05-29 10:41:12 -07:00
Samuel Just
3e072c9032 Merge pull request #3253 from majianpeng/bug-fix
cleanup code for wbthrottle.

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2015-05-29 10:31:21 -07:00
John Spray
891e9b17dc Merge pull request #4800 from hjwsm1989/journaler
osdc/Journaler.h: fix ceph_file_layout dump error in journaler::dum…

Reviewed-by: John Spray <john.spray@redhat.com>
2015-05-29 12:39:12 +02:00
Loic Dachary
a10bd899d1 Merge pull request #4794 from XinzeChi/wip-kill-sleep
test: check daemon is alive or not agagin when sleep 60s

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-05-29 10:56:54 +02:00
huangjun
8a6d626c63 osdc/Journaler.h: fix ceph_file_layout dump error in journaler::dump().
Signed-off-by: huangjun <hjwsm1989@gmail.com>
2015-05-29 16:11:11 +08:00
Xinze Chi
83f88e7645 commit: test: check daemon is alive or not agagin when sleep 60s
Signed-off-by: Xinze Chi <xmdxcxz@gmail.com>
2015-05-29 09:33:01 +08:00
Loic Dachary
ddcbb66d4d tests: add lrc tests to osd-scrub-repair.sh
Create an lrc erasure coded pool and run corruption and repair tests on
it.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-28 23:25:24 +02:00
Loic Dachary
77f322b63c tests: split osd-scrub-repair.sh erasure code test
The erasure code repair test is split in two function:

 * setup conditions specific to jerasure (4 osds, jerasure
   profile)

 * populate and corrupt and repair the erasure coded pool,
   with one or two failures.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-28 23:25:19 +02:00
Loic Dachary
70e069d272 tests: cosmetic move of functions in osd-scrub-repair.sh
Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-28 22:38:08 +02:00
Loic Dachary
28820d1cd6 erasure-code: s/unreocvery/unfound/
Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-28 22:35:08 +02:00
Yehuda Sadeh
7b4ee4060a Merge pull request #4796 from SUSE/wip-release-notes-fixup
doc: release-notes.rst: fix typo and delete superfluous sentence

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-05-28 21:02:14 +03:00
Nathan Cutler
8b78371877 doc: release-notes.rst: fix typo and delete superfluous sentence
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2015-05-28 19:29:58 +02:00
Ken Dreyer
9844320371 Merge pull request #4786 from dachary/wip-11546-debian-packages
debian/control: ceph-dbg steals ceph-objectstore-tool from ceph-test-dbg

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
2015-05-28 11:09:07 -06:00
Loic Dachary
6f11fbf41f debian: ceph-dbg steals ceph-objectstore-tool from ceph-test-dbg
When ceph-objectstore-tool was moved from ceph-test to
ceph by 61cf5da0b5, the ceph package in
debian/control was updated accordingly, as recommended by
https://www.debian.org/doc/debian-policy/ch-relationships.html#s-replaces

The same must be done for the ceph-dbg package because
/usr/lib/debug/usr/bin/ceph-objectstore-too is no longer in
ceph-test-dbg.

Although the change was merged may 6th, 2015
8f23382064, teuthology jobs were not
always failing because packages were not systematically upgraded during
the installation. The missing dependencies that were responsible for
this upgrade problem were fixed by
f898ec1e4e on may 18th, 2015 and all
upgrade tests relying on ceph-*-dbg packages started to fail
systematically after this date.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-28 15:50:02 +02:00
Loic Dachary
dbd9a87ec1 Merge pull request #4787 from yuyuyu101/fix-perf-i386
PerfLocal: fix i386 compatible with perf_local

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-05-28 15:31:22 +02:00
Yehuda Sadeh
77e0084028 Merge pull request #4309 from prallabh/master
RGW: Make RADOS handles in RGW to be a configurable option

Passed rgw teuthology suite run.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-05-28 04:41:41 -07:00
Loic Dachary
729c5e1c0e Merge pull request #4789 from yehudasa/wip-11442-notes
rgw: update release notes with regard to issue #11442 recovery

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-05-28 12:28:18 +02:00
Yehuda Sadeh
926f2dfef6 rgw: update release notes with regard to issue #11442 recovery
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-05-28 03:07:02 -07:00
Haomai Wang
0b5944ae6c PerfLocal: fix i386 compatible with perf_local
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2015-05-28 17:25:30 +08:00
Loic Dachary
b80e214407 Merge pull request #4785 from tchaikov/wip-doc-fixes
doc: typo fixes

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-05-28 11:01:51 +02:00
Kefu Chai
a808c814b0 osdmap, mon: switch the params of print_tree()
* change from
    print_tree(ostream*, Formatter*)
  to
    print_tree(Formatter*, ostream*)
  this is more consistent with other map's print
  functions. e.g.
    MDSMap::print_summary(Formatter *f, ostream *out)
* and in print_tree(Formatter* f, ostream* os),
  - `f` and `os` will be mutual exclusive.
  - will assert(0) if both of them are NULL.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-05-28 01:39:35 -07:00