]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agoMerge pull request #22185 from ceph/wip-yuri-powercycle
Sage Weil [Fri, 25 May 2018 16:24:48 +0000 (11:24 -0500)]
Merge pull request #22185 from ceph/wip-yuri-powercycle

qa/tests:  added supported distro for powercycle suite

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #22204 from tchaikov/wip-cmake-silence-bjam
Kefu Chai [Fri, 25 May 2018 14:25:22 +0000 (22:25 +0800)]
Merge pull request #22204 from tchaikov/wip-cmake-silence-bjam

cmake: always turn off bjam debugging output

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #22126 from cbodley/wip-qa-rgw-no-ec-cache
Casey Bodley [Fri, 25 May 2018 14:08:12 +0000 (10:08 -0400)]
Merge pull request #22126 from cbodley/wip-qa-rgw-no-ec-cache

qa/rgw: disable testing on ec-cache pools

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #22124 from cbodley/wip-rgw-test-zonegroup-checkpoint
Casey Bodley [Fri, 25 May 2018 14:07:30 +0000 (10:07 -0400)]
Merge pull request #22124 from cbodley/wip-rgw-test-zonegroup-checkpoint

test/rgw: fix for bucket checkpoints

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agoMerge pull request #22246 from tchaikov/wip-mkfs-EINVAL
Sage Weil [Fri, 25 May 2018 13:51:30 +0000 (08:51 -0500)]
Merge pull request #22246 from tchaikov/wip-mkfs-EINVAL

qa: use $TESTDIR for testing mkfs

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoqa: use $TESTDIR for testing mkfs 22246/head
Kefu Chai [Fri, 25 May 2018 12:06:45 +0000 (20:06 +0800)]
qa: use $TESTDIR for testing mkfs

as tmpfs does not support O_DIRECT, but bluefs use this flag for
accessing the underlying file.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge PR #22163 into wip-sage-testing-20180525.131829
Sage Weil [Fri, 25 May 2018 13:18:42 +0000 (08:18 -0500)]
Merge PR #22163 into wip-sage-testing-20180525.131829

* refs/pull/22163/head:
CodingStyle: update my_type_t sample
CodingStyle: allow #pragma once
CodingStyle: a few updates

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Jesse Williamson <jwilliamson@suse.de>
7 years agoMerge pull request #22237 from a2batic/link
Lenz Grimmer [Fri, 25 May 2018 10:00:50 +0000 (12:00 +0200)]
Merge pull request #22237 from a2batic/link

mgr/dashboard: Fixes documentation link- to open in new tab

Reviewed-by: Ricardo Marques <rimarques@suse.com>
7 years agoMerge pull request #22182 from tspmelo/wip-unit-test-pipe
Lenz Grimmer [Fri, 25 May 2018 09:37:27 +0000 (11:37 +0200)]
Merge pull request #22182 from tspmelo/wip-unit-test-pipe

mgr/dashboard: Add unit tests for all frontend pipes

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agoMerge pull request #22206 from theanalyst/wip-doc-tag-fix
Abhishek L [Fri, 25 May 2018 08:43:55 +0000 (10:43 +0200)]
Merge pull request #22206 from theanalyst/wip-doc-tag-fix

doc: rgw: fix tagging support status

Reviewed-By: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #22207 from tchaikov/wip-dpp-constexpr
Kefu Chai [Fri, 25 May 2018 06:49:29 +0000 (14:49 +0800)]
Merge pull request #22207 from tchaikov/wip-dpp-constexpr

dout: declare dpp using `decltype(auto)` instead of `auto`

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agomgr/dashboard: Fixes documentation link- to open in new tab 22237/head
a2batic [Fri, 25 May 2018 05:34:38 +0000 (11:04 +0530)]
mgr/dashboard: Fixes documentation link- to open in new tab
Adds 'target' attribute to open link in new tab.
Fixes : https://tracker.ceph.com/issues/24288

Signed-off-by: a2batic <murarkakanika@gmail.com>
7 years agoMerge PR #22026 into master
Patrick Donnelly [Fri, 25 May 2018 04:05:01 +0000 (21:05 -0700)]
Merge PR #22026 into master

* refs/pull/22026/head:
mds: send cap export message when exporting non-auth caps to auth mds

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #22232 from batrick/cephfs-release-notes-mimic
Sage Weil [Fri, 25 May 2018 02:06:51 +0000 (21:06 -0500)]
Merge pull request #22232 from batrick/cephfs-release-notes-mimic

doc/releases: update CephFS mimic notes

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #22195 from neha-ojha/wip-minor-fixes
David Zafman [Thu, 24 May 2018 23:48:48 +0000 (16:48 -0700)]
Merge pull request #22195 from neha-ojha/wip-minor-fixes

qa/suites/rados: minor fixes

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agodoc/releases: update CephFS mimic notes 22232/head
Patrick Donnelly [Thu, 24 May 2018 21:29:55 +0000 (14:29 -0700)]
doc/releases: update CephFS mimic notes

Fixes: http://tracker.ceph.com/issues/23775
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #22034 from mogeb/iostat-doc
Sage Weil [Thu, 24 May 2018 21:48:32 +0000 (16:48 -0500)]
Merge pull request #22034 from mogeb/iostat-doc

doc: add documentation for iostat

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoCodingStyle: update my_type_t sample 22163/head
Sage Weil [Thu, 24 May 2018 19:03:49 +0000 (14:03 -0500)]
CodingStyle: update my_type_t sample

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #22112 from szeestraten/fix_24199
Sage Weil [Thu, 24 May 2018 18:05:11 +0000 (13:05 -0500)]
Merge pull request #22112 from szeestraten/fix_24199

common: fix typo in rados bench write JSON output

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #22093 from liewegas/wip-24162
Sage Weil [Thu, 24 May 2018 18:01:44 +0000 (13:01 -0500)]
Merge pull request #22093 from liewegas/wip-24162

msg/async/Event: clear time_events on shutdown

Reviewed-by: Hoamai Wang <haomai@xsky.com>
7 years agoMerge pull request #21491 from majianpeng/kerneldevice
Sage Weil [Thu, 24 May 2018 18:01:24 +0000 (13:01 -0500)]
Merge pull request #21491 from majianpeng/kerneldevice

os/bluestore/KernelDevice: misc cleanup

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #22216 from votdev/fix_table_pagination_style
Lenz Grimmer [Thu, 24 May 2018 14:33:34 +0000 (16:33 +0200)]
Merge pull request #22216 from votdev/fix_table_pagination_style

mgr/dashboard: Fix some datatable CSS issues

Approved-by: Ricardo Marques <rimarques@suse.com>
7 years agomgr/dashboard: Fix some datatable CSS issues 22216/head
Volker Theile [Thu, 24 May 2018 11:53:38 +0000 (13:53 +0200)]
mgr/dashboard: Fix some datatable CSS issues

Signed-off-by: Volker Theile <vtheile@suse.com>
7 years agoMerge pull request #22214 from joscollin/wip-ceph-fuse-typo
Kefu Chai [Thu, 24 May 2018 12:16:50 +0000 (20:16 +0800)]
Merge pull request #22214 from joscollin/wip-ceph-fuse-typo

doc: Fix typo in ceph-fuse(8)

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agodoc: Fix typo in ceph-fuse 22214/head
Jos Collin [Thu, 24 May 2018 11:57:02 +0000 (17:27 +0530)]
doc: Fix typo in ceph-fuse

Fixes: https://github.com/ceph/ceph/pull/21616#pullrequestreview-122923127
Signed-off-by: Jos Collin <jcollin@redhat.com>
7 years agomgr/dashboard: Add unit tests for all frontend pipes 22182/head
Tiago Melo [Wed, 23 May 2018 13:30:55 +0000 (14:30 +0100)]
mgr/dashboard: Add unit tests for all frontend pipes

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agoMerge pull request #22205 from tchaikov/wip-librgw_admin_user
Orit Wasserman [Thu, 24 May 2018 10:57:46 +0000 (13:57 +0300)]
Merge pull request #22205 from tchaikov/wip-librgw_admin_user

deb,rpm: package librgw_admin_user.{h,so.*}

7 years agoMerge pull request #22181 from tchaikov/wip-24025
Kefu Chai [Thu, 24 May 2018 09:46:48 +0000 (17:46 +0800)]
Merge pull request #22181 from tchaikov/wip-24025

cmake/modules/BuildRocksDB.cmake: enable compressions for rocksdb

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agodout: declare dpp using `decltype(auto)` instead of `auto` 22207/head
Kefu Chai [Thu, 24 May 2018 09:21:42 +0000 (17:21 +0800)]
dout: declare dpp using `decltype(auto)` instead of `auto`

this makes `pdpp` an alias of `dpp`, guess this ensure GCC that the
returned `sub` is a constant.

In file included from /home/kefu/dev/ceph/src/kv/LevelDBStore.h:25,
                 from /home/kefu/dev/ceph/src/kv/KeyValueDB.cc:6:
/home/kefu/dev/ceph/src/osd/osd_types.h: In lambda function:
/home/kefu/dev/ceph/src/common/dout.h:101:75: error: the value of ‘pdpp’
is not usable in a constant expression
     dout_impl(pdpp->get_cct(),
ceph::dout::need_dynamic(pdpp->get_subsys()), v) \
                                                                           ^
/home/kefu/dev/ceph/src/common/dout.h:81:58: note: in definition of
macro ‘dout_impl’
       return (cctX->_conf->subsys.template should_gather<sub, v>()); \
                                                          ^~~
/home/kefu/dev/ceph/src/osd/osd_types.h:2992:3: note: in expansion of
macro ‘ldpp_dout’
   ldpp_dout(dpp, 10) << "build_prior all_probe " << all_probe << dendl;
   ^~~~~~~~~
/home/kefu/dev/ceph/src/common/dout.h:100:12: note: ‘pdpp’ was not
declared ‘constexpr’
   if (auto pdpp = (dpp); pdpp) /* workaround -Wnonnull-compare for
'this' */ \
            ^~~~
/home/kefu/dev/ceph/src/common/dout.h:100:12: note: in definition of
macro ‘ldpp_dout’
   if (auto pdpp = (dpp); pdpp) /* workaround -Wnonnull-compare for
'this' */ \
            ^~~~

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agodoc: rgw: fix tagging support status 22206/head
Abhishek Lekshmanan [Thu, 24 May 2018 09:05:56 +0000 (11:05 +0200)]
doc: rgw: fix tagging support status

As of mimic, policy and LC conditionals for tagging are merged, so let's drop
the unsupported status.

Fixes: http://tracker.ceph.com/issues/24164
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
7 years agodeb,rpm: package librgw_admin_user.{h,so.*} 22205/head
Kefu Chai [Thu, 24 May 2018 08:21:48 +0000 (16:21 +0800)]
deb,rpm: package librgw_admin_user.{h,so.*}

* install and package librgw_admin_user.h, so developers can use it to
  create rgw user.
* package librgw_admin_user, so user can use it to create rgw user.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: always turn off bjam debugging output 22204/head
Kefu Chai [Thu, 24 May 2018 07:55:01 +0000 (15:55 +0800)]
cmake: always turn off bjam debugging output

we have 'DH_VERBOSE=1' in debian/rules, which instructs debhelper to
pass -DCMAKE_VERBOSE_MAKEFILE=ON to cmake. but the verbose output for
building boost does not really help if something goes wrong while
building the deb packages. if we do want to enable the verbose output,
we can always enable it by passing `-d <N>' to it. see
https://boostorg.github.io/build/manual/develop/index.html#bbv2.overview.invocation.options
.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #22198 from dzafman/wip-minor
Kefu Chai [Thu, 24 May 2018 06:40:21 +0000 (14:40 +0800)]
Merge pull request #22198 from dzafman/wip-minor

test: wait_for_pg_stats() should do another check after last 13 secon…

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agotest: wait_for_pg_stats() should do another check after last 13 second sleep 22198/head
David Zafman [Thu, 24 May 2018 00:27:14 +0000 (17:27 -0700)]
test: wait_for_pg_stats() should do another check after last 13 second sleep

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoMerge pull request #22194 from yehudasa/wip-fix-build
Yehuda Sadeh [Wed, 23 May 2018 22:41:19 +0000 (15:41 -0700)]
Merge pull request #22194 from yehudasa/wip-fix-build

rgw: fix build

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoqa/suites/rados/objectstore: move yaml files under a subdir 22195/head
Neha Ojha [Wed, 23 May 2018 22:27:41 +0000 (15:27 -0700)]
qa/suites/rados/objectstore: move yaml files under a subdir

Signed-off-by: Neha Ojha <nojha@redhat.com>
7 years agoqa: whitelist SMALLER_PGP_NUM
Neha Ojha [Wed, 23 May 2018 22:15:54 +0000 (15:15 -0700)]
qa: whitelist SMALLER_PGP_NUM

Signed-off-by: Neha Ojha <nojha@redhat.com>
7 years agorgw: fix build 22194/head
Yehuda Sadeh [Wed, 23 May 2018 21:11:51 +0000 (14:11 -0700)]
rgw: fix build

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agoMerge pull request #22190 from smithfarm/wip-google-style
Sage Weil [Wed, 23 May 2018 20:06:04 +0000 (15:06 -0500)]
Merge pull request #22190 from smithfarm/wip-google-style

doc/SubmittingPatches.rst: use Google style guide for doc patches

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agodoc/SubmittingPatches.rst: rv double spaces and Please 22190/head
Nathan Cutler [Wed, 23 May 2018 18:29:37 +0000 (20:29 +0200)]
doc/SubmittingPatches.rst: rv double spaces and Please

Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agodoc/SubmittingPatches.rst: use Google style guide for doc patches
Nathan Cutler [Wed, 23 May 2018 18:18:30 +0000 (20:18 +0200)]
doc/SubmittingPatches.rst: use Google style guide for doc patches

Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agoMerge pull request #22186 from cbodley/wip-cmake-rgw-request
Casey Bodley [Wed, 23 May 2018 16:47:19 +0000 (12:47 -0400)]
Merge pull request #22186 from cbodley/wip-cmake-rgw-request

cmake: remove deleted rgw_request.cc from CMakeLists.txt

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agocmake/modules/BuildRocksDB.cmake: enable compressions for rocksdb 22181/head
Kefu Chai [Wed, 23 May 2018 15:20:21 +0000 (23:20 +0800)]
cmake/modules/BuildRocksDB.cmake: enable compressions for rocksdb

we should enable them if they are found.

currently, we don't have bzip2 compressor plugin, so it's not detected
in the cmake script. we can always enable it for rocksdb in future.

Fixes: http://tracker.ceph.com/issues/24025
Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: remove deleted rgw_request.cc from CMakeLists.txt 22186/head
Casey Bodley [Wed, 23 May 2018 15:53:15 +0000 (11:53 -0400)]
cmake: remove deleted rgw_request.cc from CMakeLists.txt

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoqa/tests: added supported distor for powercycle suite 22185/head
Yuri Weinstein [Wed, 23 May 2018 15:25:24 +0000 (08:25 -0700)]
qa/tests:  added supported distor for powercycle suite

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
7 years agoMerge pull request #22116 from alfredodeza/wip-cv-ansible-deps
Andrew Schoen [Wed, 23 May 2018 15:08:01 +0000 (15:08 +0000)]
Merge pull request #22116 from alfredodeza/wip-cv-ansible-deps

ceph-volume tests.functional add notario dep for ceph-ansible

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #21439 from oritwas/wip-rgw-librgwadmin
Orit Wasserman [Wed, 23 May 2018 14:25:04 +0000 (17:25 +0300)]
Merge pull request #21439 from oritwas/wip-rgw-librgwadmin

new librgw_admin_us

7 years agoMerge pull request #22060 from ricardoasmarques/wip-perf-counter-breadcrumb
Lenz Grimmer [Wed, 23 May 2018 12:51:42 +0000 (14:51 +0200)]
Merge pull request #22060 from ricardoasmarques/wip-perf-counter-breadcrumb

Add performance counters breadcrumb

Reviewed-by: Tiago Melo <tmelo@suse.com>
7 years agoMerge pull request #22150 from ricardoasmarques/wip-improve-no-pools-message
Lenz Grimmer [Wed, 23 May 2018 12:49:07 +0000 (14:49 +0200)]
Merge pull request #22150 from ricardoasmarques/wip-improve-no-pools-message

mgr/dashboard: Improve 'no pool' message on rbd form

Reviewed-by: Kanika Murarka <murarkakanika@gmail.com>
7 years agoceph-volume tests.functional install new ceph-ansible dependencies 22116/head
Alfredo Deza [Mon, 21 May 2018 11:11:28 +0000 (07:11 -0400)]
ceph-volume tests.functional install new ceph-ansible dependencies

Make note that ceph-ansible's requirements.txt can't be used just yet

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #22158 from liewegas/wip-24222
Sage Weil [Wed, 23 May 2018 11:42:48 +0000 (06:42 -0500)]
Merge pull request #22158 from liewegas/wip-24222

mon/MgrMonitor: change 'unresponsive' message to info level

Reviewed-by: David Zafman <dzafman@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoCodingStyle: allow #pragma once
Sage Weil [Wed, 23 May 2018 11:42:09 +0000 (06:42 -0500)]
CodingStyle: allow #pragma once

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #22123 from liewegas/wip-24211
Kefu Chai [Wed, 23 May 2018 06:55:29 +0000 (14:55 +0800)]
Merge pull request #22123 from liewegas/wip-24211

os/bluestore: simplify and fix SharedBlob::put()

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
7 years agoMerge pull request #22127 from liewegas/wip-23386
Kefu Chai [Wed, 23 May 2018 06:47:49 +0000 (14:47 +0800)]
Merge pull request #22127 from liewegas/wip-23386

crush: fix device_class_clone for unpopulated/empty weight-sets

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #22110 from majianpeng/bluefs-flush-dirty-devices
Kefu Chai [Wed, 23 May 2018 06:46:18 +0000 (14:46 +0800)]
Merge pull request #22110 from majianpeng/bluefs-flush-dirty-devices

os/bluestore/BlueFS: only flush dirty devices when do _fsync

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Igor Fedotov <ifedotov@suse.com>
7 years agoMerge pull request #22129 from rzarzynski/wip-auth-fix-openssl-on-arm
Kefu Chai [Wed, 23 May 2018 06:42:17 +0000 (14:42 +0800)]
Merge pull request #22129 from rzarzynski/wip-auth-fix-openssl-on-arm

auth, test: fix building on ARMs after the NSS -> OpenSSL transition

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #22164 from dzafman/wip-test-fixes
Kefu Chai [Wed, 23 May 2018 06:35:04 +0000 (14:35 +0800)]
Merge pull request #22164 from dzafman/wip-test-fixes

test: Whitelist corrections

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoCodingStyle: a few updates
Sage Weil [Wed, 23 May 2018 02:40:11 +0000 (21:40 -0500)]
CodingStyle: a few updates

The C++ style was originally adopted in 2011.  Most of the guidelines
have been followed but some have not.  Drop the ones we haven't been
following.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #22156 from rzarzynski/wip-bug-24037
Sage Weil [Wed, 23 May 2018 01:21:33 +0000 (20:21 -0500)]
Merge pull request #22156 from rzarzynski/wip-bug-24037

common: OpTracker doesn't visit TrackedOp when nref == 0.

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agomon/MgrMonitor: change 'unresponsive' message to info level 22158/head
Sage Weil [Tue, 22 May 2018 21:55:03 +0000 (16:55 -0500)]
mon/MgrMonitor: change 'unresponsive' message to info level

We generate a MGR_DOWN health warning at the appropriate points; having
this at WRN level just triggers failed teuthology runs but doesn't much
value for the user.

Clear out teuthology whitelisting for this message.

Fixes: http://tracker.ceph.com/issues/24222
Signed-off-by: Sage Weil <sage@redhat.com>
7 years agotest: Whitelist corrections 22164/head
David Zafman [Tue, 22 May 2018 15:37:22 +0000 (08:37 -0700)]
test: Whitelist corrections

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agocommon: OpTracker doesn't visit TrackedOp when nref == 0. 22156/head
Radoslaw Zarzynski [Tue, 22 May 2018 13:50:44 +0000 (15:50 +0200)]
common: OpTracker doesn't visit TrackedOp when nref == 0.

The patch fixes a race condition that happens between
`unregister_inflight_op` and `visit_ops_in_flight` of
`OpTracker`. When a callable passed to the former one
turns the plain reference it gets into `TrackedOpRef`,
an almost-to-terminate `TrackedOp` (with `nref == 0`)
can be resurrected (`nref++`). This will be reflected
in extra call to `unregister_inflight_op` for same op
leading to e.g. use-after-free. For more details see:
https://tracker.ceph.com/issues/24037#note-5.

The fix deals with the problem by ensuring there will
be no call to the visitor for ops with zeroized `nref`.

Fixes: http://tracker.ceph.com/issues/24037
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agoMerge pull request #21700 from cbodley/wip-rgw-dpp
Casey Bodley [Tue, 22 May 2018 15:21:30 +0000 (11:21 -0400)]
Merge pull request #21700 from cbodley/wip-rgw-dpp

rgw: use DoutPrefixProvider to add more context to log output

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
7 years agoMerge pull request #21755 from linuxbox2/wip-unordered-gc-delay
Casey Bodley [Tue, 22 May 2018 15:20:31 +0000 (11:20 -0400)]
Merge pull request #21755 from linuxbox2/wip-unordered-gc-delay

rgw: use partial-order bucket listing in RGWLC, add configurable processing delay

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
7 years agoMerge pull request #21838 from yehudasa/wip-rgw-async-watch
Casey Bodley [Tue, 22 May 2018 15:19:48 +0000 (11:19 -0400)]
Merge pull request #21838 from yehudasa/wip-rgw-async-watch

rgw: async watch registration

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #22024 from votdev/bug_24142
Casey Bodley [Tue, 22 May 2018 15:19:24 +0000 (11:19 -0400)]
Merge pull request #22024 from votdev/bug_24142

rgw: Do not modify email if argument is not set

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
7 years agoMerge pull request #22100 from joscollin/wip-rgw-period
Casey Bodley [Tue, 22 May 2018 15:15:45 +0000 (11:15 -0400)]
Merge pull request #22100 from joscollin/wip-rgw-period

rgw: update --url in usage and doc

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #22114 from zhangsw/cleanup-rgw-cors
Casey Bodley [Tue, 22 May 2018 15:15:22 +0000 (11:15 -0400)]
Merge pull request #22114 from zhangsw/cleanup-rgw-cors

rgw: remove the useless is_cors_op in RGWHandler_REST_Obj_S3.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #22083 from liewegas/wip-21480
Sage Weil [Tue, 22 May 2018 14:47:19 +0000 (09:47 -0500)]
Merge pull request #22083 from liewegas/wip-21480

os/bluestore: fix flush_commit locking

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
7 years agoMerge pull request #22062 from alfredodeza/wip-rm24031
Andrew Schoen [Tue, 22 May 2018 13:31:22 +0000 (13:31 +0000)]
Merge pull request #22062 from alfredodeza/wip-rm24031

ceph-volume dmcrypt and activate --all documentation updates

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #22065 from ricardoasmarques/wip-table-pagination-style
Lenz Grimmer [Tue, 22 May 2018 12:09:30 +0000 (14:09 +0200)]
Merge pull request #22065 from ricardoasmarques/wip-table-pagination-style

Improve table pagination style

Reviewed-by: Tiago Melo <tmelo@suse.com>
7 years agoMerge pull request #22149 from b-ranto/wip-fix-metadata
Boris Ranto [Tue, 22 May 2018 11:46:06 +0000 (13:46 +0200)]
Merge pull request #22149 from b-ranto/wip-fix-metadata

prometheus: Fix order of occupation values

Reviewed-by: Jan Fajerski <jfajerski@suse.com>
7 years agoos/bluestore: check input validtiy for aio_read. 21491/head
Jianpeng Ma [Wed, 18 Apr 2018 00:13:07 +0000 (08:13 +0800)]
os/bluestore: check input validtiy for aio_read.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
7 years agoos/bluestore: using func is_valid_io to check input validity.
Jianpeng Ma [Wed, 18 Apr 2018 00:08:36 +0000 (08:08 +0800)]
os/bluestore: using func is_valid_io to check input validity.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
7 years agoos/bluestore: fix wrong messages.
Jianpeng Ma [Tue, 17 Apr 2018 23:41:40 +0000 (07:41 +0800)]
os/bluestore: fix wrong messages.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
7 years agoMerge pull request #22031 from tspmelo/wip-jest
Lenz Grimmer [Tue, 22 May 2018 10:52:16 +0000 (12:52 +0200)]
Merge pull request #22031 from tspmelo/wip-jest

mgr/dashboard: Add Jest Runner

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
7 years agoMerge pull request #22088 from tspmelo/fix-rbd-task-metadata
Lenz Grimmer [Tue, 22 May 2018 10:51:10 +0000 (12:51 +0200)]
Merge pull request #22088 from tspmelo/fix-rbd-task-metadata

mgr/dashboard: Fix RBD task metadata

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
7 years agomgr/dashboard: Improve 'no pool' message on rbd form 22150/head
Ricardo Marques [Tue, 22 May 2018 10:32:29 +0000 (11:32 +0100)]
mgr/dashboard: Improve 'no pool' message on rbd form

Signed-off-by: Ricardo Marques <rimarques@suse.com>
7 years agoprometheus: Fix order of occupation values 22149/head
Boris Ranto [Tue, 22 May 2018 10:04:20 +0000 (12:04 +0200)]
prometheus: Fix order of occupation values

When we merged the PR to unify the metadata labels, we forgot to switch
the order of hostname and disk in ceph_disk_occupation metric.

Signed-off-by: Boris Ranto <branto@redhat.com>
7 years agoos/bluefs: only flush dirty devices when do _fsync. 22110/head
Jianpeng Ma [Mon, 21 May 2018 14:46:12 +0000 (22:46 +0800)]
os/bluefs: only flush dirty devices when do _fsync.

Now _fsync call flush_bdev make data safely. But flush_bdev flush all
devices which don't care whether has data for this sync.
So add new api flush_bdev(std::array<bool, MAX_BDEV>& dirty_bdevs)
which only flush dirty devices for this sync op.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
7 years agomgr/iostat: enable module by default on new and vstart clusters 22034/head
Mohamad Gebai [Tue, 22 May 2018 03:43:30 +0000 (23:43 -0400)]
mgr/iostat: enable module by default on new and vstart clusters

Signed-off-by: Mohamad Gebai <mgebai@suse.com>
7 years agodoc: add documentation for iostat
Mohamad Gebai [Wed, 16 May 2018 14:42:22 +0000 (10:42 -0400)]
doc: add documentation for iostat

Signed-off-by: Mohamad Gebai <mgebai@suse.com>
7 years agoMerge pull request #22069 from tchaikov/wip-mgr-cleanup
Kefu Chai [Tue, 22 May 2018 02:44:36 +0000 (10:44 +0800)]
Merge pull request #22069 from tchaikov/wip-mgr-cleanup

mgr: fix typo in variable name and cleanups

Reveiwed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #22077 from majianpeng/config-w/o-mgr
Kefu Chai [Tue, 22 May 2018 02:43:10 +0000 (10:43 +0800)]
Merge pull request #22077 from majianpeng/config-w/o-mgr

cmake: make -DWITH_MGR=OFF work.

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #22089 from jcsp/wip-24175
Kefu Chai [Tue, 22 May 2018 02:42:04 +0000 (10:42 +0800)]
Merge pull request #22089 from jcsp/wip-24175

mgr/status: output to stdout, not stderr

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #22074 from dzafman/wip-parens
Josh Durgin [Mon, 21 May 2018 22:54:05 +0000 (15:54 -0700)]
Merge pull request #22074 from dzafman/wip-parens

test: Need to escape parens in log-whitelist for grep

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #22096 from yuriw/wip-yuriw-crontab
Josh Durgin [Mon, 21 May 2018 22:27:39 +0000 (15:27 -0700)]
Merge pull request #22096 from yuriw/wip-yuriw-crontab

qa/tests: added filters to support distro tests for client-upgrade tests

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoqa/tests - reverted clients upgrades for luminous runs 22096/head
Yuri Weinstein [Fri, 18 May 2018 23:01:29 +0000 (16:01 -0700)]
qa/tests - reverted clients upgrades for luminous runs
removed ~/rhel_only_on_ovh.yaml to be able to run on ovh
forced runs on smithi only

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
7 years agotest/crypto: fix wrong output buffer size in AES.DecryptNoBl. 22129/head
Radoslaw Zarzynski [Mon, 21 May 2018 20:21:17 +0000 (22:21 +0200)]
test/crypto: fix wrong output buffer size in AES.DecryptNoBl.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agocrush: fix device_class_clone for unpopulated/empty weight-sets 22127/head
Sage Weil [Mon, 21 May 2018 18:24:25 +0000 (13:24 -0500)]
crush: fix device_class_clone for unpopulated/empty weight-sets

If the bucket is empty or does not have weight-set weights yet, avoid
crashing when populating the parent bucket.

Fixes: http://tracker.ceph.com/issues/23386
Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoos/bluestore: move txc on_commits assignment into ctor 22083/head
Sage Weil [Mon, 21 May 2018 13:24:54 +0000 (08:24 -0500)]
os/bluestore: move txc on_commits assignment into ctor

This avoids adjusting the oncommits without a lock after the txc is
queued on the sequencer.

This is a bit defensive since the ObjectStore caller doesn't call
flush_commit() at the same time as queue_transaction(), but the could
change in the future.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #22036 from linuxbox2/wip-warn-orphans
Matt Benjamin [Mon, 21 May 2018 17:55:58 +0000 (13:55 -0400)]
Merge pull request #22036 from linuxbox2/wip-warn-orphans

rgw: require --yes-i-really-mean-it to run radosgw-admin orphans find

7 years agoqa/rgw: disable testing on ec-cache pools 22126/head
Casey Bodley [Mon, 21 May 2018 17:28:57 +0000 (13:28 -0400)]
qa/rgw: disable testing on ec-cache pools

Fixes: http://tracker.ceph.com/issues/23965
Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agotest: Add CACHE_POOL_NO_HIT_SET to whitelist for mon/pool_ops.sh 22074/head
David Zafman [Sat, 19 May 2018 03:15:41 +0000 (20:15 -0700)]
test: Add CACHE_POOL_NO_HIT_SET to whitelist for mon/pool_ops.sh

Ignore
  cluster [WRN] Health check failed: 1 cache pools are missing hit_sets (CACHE_POOL_NO_HIT_SET)

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agotest: Need to escape parens in log-whitelist for grep
David Zafman [Fri, 18 May 2018 00:30:32 +0000 (17:30 -0700)]
test: Need to escape parens in log-whitelist for grep

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoMerge PR #22064 into master
Sage Weil [Mon, 21 May 2018 16:31:54 +0000 (11:31 -0500)]
Merge PR #22064 into master

* refs/pull/22064/head:
os/bluestore: fix signed/unsigned mismatch warning during building

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agotest/rgw: fix for bucket checkpoints 22124/head
Casey Bodley [Mon, 21 May 2018 14:42:06 +0000 (10:42 -0400)]
test/rgw: fix for bucket checkpoints

both zones must complete a checkpoint before comparing their bucket contents

Fixes: http://tracker.ceph.com/issues/24212
Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoos/bluestore: simplify and fix SharedBlob::put() 22123/head
Sage Weil [Mon, 21 May 2018 15:06:37 +0000 (10:06 -0500)]
os/bluestore: simplify and fix SharedBlob::put()

There is a narrow race possible:

A: lookup foo
A: put on foo
A:   foo --nref == 0
B: lookup foo
B: put foo
B:   foo --nref == 0
B: try_remove() succeeds, removes
A: try_remove() tries to remove foo again, probably crashes

We could fix this by flagging the object in some way to indicate it was
removed (maybe clearing parent?), but then we need to be careful about
dereferencing foo to get parent from put().

Fix this by moving to a simpler model: make lookup fail if nref == 0.
This eliminates the races around put() entirely because once nref reaches
0 it never goes up again.

Fixes: http://tracker.ceph.com/issues/24211
Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge PR #22091 into master
Sage Weil [Mon, 21 May 2018 13:41:00 +0000 (08:41 -0500)]
Merge PR #22091 into master

* refs/pull/22091/head:
crush: update choose_args on bucket removal
crush: update choose_args on bucket removal, resize, or position mismatch
crush: create weight-set on demand when doing a choose-args reweight
test/cli/crushtool: use straw2 buckets for choose-args test
crush: weight_set_size -> weight_set_positions

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoos/bluestore: fix flush_commit locking
Sage Weil [Fri, 18 May 2018 14:18:11 +0000 (09:18 -0500)]
os/bluestore: fix flush_commit locking

We were updating the txc state to KV_DONE and queuing the oncommits
waiters without holding any locks.  This was mostly fine, *except* that
Collection|OpSequencer::flush_commit(Context *) was looking at the state
(under qlock) and also adding items to oncommits.

The flush_commit() method is only used in 2 places: osd bench, and the
PG reset_interval_flush outgoing message blocking machinery (which is
a bit ick). The first we could get rid of, but the second is hard to
remove (despite its ick factor).

The simple fix is to take qlock while updating the state value and
working with oncommits.

Fixes: http://tracker.ceph.com/issues/21480
Signed-off-by: Sage Weil <sage@redhat.com>