Commit Graph

50475 Commits

Author SHA1 Message Date
Orit Wasserman
d720540eef Merge pull request #7929 from yehudasa/wip-submodules-fix
submodules: revert an accidental change

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
2016-03-04 16:47:22 +01:00
Samuel Just
fc88f488ce Merge pull request #7910 from ceph/wip-14955
buffer: increment history alloc as well in raw_combined

Reviewed-by: Sage Weil <sage@redhat.com>
2016-03-04 07:02:47 -08:00
Yehuda Sadeh
2f7d1c9d2c submodules: revert an accidental change
revert changes that went in in commit f1ac0de5bf.
This affects ceph-erasure-code-corpus, civetweb

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-03-04 06:54:49 -08:00
Orit Wasserman
2fe0f8eb54 Merge pull request #7916 from ceph/wip-14975
rgw: adjust error code when bucket does not exist in copy operation
rgw: don't override error when initializing zonegroup

Fixes: #14975

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
2016-03-04 12:25:37 +01:00
Yehuda Sadeh
155a53d649 Merge pull request #7786 from ceph/wip-rgw-indexless
rgw: indexless buckets (Yehuda Sadeh)

 - can define a policy, for which buckets are indexless
 - users can then create buckets under the specified placement target
 - indexless buckets will not be synced across zones
 - does not work with (s3) versioned buckets

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-03-03 14:18:25 -08:00
Yehuda Sadeh
b7d022f61a rgw: indexless buckets
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-03-03 14:06:19 -08:00
Yehuda Sadeh
f1ac0de5bf rgw: configurable index type
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-03-03 14:04:19 -08:00
Yehuda Sadeh
905b1d9aa9 rgw: don't override error when initializing zonegroup
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-03-03 13:56:37 -08:00
Yehuda Sadeh
0b48c8688b rgw: adjust error code when bucket does not exist in copy operation
Fixes: #14975

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-03-03 13:49:39 -08:00
Yehuda Sadeh
bc60ba3ea9 Merge pull request #7764 from rzarzynski/wip-rgw-etag-dlo
rgw: multiple improvements regarding etag calculation for SLO/DLO of Swift API.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-03-03 13:43:27 -08:00
Samuel Just
1335871f3f buffer: increment history alloc as well in raw_combined
Introduced in 73dcd26fc8

Fixes: #14955
Signed-off-by: Samuel Just <sjust@redhat.com>
2016-03-03 11:07:29 -08:00
Sage Weil
be3544f162 Merge remote-tracking branch 'gh/jewel' 2016-03-03 13:35:13 -05:00
Sage Weil
ea45099808 v10.0.4
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-03 13:34:46 -05:00
Loic Dachary
3a1b307d4d Merge pull request #7897 from branch-predictor/bp-bench-errors-fatal
common/obj_bencher.cc: make verify error fatal

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2016-03-03 23:15:45 +07:00
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
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