Casey Bodley
786bb87d19
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>
2018-02-27 13:34:17 -05:00
Casey Bodley
375cba1d24
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>
2018-02-27 13:32:01 -05:00
Yuri Weinstein
1731fa1d48
Merge pull request #19845 from fangyuxiangGL/escape
...
rgw: rework json/xml escape usage follow #19806
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2018-02-27 09:49:12 -08:00
Yuri Weinstein
ca666eef3c
Merge pull request #20352 from yehudasa/wip-22928
...
rgw: use explicit index pool placement
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
2018-02-27 09:48:16 -08:00
Yuri Weinstein
00e0cd0b72
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>
2018-02-27 09:47:05 -08:00
Yuri Weinstein
9cafa7c275
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>
2018-02-27 09:46:30 -08:00
fang yuxiang
f5d2a666ed
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>
2018-02-28 01:05:22 +08:00
Nathan Cutler
39837301d0
Merge pull request #20234 from smithfarm/wip-run-make-check
...
build/ops: run-make-check.sh: fix SUSE support
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-02-27 17:33:14 +01:00
Kefu Chai
4865831b91
cmake,deb: set EnvironmentFile using cmake
...
this change also fix the EnvironmentFile specified in rbdmap.service.
without this change EnvironmentFile in rbdmap.service is always
/etc/sysconfig/ceph even on debian derived distros. after this change,
this variable is /etc/default/ceph in rbdmap.service shipped by the deb
packages.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-02-28 00:23:48 +08:00
Kefu Chai
50707e7d62
debian: install system units using cmake
...
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-02-28 00:23:22 +08:00
Andrew Schoen
729ed7c98e
ceph-volume: if using lvm list on a device with many lvs, show them all
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-02-27 09:44:06 -06:00
Nathan Cutler
6a2bcea045
Merge pull request #20436 from smithfarm/wip-22999
...
install-deps.sh: set python2 %bcond by environment
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Jan Fajerski <jfajerski@suse.com>
2018-02-27 16:19:36 +01:00
Casey Bodley
a3aa4d5b88
Merge pull request #20611 from Leeshine/wip-rgw-22080-1
...
rgw: create sync-module instance when radosgw-admin sync run
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2018-02-27 09:23:09 -05:00
Nathan Cutler
cbf50f0cbe
Merge pull request #20397 from tdb/fix/perms-ocf-rbd
...
rbd: resource agent needs to be executable
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
2018-02-27 14:59:46 +01:00
Jason Dillaman
8f45676ec3
Merge pull request #20577 from Songweibin/wip-group-rename
...
rbd: add group rename methods
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-02-27 08:28:08 -05:00
Kefu Chai
9535165149
cmake: add implicit dependencies between boost libs
...
so the dependencies can be included when linking against the one which
depends on them. for example, libboost_filesystem depends on
libboost_system, if we don't link against the latter, linker will bail
out when linking an executable using Boost::filesystem.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-02-27 21:26:42 +08:00
Kefu Chai
854ca24b19
cmake: add an alias for unit_test_framework
...
should pass --with-test for building Boost::unit_test_framework
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-02-27 21:26:42 +08:00
Casey Bodley
a467e5b1cf
cmake: skip boost dependency on ALIAS targets
...
the boost override for add_library() does not work for ALIAS targets:
CMake Error at cmake/modules/BuildBoost.cmake:227 (add_dependencies):
Cannot add target-level dependencies to alias target "Seastar::seastar".
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-02-27 21:26:42 +08:00
Nathan Cutler
fe028f89b6
install-deps.sh: set python2 %bcond by environment
...
If there is no /usr/bin/python2 we need to set %bcond_with python2.
Fixes: http://tracker.ceph.com/issues/22999
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2018-02-27 14:12:12 +01:00
Nathan Cutler
7d6e165bdd
Merge pull request #20434 from smithfarm/wip-22998
...
build/ops: install-deps.sh: pass --no-recommends to zypper
Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Jan Fajerski <jfajerski@suse.com>
2018-02-27 14:09:33 +01:00
Nathan Cutler
fba862df03
Merge pull request #20404 from smithfarm/wip-cmake-with-systemd
...
build/ops: change WITH_SYSTEMD default to ON
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
2018-02-27 14:03:30 +01:00
Nathan Cutler
5200405bf0
build/ops: run-make-check.sh: fix SUSE support
...
Get /usr/bin/which from the right RPM.
Fixes: http://tracker.ceph.com/issues/22875
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2018-02-27 13:58:42 +01:00
Nathan Cutler
0fb78d1533
Merge pull request #20245 from smithfarm/wip-p2p-ripout
...
tests: cleanup: drop upgrade/jewel-x/point-to-point-x
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2018-02-27 13:53:17 +01:00
Nathan Cutler
93e99e7a27
Merge pull request #20138 from smithfarm/wip-recommend-chrony
...
build/ops: rpm: recommend chrony instead of ntp-daemon
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
2018-02-27 13:48:52 +01:00
Jason Dillaman
64c215e3dd
Merge pull request #20551 from shun-s/wip-add-notify-name-print
...
rbd: output notifyOp request name when watching
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-02-27 07:47:05 -05:00
Radoslaw Zarzynski
360f823fac
log: prohibit negative values for debug_* configurables.
...
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2018-02-27 11:38:48 +01:00
Radoslaw Zarzynski
de5efc8170
log: remove SubsystemMap::m_max_name_len.
...
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2018-02-27 11:38:48 +01:00
Radoslaw Zarzynski
d13e071d28
ceph: switch to SubsystemMap::should_gather<SubV, LvlV>().
...
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2018-02-27 11:38:48 +01:00
Radoslaw Zarzynski
1a3e935774
core: resurrect the old check on dout's levels where possible.
...
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2018-02-27 11:38:48 +01:00
Radoslaw Zarzynski
b265ed2955
core: hint the dout()'s message crafting as a cold code.
...
The idea is to:
1. Do not put the dout()'s crafting stuff on the hot, fall-through
path. Cheapest branches are those that are forward and never taken.
2. Move it to separated sections placed far away from the main path
to be more friendly to ICache and ITLB. That is, dout_impl constructs
a function now.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2018-02-27 11:38:48 +01:00
Radoslaw Zarzynski
d96bf57879
core: make SubsystemMap more statical and optimize should_gather().
...
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2018-02-27 11:38:47 +01:00
Radoslaw Zarzynski
5b3c5bbf49
osd: remove the PGLog::prefix_provider as it's always nullptr.
...
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2018-02-27 11:38:47 +01:00
Radoslaw Zarzynski
8a668355a1
common: move subsys-dependant types to a dedicated header.
...
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2018-02-27 11:38:47 +01:00
Radoslaw Zarzynski
b0f94c628b
core: dout checks ceph_subsys_* in compile time if possible.
...
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2018-02-27 11:38:47 +01:00
Patrick Donnelly
c42015651e
Merge PR #19471 into master
...
* refs/pull/19471/head:
cephfs-journal-tool: support purge queue
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-02-27 02:22:45 -08:00
Patrick Donnelly
47ba679906
Merge PR #20412 into master
...
* refs/pull/20412/head:
mds/CDir: cleanup in the lookup_exact_snap()
mds/cdir: add CDir missing state
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-02-27 02:22:38 -08:00
Patrick Donnelly
e016a6bc57
Merge PR #20468 into master
...
* refs/pull/20468/head:
mds: fix check of underwater dentries
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-02-27 02:22:31 -08:00
Patrick Donnelly
9c45cdff5f
Merge PR #20489 into master
...
* refs/pull/20489/head:
common: omit short option for id in help for clients
Reviewed-by: Jos Collin <jcollin@redhat.com>
2018-02-27 02:22:25 -08:00
Patrick Donnelly
c66fcfae73
Merge PR #20547 into master
...
* refs/pull/20547/head:
mds: add uptime to MDS status
Reviewed-by: Douglas Fuller <dfuller@redhat.com>
2018-02-27 02:22:19 -08:00
Patrick Donnelly
38cc4dbb82
Merge PR #20553 into master
...
* refs/pull/20553/head:
mds: always handle SESSION_REQUEST_RENEWCAPS messages
mds: don't cleanup request that has pending remote authpin/wrlock/xlock
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-02-27 02:22:08 -08:00
lvshanchun
a55797e093
rgw: create sync-module instance when radosgw-admin sync run
...
Signed-off-by: lvshanchun <lvshanchun@gmail.com>
2018-02-27 16:14:08 +08:00
shangfufei
7705306465
msg/async:change EventCenter::process_events(int timeout_microseconds) to EventCenter::process_events(unsigned timeout_microseconds)
...
Signed-off-by: shangfufei <shangfufei@inspur.com>
2018-02-27 14:29:42 +08:00
Jason Dillaman
e6acc640c1
Merge pull request #20532 from Songweibin/wip-du-user
...
rbd: filter out UserSnapshotNamespace in do_disk_usage
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-02-26 23:21:21 -05:00
Jason Dillaman
b3b3a400e1
Merge pull request #20529 from Songweibin/wip-fix-nbd-map
...
rbd: set a default value for options in `nbd map`
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-02-26 23:20:59 -05:00
Jason Dillaman
698b6f8486
Merge pull request #20507 from trociny/wip-remote-rename
...
librbd: make rename request complete with filtered code
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-02-26 23:20:24 -05:00
Haomai Wang
9765eb73da
Merge pull request #20600 from liewegas/wip-msgr-level
...
msg/async/AsyncConnection: less noisy debug
Reviewed-by: Haomai Wang <haomai@xsky.com>
2018-02-27 10:05:29 +08:00
Gregory Farnum
6bd63de565
Merge pull request #20572 from batrick/erasure-code-cephfs-doc
...
doc: cleanup erasure coded pool doc on cephfs use
2018-02-26 14:59:59 -08:00
Greg Farnum
2d3fb03e19
bluestore: correctly check all block devices to decide if journal is_rotational
...
Fixes: http://tracker.ceph.com/issues/23141
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2018-02-26 13:36:07 -08:00
Sage Weil
3d07fa8bae
msg/async/AsyncConnection: less noisy debug
...
This spams logs of healthy OSDs.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-02-26 15:17:54 -06:00
Andrew Schoen
3d447dbf2b
ceph-volume: lvm list now works with raw devices
...
If you used a raw device with --data to create an OSD
you can now use 'lvm list' to get information about that OSD
using the raw device name like:
ceph-volume lvm list /dev/sda
fixes http://tracker.ceph.com/issues/23140
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-02-26 14:43:40 -06:00