Patrick Donnelly
b39f9d06dc
qa: fix symlinks indirectly pointing at qa to .qa
...
Building on the previous commit.
Command used:
$ find suites/ -type l -and -not -name .qa -execdir ~/fix.sh {} \;
fix.sh:
#!/bin/bash
link="$(readlink "$1")"
echo $link
dirlink="$(dirname "$link")"
baselink="$(basename "$link")"
while true; do
echo $dirlink
if [ "$dirlink" -ef ~/ceph/qa ]; then
ln -nsf ".qa/$baselink" "$1"
exit
else
baselink="$(basename "$dirlink")/$baselink"
dirlink="$(dirname "$dirlink")"
if [ "$dirlink" -ef . ]; then
break
fi
fi
done
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-06-26 11:48:38 -07:00
Patrick Donnelly
716db6e2fd
qa: add .qa helper link
...
This utilizes the recent feature in teuthology [1] to skip hidden files in
suites when building the job matrix.
Idea of this change is to enable referring to the top-level qa directory in a
position-independent way such that copies of a suite to another location do not
break any symlinks.
[1] https://github.com/ceph/teuthology/pull/1185
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-06-26 11:33:48 -07:00
Lenz Grimmer
261a4cc9f9
Merge pull request #22715 from LenzGr/mgr-dashboard-24623
...
mgr/dashboard: Replaced "Pool" with "Pools" in navigation bar
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2018-06-26 15:31:23 +02:00
Lenz Grimmer
057d602589
Merge pull request #22283 from rjfd/wip-dashboard-user-roles
...
mgr/dashboard: role based authentication/authorization system
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2018-06-26 15:18:12 +02:00
Jos Collin
3310565e85
Merge pull request #22663 from joscollin/wip-doc-dashboard
...
doc: updated get-involved.rst for ceph-dashboard
Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
2018-06-26 17:51:33 +05:30
Ricardo Marques
f73119df2c
mgr/dashboard: User permissions control (frontend)
...
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-06-26 12:29:08 +01:00
Ricardo Dias
9a49013287
mgr/dashboard: controllers: fix endpoint return type when method returns bytes
...
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-06-26 12:28:55 +01:00
Ricardo Dias
8ab752e916
mgr/dashboard: controllers: fix controllers endpoints initialization order
...
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-06-26 12:28:55 +01:00
Ricardo Dias
cc21d270c2
qa/tasks/mgr/dashboard: test_cluster_conf: restore original value of mon_allow_pool_delete
...
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-06-26 12:28:54 +01:00
Ricardo Dias
d9cf75ae54
mgr/dashboard: hacking.rst: update controller access control instructions
...
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-06-26 12:28:54 +01:00
Ricardo Dias
1538d570ad
doc/mgr/dashboard: user and role management documentation
...
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-06-26 12:28:54 +01:00
Ricardo Dias
76f89edee0
mgr/dashboard: auth: return user permissions on login
...
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-06-26 12:28:54 +01:00
Ricardo Dias
01a1a1ff84
qa/tasks/mgr/dashboard: Adapted tests to work with new authentication system
...
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-06-26 12:28:54 +01:00
Ricardo Dias
1e91d40474
mgr/dashboard: configured security info for each controller
...
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-06-26 12:28:54 +01:00
Ricardo Dias
3c2f451b24
mgr/dashboard: removed @AuthRequired
decorator
...
Now all controllers require authentication by default.
No disable authentication, a boolean parameter can be passed
in the `@ApiController` decorator.
Fixes: http://tracker.ceph.com/issues/23796
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-06-26 12:28:53 +01:00
Ricardo Dias
5edfec5f31
mgr/dashboard: auth: remove single user authentication
...
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-06-26 12:28:53 +01:00
Ricardo Dias
1d9ec3b9e4
mgr/dashboard: pylint: updated list of files to verify
...
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-06-26 12:28:53 +01:00
Ricardo Dias
dccd7d84be
mgr/dashboard: tests: local role-based authorization
...
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-06-26 12:28:53 +01:00
Ricardo Dias
2823013b45
mgr/dashboard: load and cofigure authorization system
...
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-06-26 12:28:53 +01:00
Ricardo Dias
d53272cc65
mgr/dashboard: authmanager: authorization handling cherrypy tool
...
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-06-26 12:28:53 +01:00
Ricardo Dias
603f715b73
mgr/dashboard: local role-based authorization system implementation
...
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-06-26 12:28:53 +01:00
Ricardo Dias
70b567f78d
mgr/dashboard: security: static scopes and permissions
...
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-06-26 12:28:50 +01:00
Jos Collin
675fc8ac38
doc: updated get-involved.rst for ceph-dashboard
...
Signed-off-by: Jos Collin <jcollin@redhat.com>
2018-06-26 16:49:25 +05:30
Lenz Grimmer
ea870c249f
Merge pull request #22706 from joscollin/wip-doc-dashboardgrafana
...
doc/dashboard: fix formatting on Grafana instructions-2
2018-06-26 12:18:39 +02:00
Mykola Golub
d9fe8246c1
Merge pull request #22694 from dillaman/wip-test-rbd-mirror
...
test/rbd-mirror: disable use of gtest-parallel
Reviewed-by: Erwan Velu <erwan@redhat.com>
Reviewed-by: Mykola Golub <mgolub@suse.com>
2018-06-26 10:24:25 +03:00
Kefu Chai
c9fb0484d6
Merge pull request #22591 from tchaikov/wip-gcc-8.1
...
cmake: disable -Werror-stringop-truncation for rocksdb
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2018-06-26 12:41:57 +08:00
Jos Collin
72f14881ae
doc/dashboard: fix formatting on Grafana instructions
...
The whole list was in a code block, instead of just the snippets.
Signed-off-by: Jos Collin <jcollin@redhat.com>
2018-06-26 09:10:15 +05:30
Sage Weil
cade2f96cb
Merge PR #22691 into master
...
* refs/pull/22691/head:
os/bluestore: fix minor issues in bitmap logging output
os/bluestore: fix overlappedd allocation returned by bitmap allocator
Reviewed-by: Sage Weil <sage@redhat.com>
2018-06-25 21:21:17 -05:00
Kefu Chai
3117fde93a
Merge pull request #22682 from wwformat/fix-centos-install-deps
...
install-deps: check the exit status for the $builddepcmd
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-06-26 09:26:49 +08:00
Patrick Donnelly
9829f56c07
Merge PR #22532 into master
...
* refs/pull/22532/head:
qa/suites: Add supported-random-distro$ links.
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-06-25 15:48:34 -07:00
Patrick Donnelly
d038e1da7a
Merge PR #22626 into master
...
* refs/pull/22626/head:
scripts: add ceph-common-dbg to debug packages
Reviewed-by: David Zafman <dzafman@redhat.com>
2018-06-25 13:07:39 -07:00
Patrick Donnelly
fc41b98822
scripts: add ceph-common-dbg to debug packages
...
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-06-25 13:06:02 -07:00
Jason Dillaman
814a4a2388
test/rbd-mirror: disable use of gtest-parallel
...
This test repeatedly deadlocks when run under in parallel.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-06-25 15:32:15 -04:00
Kefu Chai
e7d98d73e5
Merge pull request #22693 from tspmelo/fix-lint-codelyzer
...
mgr/dashboard: fix lint error caused by codelyzer update
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-06-26 01:42:07 +08:00
Tiago Melo
4e7f4cbd3f
mgr/dashboard: fix lint error caused by codelyzer update
...
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-06-25 17:23:00 +01:00
Igor Fedotov
4fe976db22
Merge pull request #22544 from ifed01/wip-ifed-alloc-bench-fix
...
test/objectstore: fix random generator in allocator_bench.
Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
2018-06-25 19:17:28 +03:00
Igor Fedotov
dc4b5fc5af
os/bluestore: fix minor issues in bitmap logging output
...
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
2018-06-25 18:06:27 +03:00
Igor Fedotov
539af4f27e
os/bluestore: fix overlappedd allocation returned by bitmap allocator
...
Fixes: https://tracker.ceph.com/issues/24598
Signed-off-by: Igor Fedotov <ifedotov@suse.som>
2018-06-25 18:06:24 +03:00
Lenz Grimmer
ccd59a4678
mgr/dashboard: Replaced "Pool" with "Pools" in navigation bar
...
Replaced the string "Pool" with "Pools" in the navigation component.
Fixes: https://tracker.ceph.com/issues/24623
Signed-off-by: Lenz Grimmer <lgrimmer@suse.com>
2018-06-25 13:38:55 +02:00
Yunchuan Wen
46e33d15a4
install-deps: check the exit status for the $builddepcmd
...
in some case, the $builddepcmd will failed without any "error:" output.
so we should check the exit status to handle it.
Signed-off-by: Yunchuan Wen <yunchuan.wen@kylin-cloud.com>
2018-06-24 09:48:50 +08:00
Sage Weil
eb3bbb8462
Merge PR #22479 into master
...
* refs/pull/22479/head:
mgr/devicehealth: add self-test
mgr/devicehealth: make config options instance attributes
mgr/devicehealth: active -> enable_monitoring
mgr/mgr_module: update docstring for get()
mgr/devicehealth: fix 'device get-health-metrics' when no metrics are stored
mgr/devicehealth: add some scraping infrastructure
osd: optionally query smart for a single devid
mgr/ActivePyModules: add get for 'device <devid>'
osd: key smart results by unique device id
mgr: enable devicehealth by default
mgr/devicehealth: rename old smart module to devicehealth
2018-06-23 17:05:51 -05:00
Sage Weil
cd24ccefc5
Merge PR #22572 into master
...
* refs/pull/22572/head:
osd: update clone_overlap even the clone have been evicted
Reviewed-by: Sage Weil <sage@redhat.com>
2018-06-23 17:05:45 -05:00
Sage Weil
23915a4baf
Merge PR #22576 into master
...
* refs/pull/22576/head:
common/obj_bencher.cc: faster object name generation
Reviewed-by: Erwan Velu <erwan@redhat.com>
2018-06-23 17:05:40 -05:00
Sage Weil
2f7595131b
Merge PR #22588 into master
...
* refs/pull/22588/head:
mgr/iostat: column_width should be int not float
Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Mohamad Gebai <mgebai@suse.com>
2018-06-23 17:05:35 -05:00
Sage Weil
6ad9f13a18
githubmap: update contributors
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-06-23 17:05:34 -05:00
Sage Weil
dc4e35b523
Merge PR #22615 into master
...
* refs/pull/22615/head:
common: fix enum redeclaration
Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2018-06-23 17:04:46 -05:00
Sage Weil
de0206cb80
Merge PR #22620 into master
...
* refs/pull/22620/head:
common/WorkQueue: Before set_ioprio it must do create/try_create.
Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
2018-06-23 17:04:41 -05:00
Sage Weil
9f44ab3308
Merge PR #22634 into master
...
* refs/pull/22634/head:
mgr, pybind/mgr: pass inbuf (ceph -i <file>) to modules
Reviewed-by: Sage Weil <sage@redhat.com>
2018-06-23 17:04:36 -05:00
Sage Weil
dd6ad72b90
mgr/devicehealth: add self-test
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-06-23 17:01:55 -05:00
Sage Weil
6b9c0689a4
mgr/devicehealth: make config options instance attributes
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-06-23 17:01:55 -05:00