Commit Graph

77440 Commits

Author SHA1 Message Date
Alfredo Deza
5c334d8a2a doc/release-notes use new ref label for erasure code profiles
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-16 08:20:01 -04:00
Alfredo Deza
3ec44df21d doc/rados/operations use new ref labels in health-checks
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-16 08:20:01 -04:00
Alfredo Deza
d6164f2b19 doc/rados/operations add a ref label to erasure code profiles
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-16 08:20:01 -04:00
Alfredo Deza
aa90ea25cf doc/rados/operations add a ref label to pool application
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-16 08:20:01 -04:00
Alfredo Deza
5a3da3acaf doc/rados/operations use new ref label in health-checks
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-16 08:20:01 -04:00
Alfredo Deza
6c970133e0 doc/rados/operations add ref label for placement group number
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-16 08:20:01 -04:00
Alfredo Deza
c7973cb449 doc/rados/api/python document required_state manually
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-16 08:20:00 -04:00
Alfredo Deza
88a1114cb3 admin: bump sphinx to 1.6
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-16 08:20:00 -04:00
Alfredo Deza
d8932d62bf doc/rados/operations use the new ref label for crush map tunables
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-16 08:20:00 -04:00
Alfredo Deza
234c6a432b doc/rados/operations add label for crush map tunables for ref linking
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-16 08:20:00 -04:00
Alfredo Deza
d8b287011c doc/cephfs add label to health messages for use in refs linking
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-16 08:20:00 -04:00
Alfredo Deza
d3543ef8b0 admin: do not allow errors or warnings from doc build
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-16 08:20:00 -04:00
Alfredo Deza
10e457fd36 doc/rados/operations include pg-repair document in the toctree
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-16 08:20:00 -04:00
Alfredo Deza
89ace1b1e9 pybind fix rbd trash_move docstring, needed a newline
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-16 08:20:00 -04:00
Alfredo Deza
9a247e13f6 pybind: fix invalid doctring in Rados.require_state
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-16 08:19:59 -04:00
Alfredo Deza
80f66e0ebb doc/rados/operations add missing link for crush pdf
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-16 08:19:59 -04:00
Alfredo Deza
e925b9f899 doc/rados/operations add newline after definition
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-16 08:19:59 -04:00
Alfredo Deza
58a82d9881 doc/radosgw add newline after field list
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-16 08:19:59 -04:00
Alfredo Deza
e898eb7424 doc/radosgw fix missing newline on definition
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-16 08:19:59 -04:00
Alfredo Deza
e32f9be219 doc/rados/api remove '*' in automethod call
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-16 08:19:59 -04:00
Alfredo Deza
640e080f22 doc/logging fix unexpected indent in paragraph
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-16 08:19:59 -04:00
Alfredo Deza
e44f6d5b12 doc: bump the max depth of the toctree, so that it can find nested indexes
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-16 08:19:59 -04:00
Alfredo Deza
7409d326ab doc escape and remove invalid chars in release notes, causing sphinx errors
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-16 08:19:58 -04:00
Alfredo Deza
ae88a65880 doc/rados use func reference for rados_set_alloc_hint linking
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-16 08:19:58 -04:00
Kefu Chai
17d6e96a6f Merge pull request #16967 from liewegas/wip-upgrade-health
mon: fix legacy health checks in 'ceph status' during upgrade; fix jewel-x upgrade combo

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-08-16 19:44:36 +08:00
dengxiafubi
3e528f1ee8 rgw:returned value of function reuires exception handling
the returned value of rgw_bucket_set_attrs() reuires exception handling

Signed-off-by: dengxiafubi <xhwcqupt@sina.com>
2017-08-16 16:28:37 +08:00
huanwen ren
fe81b7e3a5 mon/pgmap: add objects prefix for unfound type
the objects prefix display indicates the scope of the "unfound",
like objects "misplaced" err.

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
2017-08-16 16:21:20 +08:00
huanwen ren
63dc57649a mon/pgmap: update pool nearfull display
if "pool full" and "pool nearfull" show the same, 
we will not be able to distinguish between these two scenes in health check.

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
2017-08-16 15:38:34 +08:00
Marcus Watts
96c4a26b46 radosgw: fix small sized chunked uploads with s3
The logic to compute the number of bytes to copy with a chunked file
upload was failing to take into account the amount of data that had been
consumed, but was still pending in the parse buffer.  This would cause
strange behavior ranging from "just works" to "fails".  There was also a
strange "works, one byte at a time" mode.  Using the correct stream_pos
offset eliminates the bad behavior.

This fix also adds debug statements to make the correct behavior easier to see.

Fixes: http://tracker.ceph.com/issues/21003

Signed-off-by: Marcus Watts <mwatts@redhat.com>
2017-08-15 21:57:06 -04:00
xie xingguo
46586b2288 mon/OSDMonitor: "osd pool application ls" support
It would be a pain if we have to call 'ceph osd dump --format=json-pretty'
to find out these each time...

Demo output:
(1) ceph osd pool application get
{
    "cephfs_data_b": {
        "cephfs": {}
    },
    "cephfs_metadata_a": {
        "cephfs": {}
    },
    "test_pool": {
        "rbd": {
            "test": "me"
        }
    }
}

(2) ceph osd pool application get test_pool
{
    "rbd": {
        "test": "me"
    }
}

(3) ceph osd pool application get test_pool rbd
{
    "test": "me"
}

(4) ceph osd pool application get test_pool rbd test
me

Fixes: http://tracker.ceph.com/issues/20976
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-08-16 09:41:11 +08:00
Ying He
a36ee8c207 * messages/MOSDOp: a fix of encode_payload
If we set config ms_dump_on_send,the function encode may run twice.
Then data will double of normal data.

Signed-off-by: Ying He <heyingbj@inspur.com>
2017-08-16 07:53:45 +08:00
Gregory Farnum
c8341402a5 Merge pull request #17012 from joscollin/wip-rgw-todo-warning
rgw: Drop #warning TODO

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2017-08-15 15:03:09 -07:00
Abhishek L
a155b84508 Merge pull request #17037 from theanalyst/release-notes-12-1-4
doc: release notes for v12.1.4 Luminous

Reviewed-By: Gregory Farnum <gfarnum@redhat.com>
Reviewed-By: Ken Dreyer <ktdreyer@redhat.com>
2017-08-15 23:01:03 +02:00
Abhishek Lekshmanan
713e11ae38 doc: release notes for v12.1.4 Luminous
Adding the bits of changelog that went in post 12.1.3, one of the PRs
was directly cherry-picked onto Luminous and hence does not have a PR
reference.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2017-08-15 17:13:25 +02:00
Pan Liu
a237e541ff Merge pull request #16808 from liupan1111/wip-add-report
test/fio: generate db histogram to help debug rocksdb performance
2017-08-15 22:02:04 +08:00
xie xingguo
985c21e77a mon/OSDMonitor: add plain output for "crush class ls-osd" command
Was:
ceph osd crush rm-device-class `ceph osd crush class ls-osd pool_bar`
Error EINVAL: Expected option value to be integer, got '[', unable to parse osd id:"[".

Now:
ceph osd crush rm-device-class `ceph osd crush class ls-osd pool_bar`
done removing class of osd(s): 0,2,4

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-08-15 20:18:50 +08:00
xie xingguo
a5075ed253 mon: "ceph osd crush rule rename" support
User may specify a rule with the same name of the pool that it serves.
Since a pool can be renamed, so does the rule.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-08-15 17:01:26 +08:00
Jos Collin
e58e4c8020 test/osd: silence warnings from -Wsign-compare
The following warning appears during build:

In file included from ceph/src/test/osd/TestOSDMap.cc:2:0:
ceph/src/googletest/googletest/include/gtest/gtest.h: In instantiation of 'testing::AssertionResult testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&) [with T1 = int; T2 = long unsigned int]':
ceph/src/googletest/googletest/include/gtest/gtest.h:1421:23:   required from 'static testing::AssertionResult testing::internal::EqHelper<lhs_is_null_literal>::Compare(const char*, const char*, const T1&, const T2&) [with T1 = int; T2 = long unsigned int; bool lhs_is_null_literal = false]'
ceph/src/test/osd/TestOSDMap.cc:456:3:   required from here
ceph/src/googletest/googletest/include/gtest/gtest.h:1392:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (lhs == rhs) {
           ^
Signed-off-by: Jos Collin <jcollin@redhat.com>
2017-08-15 09:45:35 +05:30
Marcus Watts
4d3d72fd1c radosgw: fix zero sized chunked uploads with s3
s3 allows for zero sized objects, which can be
created using chunked uploads.  It is important to
call "recv_body (and ChunkMeta::create_next()) even
on zero sized objects, so that the proper chunk signature
can be presented at signature verification time.

Fixes: http://tracker.ceph.com/issues/21000

Signed-off-by: Marcus Watts <mwatts@redhat.com>
2017-08-15 00:09:34 -04:00
Zhang Shaowen
8ef21a05e6 rgw: replace '+' with "%20" in canonical query string for s3 v4 auth.
( note: this patch modified: now replaces "+" with " ".  mwatts@redhat.com )

Fixes: http://tracker.ceph.com/issues/20501

Signed-off-by: Zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
2017-08-15 00:08:31 -04:00
David Zafman
982aef784c tests: qa/standalone: Add trap for signals to resetore the kernel core pattern
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-08-14 19:16:30 -07:00
David Zafman
21d9337735 Merge pull request #16987 from dzafman/wip-pidfile
test: Fix and enable test_pidfile.sh

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2017-08-14 18:22:00 -07:00
Haomai Wang
fba58233ae Merge pull request #17016 from chuanhong-wang/dev_rdma_dead_lock
Fix a dead lock when doing rdma performance test by fio

Reviewed-by: Haomai Wang <haomai@xsky.com>
2017-08-15 09:07:18 +08:00
Casey Bodley
614957247f Merge pull request #16649 from ztczll/zlrgw
rgw: remove unused variables

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-08-14 16:08:51 -04:00
Casey Bodley
f7ea4ea2b2 cls/log: cls_log_list always returns next marker
commit 5334622a83 changed cls_log_list()
to only return the next marker if the results were truncated

this broke RGWMetaSyncShardCR in rgw_sync.cc, which relies on
cls_log_list() to track its max_marker

Fixes: http://tracker.ceph.com/issues/20906

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2017-08-14 15:25:47 -04:00
Jason Dillaman
894daa7694 Merge pull request #16971 from scienceluo/wip-luo-fix-deadcode-branch
rbd: fix logically dead code in function list_process_image

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
2017-08-14 11:19:11 -04:00
Gregory Farnum
c46a964e19 Merge pull request #17000 from gregsfortytwo/wip-20985-divergent-handling
osd: be more precise about our asserts and cases when rebuilding missing sets

Reviewed-by: Sage Weil <sage@redhat.com>
2017-08-14 06:53:53 -07:00
Boris Ranto
70473011a0 Merge pull request #16753 from ceph/wip-fix-ppc64
Fix ppc64 support for ceph

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-08-14 15:41:28 +02:00
Jason Dillaman
53e772a45f Merge pull request #16934 from amitkumar50/cov-librbd-2
librbd: Initializing members image,operation,journal

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-08-14 09:08:29 -04:00
Yehuda Sadeh
4a509a6691 rgw: metadata full sync streams metadata keys
We don't read the entire list of all metadata entries in a single
request.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2017-08-14 05:25:42 -07:00