Commit Graph

86411 Commits

Author SHA1 Message Date
Casey Bodley
3105ff62e7
Merge pull request #21914 from cbodley/wip-common-async
common: add a generic async Completion for use with boost::asio

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
2018-05-09 16:32:24 -04:00
Josh Durgin
8582e57316
Merge pull request #21909 from neha-ojha/wip-fix-powercycle
qa/suites: set osd_pg_log_dups_tracked in cfuse_workunit_suites_fsync.yaml

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2018-05-09 11:37:32 -07:00
Casey Bodley
67fe5d25a7 common: add an async SharedMutex
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-05-09 13:49:54 -04:00
Casey Bodley
acf1374f88 common: forward_handler() for handlers with move-only args
executors will always call the handler's lvalue overload of operator(),
so forward_handler() is required to wrap calls to bind_handler() with
move-only argument types. Completion uses this to forward all of its
CompletionHandlers

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-05-09 13:40:16 -04:00
Casey Bodley
4b7ca701c7 common: add a generic async Completion interface
a generic Completion for storing asio completion handlers for deferred
execution

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-05-09 13:40:16 -04:00
Jason Dillaman
890ee7ea12
Merge pull request #21906 from vshankar/iscsi-target-cli-typo
doc: fix iscsi target name when configuring target

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-05-09 10:17:51 -07:00
Adam C. Emerson
89d1de6245
Merge pull request #20974 from XiangxiangMeng/rgw-policy-keyword-modify
rgw: policy: modify some operation permission keyword

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
2018-05-09 12:28:22 -04:00
Venky Shankar
3b2d739e4c doc: fix iscsi target name when configuring target
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2018-05-09 20:43:59 +05:30
Casey Bodley
d1e3430bc3
Merge pull request #21788 from cbodley/wip-22914
rgw: bucket sync status improvements, part 1

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2018-05-09 11:06:40 -04:00
Tatjana Dehler
f4ebfb343d
Merge pull request #21851 from votdev/improve_error_panel
mgr/dashboard: Improve error panel

Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
2018-05-09 16:49:03 +02:00
Kefu Chai
84aaeb3c5e
Merge pull request #21609 from dragonylffly/wip-fix-create-ioctx
librados: return ENOENT if pool_id invalid

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2018-05-09 20:20:54 +08:00
Volker Theile
063f1372c9
Merge pull request #21882 from sebastian-philipp/dashboard-run-backend-api-request-insecure
mgr/dashboard: Allow insecure HTTPS in run-backend-api-request

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2018-05-09 13:54:18 +02:00
Volker Theile
90bc97da17
Merge pull request #21820 from tspmelo/wip-ui-error-handling
mgr/dashboard: Add error handling on the frontend

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
2018-05-09 13:35:07 +02:00
Volker Theile
78102cabcb
Merge pull request #21819 from tspmelo/wip-prettier
mgr/dashboard: Add Prettier formatter to the frontend

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2018-05-09 13:28:42 +02:00
Tiago Melo
9b3cc51dbe mgr/dashboard: Add Prettier formatter to the frontend
This will force the use of prettier on frontend code,
bringing a more consistent formatting to all the code.

The current configuration will apply the prettier formatting,
on all staged files, during the precommit hook.

Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-05-09 11:20:24 +01:00
Ricardo Marques
ee80c7b2ae
Merge pull request #21643 from s0nea/wip-dashboard-configurations-table
mgr/dashboard: replace configuration html table with cd-table

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Sebastian Krah <skrah@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2018-05-09 10:51:09 +01:00
Ricardo Marques
424a9f1406
Merge pull request #21777 from votdev/proxy_conf_ssl
mgr/dashboard: Use HTTPS in dev proxy configuration and HACKING.rst

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2018-05-09 10:37:12 +01:00
Tiago Melo
cf4adb4da3 mgr/dashboard: Add error handling on the frontend
Now all error notifications are processed on the api-interceptor-service,
removing the need to handle them on every api request.

Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-05-09 10:15:17 +01:00
Volker Theile
a3cf914ded
Merge pull request #21066 from sebastian-philipp/dashboard_error_handling
mgr/dashboard: Improve exception handling

Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
2018-05-09 11:11:24 +02:00
Patrick Donnelly
693ecba476
Merge PR #21808 into master
* refs/pull/21808/head:
	qa: ignore version in auth metadata comp
	ceph_volume_client: allow volumes without namespace isolation

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-05-08 15:41:18 -07:00
Neha Ojha
94a2d81082 qa/suites: set osd_pg_log_dups_tracked in cfuse_workunit_suites_fsync.yaml
Signed-off-by: Neha Ojha <nojha@redhat.com>
2018-05-08 15:20:46 -07:00
Andrew Schoen
7f132bf987
Merge pull request #21890 from alfredodeza/wip-rm24036
ceph-volume describe better the options for migrating away from ceph-disk

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
2018-05-08 20:19:12 +00:00
Alfredo Deza
0cc7bdc67a doc/rados add an anchor to reference replacing osds
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-05-08 15:23:31 -04:00
Alfredo Deza
537ff9cc3b doc/ceph-volume describe the options for migrating away from ceph-disk
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-05-08 15:23:31 -04:00
Alfredo Deza
dd6f368158 doc/ceph-volume high-level description of simple activate at index.rst
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-05-08 15:23:30 -04:00
Patrick Donnelly
f8aa12aef9
Merge PR #21810 into master
* refs/pull/21810/head:
	MDSMonitor: promote standby after fs creation
	MDSMonitor: always prints standbys even if no fs

Reviewed-by: John Spray <john.spray@redhat.com>
2018-05-08 09:04:56 -07:00
Tatjana Dehler
881eac42eb mgr/dashboard: fix table in order to view boolean values
The table didn't handle boolean values correctly. If a table contained
booleans it resulted in a TypeError because the value can't be converted to
lower case. We need to convert the boolean value to string at first.

Signed-off-by: Tatjana Dehler <tdehler@suse.com>
2018-05-08 16:58:37 +02:00
Sebastian Wagner
6487b4babf mgr/dashboard: Fix duplicate params error
* Remove params, if they use the `{name:regex}` syntax.
* Fixes http://tracker.ceph.com/issues/23823

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-05-08 16:49:57 +02:00
Sebastian Wagner
c43a1b4af5 mgr/dashboard: Exception handling: browsable API
* Added display of Exceptions
* Fixed missing sub-path
* Added delete-form
* Fixed default arguments

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-05-08 16:49:31 +02:00
Sebastian Wagner
b4c9b69594 mgr/dashboard: Exceptions: Added Documentation
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-05-08 16:48:04 +02:00
Sebastian Wagner
3a34bae0fe mgr/dashboard: Applied Exception handling to RBDs
* DashboardTestCase: Removed waiter-thread

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-05-08 16:46:47 +02:00
Patrick Donnelly
3838674f65 qa: ignore version in auth metadata comp
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-05-08 20:15:24 +05:30
Ramana Raja
3a7fdb8b05 ceph_volume_client: allow volumes without namespace isolation
Fixes: https://tracker.ceph.com/issues/23695

Signed-off-by: Ramana Raja <rraja@redhat.com>
2018-05-08 20:15:15 +05:30
Sebastian Wagner
a49f39f60e mgr/dashboard: Change to Status Code 400 by default.
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-05-08 16:39:51 +02:00
Sebastian Wagner
96f2196d99 mgr/dashboard: Add task info to exception result
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-05-08 16:38:59 +02:00
Sebastian Wagner
c08999a59c mgr/dashboard: Improved Exception handling in Tasks
* Set default status code to 400
* Added tests
* Fixed globbing in `test_task.py`

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-05-08 16:36:44 +02:00
Sebastian Wagner
dc616c7d72 mgr/dashboard: Applied Exception Handling
* Minor changes to CephFS, OSD, Pool, RbdMirroring, Summary and RGW

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-05-08 16:30:54 +02:00
Sebastian Wagner
7f16fb1479 mgr/dashboard: Improve exception handling
* Added `dashboard_exception_handler()` to catch our exceptions.
* Changed the behaviour of `ViewCache` to raise exceptions
* Added `RadosReturnError` raised in `send_command()`
* Added unit tests

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-05-08 16:29:44 +02:00
Volker Theile
a8dae80dce mgr/dashboard: Improve error panel
Signed-off-by: Volker Theile <vtheile@suse.com>
2018-05-08 14:57:53 +02:00
Alfredo Deza
eb5ca24f39
Merge pull request #21803 from alfredodeza/cv-auto
ceph-volume initial take on auto sub-command

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
2018-05-08 08:50:00 -04:00
Sebastian Wagner
79d5339cc8 mgr/dashboard: run-backend-api-request insecure HTTPS
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-05-08 14:34:31 +02:00
Tatjana Dehler
32ee476479 mgr/dashboard: replace configuration html table with cd-table
The configuration documentation page still uses a normal html table.
This commit replaces the table with the cd-table to make use of its
advanced features here.

Signed-off-by: Tatjana Dehler <tdehler@suse.com>
2018-05-08 08:50:56 +02:00
Kefu Chai
a908322186
Merge pull request #21845 from tchaikov/wip-gcc-warnings
mds,messages: silence -Wclass-memaccess warnings

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
2018-05-08 14:03:12 +08:00
Kefu Chai
0866c19cd3
Merge pull request #21856 from tchaikov/wip-drop-dpdk-submodule
dpdk: drop dpdk submodule

Reviewed-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2018-05-08 13:22:32 +08:00
Patrick Donnelly
e510e29e01
Merge PR #21712 into master
* refs/pull/21712/head:
	qa/tasks/cephfs: add test for renewing stale session
	client: invalidate caps and leases when session becomes stale
	client: fix race in concurrent readdir

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-05-07 15:53:32 -07:00
Patrick Donnelly
260215fbb6
Merge PR #21688 into master
* refs/pull/21688/head:
	client: change vxattr flags field to unsigned int

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-05-07 15:43:45 -07:00
Patrick Donnelly
54d514a522
Merge PR #21668 into master
* refs/pull/21668/head:
	mds: include nfiles/nsubdirs of directory inode in MClientCaps

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-05-07 15:43:34 -07:00
David Galloway
42258c637a
Merge pull request #21858 from yuriw/wip-yuriw-crontab
qa/tests: fixed typo
2018-05-07 15:03:41 -04:00
Casey Bodley
fe32bf7dad
Merge pull request #21707 from cbodley/wip-qa-upgrade-ragweed
qa/rgw: move ragweed upgrade test into upgrade/luminous-x

Reviewed-by: Sage Weil <sage@redhat.com>
2018-05-07 12:21:01 -04:00
Volker Theile
fbf4c8dcbf
Merge pull request #21794 from rjfd/wip-dashboard-fix-awsauth
mgr/dashboard: awsauth: fix python3 string decode problem

Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Lenz Grimmer <LGrimmer@suse.com>
2018-05-07 17:28:46 +02:00