]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agoos/bluestore: trim SSD devices on mkfs 20897/head
Igor Fedotov [Wed, 14 Mar 2018 12:42:34 +0000 (15:42 +0300)]
os/bluestore: trim SSD devices on mkfs

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
7 years agoMerge pull request #20687 from Songweibin/wip-misc-cleanup
Kefu Chai [Mon, 5 Mar 2018 09:57:52 +0000 (17:57 +0800)]
Merge pull request #20687 from Songweibin/wip-misc-cleanup

mon,osd,crush: misc cleanup

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #20485 from jcsp/wip-23017
Kefu Chai [Mon, 5 Mar 2018 09:56:18 +0000 (17:56 +0800)]
Merge pull request #20485 from jcsp/wip-23017

mgr: quieten logging on missing OSD stats

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20573 from liewegas/wip-mgr-ovh
Sage Weil [Sun, 4 Mar 2018 21:44:21 +0000 (15:44 -0600)]
Merge pull request #20573 from liewegas/wip-mgr-ovh

qa/suites/rados/rest/mgr: provision openstack volumes

7 years agoMerge pull request #20692 from idryomov/wip-krbd-huge-image-test
Ilya Dryomov [Sat, 3 Mar 2018 12:18:33 +0000 (13:18 +0100)]
Merge pull request #20692 from idryomov/wip-krbd-huge-image-test

qa: krbd huge-image test

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoqa: krbd huge-image test 20692/head
Ilya Dryomov [Thu, 1 Mar 2018 16:01:11 +0000 (17:01 +0100)]
qa: krbd huge-image test

We've had multiple overflows in ceph_calc_file_object_mapping().
It wasn't being used by rbd, but it now is.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
7 years agoqa/suites/krbd: rename blkroset to basic
Ilya Dryomov [Thu, 1 Mar 2018 16:01:11 +0000 (17:01 +0100)]
qa/suites/krbd: rename blkroset to basic

More simple fixed-1.yaml based tests are coming.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
7 years agoMerge pull request #20680 from cbodley/wip-qa-dnsmasq
vasukulkarni [Fri, 2 Mar 2018 16:47:40 +0000 (08:47 -0800)]
Merge pull request #20680 from cbodley/wip-qa-dnsmasq

qa: clean up dnsmasq task and fix EPERM error

7 years agoMerge pull request #19252 from joke-lee/website_redirect
Yuri Weinstein [Fri, 2 Mar 2018 16:22:03 +0000 (08:22 -0800)]
Merge pull request #19252 from joke-lee/website_redirect

rgw: fix s3 website redirection error

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #20635 from mdw-at-linuxbox/wip-master-rgw-openssl
Yuri Weinstein [Fri, 2 Mar 2018 16:21:22 +0000 (08:21 -0800)]
Merge pull request #20635 from mdw-at-linuxbox/wip-master-rgw-openssl

rgw: curl* reuse and for debian, use openssl not gnutls.

Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Mark Kogan <mkogan@redhat.com>
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
7 years agoMerge pull request #20673 from ceph/wip-rm23148
Alfredo Deza [Fri, 2 Mar 2018 14:49:30 +0000 (09:49 -0500)]
Merge pull request #20673 from ceph/wip-rm23148

docs fix ceph-volume missing sub-commands

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agocrush: should break the loop if leaves overfull 20687/head
songweibin [Fri, 2 Mar 2018 07:46:11 +0000 (15:46 +0800)]
crush: should break the loop if leaves overfull

Signed-off-by: songweibin <song.weibin@zte.com.cn>
7 years agoosd: drop redundant assert check
songweibin [Fri, 2 Mar 2018 07:39:48 +0000 (15:39 +0800)]
osd: drop redundant assert check

Signed-off-by: songweibin <song.weibin@zte.com.cn>
7 years agoMerge pull request #20684 from liewegas/wip-bluestore-cache-debug
Xie Xingguo [Fri, 2 Mar 2018 02:57:57 +0000 (10:57 +0800)]
Merge pull request #20684 from liewegas/wip-bluestore-cache-debug

os/bluestore: no trim debug noise if there is no trimming to be done

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoos/bluestore: no trim debug noise if there is no trimming to be done 20684/head
Sage Weil [Fri, 2 Mar 2018 02:28:51 +0000 (20:28 -0600)]
os/bluestore: no trim debug noise if there is no trimming to be done

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20637 from wjwithagen/wjw-fix-MDSmonitor.h
Kefu Chai [Fri, 2 Mar 2018 02:20:54 +0000 (10:20 +0800)]
Merge pull request #20637 from wjwithagen/wjw-fix-MDSmonitor.h

mon/MDSMonitor: fix clang build failure

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agoMerge pull request #20671 from batrick/rados-doc-flags
Kefu Chai [Fri, 2 Mar 2018 01:19:54 +0000 (09:19 +0800)]
Merge pull request #20671 from batrick/rados-doc-flags

doc: init flags to 0 in rados example

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20653 from xiexingguo/wip-fix-upmap
Kefu Chai [Fri, 2 Mar 2018 01:01:06 +0000 (09:01 +0800)]
Merge pull request #20653 from xiexingguo/wip-fix-upmap

mon, osd: fix potential collided *Up Set* after PG remapping

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20655 from xiexingguo/wip-fix-calc-upmap
Kefu Chai [Fri, 2 Mar 2018 00:59:49 +0000 (08:59 +0800)]
Merge pull request #20655 from xiexingguo/wip-fix-calc-upmap

osd/OSDMap: skip out/crush-out osds

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20506 from jan--f/prometheus-rm-outdated-daemon-metrics
Kefu Chai [Fri, 2 Mar 2018 00:57:42 +0000 (08:57 +0800)]
Merge pull request #20506 from jan--f/prometheus-rm-outdated-daemon-metrics

pybind/mgr/prometheus: don't export metrics for dead daemon; new metrics

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #20667 from tchaikov/wip-qa-standalone
Kefu Chai [Fri, 2 Mar 2018 00:56:11 +0000 (08:56 +0800)]
Merge pull request #20667 from tchaikov/wip-qa-standalone

qa/standalone: s/delete_erasure_pool/delete_erasure_coded_pool/

Reviewed-by: David Zafman <dzafman@redhat.com>
7 years agoqa: clean up dnsmasq task and fix EPERM error 20680/head
Casey Bodley [Mon, 19 Feb 2018 18:36:05 +0000 (13:36 -0500)]
qa: clean up dnsmasq task and fix EPERM error

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #20648 from trociny/wip-snap_set_diff-empty_snapset
Jason Dillaman [Thu, 1 Mar 2018 20:35:40 +0000 (15:35 -0500)]
Merge pull request #20648 from trociny/wip-snap_set_diff-empty_snapset

librados/snap_set_diff: don't assert on empty snapset

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20613 from Songweibin/wip-23038
Jason Dillaman [Thu, 1 Mar 2018 20:35:23 +0000 (15:35 -0500)]
Merge pull request #20613 from Songweibin/wip-23038

rbd: import with option --export-format 2 fails to protect snapshot

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20608 from Songweibin/wip-rbd-snap-purge
Jason Dillaman [Thu, 1 Mar 2018 20:35:02 +0000 (15:35 -0500)]
Merge pull request #20608 from Songweibin/wip-rbd-snap-purge

rbd: allow remove all unprotected snapshots

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20578 from trociny/wip-pybind-group
Jason Dillaman [Thu, 1 Mar 2018 20:34:26 +0000 (15:34 -0500)]
Merge pull request #20578 from trociny/wip-pybind-group

librbd: small cleanup for recently merged code

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20621 from cbodley/wip-rgw-data_lock
Casey Bodley [Thu, 1 Mar 2018 20:05:50 +0000 (15:05 -0500)]
Merge pull request #20621 from cbodley/wip-rgw-data_lock

rgw: don't hold data_lock over frontend io

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agoMerge pull request #20449 from cbodley/wip-rgw-beast-coroutine
Casey Bodley [Thu, 1 Mar 2018 20:04:59 +0000 (15:04 -0500)]
Merge pull request #20449 from cbodley/wip-rgw-beast-coroutine

rgw: switch beast frontend back to stackful coroutine

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agodoc/install add missing lvm subcommand for ceph-volume 20673/head
Alfredo Deza [Thu, 1 Mar 2018 19:22:01 +0000 (14:22 -0500)]
doc/install add missing lvm subcommand for ceph-volume

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/rados add missing lvm subcommand for ceph-volume
Alfredo Deza [Thu, 1 Mar 2018 19:21:05 +0000 (14:21 -0500)]
doc/rados add missing lvm subcommand for ceph-volume

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #20546 from yehudasa/wip-rgw-gc-aio
Casey Bodley [Thu, 1 Mar 2018 18:54:11 +0000 (13:54 -0500)]
Merge pull request #20546 from yehudasa/wip-rgw-gc-aio

rgw: gc use aio

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
7 years agoMerge PR #20643 into master
Patrick Donnelly [Thu, 1 Mar 2018 16:48:30 +0000 (08:48 -0800)]
Merge PR #20643 into master

* refs/pull/20643/head:
ceph-volume-client: fix command argument order

Reviewed-by: Ramana Raja <rraja@redhat.com>
7 years agoMerge pull request #20650 from ceph/wip-rm22841
Andrew Schoen [Thu, 1 Mar 2018 15:42:38 +0000 (16:42 +0100)]
Merge pull request #20650 from ceph/wip-rm22841

ceph-volume be resilient to $PATH issues

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agodoc: init flags to 0 in rados example 20671/head
Patrick Donnelly [Thu, 1 Mar 2018 15:02:00 +0000 (07:02 -0800)]
doc: init flags to 0 in rados example

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #20656 from yaozongyou/rbd-fix-return
Jason Dillaman [Thu, 1 Mar 2018 13:45:03 +0000 (08:45 -0500)]
Merge pull request #20656 from yaozongyou/rbd-fix-return

librbd: fix missing return in NotifyMessage::get_notify_op

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agorbd: allow remove all unprotected snapshots 20608/head
songweibin [Thu, 1 Mar 2018 12:28:12 +0000 (20:28 +0800)]
rbd: allow remove all unprotected snapshots

allow remove all unprotected snapshots when exiting
protected snapshots in the same image.
Fixes: http://tracker.ceph.com/issues/23126
Signed-off-by: songweibin <song.weibin@zte.com.cn>
7 years agorbd: import with option --export-format fails to protect snapshot 20613/head
songweibin [Tue, 27 Feb 2018 09:33:54 +0000 (17:33 +0800)]
rbd: import with option --export-format fails to protect snapshot

Fixes: http://tracker.ceph.com/issues/23038
Signed-off-by: songweibin <song.weibin@zte.com.cn>
7 years agomon, osd: fix potential collided *Up Set* after PG remapping 20653/head
xie xingguo [Wed, 28 Feb 2018 02:50:00 +0000 (10:50 +0800)]
mon, osd: fix potential collided *Up Set* after PG remapping

The mgr balancer module are basically doing optimizations based on
the snapshots of OSDMap at certain moments, which turns out to be
the culprit of data loss since it can produce bad PG mapping results
sometimes while in upmap mode.
I.e.:
1) original cluster topology:

-5       2.00000     host host-a
 0   ssd 1.00000         osd.0       up  1.00000 1.00000
 1   ssd 1.00000         osd.1       up  1.00000 1.00000
-7       2.00000     host host-b
 2   ssd 1.00000         osd.2       up  1.00000 1.00000
 3   ssd 1.00000         osd.3       up  1.00000 1.00000
-9       2.00000     host host-c
 4   ssd 1.00000         osd.4       up  1.00000 1.00000
 5   ssd 1.00000         osd.5       up  1.00000 1.00000

2) mgr balancer applies optimization for PG 3.f:

            pg-upmap-items[3.f : 1->4]
3.f [1 3] + -------------------------> [4 3]

3) osd.3 is out/reweighted etc., original crush mapping of 3.f changed
   (while pg-upmap-items did not):

            pg-upmap-items[3.f : 1->4]
3.f [1 5] + -------------------------> [4 5]

4) we are now mapping PG 3.f to two OSDs(osd.4 & osd.5) on the same host
   (host-c).

Fix the above problem by putting a guard procedure before we can
finally encode these *unsafe* upmap remappings into OSDMap.
If any of them turns out to be inappropriate, we can simply cancel it
since balancer can still re-calculate and re-generate later if necessary.

Fixes: http://tracker.ceph.com/issues/23118
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #20640 from tchaikov/wip-async-dpdk-temp-str
Kefu Chai [Thu, 1 Mar 2018 11:19:01 +0000 (19:19 +0800)]
Merge pull request #20640 from tchaikov/wip-async-dpdk-temp-str

msg/async: avoid referencing the temporary string

Reviewed-by: Haomai Wang <haomai@xsky.com>
7 years agoMerge pull request #20531 from xiexingguo/wip-ec-scrub-sleep
Kefu Chai [Thu, 1 Mar 2018 11:17:26 +0000 (19:17 +0800)]
Merge pull request #20531 from xiexingguo/wip-ec-scrub-sleep

osd/ECBackend: inject sleep during deep scrub

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoqa/standalone: s/delete_erasure_pool/delete_erasure_coded_pool/ 20667/head
Kefu Chai [Thu, 1 Mar 2018 11:09:15 +0000 (19:09 +0800)]
qa/standalone: s/delete_erasure_pool/delete_erasure_coded_pool/

it's a regression introduced by ac56a202

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agomon: fix clang error 20637/head
Willem Jan Withagen [Wed, 28 Feb 2018 10:00:54 +0000 (11:00 +0100)]
mon: fix clang error

The specific specialisations in both .h and .cc does not really fly
with Clang

/home/jenkins/workspace/ceph-master/src/mon/MDSMonitor.cc:79:22: error: template parameter redefines default argument
template <int dblV = 7>
                     ^
/home/jenkins/workspace/ceph-master/src/mon/MDSMonitor.h:76:23: note: previous default template argument defined here
  template<int dblV = 7>
                      ^
1 error generated.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
7 years agopybind/mgr/prometheus: extend daemon metadata with hostname and ceph version 20506/head
Jan Fajerski [Tue, 27 Feb 2018 09:19:39 +0000 (10:19 +0100)]
pybind/mgr/prometheus: extend daemon metadata with hostname and ceph version

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
7 years agopybind/mgr/prometheus: add fs and mds metadata metrics
Jan Fajerski [Tue, 20 Feb 2018 10:06:19 +0000 (11:06 +0100)]
pybind/mgr/prometheus: add fs and mds metadata metrics

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
7 years agopybind/mgr/prometheus: new mon metrics
Jan Fajerski [Mon, 19 Feb 2018 11:25:02 +0000 (12:25 +0100)]
pybind/mgr/prometheus: new mon metrics

Remove mon_quorum_count and replace it with per-MON quorum status
(mon_quorum_status). Also add mon_metadata metrics.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
7 years agopybind/mgr/prometheus: add Metrics class to manage Metric instances
Jan Fajerski [Sat, 17 Feb 2018 11:07:46 +0000 (12:07 +0100)]
pybind/mgr/prometheus: add Metrics class to manage Metric instances

The central change of this commit is that per-daemon metrics are now
managed by first appending the metric (using Metrics.append) to a
staging area. Then the metrics for specific paths (metric names) are
overwritten by the staged metrics (by calling Metrics.reset). This gets
rid of metrics from daemon that are no longer in the cluster. I.e. when
ceph no longer reports metrics for one OSD daemon (because it was
removed from the cluster) the prometheus module will no longer export
metrics for that daemon.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
7 years agomon: drop unused variable - 'args'
songweibin [Thu, 1 Mar 2018 07:20:49 +0000 (15:20 +0800)]
mon: drop unused variable - 'args'

Signed-off-by: songweibin <song.weibin@zte.com.cn>
7 years agoMerge pull request #20630 from joscollin/wip-doc-monitoring
Jos Collin [Thu, 1 Mar 2018 06:16:34 +0000 (11:46 +0530)]
Merge pull request #20630 from joscollin/wip-doc-monitoring

doc: Update monitoring.rst

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: João Eduardo Luís <joao@suse.de>
Reviewed-by: Lenz Grimmer <lenz@grimmer.com>
7 years agodoc: Update monitoring.rst 20630/head
Jos Collin [Wed, 28 Feb 2018 06:16:45 +0000 (11:46 +0530)]
doc: Update monitoring.rst

Updated monitoring.rst with
* Latest command output
* misc doc fixes

Signed-off-by: Jos Collin <jcollin@redhat.com>
7 years agorbd: fix return is missing in NotifyMessage::get_notify_op 20656/head
Yao Zongyou [Thu, 1 Mar 2018 03:15:44 +0000 (11:15 +0800)]
rbd: fix return is missing in NotifyMessage::get_notify_op

Signed-off-by: Yao Zongyou <yaozongyou@vip.qq.com>
7 years agoosd/OSDMap: skip out/crush-out osds 20655/head
xie xingguo [Thu, 1 Mar 2018 02:42:32 +0000 (10:42 +0800)]
osd/OSDMap: skip out/crush-out osds

We might do 'ceph osd out <osd.x>' or 'ceph osd crush reweight <osd.x> 0'
for various reasons, and hence can produce 0-weighted OSDs.
Skip those OSDs when trying to calculdate PG upmaps so we won't be able to
hit the *assert* below:

/build/ceph-13.0.1-2232-g64665c7/src/osd/OSDMap.cc: 4179: FAILED assert(target > 0)

See also:

http://pulpito.ceph.com/xxg-2018-02-28_09:02:53-rados-wip-fix-upmap-distro-basic-smithi/2235497/

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoceph-volume process always try to expand the executable 20650/head
Alfredo Deza [Wed, 28 Feb 2018 16:59:35 +0000 (11:59 -0500)]
ceph-volume process always try to expand the executable

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.util ensure behavior of new which utility
Alfredo Deza [Mon, 26 Feb 2018 21:27:38 +0000 (16:27 -0500)]
ceph-volume tests.util ensure behavior of new which utility

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume util.system add a helper to find system executables
Alfredo Deza [Mon, 26 Feb 2018 21:17:12 +0000 (16:17 -0500)]
ceph-volume util.system add a helper to find system executables

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #20646 from tchaikov/wip-qa/run-standalone.sh/python-path
Kefu Chai [Wed, 28 Feb 2018 16:03:28 +0000 (00:03 +0800)]
Merge pull request #20646 from tchaikov/wip-qa/run-standalone.sh/python-path

qa/run-standalone.sh: set PYTHONPATH for FreeBSD also

Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #20634 from tchaikov/wip-delete-pool-in-standalone-test
Kefu Chai [Wed, 28 Feb 2018 15:47:39 +0000 (23:47 +0800)]
Merge pull request #20634 from tchaikov/wip-delete-pool-in-standalone-test

qa/standalone: extract delete_pool()

Reviewed-by: David Zafman <dzafman@redhat.com>
7 years agoMerge pull request #20619 from theanalyst/doc/release-notes/12.2.4
Abhishek L [Wed, 28 Feb 2018 15:42:12 +0000 (16:42 +0100)]
Merge pull request #20619 from theanalyst/doc/release-notes/12.2.4

doc: 12.2.4 release notes

Reviewed-By: Alfredo Deza <adeza@redhat.com>
Reviewed-By: Lenz Grimmer <lgrimmer@suse.com>
7 years agolibrados/snap_set_diff: don't assert on empty snapset 20648/head
Mykola Golub [Mon, 19 Feb 2018 11:17:29 +0000 (13:17 +0200)]
librados/snap_set_diff: don't assert on empty snapset

Instead treat the diff as a full-object delta.

Signed-off-by: Mykola Golub <mgolub@suse.com>
7 years agoqa/run-standalone.sh: set PYTHONPATH for FreeBSD also 20646/head
Kefu Chai [Wed, 28 Feb 2018 14:22:03 +0000 (22:22 +0800)]
qa/run-standalone.sh: set PYTHONPATH for FreeBSD also

do not set PYTHONPATH=/usr/lib/python2.7/dist-packages anymore, it will
be overridden later on anyway.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #19015 from hansbogert/master
Yuri Weinstein [Wed, 28 Feb 2018 14:25:31 +0000 (06:25 -0800)]
Merge pull request #19015 from hansbogert/master

mon: Add `ceph osd get-require-min-compat-client` command

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Amit Kumar <amitkuma@redhat.com>
7 years agoMerge pull request #20607 from shangfufei/test_stack
Kefu Chai [Wed, 28 Feb 2018 14:02:02 +0000 (22:02 +0800)]
Merge pull request #20607 from shangfufei/test_stack

msg/async:fix the incoming parameter type of EventCenter::process_events()

Reviewed-by: Haomai Wang <haomai@xsky.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20509 from liewegas/wip-less-filestore-idempotent
Kefu Chai [Wed, 28 Feb 2018 13:59:24 +0000 (21:59 +0800)]
Merge pull request #20509 from liewegas/wip-less-filestore-idempotent

qa/tasks/filestore_idempotent: shorter test

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20498 from liewegas/wip-22616
Kefu Chai [Wed, 28 Feb 2018 13:58:14 +0000 (21:58 +0800)]
Merge pull request #20498 from liewegas/wip-22616

os/bluestore: trim cache every 50ms (instead of 200ms)

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Igor Fedotov <ifedotov@suse.com>
7 years agoMerge pull request #20616 from tchaikov/wip-cmake
Kefu Chai [Wed, 28 Feb 2018 13:53:23 +0000 (21:53 +0800)]
Merge pull request #20616 from tchaikov/wip-cmake

cmake/BuildBoost: fixes to ready seastar

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #20636 from tchaikov/wip-23169
Kefu Chai [Wed, 28 Feb 2018 13:50:46 +0000 (21:50 +0800)]
Merge pull request #20636 from tchaikov/wip-23169

Revert "core: hint the dout()'s message crafting as a cold code."

Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
7 years agoMerge pull request #20631 from tchaikov/wip-cmake-systemd
Kefu Chai [Wed, 28 Feb 2018 13:49:36 +0000 (21:49 +0800)]
Merge pull request #20631 from tchaikov/wip-cmake-systemd

cmake: s/sysconf/sysconfig/

Reviewed-by: Nathan Cutler <ncutler@suse.cz>
Reviewed-by: Lenz Grimmer <lenz@grimmer.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
7 years agoceph-volume-client: fix command argument order 20643/head
Patrick Donnelly [Tue, 27 Feb 2018 11:35:00 +0000 (03:35 -0800)]
ceph-volume-client: fix command argument order

Fixes: http://tracker.ceph.com/issues/22038
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agomsg/async: avoid referencing the temporary string 20640/head
Kefu Chai [Wed, 28 Feb 2018 11:15:19 +0000 (19:15 +0800)]
msg/async: avoid referencing the temporary string

* get_val<std::string>(...) returns a temporary std::string, so we cannot
  keep a reference to it after evaluating this method. so convert it to
  an integer right away in the same expression.
* use std::stoull() with base = 16, so we can parse a hex string
  representing up to 64 bits.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #15849 from theanalyst/wip-doc-es
Abhishek L [Wed, 28 Feb 2018 09:44:43 +0000 (10:44 +0100)]
Merge pull request #15849 from theanalyst/wip-doc-es

doc: rgw add some basic documentation for sync plugins & ES

Reviewed-By: Yehuda Sadeh <yehuda@redhat.com>
7 years agodoc: 12.2.4 release notes 20619/head
Abhishek Lekshmanan [Tue, 27 Feb 2018 17:46:41 +0000 (18:46 +0100)]
doc: 12.2.4 release notes

And updating the release table

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
7 years agoRevert "core: hint the dout()'s message crafting as a cold code." 20636/head
Kefu Chai [Wed, 28 Feb 2018 08:24:16 +0000 (16:24 +0800)]
Revert "core: hint the dout()'s message crafting as a cold code."

This reverts commit b265ed2955570c17b954270e6a1449637790e9b8.

with b265ed29, we cannot use `dout(10) << __func__ << ...` anymore for
logging the name of the inner most function. what we will have is
always `operator()`, because the lambda closure will be the inner most
function with the the hinting change.

Fixes: http://tracker.ceph.com/issues/23169
Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoqa/standalone: extract delete_pool() 20634/head
Kefu Chai [Wed, 28 Feb 2018 07:40:25 +0000 (15:40 +0800)]
qa/standalone: extract delete_pool()

some tests, like osd-backfill-stats.sh are using delete_pool(), but
they don't have this function defined. and this function is defined
in standalone tests separately, so would be simpler if we can
consolidate them in ceph-helper.sh.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20411 from majianpeng/sync-nvml-submodule
Kefu Chai [Wed, 28 Feb 2018 07:19:09 +0000 (15:19 +0800)]
Merge pull request #20411 from majianpeng/sync-nvml-submodule

cmake: sync nvml submodule to latest code.

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoos/bluestore: make PMEMDevice work based on latest pmdk. 20411/head
Jianpeng Ma [Wed, 28 Feb 2018 09:58:16 +0000 (17:58 +0800)]
os/bluestore: make PMEMDevice work based on latest pmdk.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
7 years agocmake: sync nvml submodule
Jianpeng Ma [Tue, 27 Feb 2018 11:49:59 +0000 (19:49 +0800)]
cmake: sync nvml submodule

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
7 years agocmake: s/sysconf/sysconfig/ 20631/head
Kefu Chai [Wed, 28 Feb 2018 06:49:43 +0000 (14:49 +0800)]
cmake: s/sysconf/sysconfig/

it's a regression caused by 638aadf

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20618 from tchaikov/wip-systemd-deb-env
Kefu Chai [Wed, 28 Feb 2018 06:42:34 +0000 (14:42 +0800)]
Merge pull request #20618 from tchaikov/wip-systemd-deb-env

cmake,deb: install system units using cmake

Reviewed-by: Nathan Cutler <ncutler@suse.com>
7 years agorgw: reuse CURL* for keystone. 20635/head
Marcus Watts [Tue, 27 Feb 2018 07:53:37 +0000 (02:53 -0500)]
rgw: reuse CURL* for keystone.

When using keystone with https (the recommended setting),
it is inefficient to start up a new SSL connection for
each and every operation.  Keeping a CURL* structure around
should reduce the cost of doing this.  This logic tries
to do so, but it also tries to free them fairly aggressively
(5-10 seconds).  This should still greatly reduce load on
keystone at peak times while not tying up excess resources.

Fixes: https://tracker.ceph.com/issues/23162
Signed-off-by: Marcus Watts <mwatts@redhat.com>
7 years agobuild/link against curl w/ openssl not nss or gnutls. (debian)
Marcus Watts [Mon, 26 Feb 2018 00:33:34 +0000 (19:33 -0500)]
build/link against curl w/ openssl not nss or gnutls. (debian)

curl + gnutls has some big significant performance hits at least
when doing keystone validation.  nss has long-term memory growth
issues.

Signed-off-by: Marcus Watts <mwatts@redhat.com>
7 years agoMerge pull request #20602 from gregsfortytwo/wip-23141-rotational
Kefu Chai [Wed, 28 Feb 2018 01:35:17 +0000 (09:35 +0800)]
Merge pull request #20602 from gregsfortytwo/wip-23141-rotational

os/bluestore: correctly check all block devices to decide if journal is_rotational

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #20595 from jcsp/wip-23037
Kefu Chai [Wed, 28 Feb 2018 01:33:33 +0000 (09:33 +0800)]
Merge pull request #20595 from jcsp/wip-23037

mgr: die on bind() failure

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20593 from tchaikov/wip-23121
Kefu Chai [Wed, 28 Feb 2018 01:31:07 +0000 (09:31 +0800)]
Merge pull request #20593 from tchaikov/wip-23121

ceph-objectstore-tool: don't destroy SnapMapper until the txn is completed

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: David Zafman <dzafman@redhat.com>
7 years agoMerge pull request #20540 from ovh/bp-optracker-cleanup
Kefu Chai [Wed, 28 Feb 2018 01:29:10 +0000 (09:29 +0800)]
Merge pull request #20540 from ovh/bp-optracker-cleanup

common/OpHistory: move insert/cleanup into separate thread

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20539 from zeichenanonym/mgr-prometheus-fix-metadata-does-not...
Kefu Chai [Wed, 28 Feb 2018 01:27:53 +0000 (09:27 +0800)]
Merge pull request #20539 from zeichenanonym/mgr-prometheus-fix-metadata-does-not-exist

mgr: prometheus: Don't crash on OSDs without metadata

Reviewed-by: Jan Fajerski <jfajerski@suse.com>
Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #20530 from wido/issue-23078
Kefu Chai [Wed, 28 Feb 2018 01:25:16 +0000 (09:25 +0800)]
Merge pull request #20530 from wido/issue-23078

common/dns_resolv.cc: Query for AAAA-record if ms_bind_ipv6 is True

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20394 from liewegas/wip-pg-log-size
Kefu Chai [Wed, 28 Feb 2018 01:24:08 +0000 (09:24 +0800)]
Merge pull request #20394 from liewegas/wip-pg-log-size

osd: min_pg_log_entries == max == pg_log_dups_tracked

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #20290 from rzarzynski/wip-common-subsystemmap
Kefu Chai [Wed, 28 Feb 2018 01:23:01 +0000 (09:23 +0800)]
Merge pull request #20290 from rzarzynski/wip-common-subsystemmap

core: make the main dout() paths faster and more maintanable

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20273 from adamemerson/wip-any-singleton-will-do
Kefu Chai [Wed, 28 Feb 2018 01:21:41 +0000 (09:21 +0800)]
Merge pull request #20273 from adamemerson/wip-any-singleton-will-do

common: Switch singletons to use immobile_any and cleanups

Reviewed-by: Jesse Williamson <jwilliamson@suse.de>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20528 from tchaikov/wip-22462
Kefu Chai [Wed, 28 Feb 2018 01:18:36 +0000 (09:18 +0800)]
Merge pull request #20528 from tchaikov/wip-22462

mon: add MMonHealth back

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20415 from wumingqiao/wip-fallocate
Kefu Chai [Wed, 28 Feb 2018 01:17:36 +0000 (09:17 +0800)]
Merge pull request #20415 from wumingqiao/wip-fallocate

filestore: include <linux/falloc.h>

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20620 from ceph/wip-rm23140
Alfredo Deza [Tue, 27 Feb 2018 21:42:47 +0000 (16:42 -0500)]
Merge pull request #20620 from ceph/wip-rm23140

ceph-volume: adds raw device support to 'lvm list'

Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agolibrbd: normalization for group C API 20578/head
Mykola Golub [Tue, 27 Feb 2018 14:49:49 +0000 (16:49 +0200)]
librbd: normalization for group C API

Signed-off-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #20599 from dillaman/wip-librbd-devstack-tempest
Mykola Golub [Tue, 27 Feb 2018 18:43:36 +0000 (20:43 +0200)]
Merge pull request #20599 from dillaman/wip-librbd-devstack-tempest

qa/workunits/rbd: switch devstack tempest to 17.2.0 tag

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agorgw: don't hold data_lock over frontend io 20621/head
Casey Bodley [Tue, 27 Feb 2018 18:20:32 +0000 (13:20 -0500)]
rgw: don't hold data_lock over frontend io

get_obj_data::data_lock protects access to the read_list, which the
librados finisher thread appends to on completions

locking isn't needed over calls to d->client_cb->handle_data() in
get_obj_iterate_cb(), because this callback is called synchronously
from the frontend/process_request() thread - no other thread will
be submitting io to the d->client_cb callback

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #20612 from fangyuxiangGL/com
Casey Bodley [Tue, 27 Feb 2018 18:32:01 +0000 (13:32 -0500)]
Merge pull request #20612 from fangyuxiangGL/com

rgw: download object might fail for local invariable uninitialized

Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #19845 from fangyuxiangGL/escape
Yuri Weinstein [Tue, 27 Feb 2018 17:49:12 +0000 (09:49 -0800)]
Merge pull request #19845 from fangyuxiangGL/escape

rgw: rework json/xml escape usage follow #19806

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #20352 from yehudasa/wip-22928
Yuri Weinstein [Tue, 27 Feb 2018 17:48:16 +0000 (09:48 -0800)]
Merge pull request #20352 from yehudasa/wip-22928

rgw: use explicit index pool placement

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
7 years agoMerge pull request #20440 from cbodley/wip-qa-rgw-beast
Yuri Weinstein [Tue, 27 Feb 2018 17:47:05 +0000 (09:47 -0800)]
Merge pull request #20440 from cbodley/wip-qa-rgw-beast

qa/rgw: remove some civetweb overrides for beast testing

Reviewed-by: Adam Emerson <aemerson@redhat.com>
7 years agoMerge pull request #20471 from mdw-at-linuxbox/wip-master-swacldel
Yuri Weinstein [Tue, 27 Feb 2018 17:46:30 +0000 (09:46 -0800)]
Merge pull request #20471 from mdw-at-linuxbox/wip-master-swacldel

rgw: Allow swift acls to be deleted.

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
7 years agorgw: download object might fail for local invariable uninitialized 20612/head
fang yuxiang [Tue, 27 Feb 2018 17:05:22 +0000 (01:05 +0800)]
rgw: download object might fail for local invariable uninitialized

This is an omission in #20226

Fixes: http://tracker.ceph.com/issues/23146
Signed-off-by: fang yuxiang <fang.yuxiang@eisoo.com>