Commit Graph

101675 Commits

Author SHA1 Message Date
Rishabh Dave
877a79d8cf test_cephfs_shell: test du's output for hardlinks
Test that CephFS shell command du prints output for directories as
expected.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2019-09-13 10:45:11 +05:30
Rishabh Dave
7062dd6164 test_cephfs_shell: test du's output for directories
Test that CephFS shell command du prints output for directories as
expected.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2019-09-13 10:45:08 +05:30
Rishabh Dave
370c97678d test_cephfs_shell: test du's output for regular files
Test that CephFS shell command du prints an output for regular files
correctly.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2019-09-13 10:45:04 +05:30
Rishabh Dave
d3f895f44a test_cephfs_shell: add a method to get command output
Let run_cephfs_shell_cmd() return the object instead of output in string
format so that stderr, return value, etc. of the command executed
remain available. And add a new method that returns only output of the
CephFS shell command executed.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2019-09-13 10:44:59 +05:30
Rishabh Dave
f0723d200c test_cephfs_shell: allow cmd as list too
Convert cmd to string if it is passed as list to
run_cephfs_shell_cmd(). Allowing cmd to be list would be nice since
elsewhere, in tests, command to be executed must be a list of arguments
rather than string of arguments separated by spaces.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2019-09-13 10:44:39 +05:30
Rishabh Dave
e6f3bf8ccd test_cephfs_shell: rename and rewrite _cephfs_shell()
Rename _cephfs_shell() to run_cephfs_shell_cmd() and add a default
client for run_cephfs_shell_cmd() since most of tests in this
testsuite will need only one client.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2019-09-13 10:44:35 +05:30
Rishabh Dave
e5f30052f9 test_cephfs_shell: copy humanize() from cephfs-shell
Copy the method named humanize from cephfs-shell so that output can be
compared. Unfortunately, importing this method isn't possible since the
dash in "cephfs-shell" leads to an syntax error.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2019-09-13 10:43:55 +05:30
Rishabh Dave
bfa1e2f07a cephfs-shell: print disk usage for non-directory files too
Currently when du crashes when it comes across a non-directory files.
Instead of doing that, print disk usage for regular files.

Fixes: http://tracker.ceph.com/issues/40371
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2019-09-13 09:51:58 +05:30
Rishabh Dave
8cce7dad8f pybind/cephfs: add method that stats symlinks without following
Add a new Python binding equivalent to lstat so that information about
the symlink itself can be also obtained, along with other type of files.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2019-09-13 09:51:53 +05:30
Varsha Rao
9c686669a8 cephfs-shell: Fix 'du' command error
This patch fixes the following:
* No error message outputed for non existing directories.
* Takes only single argument.
* When no arguments are passed, existing directories in the current directory
  are not displayed.
* Always '.' is concated to the path.

Fixes: https://tracker.ceph.com/issues/39641
Signed-off-by: Varsha Rao <varao@redhat.com>
2019-09-11 19:00:05 +05:30
Xie Xingguo
49addda570
Merge pull request #29985 from xiexingguo/wip-41514-plus
osd/PrimaryLogPG: cancel in-flight manifest ops on interval changing; fix race with scrub

Reviewed-by: Myoungwon Oh <ommw@sk.com>
2019-09-06 13:51:48 +08:00
Kefu Chai
40075d89d3
Merge pull request #30184 from tchaikov/wip-make-check
run-make-check.sh: extract run-make.sh

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2019-09-06 11:01:20 +08:00
Xie Xingguo
7e64e61ea0
Merge pull request #30085 from xiexingguo/wip-41601
osd/PrimaryLogPG: update oi.size on write op implicitly truncating object up

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2019-09-06 11:01:02 +08:00
Sage Weil
09c60680e1 Merge PR #29842 into master
* refs/pull/29842/head:
	kv/KeyValueDB: fix estimate_prefix_size()

Reviewed-by: Sage Weil <sage@redhat.com>
2019-09-05 21:27:09 -05:00
Sage Weil
2819d9d59c Merge PR #29855 into master
* refs/pull/29855/head:
	pybind/mgr: remove type conversions for ceph native options
	mgr: return get_ceph_option result as typed Py object (not string)

Reviewed-by: Tim Serong <tserong@suse.com>
2019-09-05 21:26:29 -05:00
J. Eric Ivancich
c52b8b0c76
Merge pull request #30013 from ivancich/wip-beanjoy-update-attrib-tags
rgw: fix refcount tags to match and update object's idtag

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
2019-09-05 13:37:14 -04:00
Kefu Chai
20bcbb24f9
Merge pull request #30062 from david-z/wip-fix-test-assert
test: remove useless ASSERT_XXX macros for rgw test

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2019-09-05 23:57:44 +08:00
Lenz Grimmer
930d7a091f
Merge pull request #29673 from rafaelquint/imagetrash
mgr/dashboard: RBD Image Purge Trash, Move to Trash and Restore

Reviewed-by: Tiago Melo <tmelo@suse.com>
2019-09-05 15:40:52 +00:00
David Zafman
336b6b66ca
Merge pull request #28755 from dzafman/wip-network
feature: Health warnings on long network ping times, add "dump_osd_network" to get a report

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2019-09-05 07:54:43 -07:00
Kefu Chai
5e9a1d95c9 run-make-check.sh: extract run-make.sh
so we can reuse run-make.sh for building the artifact used by other
tests than "make check", for instance, dashboard's E2E test and
crimson's performance test.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-09-05 21:07:37 +08:00
Laura Paduano
097aa77927
Merge pull request #29402 from Devp00l/wip-40828
mgr/dashboard: Use onCancel on any modal event

Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2019-09-05 13:03:12 +02:00
Laura Paduano
0a3ff5358a
Merge pull request #30064 from bk201/wip-41368
mgr/dashboard: fix cdEncode decorator is not working on class

Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2019-09-05 12:47:43 +02:00
Nathan Cutler
c903e27d46
Merge pull request #30145 from theanalyst/doc/releases/14.2.3
doc: releases: 14.2.3 dashboard note

https://github.com/ceph/ceph/pull/24179
2019-09-05 12:24:41 +02:00
Lenz Grimmer
d8b250a4f5
mgr/dashboard: Empty datatable rendered before data has been f… (#30103)
mgr/dashboard: Empty datatable rendered before data has been fetched

Reviewed-by: Patrick Seidensal <pnawracay@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2019-09-05 10:22:41 +00:00
Zhi Zhang
c28ec2dc15 test: remove useless ASSERT_XXX macros for rgw test
Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>
2019-09-05 15:16:59 +08:00
Kefu Chai
a72edfb4d7
Merge pull request #29981 from falcon78921/wip-ceph-conf-usage
ceph-conf: added --show-config-value to usage

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-09-05 11:46:27 +08:00
James McClune
2627c3527a ceph-conf: added --show-config-value to ceph-conf usage
--show-config-value is another way to lookup ceph.conf
values. Users may want to utilize --show-config-value instead of
--lookup because --show-config-value also shows global defaults.

Signed-off-by: James McClune <jmcclune@mcclunetechnologies.net>
2019-09-04 22:29:08 -04:00
David Zafman
71015b94ab doc: Document network performance monitoring
Signed-off-by: David Zafman <dzafman@redhat.com>
2019-09-04 16:01:11 -07:00
Gregory Farnum
2499641c72
Merge pull request #29847 from iotcg/mon_doc
doc: set ceph_perf_msgr_server arguments

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2019-09-04 14:43:51 -07:00
Yuval Lifshitz
1ba63aad2c
Merge pull request #30136 from yuvalif/build_docs_on_fedora30
build-doc: allow building docs on fedora 30
2019-09-04 22:40:46 +03:00
J. Eric Ivancich
851b1e1bdc
Merge pull request #26755 from cbodley/wip-rgw-bilog-complete
rgw multisite: avoid writing bilog entries on PREPARE and CANCEL

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
2019-09-04 13:19:01 -04:00
David Zafman
5f83a6158b osd doc mon mgr: To milliseconds for config value, user input and threshold out
Signed-off-by: David Zafman <dzafman@redhat.com>
2019-09-04 17:13:32 +00:00
J. Eric Ivancich
ab460e90f7
Merge pull request #29692 from mkogan1/wip-rgw-37615
rgw: fix cls_bucket_list_unordered() partial results

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
2019-09-04 13:12:55 -04:00
Stephan Müller
a1e81bb28e mgr/dashboard: Refactoring
I came across a yoda case and a test case that didn't use 'done' while
using an async call.

Fixes: https://tracker.ceph.com/issues/40828
Signed-off-by: Stephan Müller <smueller@suse.com>
2019-09-04 16:22:33 +02:00
Stephan Müller
7406d5e02d mgr/dashboard: Use onCancel on any modal event
The problem was, that if 'onCancel' was provided, it wasn't used in all
modal exit cases. Only for the close buttons (the X and the labeled
one), but not if you clicked outside the modal or hit escape.

'onCancel' is currently only used inside the user management form, where
the problem caused, that the submit button was not longer click able if
the modal was hidden through clicking outside of it or hitting escape.

Fixes: https://tracker.ceph.com/issues/40828
Signed-off-by: Stephan Müller <smueller@suse.com>
2019-09-04 16:22:33 +02:00
Stephan Müller
4685dcd450 mgr/dashboard: Add tests for confirmation modal
Fixes: https://tracker.ceph.com/issues/40828
Signed-off-by: Stephan Müller <smueller@suse.com>
2019-09-04 16:22:33 +02:00
Abhishek Lekshmanan
da2d40fa9a doc: releases: 14.2.3 dashboard note
The comment unfortunately got buried in a resolved blog

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2019-09-04 16:02:17 +02:00
Abhishek L
c9863fbd7e
Merge pull request #29973 from theanalyst/doc/releases/14.2.3
doc: release notes for v14.2.3 nautilus

Reviewed-By: Nathan Cutler <nculter@suse.com>
Reviewed-By: Neha Ojha <nojha@redhat.com>
Reviewed-By: Josh Durgin <jdurgin@redhat.com>
Reviewed-By: Lenz Grimmer <lgrimmer@suse.com>
2019-09-04 15:50:18 +02:00
Abhishek Lekshmanan
3e2f2dcc39 doc: add a final set of notable changes to 14.2.3
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2019-09-04 15:32:34 +02:00
Yuval Lifshitz
e17e4bfcc0 build-doc: allow building docs on fedora 30
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
2019-09-04 16:14:56 +03:00
Kefu Chai
4275bc2330
Merge pull request #29882 from cyx1231st/wip-seastar-msgr-test-lossless-crimson
crimson/net: bug fixes from v2 failover tests

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-09-04 19:51:55 +08:00
Lenz Grimmer
fc5249b99c
Merge pull request #30075 from rhcs-dashboard/fix-41600-master
mgr/dashboard: change warn_explicit to warn

Reviewed-by: Sebastian Wagner <swagner@suse.com>
2019-09-04 11:11:16 +00:00
Lenz Grimmer
79eba9d1d9
Merge pull request #29929 from tspmelo/wip-ng-analytics
mgr/dashboard: Prevent angular of getting stuck during installation

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2019-09-04 10:05:27 +00:00
Volker Theile
b7a2576192
Merge pull request #29557 from Devp00l/wip-41166
mgr/dashboard: Fix CephFS chart

Reviewed-by: Ni-Feng Chang <kiefer.chang@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Patrick Seidensal <pseidensal@suse.com>
2019-09-04 11:47:13 +02:00
Jan Fajerski
24220af4fa
Merge pull request #29996 from iliul/export-standby-metadata
mgr/prometheus: export standby mds metadata
2019-09-04 09:37:09 +02:00
Kefu Chai
722dd0eb91
Merge pull request #30122 from tchaikov/wip-40646
install-deps: revert 47d4351d

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
2019-09-04 11:36:20 +08:00
Josh Durgin
11eb92846f
Merge pull request #30119 from neha-ojha/wip-41385
osd/MissingLoc, PeeringState: remove osd from missing loc in purge_strays()

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2019-09-03 18:58:16 -07:00
Jason Dillaman
154f3472f8
Merge pull request #30072 from wjwithagen/wjw-wip_split_run-rbd-unit-tests
test/librbd: allow parallel runs of run-rbd-unit-tests

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-09-03 21:18:54 -04:00
Kefu Chai
dfa6c5fcba install-deps: revert 47d4351d
this change reverts 47d4351d3a

see also 33dfffc8

Fixes: https://tracker.ceph.com/issues/40646
Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-09-04 09:17:13 +08:00
Xie Xingguo
b6fca9a826
Merge pull request #30018 from xiexingguo/wip-38483
osd: prime splits/merges for any potential fabricated split/merge participant

Reviewed-by: Sage Weil <sage@redhat.com>
2019-09-04 08:31:39 +08:00