Commit Graph

50519 Commits

Author SHA1 Message Date
Piotr Dałek
658bba85c4 common/obj_bencher.cc: make verify error fatal
When run without "--no-verify", all verification errors are noted,
but they are not forwarded/reported anywhere else but to cerr, which
will cause automated testing to ignore them. Make seq_read_bench and
rand_read_bench return -EIO on any verification error which will,
in turn, return it back to caller.

Fixes: #14971
Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
2016-03-03 16:04:12 +01:00
Sage Weil
799ea24b42 Merge pull request #7757 from ukernel/jewel-14684
mon/MDSMonitor.cc: properly note beacon when health metrics changes

Reviewed-by: John Spray <john.spray@redhat.com>
2016-03-03 09:37:50 -05:00
Sage Weil
9483cae681 Merge pull request #7882 from branch-predictor/bp-unconfuse-health-1
mon: unconfuse object count skew message

Reviewed-by: Sage Weil <sage@redhat.com>
2016-03-03 09:15:29 -05:00
Piotr Dałek
f792a3f613 PGMonitor: unconfuse object count skew message
"Pool <pool> has too few pgs" is okay assuming it does not take other
pools into account. And since it does, it is confusing in the following
scenario:

1. Create two pools, one with small pg count and one with large
   pg count
2. Put a whole lot of objects in smaller pool, resulting in "too few
   pgs" warning on that pool, which is expected behavior.
3. Put a whole lot of objects in larger pool, warning goes away.
   Suddenly smaller pool has plenty of PGs?

Current message suggests adding more nodes (or PGs) to pool, when
actually it's warning about significantly more objects in that
particular pool than in the other pools.

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
2016-03-03 15:01:56 +01:00
John Spray
353edf44d1 Merge pull request #7898 from oritwas/wip-cmake-add-fs_types
cmake: add common/fs_types.cc to libcommon

Reviewed-by: John Spray <john.spray@redhat.com>
2016-03-03 13:54:25 +00:00
Sage Weil
8ce41ccc91 Merge pull request #7881 from aclamk/ceph-df-used-fix
mon: fix calculation of %USED

Reviewed-by: Sage Weil <sage@redhat.com>
2016-03-03 08:51:50 -05:00
Sage Weil
9127a4c707 Merge pull request #7892 from majianpeng/bluestore-leak-unwritten-extent
osd: bluestore: fix check for write falling within the same extent

Reviewed-by: Sage Weil <sage@redhat.com>
2016-03-03 08:49:17 -05:00
Sage Weil
a9db6ee7e5 Merge pull request #7886 from stiopaa1/blueStoreOverrides
osd: bluestore: add 'override' to virtual functions

Reviewed-by: Sage Weil <sage@redhat.com>
2016-03-03 08:41:21 -05:00
Sage Weil
84747dcbf4 Merge pull request #7895 from majianpeng/bluestore-trim-overlay
os/bluestore/BlueStore: Don't leak trim overlay data before write.
2016-03-03 08:40:21 -05:00
Jianpeng Ma
fcc459c8af os/bluestore/BlueStore: Don't leak trim overlay data before write.
Suppose: bluestore_overlay_max_length=bluestore_min_alloc_size;
bluestore_overlay_max = 2;
For the following ops:
write(off=0, len=4096) --->write into overlay
write(off=4096, len=4096)-->write into overlay
write(off=0, len=bluestore_min_alloc_size)-->because overlay_map.size()
>=2, it allocate a extent.

It should trim overlay data(0,4096) &(4096, 4096),and then write(0,
bluestore_min_alloc_size).
But the original code don't trim overlay data.
This make the later read data is orignal data rather that new data.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2016-03-03 21:46:55 +08:00
Orit Wasserman
a7a65e7add cmake: add common/fs_types.cc to libcommon
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
2016-03-03 14:17:21 +01:00
Jianpeng Ma
b0b4b6de36 os/bluestore/BlueStore: Fix bug when calc offset & end whether locate in the a extent.
Suppose: bluestore_overlay_max_length == bluestore_min_alloc_size
The orignal code which calc content of written whether locate in a
extent:
(offset / min_alloc_size) == (offset + length) /min_alloc_size
This will make the case which offset=0 & length =min_alloc_size locate
in the different extent.
In fact, this content is in the same extent.

Change end = offset + length - 1 make work.

Fixes: #14954

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2016-03-03 18:58:04 +08:00
Piotr Dałek
cd4961581a common/obj_bencher.cc: use more readable constant instead of magic number
When clean_up_slow() fails, it returns "-5" which is equal to -EIO.
Change it in source, so it's not confusing for someone who does not
remember all error codes (functionality remains the same).

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
2016-03-03 11:22:57 +01:00
Gregory Farnum
22417925fe Merge pull request #7098 from liewegas/wip-file-layout
mds, client: add namespace to file_layout_t (previously ceph_file_layout)

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-03-02 19:15:18 -08:00
Michal Jarzabek
83e77cf165 Bluestore.h:Added 'override' to virtual functions
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
2016-03-02 22:14:30 +00:00
Casey Bodley
d793c6ab7c test/rgw: add multisite test for meta sync across periods
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-03-02 15:42:32 -05:00
Casey Bodley
045ad3d2a5 Merge pull request #7849 from ceph/wip-cmake
Wip cmake
2016-03-02 14:08:53 -05:00
Ali Maredia
d8cfef9d30 cmake: simplified heap_profiler_objs dependencies
The heap_profiler object library only needs to be
added to mon,mds, and osd instead of the numerous
targets it is part of

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-03-02 13:37:40 -05:00
Sage Weil
3e41cfde77 client/Inode: fix has_dir_layout
Compare to default file_layout_t() -- not zeroed memory.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-02 12:29:12 -05:00
branto1
fb1b291ef6 Merge pull request #7867 from SUSE/wip-14940
RPM: move %post(un) ldconfig calls to ceph-base

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
2016-03-02 18:26:13 +01:00
Orit Wasserman
e09863b494 Merge pull request #7869 from rzarzynski/wip-rgw-aws4-puthash
rgw: calculate payload hash in RGWPutObj_ObjStore only when necessary.

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
2016-03-02 18:08:48 +01:00
Sage Weil
2786f0bf11 Merge remote-tracking branch 'gh/jewel' 2016-03-02 09:22:28 -05:00
Sage Weil
67696f0bec Merge pull request #7612 from liewegas/wip-buffer-combined
buffer: raw_combined allocations buffer and ref count together

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-03-02 08:31:08 -05:00
Sage Weil
c4f68ade15 Merge pull request #7690 from xiexingguo/xxg-wip-14804
common/TrackedOp: fix inaccurate counting for slow requests

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-03-02 08:30:26 -05:00
Sage Weil
b7a3217b45 Merge pull request #7704 from xiexingguo/xxg-wip-14814
osd: filestore: fix wrong scope of result code for error cases during mkfs

Reviewed-by: Sage Weil <sage@redhat.com>
2016-03-02 08:29:54 -05:00
Sage Weil
c25a8a22a7 Merge pull request #7812 from xiexingguo/xxg-wip-14872
osd: fix wrong return type of find_osd_on_ip()

Reviewed-by: Sage Weil <sage@redhat.com>
2016-03-02 08:29:09 -05:00
Haomai Wang
8889d0c7da Merge pull request #7815 from branch-predictor/bp-conditional-crc
msg/async: don't calculate msg header crc when not needed

Reviewed-by: Haomai Wang <haomai@xsky.com>
2016-03-02 21:28:40 +08:00
Sage Weil
1137c4ea8c Merge pull request #7711 from xiexingguo/xxg-wip-14817
osd: filestore: fix result code overwritten for clone

Reviewed-by: Sage Weil <sage@redhat.com>
2016-03-02 08:28:03 -05:00
Sage Weil
9576b0c22b Merge pull request #7790 from tchaikov/wip-log-segv
log: segv in a portable way

Reviewed-by: Nathan Cutler <ncutler@suse.com>
2016-03-02 08:27:36 -05:00
Sage Weil
e6fed056e8 Merge pull request #7842 from xiexingguo/xxg-wip-14921
osd: fix overload of '==' operator for pg_stat_t

Reviewed-by: Sage Weil <sage@redhat.com>
2016-03-02 08:26:30 -05:00
Adam Kupczyk
71c4e525f2 [MON] Fixed calculation of %USED. Now it is shows (space used by all replicas)/(raw space available on OSDs). Before it was (size of pool)/(raw space available on OSDs).
Signed-off-by: Adam Kupczyk akupczyk@mirantis.com
2016-03-02 12:31:01 +01:00
Kefu Chai
389ecbbc2a Merge pull request #7390 from badone/wip-13829
common: Allow OPT_INT settings with negative values

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
2016-03-02 11:22:24 +08:00
Kefu Chai
6e9f049bba Merge pull request #7854 from yehudasa/wip-authors-update
AUTHORS: update email

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-03-02 10:18:25 +08:00
Josh Durgin
a7470c80ec Merge pull request #7846 from dillaman/wip-14551
rbd: update default image features

Conflicts:
	PendingReleaseNotes (trivial)
2016-03-01 17:18:04 -08:00
Josh Durgin
0c965e76d8 Merge pull request #7841 from dillaman/wip-14550
rbd: deprecate image format 1

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-03-01 17:18:18 -08:00
Josh Durgin
2da7196b49 Merge pull request #7839 from dillaman/wip-14809
librbd: remove last synchronous librados calls from open/close state machine

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-03-01 17:18:05 -08:00
Josh Durgin
928c2e4d08 Merge pull request #7785 from dillaman/wip-14822
librbd: journal replay needs to support re-executing maintenance ops

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-03-01 17:17:50 -08:00
Josh Durgin
939984f798 Merge pull request #7776 from dillaman/wip-librbd-journal-tweaks
journal: improve commit position tracking

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-03-01 17:17:31 -08:00
Ali Maredia
61026c872b cmake: Turned LTTng OFF
This is temporary, until a way to stop repetitive
unecessary generation of headerfiles is figured out.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-03-01 18:11:39 -05:00
Nathan Cutler
13a5aac669 RPM: move scriptlets from ceph to ceph-base
This addresses the following RPMLINT error:

ceph-base.x86_64: E: library-without-ldconfig-postun (Badness:
300) /usr/lib64/libosd_tp.so.1.0.0
ceph-base.x86_64: E: library-without-ldconfig-postun (Badness:
300) /usr/lib64/libos_tp.so.1.0.0
This package contains a library and provides no %postun scriptlet
containing a call to ldconfig.

ceph-base.x86_64: E: library-without-ldconfig-postin (Badness:
300) /usr/lib64/libosd_tp.so.1.0.0
ceph-base.x86_64: E: library-without-ldconfig-postin (Badness:
300) /usr/lib64/libos_tp.so.1.0.0
This package contains a library and provides no %post scriptlet
containing a call to ldconfig.

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

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2016-03-01 22:27:47 +01:00
Yehuda Sadeh
c6f317b4fa AUTHORS: update email
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-03-01 13:07:46 -08:00
Radoslaw Zarzynski
55eeee93c5 rgw: calculate payload hash in RGWPutObj_ObjStore only when necessary.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-03-01 21:55:44 +01:00
Samuel Just
c1e41afb84 Merge pull request #7767 from athanatos/wip-sam-journal-throttle-4
osd: filestore: restructure journal and op queue throttling

Reviewed-by: Samuel Just <sjust@redhat.com>
2016-03-01 12:51:15 -08:00
James Liu
da84cbad3c os/kstore: Latency breakdown in each stage of transaction for Kstore
Signed-off-by: James Liu <james.liu@ssi.samsung.com>
2016-03-01 10:29:36 -08:00
Yan, Zheng
72ff3421b8 mds: deny access to file with pool_ns layout if feature is missing
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2016-03-01 11:18:18 -05:00
Yan, Zheng
00a1394247 mds: fix inodestat size calculation
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2016-03-01 11:18:18 -05:00
Yan, Zheng
a524df2fc8 mds: properly purge backtrace object
backtrace objects are always in default namespace

Signed-off-by: Yan, Zheng <zyan@redhat.com>
2016-03-01 11:18:18 -05:00
Yan, Zheng
8e728fca84 messages/MClientCaps: fix decoding
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2016-03-01 11:18:18 -05:00
Sage Weil
1de6e940d0 mds/Server: fix whitespace
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 11:18:17 -05:00
Sage Weil
e7ead6a535 mds/Locker: fix Session leak on access denial
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 11:18:17 -05:00