Commit Graph

85880 Commits

Author SHA1 Message Date
Ricardo Dias
2bccb866bd
mgr/dashboard: restcontroller: removed @args_from_json
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-04-19 10:15:27 +01:00
Lenz Grimmer
3bff4b207c
Merge pull request #21497 from votdev/forceidentifier_datatable
mgr/dashboard: Add 'forceIdentifier' attribute to datatable

Reviewed-by: Ricardo Marques <rimarques@suse.com>
2018-04-19 11:13:32 +02:00
Kefu Chai
b8fa9837be
Merge pull request #21469 from liewegas/wip-log-nomsgs
mon/LogMonitor: do not crash on log sub w/ no messages

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Joao Eduardo Luis <joao@suse.de>
2018-04-19 17:06:32 +08:00
Kefu Chai
7985f37e54
Merge pull request #21467 from tchaikov/wip-perf-stats-ns-incarnation
include/ceph_features: fix OS_PERF_STAT_NS's incarnation

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
2018-04-19 17:05:29 +08:00
Kefu Chai
fb472ddc37
Merge pull request #21459 from runsisi/wip-mgrc-register
mgr/MgrClient: service registration filtered by service name instead of daemon name

Reviewed-by: John Spray <john.spray@redhat.com>
2018-04-19 17:02:53 +08:00
Ilya Dryomov
cec0ee3000 qa: krbd_exclusive_option.sh: add lock_timeout test case
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2018-04-19 10:43:35 +02:00
Ilya Dryomov
25869054de qa: krbd_exclusive_option.sh: be more lax about ps states
Allow running this script by hand -- foreground process group vs
background process groups, etc.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2018-04-19 10:43:35 +02:00
Ilya Dryomov
d0ccfb4026
Merge pull request #21344 from yangdongsheng/lock_timeout
rbd: support lock_timeout in rbd mapping

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
2018-04-19 10:26:09 +02:00
Ricardo Dias
1ee0f2a376
mgr/dashboard: .gitignore: ignore vscode .venv dir
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-04-19 08:53:08 +01:00
Ricardo Dias
671b134885
mgr/dashboard: restcontroller: support explicit resource ID
In the current implementation, RESTController tries to infer the
resource ID by looking at the declared parameters of the resource
methods (get, delete, set, and patch). This inference may not always
be correct, and therefore with this commit we can now explicitely
specify the structure of the resource ID. If the resource ID is
not explicitly specified, then we fallback to the inference algorithm.

Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-04-19 08:52:26 +01:00
Erwan Velu
b1037f93bf signal_handler: Implementing specific messages per context
As per bug #23320, regarding the signal we receive, it could be interesting providing a specific message.

If we get a SI_USER we almost print the actual message except we don't print the PID which have no meaning when set to 0.

In all other cases, we do print the full structure to help debuggers understanding the received signal.

This patch is offering a better way to get specific messages based on various si_code values.
It could be expanded later based on debugging feedbacks.

Fixes: http://tracker.ceph.com/issues/23320
Signed-off-by: Erwan Velu <erwan@redhat.com>
2018-04-19 09:48:36 +02:00
Erwan Velu
b21467d326 signal_handler: Reports pid 0 as Kernel
When receiving a signal, get_name_by_pid() tries to find what was the process name of the sender.

As per bug #23320, we have case where pid is 0 leading to the following confusing message :

    signal: Interrupt from PID: 0 task name: <unknown> UID: 0

This commit is about returning an explicit "Kernel" as a task name if pid is 0

Signed-off-by: Erwan Velu <erwan@redhat.com>
2018-04-19 09:48:36 +02:00
Nathan Cutler
ffab79587d cmake/mgr: use Python 3 virtualenv if mgr subinterpreter is Python 3
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2018-04-19 09:47:37 +02:00
Volker Theile
9e3ad18257 mgr/dashboard: Force identifier for RBD datatable.
Signed-off-by: Volker Theile <vtheile@suse.com>
2018-04-19 09:31:38 +02:00
Volker Theile
dda38317c4 mgr/dashboard: Add 'forceIdentified' attribute to datatable
Signed-off-by: Volker Theile <vtheile@suse.com>
2018-04-19 09:23:58 +02:00
Ilya Dryomov
4685368455 qa: krbd_fallocate.sh: add notrim test case
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2018-04-19 09:03:54 +02:00
Ilya Dryomov
a7d89c0794 qa: krbd_fallocate.sh: s/deallocated/zeroes/
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2018-04-19 09:03:54 +02:00
Ilya Dryomov
f6d976b756 qa: krbd_fallocate.sh: parameterize assert_deallocated()
Take num_objects_expected, similar to assert_deallocated_unaligned().

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2018-04-19 09:03:54 +02:00
Dongsheng Yang
b09e4fe584 rbd: support lock_timeout in rbd mapping
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
2018-04-19 02:59:21 -04:00
Ilya Dryomov
6931ab7ec9
Merge pull request #21056 from hitoshikamei/rbdmap-notrim
rbd: add notrim option to rbd map

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
2018-04-19 08:51:57 +02:00
Kefu Chai
2efe9daf77
Merge pull request #21490 from tchaikov/wip-tox
mgr/dashboard: create venv for running tox

Reviewed-by: Ricardo Dias <rdias@suse.com>
2018-04-19 13:11:27 +08:00
Kefu Chai
1599414827 mgr/dashboard: create venv for running tox
the tox shipped with centos is 1.4.2, and is way too old. it does not
allow us to define the dependency using generative-envlist.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-04-19 12:11:59 +08:00
Kefu Chai
f8a0a3cfec tools/setup-virtualenv.sh: bump up the version of tox to 2.9.1
2.8.1 brings an important fix, see
https://github.com/tox-dev/tox/issues/515.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-04-19 12:11:59 +08:00
Alfredo Deza
b6344f366d
Merge pull request #21489 from thmour/thmour_parallel_create
ceph-volume: allow parallel creates

Reviewed-by: Alfredo Deza <adeza@redhat.com>
Reviewed-by: Andrew Schoen <aschoen@redhat.com>
2018-04-18 18:24:51 -04:00
Patrick Donnelly
bb95292213
Merge PR #16608 into master
* refs/pull/16608/head:
	qa: whitelist mds down wrn during cephfs testing
	mds: add config to disable fragmentation
	qa: add max_mds thrash test
	qa: mds_thrash updates for new max_mds behavior
	doc: update upgrade procedure and release notes
	qa: add test for cluster resizing
	qa: remove use of mds deactivate
	cephfs: add new down/joinable fs flags
	mds: evict all clients if last mds shutting down
	cephfs: deprecate ceph mds deactivate
	cephfs: kill allow_dirfrags
	cephfs: Kill allow_multimds
	cephfs: Change behavior of cluster_down flag
	mon/FSCommands: Set extra MDS to standby
	cephfs: Health check changes
	mon/MDSMonitor: Remove command support for legacy syntax

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-04-18 14:36:54 -07:00
Patrick Donnelly
994cd16fbd
Merge PR #21456 into master
* refs/pull/21456/head:
	MDSMonitor: initialize new Filesystem epoch from pending

Reviewed-by: John Spray <john.spray@redhat.com>
2018-04-18 14:36:47 -07:00
Patrick Donnelly
63f6ce85c7
Merge PR #21457 into master
* refs/pull/21457/head:
	mds: unset deleted vars in shutdown_pass

Reviewed-by: Zheng Yan <zyan@redhat.com>
2018-04-18 14:36:40 -07:00
Patrick Donnelly
f28e19315c
Merge PR #21458 into master
* refs/pull/21458/head:
	MDSMonitor: cleanup and protect fsmap access

Reviewed-by: João Eduardo Luís <joao@suse.de>
2018-04-18 14:36:32 -07:00
Patrick Donnelly
c03dc9d40e
Merge PR #21473 into master
* refs/pull/21473/head:
	client: fix error operator precedence

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
2018-04-18 14:36:26 -07:00
Patrick Donnelly
c9ac87f57f
client: add client option descriptions
Fixes: http://tracker.ceph.com/issues/22933

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-04-18 14:22:27 -07:00
Patrick Donnelly
3292d43192
mds: unset deleted vars in shutdown_pass
So future passes do not try to delete again.

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

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-04-18 14:14:39 -07:00
Sage Weil
c894d528c2 qa/workunits/rados/test.sh: ensure tee output is valid filename
In the future we'll add --gtest_filter bits to the items, which confuse
tee.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-04-18 14:38:26 -05:00
Nathan Cutler
90f5424782
Merge pull request #21480 from smithfarm/wip-backport-create-issue
scripts: new backport-create-issue script

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
2018-04-18 19:57:45 +02:00
Nathan Cutler
327347a008 script/backport-create-issue: enable script to be imported
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2018-04-18 18:39:10 +02:00
Luis Henriques
35191fa4ad doc/cephfs: update kernel client quotas support info
Signed-off-by: Luis Henriques <lhenriques@suse.com>
2018-04-18 16:33:57 +01:00
Alfredo Deza
8848d03708 ceph-volume tests functional python tests for --no-systemd in activate
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-04-18 10:07:23 -04:00
Alfredo Deza
75685e33bf ceph-volume lvm.activate add --no-systemd flag to skip starting/enabling services
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-04-18 10:07:23 -04:00
Alfredo Deza
832da49ca8 ceph-volume lvm.common add --no-systemd flag to skip enabling/starting services
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-04-18 10:07:23 -04:00
Jeff Layton
d790108158 client: flush the mdlog in _fsync before waiting on unstable reqs
Recently, we changed ganesha to call to ceph_ll_sync_inode after
issuing a setattr call, to ensure that the attribute changes makes it
to the backing store before returning.

While testing with this, I noticed that we'd occasionally see setattr
calls stall for a long time. Analysis showed that the client's _fsync
request was stalled waiting on an mdlog flush.

This patch adds a call to flush_mdlog_sync prior to waiting on unsafe
requests in _fsync and seems to resolve the issue.

Tracker: http://tracker.ceph.com/issues/23714
Signed-off-by: Jeff Layton <jlayton@redhat.com>
2018-04-18 10:06:44 -04:00
Jason Dillaman
5c4f8c7dc3
Merge pull request #21436 from trociny/wip-test-out_of_order
test/librbd: ensure OutOfOrder test has enough concurrent management ops

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-04-18 09:51:46 -04:00
Jason Dillaman
d286e72616
Merge pull request #21493 from trociny/wip-deep-copy-missing-return
librbd: missing 'return' in deep_copy::ObjectCopyRequest::send_read_object

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-04-18 09:51:22 -04:00
Lenz Grimmer
1b057bbc76
Merge pull request #21385 from ricardoasmarques/wip-list-all-rbds
mgr/dashboard: RBD management (frontend)

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-04-18 15:50:14 +02:00
Andrew Schoen
06c0933ae4
Merge pull request #21451 from ceph/wip-rm23581
ceph-volume: automatic VDO detection 

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
2018-04-18 13:48:41 +00:00
Ricardo Marques
4e9a5aa7a6 mgr/dashboard: RBD management
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-04-18 12:04:08 +01:00
Mykola Golub
5f9a9fb142 librbd: missing 'return' in deep_copy::ObjectCopyRequest::send_read_object
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-04-18 13:46:16 +03:00
Boris Ranto
a2eea2427a
Merge pull request #21383 from b-ranto/wip-mgr-rgw-metadata
prometheus: Implement rgw_metadata metric

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Jan Fajerski <jfajerski@suse.com>
2018-04-18 12:46:00 +02:00
Ricardo Marques
f0d8338e98 mgr/dashboard: Add 'executing' cell template
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-04-18 11:02:28 +01:00
Ricardo Marques
2c4e35a7e1 mgr/dashboard: Configurable type for 'cd-submit-button'
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-04-18 11:02:28 +01:00
Ricardo Marques
e78504503a mgr/dashboard: Add 'delete-confirmation-modal' component
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-04-18 11:02:28 +01:00
Ricardo Marques
617632b358 mgr/dashboard: Force focus on submit
Forcing focus on submit button will guarantee that all inputs will lose focus
before submission.

Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-04-18 11:02:28 +01:00