Commit Graph

81550 Commits

Author SHA1 Message Date
Patrick Donnelly
199f9d4c6b
Merge PR #19271 into master
* refs/pull/19271/head:
	client: update Dir::num_null_dentries in Dentry::{link,unlink}
	client: drop null child dentries before try pruning inode's alias

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2017-12-15 11:08:11 -08:00
Patrick Donnelly
0f48b3d29e
Merge PR #19414 into master
* refs/pull/19414/head:
	mds: properly eval locks after importing inode

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2017-12-15 11:08:04 -08:00
Patrick Donnelly
ee9d5f9a45
Merge PR #19440 into master
* refs/pull/19440/head:
	mds: update mds option descriptions
	mds: obsolete MDSMap option configs
	mds: organize Filesystem class def

Reviewed-by: John Spray <john.spray@redhat.com>
2017-12-15 11:07:58 -08:00
Mykola Golub
18b92192a8
Merge pull request #19540 from dillaman/wip-rbd-trash-list-enoent
rbd: 'trash list --long' will return a failure on non-cloned images

Reviewed-by: Mykola Golub <to.my.trociny@gmail.com>
2017-12-15 19:18:21 +02:00
Jason Dillaman
bed3356050 rbd: 'trash list --long' will return a failure on non-cloned images
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-12-15 09:06:37 -05:00
Kefu Chai
5043e4b494
Merge pull request #19493 from cernceph/dvanders_balancer
mgr/balancer: cast config vals to int or float

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
2017-12-15 15:22:44 +08:00
Brad Hubbard
a6547d647e rgw: Silence maybe-uninitialized false positives
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2017-12-15 17:18:37 +10:00
Kefu Chai
633704b8fe
Merge pull request #19482 from jcsp/wip-22361
mgr/balancer: don't use 'foo' tags on commands

Reviewed-by: Sage Weil <sage@redhat.com>
2017-12-15 15:16:29 +08:00
Kefu Chai
e9626080c4
Merge pull request #19465 from shinobu-x/no_copy_ctor_assignment
common,mds,osd: Explicitly delete copy ctor if noncopyable

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-12-15 15:16:03 +08:00
Kefu Chai
08f8826b05
Merge pull request #19211 from ZVampirEM77/wip-em-pg-cleanup
osd: fix typos and some cleanups

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-12-15 15:05:50 +08:00
Kefu Chai
81537efaf2
Merge pull request #19013 from yuyuyu101/wip-fix-racing
msg/async/AsyncConnection: unregister connection when racing happened

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-12-15 15:04:13 +08:00
Jason Dillaman
182c25f3e6
Merge pull request #19361 from Songweibin/wip-init-image-id
pybind/rbd: support open the image by image_id

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-12-14 22:17:43 -05:00
Jason Dillaman
ae98ee633a
Merge pull request #19317 from shinobu-x/journaler_trivial_cleanup
journal: trivial cleanup

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-12-14 22:17:17 -05:00
Jason Dillaman
a36f26d4ea
Merge pull request #19406 from trociny/wip-deep-copy-pybind
pybind/rbd: add deep_copy method

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-12-14 22:16:46 -05:00
Jason Dillaman
aa80cb9925
Merge pull request #19436 from trociny/wip-22333
rbd-nbd: support optionally setting device timeout

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-12-14 22:16:23 -05:00
Alfredo Deza
d33f42b5a5
Merge pull request #19477 from wido/mgr-int-json
ceph-volume: Try to cast OSD metadata to int while scanning directory

Reviewed-by: Alfredo Deza <adeza@redhat.com>
2017-12-14 18:01:46 -05:00
Patrick Donnelly
61215892d4
doc: clarify type of client in config ref
The kernel configuration is different.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2017-12-14 12:37:17 -08:00
Adam C. Emerson
e08a1cd88a common: Switch from boost::shared_mutex to std::shared_mutex
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2017-12-14 11:40:44 -05:00
Adam C. Emerson
2d45f808ef common: Get rid of artifact filename
Since we're on C++14, we're just backporting from future standards
generally.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2017-12-14 11:40:44 -05:00
Adam C. Emerson
b280bf40d3 common: Remove backported max and make_unique
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2017-12-14 11:40:44 -05:00
Kefu Chai
4eb2fe497a
Merge pull request #19516 from tchaikov/wip-install-deps
install-deps.sh: use tee for writing a file

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
2017-12-15 00:02:39 +08:00
Jos Collin
3a48c89198
Merge pull request #19517 from qrGitHub/wip-rgw-typo-signle
rgw: fix typo signle to single

Reviewed-by: Jos Collin <jcollin@redhat.com>
2017-12-14 12:08:26 +00:00
John Spray
3283ed5883 mgr: fix "access denied" message
As pointed out on https://github.com/ceph/ceph/pull/18716

Signed-off-by: John Spray <john.spray@redhat.com>
2017-12-14 11:41:02 +00:00
John Spray
d45db4e68c
Merge pull request #18716 from shinobu-x/sk-mgr_daemonserver
mgr/DaemonServer: [Cleanup] Remove redundant code

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2017-12-14 11:38:00 +00:00
Bingyin Zhang
5f4a923b44 rgw: fix typo signle to single
Signed-off-by: Bingyin Zhang <zhangbingyin@cloudin.cn>
2017-12-14 19:21:38 +08:00
Kefu Chai
0beb846e57 install-deps.sh: use tee for writing a file
because the stdout redirect is performed by current shell not `$SUDO
cat`, so $SUDO does not help here. use `$SUDO tee` instead, which is
able to read the stdin and write to the given file just as expected.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-12-14 19:06:53 +08:00
Mykola Golub
cd66ea5213
Merge pull request #19492 from dillaman/wip-rbd-mirror-dashboard
rbd-mirror: ensure unique service daemon name is utilized

Reviewed-by: Mykola Golub <to.my.trociny@gmail.com>
2017-12-14 13:05:59 +02:00
Kefu Chai
a2cad3bb1c cmake: link global-static against common
* as global-static references symbols offered by common.
* and remove DPDK_LIBRARIES from global, as it is libcommon which
  is using DPDK.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-12-14 19:01:34 +08:00
Kefu Chai
df9a598942 cmake: link libcommon with libstdc++ statically if WITH_STATIC_LIBSTDCXX
this matches the linkage of libceph-common, because valgrind reports
Leak_StillReachable if daemons are linked against libceph-common, will
link daemons against common instead, and let common link libstdc++
statically, if WITH_STATIC_LIBSTDCXX=ON.

this change also reverts e6695bb6

Fixes: http://tracker.ceph.com/issues/22438
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-12-14 19:01:34 +08:00
Kefu Chai
4ed4d4a3b9 global: remove unused header
the asock functionality was moved into ceph_context.cc in 12f6e8f1.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-12-14 18:54:33 +08:00
Shinobu Kinjo
401360783f common/mds/osd: Explicitly delete if no copy, and remove incorrect comment
Signed-off-by: Shinobu Kinjo <shinobu@redhat.com>
2017-12-14 19:23:12 +09:00
Bingyin Zhang
2c97b0ce83 rgw: optimize time skew check
* Move query string check out of function is_time_skew_ok;

Signed-off-by: Bingyin Zhang <zhangbingyin@cloudin.cn>
2017-12-14 16:43:01 +08:00
Bingyin Zhang
ce42f1e8f5 rgw: fix return value of auth v2/v4
* The return value of auth v2/v4 in RGW is different from that in AWS:
*     1. When 'Expires' is missing in auth v2 query string request, AWS
*     returns AccessDenied while RGW returns SignatureDoesNotMatch;
*     2. When 'X-Amz-Expires' is missing in auth v4 query string
*     request, AWS returns AuthorizationQueryParametersError while RGW
*     returns RequestTimeTooSkewed;
* Changes:
*     1. When 'Expires' is missing in auth v2 query string request,
*     change RGW's return value to AccessDenied;
*     2. When 'X-Amz-Expires' is missing in auth v4 query string
*     request, change RGW's return value to AccessDenied;
*     3. remove time skew check from parse_v4_query_string;

Fixes: http://tracker.ceph.com/issues/22439
Signed-off-by: Bingyin Zhang <zhangbingyin@cloudin.cn>
2017-12-14 16:38:35 +08:00
Adam C. Emerson
bbe0afff64 common: Swap C++14 template type aliases for variables
C++14 provides the ability to define template variables, which the C++17
library puts to good use. We define those same aliases.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2017-12-14 01:39:10 -05:00
tone-zhang
b6ca7f3b3e rgw: add "Accept-Ranges" to response header of Swift API
"Accept-ranges" is missing from the Response header of swift API
returned by Ceph rgw.

Fixes: http://tracker.ceph.com/issues/21554

Signed-off-by: Tone Zhang <tone.zhang@arm.com>
2017-12-14 05:45:54 +00:00
Adam C. Emerson
70da1eed80 build: Uplevel to C++14
Fix a couple problems.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2017-12-13 22:39:52 -05:00
Patrick Donnelly
cd1e5f53f0
vstart_runner: ignore failed dentry invalidation
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2017-12-13 19:15:43 -08:00
Patrick Donnelly
0f507d8855
vstart_runner: set ec_profile attribute
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2017-12-13 19:15:39 -08:00
Kefu Chai
0ba3308076
Merge pull request #19470 from tchaikov/wip-async-dpdk
msg/async: update to work with dpdk shipped with spdk v17.10

Reviewed-by: Haomai Wang <haomai@xsky.com>
2017-12-14 10:44:58 +08:00
Sage Weil
69dc7ce432
Merge pull request #19466 from shinobu-x/super_redundant_public_label
osdc: Remove a bit too redundant public label...
2017-12-13 20:36:37 -06:00
Sage Weil
07e22ff262
Merge pull request #19494 from smithfarm/wip-22362
build/ops: rpm: set permissions 0755 on rbd resource agent

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-12-13 20:33:15 -06:00
Sage Weil
6f1abd8858
Merge pull request #19495 from ZVampirEM77/wip-em-pg-cleanup2
osd/PrimaryLogPG: cleanup do_sub_op && do_sub_op_reply and define soid in prepare_transaction more appropriate

Reviewed-by: Sage Weil <sage@redhat.com>
2017-12-13 20:32:40 -06:00
Patrick Donnelly
18425531e7
mds: update mds option descriptions
Fixes: http://tracker.ceph.com/issues/21764

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2017-12-13 18:31:07 -08:00
Patrick Donnelly
67ca6cd229
mds: obsolete MDSMap option configs
These configs were used for initialization but it is more appropriate to
require setting these file system attributes via `ceph fs set`. This is similar
to what was already done with max_mds. There are new variables added for `fs
set` where missing.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2017-12-13 18:30:52 -08:00
Yuri Weinstein
8fe5855194
Merge pull request #19425 from kungf/calc_replicated_acting
osd: reduce all_info map find to get primary

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
2017-12-13 15:39:56 -08:00
Yuri Weinstein
230e1e4860
Merge pull request #17691 from amitkumar50/cov-osd-3
osd: Initialization of data members

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
2017-12-13 15:37:20 -08:00
Yuri Weinstein
6c4285c5a0
Merge pull request #19033 from david-z/wip-fix-fusestore-df
os/FuseStore: fix incorrect used space statistics for fuse's statfs interface

Reviewed-by: Sage Weil <sage@redhat.com>
2017-12-13 15:36:28 -08:00
Nathan Cutler
37e4bc3141 build/ops: rpm: set permissions 0755 on rbd resource agent
Fixes: http://tracker.ceph.com/issues/22362
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2017-12-13 18:15:27 +01:00
Kefu Chai
807152af2c
Merge pull request #19468 from tchaikov/wip-install-deps.sh
install-deps.sh: avoid re-installing g++-7

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
2017-12-14 00:33:59 +08:00
myoungwon oh
a250483995 src/test: remove unnecessary stat
This commit prevents unnecessary stat that
invokes promote_object()
promote_object() makes object clean state

Signed-off-by: Myoungwon Oh <omwmw@sk.com>
2017-12-14 01:27:34 +09:00