Commit Graph

60826 Commits

Author SHA1 Message Date
Kefu Chai
9418e07069 Merge pull request #12390 from tchaikov/wip-start-after-setting-nonce
msg/async: set nonce before starting the workers

Reviewed-by: Haomai Wang <haomai@xsky.com>
2016-12-13 00:03:01 +08:00
Kefu Chai
106115dac3 Merge pull request #12309 from wjwithagen/wip-wjw-freebsd-CLOCK_MONOTONE
rgw/rgw_file.cc: Add compat.h to allow CLOCK_MONOTONE

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
2016-12-13 00:02:10 +08:00
Kefu Chai
55e18d2e5f Merge pull request #12257 from kylinstorage/wip-remove-unneeded-forward-declaration
remove unneeded forward declaration

Reviewed-by: Sage Weil <sage@redhat.com>
2016-12-13 00:01:19 +08:00
Kefu Chai
405e94ab8e Merge pull request #12301 from wjwithagen/wip-wjw-freebsd-blkid
src/test/CMakeLists.txt: Exclude test on HAVE_BLKID

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-12-13 00:00:33 +08:00
David Zafman
836d896868 Merge pull request #12378 from dzafman/wip-18139
test: Don't write to a poolid that this test might not have created

Reviewed-by: Sage Weil <sage@redhat.com>
2016-12-12 07:56:24 -08:00
Mykola Golub
b1181c7088 Merge pull request #12371 from ceph/wip-18149
qa/workunits/rbd: use more recent qemu-iotests that support Xenial

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-12-12 16:17:13 +02:00
Brad Hubbard
ba421b5725 Merge pull request #12436 from badone/wip-cov1395747
crush: Silence coverity warnings for test/crush/crush.cc

Reviewed-by: xiexingguo <xie.xingguo@zte.com.cn>
2016-12-12 14:41:41 +10:00
Kefu Chai
2bb42d9c7f Merge pull request #12409 from tchaikov/wip-doc-releases
doc/releases: add links to kraken and v10.2.4

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
2016-12-12 12:39:13 +08:00
Brad Hubbard
efbe45fe47 crush: Silence coverity warnings for test/crush/crush.cc
Coverity 1395747 reports that "c" leaks. Switching to smart pointers should
resolve that.

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2016-12-12 09:16:33 +10:00
Jason Dillaman
4314cb945a qa/workunits/rbd: use more recent qemu-iotests that support Xenial
Fixes: http://tracker.ceph.com/issues/18149
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-12-10 20:42:52 -05:00
Loic Dachary
a5c5ba6bb7 Merge pull request #12410 from dachary/wip-10-2-5
doc: release notes for 10.2.5

Reviewed-by: Sage Weil <sage@redhat.com>
2016-12-11 00:29:53 +01:00
Loic Dachary
966d42569a doc: release notes for 10.2.5
Fixes: http://tracker.ceph.com/issues/18207

Signed-off-by: Loic Dachary <loic@dachary.org>
2016-12-10 10:14:46 +01:00
Mykola Golub
b40603f60a Merge pull request #12366 from dillaman/wip-10773
qa/workunits/rbd: removed qemu-iotest case 077

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2016-12-09 22:07:20 +02:00
Casey Bodley
6d7b384cdd Merge pull request #12253 from aclamk/fix-copy-object-compression
Fixed problem with PUT with x-amz-copy-source when source object is compressed.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-12-09 12:08:34 -05:00
Casey Bodley
ff152935c6 Merge pull request #12283 from ceph/wip-rgw-18106
rgw: make RGWLocalAuthApplier::is_admin_of() aware about system users.

Reviewed-by: Orit Wasserman <owassrm@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-12-09 12:05:17 -05:00
Loic Dachary
0a99c92ede Merge pull request #12414 from ceph/wip-16125
ceph-disk: prevent unnecessary tracebacks from subprocess.check_call

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2016-12-09 14:39:32 +01:00
Jason Dillaman
cb798835a9 Merge pull request #12368 from trociny/wip-18146
rbd-mirror: fix sparse read optimization in image sync

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-12-09 07:59:17 -05:00
Alfredo Deza
2cb9bfe6e4 ceph-disk: update tests to use the new exit flag
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2016-12-09 07:52:25 -05:00
Alfredo Deza
9be64fb00f ceph-disk: remove try/except for CalledProcessError to use new exit flag handler
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2016-12-09 07:52:25 -05:00
Alfredo Deza
8e524d142a ceph-disk: allow to exit nicely when using command_check_call
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2016-12-09 07:52:25 -05:00
Brad Hubbard
483969fcc6 Merge pull request #12408 from badone/wip-mon_osd_down_out_interval-docfix
doc: Modify documentation for mon_osd_down_out_interval

Reviewed-by: xiexingguo <xie.xingguo@zte.com.cn>
2016-12-09 19:20:13 +10:00
Kefu Chai
26c6864667 doc/releases: add links to kraken and v10.2.4
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-12-09 16:48:09 +08:00
Brad Hubbard
e793376da8 doc: Modify documentation for mon_osd_down_out_interval
Update docs to reflect the new default of 600 set by 817d65bd4

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2016-12-09 18:02:41 +10:00
Mykola Golub
21c0c59529 Merge pull request #12379 from liupan1111/wip-fix-rbd-params
rbd: --max_part and --nbds_max options for nbd map

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-12-09 08:57:40 +02:00
Kefu Chai
317c9b98f7 Merge pull request #12400 from gregsfortytwo/wip-fix-pg-unsigned-warning
osd: fix signed/unsigned comparison warning

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-12-09 10:33:45 +08:00
Jason Dillaman
e519a454eb Merge pull request #12211 from leseb/doc-openstack
doc: update cinder key permissions for mitaka

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-12-08 21:15:28 -05:00
Greg Farnum
ef1df97b5a osd: fix signed/unsigned comparison warning
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2016-12-08 15:50:24 -08:00
Sage Weil
69169cb2c7 Merge pull request #12367 from liewegas/wip-bluestore-sync-submit
os/bluestore: bluestore_sync_submit_transaction = false

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-12-08 15:07:01 -06:00
Sage Weil
3f6219ca96 Merge pull request #12356 from xiexingguo/xxg-wip-bluestore-commit-latency
os/bluestore: fix global commit latency

Reviewed-by: Sage Weil <sage@redhat.com>
2016-12-08 15:04:45 -06:00
Matt Benjamin
e4107337b3 Merge pull request #12381 from ly798/fix-rgw-crush-due-to-bad-cors
rgw: do not abort when accept a CORS request with short origin
2016-12-08 15:34:51 -05:00
Kefu Chai
aac1a3edd4 msg/async: set nonce before starting the workers
otherwise workers will respond with difference nonces to peers.
and remove nonce from Processor. as there is only one nonce for each
Messenger at a given time.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-12-09 03:03:27 +08:00
Kefu Chai
fe814e78b9 Merge pull request #12369 from tchaikov/wip-c99
cmake: compile C code with c99

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-12-09 01:16:20 +08:00
Loic Dachary
ecc36faa64 Merge pull request #12375 from liewegas/wip-msgr-eagain-loop
msg/simple/Pipe: avoid returning 0 on poll timeout

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-12-08 17:06:59 +01:00
jtlayton
07fd958b3c Merge pull request #12331 from ceph/wip-jlayton-suid
Have ceph clear setuid/setgid bits on chown
2016-12-08 09:35:56 -05:00
Sébastien Han
9af76d2626 doc: update cinder key permissions for mitaka
OpenStack Mitaka introduced the support of RBD snapshots while taking a
snapshot of a Nova instance. For this to work we need to grant write
access to the Glance pool to the Cinder key.

Signed-off-by: Sébastien Han <seb@redhat.com>
2016-12-08 15:21:21 +01:00
Jason Dillaman
92adebc105 Merge pull request #12388 from kylinstorage/wip-remove-librbd-unused-variable
librbd: remove unused local variable

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-12-08 08:56:25 -05:00
Kefu Chai
27f6b03239 Merge pull request #12383 from dachary/wip-18188-k-2-m-2
tests: erasure-code: add k=2, m=2 for isa & jerasure

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-12-08 21:19:21 +08:00
Pan Liu
45ceb389b6 rbd: --max_part and --nbds_max options for nbd map
Fixes: http://tracker.ceph.com/issues/18186
Signed-off-by: Pan Liu <pan.liu@istuary.com>
2016-12-08 20:03:30 +08:00
Loic Dachary
5d36740264 tests: erasure-code: add k=2, m=2 for isa & jerasure
Fixes: http://tracker.ceph.com/issues/18188

Signed-off-by: Loic Dachary <loic@dachary.org>
2016-12-08 12:44:21 +01:00
Loic Dachary
efa1e54362 tests: fix erasure-code premature deallocation of cct
The setup function returns before the run function, the cct variable
must be a data member, not a local variable that gets de-allocated
before run() starts.

Signed-off-by: Loic Dachary <loic@dachary.org>
2016-12-08 12:44:21 +01:00
Kefu Chai
7f5685e814 Merge pull request #12387 from tchaikov/wip-remove-unused-var
msg/async: remove unused member variable

Reviewed-by: Haomai Wang <haomai@xsky.com>
2016-12-08 17:54:59 +08:00
Mykola Golub
a2cfc17d25 rbd-mirror: fix sparse read optimization in image sync
Issue truncate or zero ops for the subtracted extents between the
diff and the sparse read.

Fixes: http://tracker.ceph.com/issues/18146
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-12-08 11:43:32 +02:00
Yunchuan Wen
985738bc2c librbd: remove unused local variable
Signed-off-by: Yunchuan Wen <yunchuan.wen@kylin-cloud.com>
2016-12-08 17:05:17 +08:00
Kefu Chai
f0e4b693b3 msg/async: remove unused member variable
PosixServerSocketImpl::sa is not referenced anywhere, so remove it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-12-08 16:46:31 +08:00
LiuYang
67d4d9e64b rgw: do not abort when accept a CORS request with short origin
Fixed: #18187

when accept a CROS request, the request http origin shorter than the bucket's corsrule
(eg. origin: http://s.com corsrule: <AllowedOrigin>*.verylongdomain.com</AllowedOrigin>).
the rgw_cors.cc::is_string_in_set() will have a wrong index, the radosrgw server will
abort.

$ curl http://test.localhost:8000/app.data -H "Origin:http://s.com"

 0> 2016-12-05 03:22:29.548138 7f6add05d700 -1 *** Caught signal (Aborted) **
 in thread 7f6add05d700 thread_name:civetweb-worker

 ceph version 11.0.2-2168-gd2f8fb4 (d2f8fb4a6b)
 1: (()+0x50720a) [0x7f6b147c420a]
 2: (()+0xf370) [0x7f6b09a33370]
 3: (gsignal()+0x37) [0x7f6b081ca1d7]
 4: (abort()+0x148) [0x7f6b081cb8c8]
 5: (__gnu_cxx::__verbose_terminate_handler()+0x165) [0x7f6b08ace9d5]
 6: (()+0x5e946) [0x7f6b08acc946]
 7: (()+0x5e973) [0x7f6b08acc973]
 8: (()+0x5eb93) [0x7f6b08accb93]
 9: (std::__throw_out_of_range(char const*)+0x77) 0x7f6b08b21a17]
 10: (()+0xbd97a) [0x7f6b08b2b97a]
 11: (()+0x449c1e) [0x7f6b14706c1e]
 12: (RGWCORSRule::is_origin_present(char const*)+0x48) [0x7f6b147073b8]
 13: (RGWCORSConfiguration::host_name_rule(char const*)+0x37) [0x7f6b147074e7]
 14: (RGWOp::generate_cors_headers(std::string&, std::string&, std::string&, std::string&, unsigned int*)+0xa3) [0x7f6b14593e63]
 15: (dump_access_control(req_state*, RGWOp*)+0x61) [0x7f6b14653f91]

Signed-off-by: LiuYang <yippeetry@gmail.com>
2016-12-08 14:52:03 +08:00
Kefu Chai
a488c5d8ea cmake: compile C code with c99
so the functions like snprintf() available in C99 are available without
defining _XOPEN_SOURCE. and "asm()" is used to inline assembly, so use
the GNU's extension instead of C99 standard.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-12-08 10:13:49 +08:00
Kefu Chai
dfa7de61b1 cmake: should detect c++11 before enabling it
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-12-08 10:13:41 +08:00
David Zafman
cde687ba50 test: Don't write to a poolid that this test might not have created
Signed-off-by: David Zafman <dzafman@redhat.com>
2016-12-07 17:27:01 -08:00
Sage Weil
96cf8a1b28 Merge pull request #12354 from umullan/correction
doc: correcting the object name
2016-12-07 18:31:54 -06:00
Sage Weil
6c3d015c68 msg/simple/Pipe: avoid returning 0 on poll timeout
If poll times out it will return 0 (no data to read on socket).  In
165e5abdbf we changed tcp_read_wait from
returning -1 to returning -errno, which means we return 0 instead of -1
in this case.

This makes tcp_read() get into an infinite loop by repeatedly trying to
read from the socket and getting EAGAIN.

Fix by explicitly checking for a 0 return from poll(2) and returning
EAGAIN in that case.

Fixes: http://tracker.ceph.com/issues/18184
Signed-off-by: Sage Weil <sage@redhat.com>
2016-12-07 18:25:55 -06:00