Commit Graph

98628 Commits

Author SHA1 Message Date
Xie Xingguo
302d7bcdd8
Merge pull request #27735 from xiexingguo/wip-device-class-noout
osd: revamp {noup,nodown,noin,noout} related commands

Reviewed-by: Sage Weil <sage@redhat.com>
2019-06-05 14:17:06 +08:00
Kefu Chai
afe10e01d7
Merge pull request #28366 from albert-github/feature/bug_docu_formula_invocation
common/hobject: Error invocation of formula in documentation

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-06-05 12:52:03 +08:00
Kefu Chai
2e57e76e51
Merge pull request #27994 from xiexingguo/wip-balancer-fudge
mgr/balancer: fix fudge

Reviewed-by: Sage Weil <sage@redhat.com>
2019-06-05 12:13:44 +08:00
Kefu Chai
f5529ad0b0
Merge pull request #28342 from rzarzynski/wip-messages-std-for-pgcreate2
messages: MOSDPGCreate2 doesn't assume using namespace std.

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-06-05 12:07:36 +08:00
Kefu Chai
318f12c38e
Merge pull request #28340 from elliswuuuuuuuu/remove_unused_variable
mgr: remove unused variable pool_name

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-06-05 12:06:04 +08:00
Kefu Chai
e531b6aa87
Merge pull request #28268 from liewegas/wip-progress-bar
mon: fix off-by-one rendering progress bar

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Joao Eduardo Luis <joao@suse.de>
2019-06-05 12:03:08 +08:00
Patrick Donnelly
2cdcefbf1c
Merge PR #28324 into master
* refs/pull/28324/head:
	client: clean up error checking and return of _lookup_parent
	client: drop Client::lookup_parent

Reviewed-by: huanwen ren <ren.huanwen@zte.com.cn>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2019-06-04 17:37:26 -07:00
Patrick Donnelly
a32db16908
Merge PR #28116 into master
* refs/pull/28116/head:
	client: fix "ceph.snap.btime" vxattr value
	client: fix "ceph.dir.rctime" vxattr value

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2019-06-04 17:36:04 -07:00
Patrick Donnelly
da9116cbd8
Merge PR #28371 into master
* refs/pull/28371/head:
	qa: fix kclient symlink to use latest rhel7
	qa: fix latest distros and add helper symlinks

Reviewed-by: Yuri Weinstein <yweins@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2019-06-04 16:22:26 -07:00
Patrick Donnelly
f256c848d1
Merge PR #28148 into master
* refs/pull/28148/head:
	common/secret.c: fix key parsing when doing a remount

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
2019-06-04 16:21:22 -07:00
Boris Ranto
de762fe2df
Merge pull request #26415 from zmc/wip-populate-grafana
mgr/dashboard: Push Grafana dashboards on startup

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Jan Fajerski <jfajerski@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
2019-06-04 23:31:24 +02:00
Andrew Schoen
937e8980fb
Merge pull request #28294 from alfredodeza/wip-rm40063
ceph-volume: pass --ssh-config to pytest to resolve hosts when connecting

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
2019-06-04 16:24:17 -05:00
Boris Ranto
a30f6eda53
Merge pull request #28228 from jan--f/spec-grafana-dashboards-require-grafana
ceph.spec.in: grafana-dashboards package depends on grafana

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
2019-06-04 22:52:54 +02:00
Zack Cerza
c0bc7dafa7 mgr/dashboard: Push Grafana dashboards on startup
Because we didn't have viable way to populate Grafana dashboards in a
fully containerized context, we needed a different method. This will
work in packaged and containerized deployments.

We provide three methods to push the dashboard JSON files to the Grafana
instance: a command (ceph dashboard update-grafana-dashboards); an API
endpoint (/api/grafana/update_dashboards); and an automatic on-startup
feature that is disabled by default (ceph dashboard
set-grafana-update-dashboards true). The on-startup method will also
retry periodically to avoid racing with the startup of Grafana itself.

Signed-off-by: Zack Cerza <zack@redhat.com>
2019-06-04 14:26:55 -06:00
Abhishek L
bc1c6353d9
Merge pull request #28385 from theanalyst/doc/releases/13.2.6
doc: add release notes for v13.2.6 mimic

Reviewed-By: Sage Weil <sage@redhat.com>
2019-06-04 21:22:50 +02:00
Patrick Donnelly
6ad502ce82
Merge PR #28236 into master
* refs/pull/28236/head:
	doc: Fix incorrect indentations in cephfs-shell
	doc: Add usage for stat command in cephfs-shell

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2019-06-04 12:11:23 -07:00
Casey Bodley
087d2addf6
Merge pull request #28386 from cbodley/wip-vstart-rgw-run
vstart: fix run() invocation for rgw

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
2019-06-04 15:06:51 -04:00
Casey Bodley
5b4f89710e vstart: fix run() invocation for rgw
add an extra argument to run() for rgw so that --redirect-output
sends stdout to rgw.{port}.stdout

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2019-06-04 14:26:19 -04:00
Patrick Donnelly
80eb96696b
Merge PR #28384 into master
* refs/pull/28384/head:
	mgr/volumes: fix subvolume creation with quota

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2019-06-04 10:46:26 -07:00
Ramana Raja
695c9e4dc8 mgr/volumes: fix subvolume creation with quota
A quota is set on a subvolume by setting a quota virtual
xattr on a fs subdirectory. The value of the quota xattr
should be a bytes object. The quota value wasn't correctly
converted to a bytes object. Fix this.

Fixes: http://tracker.ceph.com/issues/40152
Signed-off-by: Ramana Raja <rraja@redhat.com>
2019-06-04 22:34:35 +05:30
Kefu Chai
5bcaeb3269
Merge pull request #28252 from tchaikov/wip-cmake-cleanup
cmake: cleanups

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-06-05 00:50:02 +08:00
Patrick Donnelly
cfb0d0edd7
Merge PR #28380 into master
* refs/pull/28380/head:
	mgr/volumes: convert string to bytes object

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
2019-06-04 09:08:55 -07:00
Abhishek Lekshmanan
45e4927a92 doc: add release notes for v13.2.6 mimic
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2019-06-04 17:32:24 +02:00
albert-github
357002bdad common/hobject.h: fix syntax in doxygen comment
fix the error invocation of formula in documentation

Error invocation of formula in documentation, the second formula was
started with $f instead of the correct \f$

see also http://www.doxygen.nl/manual/formulas.html

Signed-off-by: Albert <albert.tests@gmail.com>
2019-06-04 23:12:36 +08:00
Rishabh Dave
a203e57709 mgr/volumes: convert string to bytes object
mount method in libcephfs's cython modules expects filesystem_name to
be a bytes object. Therefore, convert string to bytes object
beforehand.

Fixes: http://tracker.ceph.com/issues/39750
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2019-06-04 20:05:00 +05:30
Kefu Chai
d3e0f3469f cmake: extract rgw_*_scheduler.cc into rgw_schedulers
i was running into following issue:

../../../lib/libradosgw_a.a(rgw_loadgen_process.cc.o): In function
`RGWLoadGenProcess::run()':
/home/jenkins-build/build/workspace/ceph-pull-requests/src/rgw/rgw_loadgen_process.cc:102:
undefined reference to `signal_shutdown()'
collect2: error: ld returned 1 exit status

signal_shutdown() is only used by rgw_main.cc to notify the main thread,
but we don't need this facility in unit test exercising the schedulers,
so, in this change, rgw schedulers are extracted into librgw_schedulers,
so this library can be consumed by the unit test.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-06-04 21:17:15 +08:00
Casey Bodley
40ed4f1150
Merge pull request #28243 from cbodley/wip-40022
radosgw-admin: fix syncs_from in 'bucket sync status'

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2019-06-04 08:07:17 -04:00
Casey Bodley
a33b7eb038
Merge pull request #28156 from cbodley/wip-rgw-realm-list-api
rgw: add 'GET /admin/realm?list' api to list realms

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
2019-06-04 08:04:54 -04:00
Casey Bodley
2ade65a6f3
Merge pull request #28345 from tianshan/fix_http_return_check
rgw: fix miss handle curl error return

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2019-06-04 08:03:28 -04:00
Casey Bodley
84ee7912c1
Merge pull request #28303 from cbodley/wip-39992
rgw: fetch_remote_obj() compares expected object size

Reviewed-by: Xiaoxi Chen <xiaoxchen@ebay.com>
2019-06-04 08:03:00 -04:00
Casey Bodley
abf2168bb3
Merge pull request #28188 from tianshan/fix_39984
rgw: fix bucket may redundantly list keys after BI_PREFIX_CHAR

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2019-06-04 08:00:27 -04:00
Casey Bodley
909ad5e89a
Merge pull request #27993 from liuchang0812/rgw-bucket-tagging
rgw: bucket tagging

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2019-06-04 07:53:43 -04:00
Chang Liu
d1ff8218a1 rgw: cleanup bucket tags code
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
2019-06-04 14:34:05 +08:00
Chang Liu
371b683a9c rgw: show bucket tagging when user stats bucket
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
2019-06-04 14:34:05 +08:00
Casey Bodley
c669cf293f test/rgw: test truncated reads in RGWHTTPManager
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2019-06-04 11:40:17 +08:00
Tianshan Qu
9b70258570 rgw: fix miss handle curl error return
if meet tcp packet loss, curl return will be result=18(CURLE_PARTIAL_FILE)
and http_status=200, so sync will continue and cause content miss match.

Fixes: https://tracker.ceph.com/issues/39992

Signed-off-by: Tianshan Qu <tianshan@xsky.com>
2019-06-04 11:33:17 +08:00
Kefu Chai
048ea6eaa0
Merge pull request #28362 from cyx1231st/wip-seastar-fix-random-failure
test/crimson: fix msgr test of ref counter racing

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-06-04 10:57:12 +08:00
Yingxin Cheng
a2b2941332 test/crimson: fix msgr test of ref counter racing
Foreign-dispatch in crimson-messenger is not implemented yet, and no
need to test this feature now.

Fixes: http://tracker.ceph.com/issues/36405
Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
2019-06-04 16:17:26 +08:00
Chang Liu
c8582ff27a rgw: simplify RGWObjTags dump
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
2019-06-04 10:36:31 +08:00
Chang Liu
26e0baec77 doc: bucket tagging is supported now
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
2019-06-04 10:36:31 +08:00
Chang Liu
8103ca3b34 rgw: forwards to master and uses gw_bucket_set_attrs
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
2019-06-04 10:36:31 +08:00
Chang Liu
5248a81bc5 rgw: make max number of bucket/object tags configurble
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
2019-06-04 10:36:31 +08:00
Chang Liu
8eedfddc01 rgw: iam policy about bucket tagging
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
2019-06-04 10:36:31 +08:00
Chang Liu
6a93fe0592 rgw: impl put_bucket_tags and delete_bucket_tags
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
2019-06-04 10:36:31 +08:00
Chang Liu
e4ab9bf31c rgw: add set_bucket_tags api
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
2019-06-04 10:36:31 +08:00
Chang Liu
993d86fad8 rgw: uses 404 http code when there is NoSuchTagSetError
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
2019-06-04 10:36:31 +08:00
Chang Liu
56189e2754 rgw: get bucket tagging
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
2019-06-04 10:36:31 +08:00
Chang Liu
f7ea2bdbbe rgw: declares bucket tagging op classes
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
2019-06-04 10:36:31 +08:00
Chang Liu
25bcddf060 rgw:new op type and error code about bucket tagging
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
2019-06-04 10:36:31 +08:00
Patrick Donnelly
fd358e73c0
qa: fix kclient symlink to use latest rhel7
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2019-06-03 14:39:57 -07:00