]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agoosd: remove the lock heartbeat_update_lock, and change heatbeat_need_update to atomic... 12461/head
Pan Liu [Tue, 13 Dec 2016 08:27:14 +0000 (16:27 +0800)]
osd: remove the lock heartbeat_update_lock, and change heatbeat_need_update to atomic_bool

Signed-off-by: Pan Liu <pan.liu@istuary.com>
8 years agoMerge pull request #12294 from dx9/test-ecp-uname
Kefu Chai [Tue, 13 Dec 2016 02:56:14 +0000 (10:56 +0800)]
Merge pull request #12294 from dx9/test-ecp-uname

test: use uname -m vs. uname -p in test-erasure-code-plugins.sh

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #12450 from athanatos/wip-18180
Sage Weil [Mon, 12 Dec 2016 20:20:27 +0000 (14:20 -0600)]
Merge pull request #12450 from athanatos/wip-18180

osd/ReplicatedPG::record_write_error: don't leak orig_reply on cancel

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12402 from liewegas/wip-scrub-recovery
Samuel Just [Mon, 12 Dec 2016 19:30:18 +0000 (11:30 -0800)]
Merge pull request #12402 from liewegas/wip-scrub-recovery

osd: default osd_scrub_during_recovery=false

Reviewed-by: Samuel Just <sjust@redhat.com>
8 years agoMerge pull request #12448 from theanalyst/doc/11.1.0-rc
Sage Weil [Mon, 12 Dec 2016 19:25:08 +0000 (13:25 -0600)]
Merge pull request #12448 from theanalyst/doc/11.1.0-rc

doc: final additions to 11.1.0-rc release notes

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agodoc: final additions to 11.1.0-rc release notes 12448/head
Abhishek Lekshmanan [Mon, 12 Dec 2016 18:33:13 +0000 (19:33 +0100)]
doc: final additions to 11.1.0-rc release notes

Signed-off-by: Abhishek Lekshmanan <alekshmanan@suse.com>
8 years agoMerge pull request #10209 from runsisi/sisi-wip-remove-redundant-check
Kefu Chai [Mon, 12 Dec 2016 16:21:46 +0000 (00:21 +0800)]
Merge pull request #10209 from runsisi/sisi-wip-remove-redundant-check

osd/ReplicatedPG: remove redundant check for balance/localize read

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Samuel Just <sjust@redhat.com>
8 years agoMerge pull request #12190 from liupan1111/wip-speed-up-acting-ods
Kefu Chai [Mon, 12 Dec 2016 16:18:55 +0000 (00:18 +0800)]
Merge pull request #12190 from liupan1111/wip-speed-up-acting-ods

osd/OSDMap: improve the performance of pg_to_acting_osds

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #12279 from wjwithagen/wip-wjw-freebsd-ENODATA-2
Kefu Chai [Mon, 12 Dec 2016 16:08:02 +0000 (00:08 +0800)]
Merge pull request #12279 from wjwithagen/wip-wjw-freebsd-ENODATA-2

os/filestore/chain_xattr.h:uses ENODATA, so include compat.h

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #12365 from liewegas/wip-mon-flag-warning
Kefu Chai [Mon, 12 Dec 2016 16:06:56 +0000 (00:06 +0800)]
Merge pull request #12365 from liewegas/wip-mon-flag-warning

mon/OSDMonitor: only show interesting flags in health warning

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #12439 from tchaikov/wip-pybind-requires
Kefu Chai [Mon, 12 Dec 2016 16:05:07 +0000 (00:05 +0800)]
Merge pull request #12439 from tchaikov/wip-pybind-requires

pybind/rados: add missing "length" requires for aio_execute()

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #12390 from tchaikov/wip-start-after-setting-nonce
Kefu Chai [Mon, 12 Dec 2016 16:03:01 +0000 (00:03 +0800)]
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>
8 years agoMerge pull request #12309 from wjwithagen/wip-wjw-freebsd-CLOCK_MONOTONE
Kefu Chai [Mon, 12 Dec 2016 16:02:10 +0000 (00:02 +0800)]
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>
8 years agoMerge pull request #12257 from kylinstorage/wip-remove-unneeded-forward-declaration
Kefu Chai [Mon, 12 Dec 2016 16:01:19 +0000 (00:01 +0800)]
Merge pull request #12257 from kylinstorage/wip-remove-unneeded-forward-declaration

remove unneeded forward declaration

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12301 from wjwithagen/wip-wjw-freebsd-blkid
Kefu Chai [Mon, 12 Dec 2016 16:00:33 +0000 (00:00 +0800)]
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>
8 years agoMerge pull request #12378 from dzafman/wip-18139
David Zafman [Mon, 12 Dec 2016 15:56:24 +0000 (07:56 -0800)]
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>
8 years agoMerge pull request #12371 from ceph/wip-18149
Mykola Golub [Mon, 12 Dec 2016 14:17:13 +0000 (16:17 +0200)]
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>
8 years agoMerge pull request #12436 from badone/wip-cov1395747
Brad Hubbard [Mon, 12 Dec 2016 04:41:41 +0000 (14:41 +1000)]
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>
8 years agoMerge pull request #12409 from tchaikov/wip-doc-releases
Kefu Chai [Mon, 12 Dec 2016 04:39:13 +0000 (12:39 +0800)]
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>
8 years agopybind/rados: add missing "length" requires for aio_execute() 12439/head
Kefu Chai [Mon, 12 Dec 2016 03:24:16 +0000 (11:24 +0800)]
pybind/rados: add missing "length" requires for aio_execute()

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agocrush: Silence coverity warnings for test/crush/crush.cc 12436/head
Brad Hubbard [Sun, 11 Dec 2016 23:16:33 +0000 (09:16 +1000)]
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>
8 years agoqa/workunits/rbd: use more recent qemu-iotests that support Xenial 12371/head
Jason Dillaman [Mon, 5 Dec 2016 18:46:02 +0000 (13:46 -0500)]
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>
8 years agoMerge pull request #12410 from dachary/wip-10-2-5
Loic Dachary [Sat, 10 Dec 2016 23:29:53 +0000 (00:29 +0100)]
Merge pull request #12410 from dachary/wip-10-2-5

doc: release notes for 10.2.5

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agodoc: release notes for 10.2.5 12410/head
Loic Dachary [Fri, 9 Dec 2016 09:50:04 +0000 (10:50 +0100)]
doc: release notes for 10.2.5

Fixes: http://tracker.ceph.com/issues/18207
Signed-off-by: Loic Dachary <loic@dachary.org>
8 years agoMerge pull request #12366 from dillaman/wip-10773
Mykola Golub [Fri, 9 Dec 2016 20:07:20 +0000 (22:07 +0200)]
Merge pull request #12366 from dillaman/wip-10773

qa/workunits/rbd: removed qemu-iotest case 077

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #12253 from aclamk/fix-copy-object-compression
Casey Bodley [Fri, 9 Dec 2016 17:08:34 +0000 (12:08 -0500)]
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>
8 years agoMerge pull request #12283 from ceph/wip-rgw-18106
Casey Bodley [Fri, 9 Dec 2016 17:05:17 +0000 (12:05 -0500)]
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>
8 years agoMerge pull request #12414 from ceph/wip-16125
Loic Dachary [Fri, 9 Dec 2016 13:39:32 +0000 (14:39 +0100)]
Merge pull request #12414 from ceph/wip-16125

ceph-disk: prevent unnecessary tracebacks from subprocess.check_call

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #12368 from trociny/wip-18146
Jason Dillaman [Fri, 9 Dec 2016 12:59:17 +0000 (07:59 -0500)]
Merge pull request #12368 from trociny/wip-18146

rbd-mirror: fix sparse read optimization in image sync

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoceph-disk: update tests to use the new exit flag 12414/head
Alfredo Deza [Fri, 7 Oct 2016 13:01:04 +0000 (09:01 -0400)]
ceph-disk: update tests to use the new exit flag

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agoceph-disk: remove try/except for CalledProcessError to use new exit flag handler
Alfredo Deza [Fri, 3 Jun 2016 15:43:26 +0000 (11:43 -0400)]
ceph-disk: remove try/except for CalledProcessError to use new exit flag handler

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agoceph-disk: allow to exit nicely when using command_check_call
Alfredo Deza [Fri, 3 Jun 2016 15:37:00 +0000 (11:37 -0400)]
ceph-disk: allow to exit nicely when using command_check_call

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agoMerge pull request #12408 from badone/wip-mon_osd_down_out_interval-docfix
Brad Hubbard [Fri, 9 Dec 2016 09:20:13 +0000 (19:20 +1000)]
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>
8 years agodoc/releases: add links to kraken and v10.2.4 12409/head
Kefu Chai [Fri, 9 Dec 2016 08:46:41 +0000 (16:46 +0800)]
doc/releases: add links to kraken and v10.2.4

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agodoc: Modify documentation for mon_osd_down_out_interval 12408/head
Brad Hubbard [Fri, 9 Dec 2016 07:52:31 +0000 (17:52 +1000)]
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>
8 years agoMerge pull request #12379 from liupan1111/wip-fix-rbd-params
Mykola Golub [Fri, 9 Dec 2016 06:57:40 +0000 (08:57 +0200)]
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>
8 years agoMerge pull request #12400 from gregsfortytwo/wip-fix-pg-unsigned-warning
Kefu Chai [Fri, 9 Dec 2016 02:33:45 +0000 (10:33 +0800)]
Merge pull request #12400 from gregsfortytwo/wip-fix-pg-unsigned-warning

osd: fix signed/unsigned comparison warning

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #12211 from leseb/doc-openstack
Jason Dillaman [Fri, 9 Dec 2016 02:15:28 +0000 (21:15 -0500)]
Merge pull request #12211 from leseb/doc-openstack

doc: update cinder key permissions for mitaka

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoosd: default osd_scrub_during_recovery=false 12402/head
Sage Weil [Fri, 9 Dec 2016 01:25:06 +0000 (19:25 -0600)]
osd: default osd_scrub_during_recovery=false

This is a more friendly behavior.  Tell users in the release notes how to
get the old behavior.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: fix signed/unsigned comparison warning 12400/head
Greg Farnum [Thu, 8 Dec 2016 23:50:24 +0000 (15:50 -0800)]
osd: fix signed/unsigned comparison warning

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #12367 from liewegas/wip-bluestore-sync-submit
Sage Weil [Thu, 8 Dec 2016 21:07:01 +0000 (15:07 -0600)]
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>
8 years agoMerge pull request #12356 from xiexingguo/xxg-wip-bluestore-commit-latency
Sage Weil [Thu, 8 Dec 2016 21:04:45 +0000 (15:04 -0600)]
Merge pull request #12356 from xiexingguo/xxg-wip-bluestore-commit-latency

os/bluestore: fix global commit latency

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12381 from ly798/fix-rgw-crush-due-to-bad-cors
Matt Benjamin [Thu, 8 Dec 2016 20:34:51 +0000 (15:34 -0500)]
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

8 years agomsg/async: set nonce before starting the workers 12390/head
Kefu Chai [Thu, 8 Dec 2016 10:40:24 +0000 (18:40 +0800)]
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>
8 years agoMerge pull request #12369 from tchaikov/wip-c99
Kefu Chai [Thu, 8 Dec 2016 17:16:20 +0000 (01:16 +0800)]
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>
8 years agoMerge pull request #12375 from liewegas/wip-msgr-eagain-loop
Loic Dachary [Thu, 8 Dec 2016 16:06:59 +0000 (17:06 +0100)]
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>
8 years agoMerge pull request #12331 from ceph/wip-jlayton-suid
jtlayton [Thu, 8 Dec 2016 14:35:56 +0000 (09:35 -0500)]
Merge pull request #12331 from ceph/wip-jlayton-suid

Have ceph clear setuid/setgid bits on chown

8 years agodoc: update cinder key permissions for mitaka 12211/head
Sébastien Han [Tue, 29 Nov 2016 10:24:38 +0000 (11:24 +0100)]
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>
8 years agoMerge pull request #12388 from kylinstorage/wip-remove-librbd-unused-variable
Jason Dillaman [Thu, 8 Dec 2016 13:56:25 +0000 (08:56 -0500)]
Merge pull request #12388 from kylinstorage/wip-remove-librbd-unused-variable

librbd: remove unused local variable

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #12383 from dachary/wip-18188-k-2-m-2
Kefu Chai [Thu, 8 Dec 2016 13:19:21 +0000 (21:19 +0800)]
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>
8 years agorbd: --max_part and --nbds_max options for nbd map 12379/head
Pan Liu [Thu, 8 Dec 2016 12:03:30 +0000 (20:03 +0800)]
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>
8 years agotests: erasure-code: add k=2, m=2 for isa & jerasure 12383/head
Loic Dachary [Thu, 8 Dec 2016 06:49:19 +0000 (07:49 +0100)]
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>
8 years agotests: fix erasure-code premature deallocation of cct
Loic Dachary [Thu, 8 Dec 2016 11:40:42 +0000 (12:40 +0100)]
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>
8 years agoMerge pull request #12387 from tchaikov/wip-remove-unused-var
Kefu Chai [Thu, 8 Dec 2016 09:54:59 +0000 (17:54 +0800)]
Merge pull request #12387 from tchaikov/wip-remove-unused-var

msg/async: remove unused member variable

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agorbd-mirror: fix sparse read optimization in image sync 12368/head
Mykola Golub [Wed, 7 Dec 2016 16:18:47 +0000 (18:18 +0200)]
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>
8 years agolibrbd: remove unused local variable 12388/head
Yunchuan Wen [Thu, 8 Dec 2016 09:05:17 +0000 (17:05 +0800)]
librbd: remove unused local variable

Signed-off-by: Yunchuan Wen <yunchuan.wen@kylin-cloud.com>
8 years agomsg/async: remove unused member variable 12387/head
Kefu Chai [Thu, 8 Dec 2016 08:46:01 +0000 (16:46 +0800)]
msg/async: remove unused member variable

PosixServerSocketImpl::sa is not referenced anywhere, so remove it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agorgw: do not abort when accept a CORS request with short origin 12381/head
LiuYang [Thu, 8 Dec 2016 06:21:43 +0000 (14:21 +0800)]
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 (d2f8fb4a6ba75af7e6da0f5a7f1b49ec998b1631)
 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>
8 years agocmake: compile C code with c99 12369/head
Kefu Chai [Thu, 8 Dec 2016 01:45:18 +0000 (09:45 +0800)]
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>
8 years agocmake: should detect c++11 before enabling it
Kefu Chai [Thu, 8 Dec 2016 01:48:24 +0000 (09:48 +0800)]
cmake: should detect c++11 before enabling it

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agotest: Don't write to a poolid that this test might not have created 12378/head
David Zafman [Thu, 8 Dec 2016 01:27:01 +0000 (17:27 -0800)]
test: Don't write to a poolid that this test might not have created

Signed-off-by: David Zafman <dzafman@redhat.com>
8 years agoMerge pull request #12354 from umullan/correction
Sage Weil [Thu, 8 Dec 2016 00:31:54 +0000 (18:31 -0600)]
Merge pull request #12354 from umullan/correction

doc: correcting the object name

8 years agomsg/simple/Pipe: avoid returning 0 on poll timeout 12375/head
Sage Weil [Thu, 8 Dec 2016 00:25:55 +0000 (18:25 -0600)]
msg/simple/Pipe: avoid returning 0 on poll timeout

If poll times out it will return 0 (no data to read on socket).  In
165e5abdbf6311974d4001e43982b83d06f9e0cc 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>
8 years agoReplicatedPG::record_write_error: don't leak orig_reply on cancel 12450/head
Samuel Just [Wed, 7 Dec 2016 22:29:44 +0000 (14:29 -0800)]
ReplicatedPG::record_write_error: don't leak orig_reply on cancel

The submit_log_entries machinery depends on the destructor for the
functor cleaning up after itself to handle cancelation.  I could have
introduced a local intrusive_ptr and captured that instead, but this is
slightly less magic.

Fixes: http://tracker.ceph.com/issues/18180
Signed-off-by: Samuel Just <sjust@redhat.com>
8 years agoMerge pull request #12347 from gregsfortytwo/wip-18157-fix
Sage Weil [Wed, 7 Dec 2016 20:59:57 +0000 (15:59 -0500)]
Merge pull request #12347 from gregsfortytwo/wip-18157-fix

ceph-fuse: start up log on parent process before shutdown

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoclient: drop setuid/setgid bits on ownership change 12331/head
Jeff Layton [Mon, 5 Dec 2016 19:11:44 +0000 (14:11 -0500)]
client: drop setuid/setgid bits on ownership change

When we hold exclusive auth caps, then the client is responsible for
handling changes to the mode. Make sure we remove any setuid/setgid
bits on an ownership change.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
8 years agomds: clear setuid/setgid bits on ownership changes
Jeff Layton [Mon, 5 Dec 2016 19:19:23 +0000 (14:19 -0500)]
mds: clear setuid/setgid bits on ownership changes

If we get a ownership change, POSIX mandates that you clear the
setuid and setgid bits unless you are "appropriately privileged", in
which case the OS is allowed to leave them intact.

Linux however always clears those bits, regardless of the process
privileges, as that makes it simpler to close some potential races.
Have ceph do the same.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
8 years agotest: add new testcase for clearing setuid/setgid bits on chown/chgrp
Jeff Layton [Tue, 6 Dec 2016 19:10:31 +0000 (14:10 -0500)]
test: add new testcase for clearing setuid/setgid bits on chown/chgrp

Signed-off-by: Jeff Layton <jlayton@redhat.com>
8 years agotest: remove improper casts from SetSize test
Jeff Layton [Wed, 7 Dec 2016 16:52:58 +0000 (11:52 -0500)]
test: remove improper casts from SetSize test

Signed-off-by: Jeff Layton <jlayton@redhat.com>
8 years agoMerge pull request #12259 from liupan1111/wip-fix-nbd-max-part
Mykola Golub [Wed, 7 Dec 2016 16:07:05 +0000 (18:07 +0200)]
Merge pull request #12259 from liupan1111/wip-fix-nbd-max-part

rbd-nbd: support partition for rbd-nbd mapped raw block device

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoos/bluestore: bluestore_sync_submit_transaction = false 12367/head
Sage Weil [Wed, 7 Dec 2016 15:37:28 +0000 (10:37 -0500)]
os/bluestore: bluestore_sync_submit_transaction = false

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12359 from tchaikov/wip-cmake
Kefu Chai [Wed, 7 Dec 2016 15:09:33 +0000 (23:09 +0800)]
Merge pull request #12359 from tchaikov/wip-cmake

cmake: detect keyutils if WITH_LIBCEPHFS OR WITH_RBD

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoqa/workunits/rbd: removed qemu-iotest case 077 12366/head
Jason Dillaman [Wed, 7 Dec 2016 14:59:39 +0000 (09:59 -0500)]
qa/workunits/rbd: removed qemu-iotest case 077

The test case is not stable due to racing console output. This
results in spurious failures.

Fixes: http://tracker.ceph.com/issues/10773
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agomon/OSDMonitor: only show interesting flags in health warning 12365/head
Sage Weil [Wed, 7 Dec 2016 14:50:26 +0000 (09:50 -0500)]
mon/OSDMonitor: only show interesting flags in health warning

Also add PAUSEREC flag into the list.

Fixes: http://tracker.ceph.com/issues/18175
Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12361 from dachary/wip-18030-pglog
Kefu Chai [Wed, 7 Dec 2016 14:42:58 +0000 (22:42 +0800)]
Merge pull request #12361 from dachary/wip-18030-pglog

tests: remove TestPGLog EXPECT_DEATH tests

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #12208 from ukernel/wip-18047
John Spray [Wed, 7 Dec 2016 14:15:25 +0000 (14:15 +0000)]
Merge pull request #12208 from ukernel/wip-18047

mds: don't access mdsmap from log submit thread

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #12077 from jcsp/wip-17954
John Spray [Wed, 7 Dec 2016 14:13:52 +0000 (14:13 +0000)]
Merge pull request #12077 from jcsp/wip-17954

mds: fix dropping events in standby replay

Reviewed-by: Yan, Zheng <zyan@redhat.com>
8 years agoMerge pull request #12133 from jcsp/wip-16924
John Spray [Wed, 7 Dec 2016 14:12:53 +0000 (14:12 +0000)]
Merge pull request #12133 from jcsp/wip-16924

mds: don't maintain bloom filters in standby replay

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #12360 from wido/docs-cephfs-datascan-workers
John Spray [Wed, 7 Dec 2016 12:50:53 +0000 (12:50 +0000)]
Merge pull request #12360 from wido/docs-cephfs-datascan-workers

doc: Fix for worker arguments to cephfs-data-scan tool

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agotests: remove TestPGLog EXPECT_DEATH tests 12361/head
Loic Dachary [Wed, 7 Dec 2016 09:48:10 +0000 (10:48 +0100)]
tests: remove TestPGLog EXPECT_DEATH tests

As per Sam Just advice, remove the EXPECT_DEATH tests to avoid
intermittent hang because they do not play well with threads.

Fixes: http://tracker.ceph.com/issues/18030
Signed-off-by: Loic Dachary <loic@dachary.org>
8 years agoMerge pull request #12327 from iain-buclaw-sociomantic/pybind-validate-args
Kefu Chai [Wed, 7 Dec 2016 08:55:31 +0000 (16:55 +0800)]
Merge pull request #12327 from iain-buclaw-sociomantic/pybind-validate-args

pybind/rados: Add @requires for all aio methods

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agodoc: Fix for worker arguments to cephfs-data-scan tool 12360/head
Wido den Hollander [Wed, 7 Dec 2016 08:49:09 +0000 (09:49 +0100)]
doc: Fix for worker arguments to cephfs-data-scan tool

The docs were incorrect and these arguments should work.

Signed-off-by: Wido den Hollander <wido@42on.com>
8 years agocmake: turn krbd into a static lib 12359/head
Kefu Chai [Wed, 7 Dec 2016 04:27:54 +0000 (12:27 +0800)]
cmake: turn krbd into a static lib

* simplify the link dependencies.
* s/keyutils/${KEYUTILS_LIBRARIES}/

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agocmake: find keyutils if rbd or libcephfs is enabled
Kefu Chai [Wed, 7 Dec 2016 03:41:18 +0000 (11:41 +0800)]
cmake: find keyutils if rbd or libcephfs is enabled

* find_package(keyutils REQUIRED) if (WITH_LIBCEPHFS OR WITH_RBD)
  prior to this change, we detect keyutils if the building platform is not
  FreeBSD, we should instead check the WITH_* options, and let the
  maintainer to decided what is the best for his/her platform, and error
  out if the building host cannot fulfill the requirement to build the
  asserts.
* build krbd.cc if (WITH_RBD)

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoos/bluestore: fix global commit latency 12356/head
xie xingguo [Wed, 7 Dec 2016 07:29:57 +0000 (15:29 +0800)]
os/bluestore: fix global commit latency

"start" is used to calculate the global bluestore commit latency
and hence shall not be updated at each internal state enter/exit.

Otherwise the l_bluestore_commit_lat counter won't reflect the
real commit latency precisely.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agodoc: correcting the object name 12354/head
Uday Mullangi [Wed, 7 Dec 2016 06:17:07 +0000 (11:47 +0530)]
doc: correcting the object name
Signed-off-by: umullangi@walmartlabs.com
8 years agoMerge pull request #12350 from chanyoung/struct-OSDOp-typos
Xie Xingguo [Wed, 7 Dec 2016 02:04:23 +0000 (10:04 +0800)]
Merge pull request #12350 from chanyoung/struct-OSDOp-typos

osd: fix typos in "struct OSDOp" comments

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoosd: fix typos in "struct OSDOp" comments 12350/head
chanyoung [Wed, 7 Dec 2016 00:25:56 +0000 (09:25 +0900)]
osd: fix typos in "struct OSDOp" comments

"nembers" -> "members"

Signed-off-by: Chanyoung Park <park910113@gmail.com>
8 years agoMerge pull request #12344 from trociny/wip-resync-fixup
Jason Dillaman [Wed, 7 Dec 2016 00:18:16 +0000 (19:18 -0500)]
Merge pull request #12344 from trociny/wip-resync-fixup

rbd-mirror: fix gmock warnings in bootstrap request unit tests

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #11369 from theanalyst/kraken-release-notes
Sage Weil [Tue, 6 Dec 2016 23:39:46 +0000 (18:39 -0500)]
Merge pull request #11369 from theanalyst/kraken-release-notes

doc: release notes for 11.0.2

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agodoc: add salient features of kraken 11.1.0 rc 11369/head
Abhishek Lekshmanan [Tue, 6 Dec 2016 23:17:20 +0000 (00:17 +0100)]
doc: add salient features of kraken 11.1.0 rc

Reordering to add Sage's release note comments on top

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agodoc: add release notes for 11.1.0
Abhishek Lekshmanan [Tue, 6 Dec 2016 09:06:07 +0000 (10:06 +0100)]
doc: add release notes for 11.1.0

Release notes as of 7b1293e70db51f620210332bde1f83ade15bd9d3

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agodoc: bump release notes to 11.0.2
Abhishek Lekshmanan [Tue, 6 Dec 2016 12:10:15 +0000 (13:10 +0100)]
doc: bump release notes to 11.0.2

bumping release notes to 11.0.2 kraken and adding the single commit that
differs between the changes

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agodoc: release notes for 11.0.1
Abhishek Lekshmanan [Fri, 7 Oct 2016 16:01:31 +0000 (18:01 +0200)]
doc: release notes for 11.0.1

Signed-off-by: Abhishek Lekshmanan <alekshmanan@suse.com>
8 years agoMerge pull request #12346 from theanalyst/doc/changelog/v10.2.4
Sage Weil [Tue, 6 Dec 2016 23:11:19 +0000 (18:11 -0500)]
Merge pull request #12346 from theanalyst/doc/changelog/v10.2.4

doc: adding changelog for v10.2.4

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoceph-fuse: start up log on parent process before shutdown 12347/head
Greg Farnum [Tue, 6 Dec 2016 23:07:19 +0000 (15:07 -0800)]
ceph-fuse: start up log on parent process before shutdown

Otherwise, we hit an assert in the Ceph context and logging teardown.

Fixes: http://tracker.ceph.com/issues/18157
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
8 years agodoc: adding changelog for v10.2.4 12346/head
Abhishek Lekshmanan [Tue, 6 Dec 2016 23:06:52 +0000 (00:06 +0100)]
doc: adding changelog for v10.2.4

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agoMerge pull request #12328 from liewegas/wip-bluestore-flush
Sage Weil [Tue, 6 Dec 2016 22:27:24 +0000 (17:27 -0500)]
Merge pull request #12328 from liewegas/wip-bluestore-flush

os/bluestore: flush before enumerating omap values

8 years agoMerge pull request #12265 from liewegas/wip-bluestore-precondition
Sage Weil [Tue, 6 Dec 2016 22:27:10 +0000 (17:27 -0500)]
Merge pull request #12265 from liewegas/wip-bluestore-precondition

os/bluestore: drop old bluestore preconditioning; replace with wal preextension of file size

8 years agoMerge pull request #12281 from dachary/wip-17743-memstore
Sage Weil [Tue, 6 Dec 2016 22:21:57 +0000 (17:21 -0500)]
Merge pull request #12281 from dachary/wip-17743-memstore

tests: do not use memstore.test_temp_dir in two tests

Reviewed-by: David Zafman <dzafman@redhat.com>