Commit Graph

71740 Commits

Author SHA1 Message Date
Samuel Just
e4c7ecea4a PG::GetInfo: remove logic for detecting intervals without complete peers
c7d92d1d3f introduced this back when
the acting set could contain incomplete peers during backfill.  That
hasn't been true since dumpling.  Now, any interval where the acting
set contains an incomplete peer cannot possibly go active.  Thus, it
can't change last_epoch_started or history.last_epoch_started.  Thus,
even though choose_acting omits incomplete peers, the answer can't
change.

Signed-off-by: Samuel Just <sjust@redhat.com>
2017-04-28 11:30:38 -04:00
Samuel Just
7485f9e7cc test/osd_types.cc: fix emacs line at the top
Signed-off-by: Samuel Just <sjust@redhat.com>
2017-04-28 11:30:38 -04:00
Sage Weil
3ab8dff07f qa/suites/upgrade/jewel-x: add cache tiering + snaps workload
Signed-off-by: Sage Weil <sage@redhat.com>
2017-04-28 11:30:38 -04:00
Jan Fajerski
88d2da5e93 fs: normalize file open flags internally used by cephfs
The file open flags (O_foo) are platform specific. Normalize these flags
before they are send to the MDS. For processing of client messages the
MDS should only compare to these normalized flags.
Otherwise this can lead to bogus flags getting transmitted on ppc64.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
2017-04-28 17:29:41 +02:00
Sage Weil
d063c3dc73 qa/suites/upgrade/kraken-x/stress-split-erasure-code: fix
Signed-off-by: Sage Weil <sage@redhat.com>
2017-04-28 11:14:45 -04:00
Sage Weil
79f95bc65f qa/suites/upgrade/kraken-x/parallel: fix
Signed-off-by: Sage Weil <sage@redhat.com>
2017-04-28 11:13:50 -04:00
Sage Weil
8dfc148652 qa/suites/upgrade/jewel-x/parallel: remove stray kraken.yaml
Signed-off-by: Sage Weil <sage@redhat.com>
2017-04-28 11:13:22 -04:00
Mykola Golub
59a48daec3 Merge pull request #14848 from dillaman/wip-19798
test: remove hard-coded image name from RBD metadata test

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-04-28 17:26:39 +03:00
Sage Weil
03cf61130d include/buffer: use range-based loop
Signed-off-by: Sage Weil <sage@redhat.com>
2017-04-28 10:13:46 -04:00
Sage Weil
a07cacb9e3 Merge pull request #13315 from dang/wip-build-no-nss
cmake: Allow tests to build without NSS

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-04-28 08:47:46 -05:00
Sage Weil
bce9c53144 Merge pull request #14367 from mslovy/wip-fix-infinitloops
os/filestore: fix infinit loops in fiemap()

Reviewed-by: Sage Weil <sage@redhat.com>
2017-04-28 08:47:05 -05:00
Sage Weil
e9fb6a06e0 Merge pull request #14391 from LiumxNL/wip-170407
mon/PGMonitor: fix wrongly report "pg stuck in inactive"

Reviewed-by: Sage Weil <sage@redhat.com>
2017-04-28 08:46:47 -05:00
Sage Weil
2944c48d3f Merge pull request #14675 from ifed01/wip-bluestore-nolock
os/bluestore: eliminate some excessive stuff

Reviewed-by: Sage Weil <sage@redhat.com>
2017-04-28 08:46:23 -05:00
Nathan Cutler
e69a9763a0 tests: rados: move cephtool.yaml to new singleton/bluestore subsuite
cephtool.yaml is bluestore-only, yet it was in singleton/ which runs against a
generalized objectstore matrix.

Fixes: http://tracker.ceph.com/issues/19797
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2017-04-28 15:36:50 +02:00
Sage Weil
ae2241fb96 mon/PGMap: include pgs inactive % in summary
Signed-off-by: Sage Weil <sage@redhat.com>
2017-04-28 09:35:11 -04:00
Sage Weil
0530a24bb6 Merge pull request #14475 from liewegas/wip-message-compat-cruft
messages: remove compat cruft

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-04-28 08:30:19 -05:00
Igor Fedotov
6b457d168b os/bluestore: move TransContext finalization out of osr_lock to avoid potential contention.
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2017-04-28 04:30:25 -07:00
Igor Fedotov
ad9d87c87a os/bluestore: get rid off Onode::flush_txn set.
It looks like flushing_count counter is enough.

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2017-04-28 04:29:52 -07:00
Nathan Cutler
295f56a94c build/ops: rpm: gperftools-devel >= 2.4
There be dragons in older versions . . .

References: http://tracker.ceph.com/issues/13522
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2017-04-28 11:34:31 +02:00
Willem Jan Withagen
a1adcbbb6b test/rgw/CMakeLists.txt: Fix/delete libuuid reference
- And while there also fix direct hard curl and expat usuage

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2017-04-28 11:11:49 +02:00
huanwen ren
1cca970889 mgr: add mgr allow * to client.admin
Signed-off-by: huanwen ren ren.huanwen@zte.com.cn
2017-04-28 15:40:33 +08:00
Jesse Williamson
0aefb5af15 rgw: migrate atomic_t to std::atomic<>
Signed-off-by: Jesse Williamson <jwilliamson@suse.de>
2017-04-28 00:10:55 -07:00
Kefu Chai
c6337b4138 common/hobject: use string::append() to avoid temp object
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-04-28 14:41:42 +08:00
Kefu Chai
8f2537ff30 osd/OSDMap: should update input param if osd dne
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-04-28 14:17:54 +08:00
Kefu Chai
cd514ba8ed common/obj_bencher: silence divide by zero warning
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-04-28 14:17:54 +08:00
Kefu Chai
62797368eb test/test_async_driver: silence clang static analyzer warning
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-04-28 14:17:54 +08:00
Kefu Chai
14fc705698 bluestore: use std::atomic<uint8_t> for min_alloc_size_order
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-04-28 14:15:54 +08:00
Kefu Chai
2623fec1cd include/intarith: templatize ctz/clz/cbits helpers
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-04-28 14:15:31 +08:00
Jos Collin
4b62e74d90 arch: use __get_cpuid instead of do_cpuid
Use __get_cpuid() instead of implementing do_cpuid(). Fixed the review comments too.

Fixes: http://tracker.ceph.com/issues/7869
Signed-off-by: Jos Collin <jcollin@redhat.com>
2017-04-28 09:32:46 +05:30
Pan Liu
1e47403bfb os/filestore: use new sleep strategy when io_submit gets EAGAIN.
Signed-off-by: Pan Liu <wanjun.lp@alibaba-inc.com>
2017-04-28 11:36:46 +08:00
xie xingguo
781bd5f05f mon/PGMap: add up_primary pg number field for "pg dump osds" cmd
As follows:
[root@tecs131 ~]# ceph pg dump osds
OSD_STAT USED  AVAIL  TOTAL  HB_PEERS                                                     PG_SUM UP_PRIMARY_PG_SUM
9         118G   822G   941G    [0,1,2,4,5,7,8,10,11,12,13,15,16,17,20,21,22,23,25,27,29]    299               101
8         122G   819G   941G     [3,4,6,7,9,10,11,14,16,18,19,20,22,23,24,25,26,27,28,29]    311               107
7         124G   817G   941G        [0,1,2,3,5,6,8,9,10,12,13,14,15,17,18,19,21,24,26,28]    314               102
6         119G   821G   941G       [0,1,2,4,5,7,8,11,12,13,15,16,17,20,21,22,23,25,27,29]    311               103
5         127G   813G   941G     [3,4,6,7,9,10,11,14,16,18,19,20,22,23,24,25,26,27,28,29]    333               113
4         118G   822G   941G        [0,1,2,3,5,6,8,9,10,12,13,14,15,17,18,19,21,24,26,28]    304               127
3         124G   816G   941G       [0,1,2,4,5,7,8,11,12,13,15,16,17,20,21,22,23,25,27,29]    324               106
29        111G   829G   941G        [0,1,2,3,5,6,8,9,10,12,13,14,15,17,18,19,21,24,26,28]    282               100
17        115G   825G   941G     [3,4,6,7,9,10,11,14,16,18,19,20,22,23,24,25,26,27,28,29]    291               101
16        122G   819G   941G        [0,1,2,3,5,6,8,9,10,12,13,14,15,17,18,19,21,24,26,28]    321               104
15        105G   836G   941G     [3,4,6,7,9,10,11,14,16,18,19,20,22,23,24,25,26,27,28,29]    273                77
14        122G   819G   941G       [0,1,2,4,5,7,8,11,12,13,15,16,17,20,21,22,23,25,27,29]    316               120
13        120G   821G   941G  [3,4,6,7,9,10,11,12,14,16,18,19,20,22,23,24,25,26,27,28,29]    305                98
10        111G   829G   941G     [0,1,2,4,5,7,8,9,11,12,13,15,16,17,20,21,22,23,25,27,29]    272                67
12        126G   814G   941G  [3,4,6,7,9,10,11,13,14,16,18,19,20,22,23,24,25,26,27,28,29]    321                97
1         127G   813G   941G [0,2,3,4,6,7,9,10,11,14,16,18,19,20,22,23,24,25,26,27,28,29]    326               104

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-04-28 11:34:26 +08:00
Dan Mick
9f2e5c2418 mon/ConfigKeyService: add 'config-key dump' to show keys and vals
Signed-off-by: Dan Mick <dan.mick@redhat.com>
2017-04-27 20:09:24 -07:00
Sage Weil
a8ca3de522 libcephfs: handle path==null to ceph_get_osd_crush_location
Signed-off-by: Sage Weil <sage@redhat.com>
2017-04-27 23:06:45 -04:00
Sage Weil
97c5f7f658 librados: fix rados_pool_list when buf is null
This was the original intent, but buf==NULL wasn't documented
and only half-way implemented.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-04-27 23:02:25 -04:00
Kefu Chai
1d642f248b Merge pull request #14840 from drunkard/master
doc: style fix for doc/cephfs/client-config-ref.rst

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-04-28 10:57:53 +08:00
Drunkard Zhang
ab0310883e doc: typo fixes in doc/cephfs/client-config-ref.rst
fixed:
  Reference symbol, i.e. s/`/``/
  Hyperlink typo at ``client_trace``

Signed-off-by: Drunkard Zhang <gongfan193@gmail.com>
2017-04-28 09:53:17 +08:00
Brad Hubbard
aef2a7b6ac test: Don't dump core when using EXPECT_DEATH
Signed-off-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2017-04-28 11:49:38 +10:00
Sage Weil
ebabb5fe77 Merge pull request #14302 from liewegas/wip-19452
osdc/Objecter: handle command target that goes down

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-04-27 20:02:38 -05:00
Kefu Chai
e15fda3e84 Merge pull request #14850 from tchaikov/wip-cmake
cmake: add "container" to required boost components

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-04-28 08:57:58 +08:00
Kefu Chai
7cc515e44a mon/OSDMonitor: increase last_epoch_clean's lower bound if possible
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-04-28 08:44:46 +08:00
lu.shasha
4348ac1579 rgw: drop unused param "bucket" from select_bucket_placement
Signed-off-by: Shasha Lu <lu.shasha@eisoo.com>
2017-04-28 08:41:37 +08:00
Brad Hubbard
01625a91b5 Merge pull request #14794 from joscollin/wip-warning-simplespin
test: fixing assert that creates warning: comparison between signed and unsigned integer expressions

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
2017-04-28 10:22:39 +10:00
Casey Bodley
88b6a142bc qa/rgw: fix assertions in radosgw_admin task
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2017-04-27 19:38:10 -04:00
Kefu Chai
954f123350 mon/OSDMonitor: use emplace() to avoid creating temporary elements
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-04-28 06:25:49 +08:00
Kefu Chai
963b8d8617 mon/OSDMonitor: do not alter the "created" epoch of a pg
Fixes: http://tracker.ceph.com/issues/19787
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-04-28 06:25:49 +08:00
J. Eric Ivancich
d6b04e3db3 Add a README to explain some of the nature of git subtrees and some of
the pitfalls surrounding them.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
2017-04-27 18:18:39 -04:00
Sage Weil
f8df7d1a02 common/aio: move aio out of its wierd home in os/fs/FS.h
This never made sense.  Move it.  Fix users.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-04-27 18:08:00 -04:00
Kefu Chai
b32f1813bb cmake: add "container" to required boost components
it is used by our denc

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-04-28 05:09:08 +08:00
Sage Weil
a001e0bfa4 Merge pull request #14843 from wjwithagen/wip-wjw-fix-pipe
src/msg/simple/Pipe.cc: Fix the inclusion of '}'

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-04-27 15:51:25 -05:00
Sage Weil
b006b362fb os/fs: use small_vector for aio_t::iov (instead of std::vector)
These are usually small per io.  Avoid an additional allocation.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-04-27 16:38:54 -04:00