Commit Graph

1139 Commits

Author SHA1 Message Date
Patrick Donnelly
8e7be2cc4a
Merge PR #27377 into master
* refs/pull/27377/head:
	qa: fs Ignore getfattr errors for ceph.dir.pin

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2019-05-14 13:14:21 -07:00
Patrick Donnelly
d35396ca07
Merge PR #27872 into master
* refs/pull/27872/head:
	cephfs-shell: teuthology tests

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2019-05-14 12:50:28 -07:00
Sidharth Anupkrishnan
9f40c783db qa: fs Ignore getfattr errors for ceph.dir.pin
Signed-off-by: Sidharth Anupkrishnan <sanupkri@redhat.com>
2019-05-09 18:46:21 +05:30
Sebastian Wagner
615b11b9c6
Merge pull request #26654 from sebastian-philipp/orchestrator-progress
mgr/orchestrator: add progress events to all orchestrators

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
2019-05-09 10:41:53 +02:00
Milind Changire
73ada8d1d9 cephfs-shell: teuthology tests
* mkdir
* get
* put

Fixes: http://tracker.ceph.com/issues/39526
Signed-off-by: Milind Changire <mchangir@redhat.com>
2019-05-09 11:37:31 +05:30
Patrick Donnelly
5e49c15d69
Merge PR #27761 into master
* refs/pull/27761/head:
	qa: use skipTest method instead of exception

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2019-05-08 14:48:03 -07:00
Sebastian Wagner
fccbbb55c6 mgr/orchestrator: add progress events to all orchestrators
Now, progress events are part of `WriteCompletion` istead of part of the orchestrator module.

It does not yet provide a way to just show orchestrator events.

Also fixes issue in the SSH orchestrator

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2019-05-08 11:07:02 +02:00
Lenz Grimmer
6455f96c49
mgr/dashboard/qa: Fix a few linting issues in dashboard backend tests (#27865)
mgr/dashboard/qa: Fix a few linting issues in dashboard backend tests

Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
2019-05-07 15:01:04 +02:00
Lenz Grimmer
22d6a82ad9
mgr/dashboard: Allow the decrease of pg's of an existing pool (#27785)
mgr/dashboard: Allow the decrease of pg's of an existing pool

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2019-05-06 17:38:34 +02:00
Stephan Müller
789f9352ab mgr/dashboard: Allow the decrease of pg's of an existing pool
Now it's possible to decrease the pg's of an existing pool. The decrease
will take place over time like the increase. As for both no notification
will be created when this is done (issue #39482).

Fixes: https://tracker.ceph.com/issues/35917
Signed-off-by: Stephan Müller <smueller@suse.com>
2019-04-29 16:44:27 +02:00
Tatjana Dehler
8785242de2 mgr/dashboard/qa: Fix a few linting issues in dashboard backend tests
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
2019-04-29 15:28:45 +02:00
Yuval Lifshitz
8362ecc7df rgw/pubsub: actually adding the ps tests
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
2019-04-29 09:42:32 +03:00
Yuval Lifshitz
2d7c07bbeb rgw/pubsub: fix popping the wrong key
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
2019-04-29 09:42:32 +03:00
Yuval Lifshitz
677dbfce61 Merge branch 'wip-yuval-pubsub_teuthology' of https://github.com/ceph/ceph-ci into wip-yuval-pubsub_teuthology
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
2019-04-29 09:42:32 +03:00
Sage Weil
908ea39b3b Merge PR #27655 into master
* refs/pull/27655/head:
	common/options: flag misc ms_* options STARTUP
	common/options: flag misc options STARTUP
	common/options: mark cluster log options with FLAG_RUNTIME, use get_val
	common/options: mark a bunch of options with FLAG_STARTUP

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
2019-04-26 10:40:31 -05:00
Sage Weil
5dcf3676a6 common/options: mark cluster log options with FLAG_RUNTIME, use get_val
We already have observers set up for these; switch to using the
runtime-safe accessor and flag them.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-04-25 16:26:06 -05:00
Patrick Donnelly
1071f73c76
qa: use skipTest method instead of exception
This is the recommended method to skip a test according to [1]. It also lets us
avoid an unnecessary import.

[1] https://docs.python.org/2/library/unittest.html#unittest.TestCase.skipTest

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2019-04-24 09:38:52 -07:00
Jason Dillaman
83c11efb98 qa/tasks/rbd_fio: fixed missing delimiter between 'cd' and 'configure'
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-04-18 08:57:04 -04:00
Patrick Donnelly
8e91a1aa37
Merge PR #27481 into master
* refs/pull/27481/head:
	qa: add a method to test if a file can be created
	qa: add wrappers for vstart's run() with check_status as False
	qa: add a method to create an empty file with any user
	qa: add stdin parameter to run_shell
	qa: command to be ran as a different user should be a single string
	qa: looks for quotes in Python shell and get rid of them
	qa: move checks on command arguments to a different method
	qa: accept args as strings
	qa: add a method to run given command as root user
	qa: add a method to run a command as a different user
	qa: allow keeping sudo in command arguments
	qa: make execution abortion optional for command ran through run_shell()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
2019-04-17 15:04:09 -07:00
Rishabh Dave
39417e47de qa: add a method to test if a file can be created
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2019-04-17 23:58:22 +05:30
Rishabh Dave
532670bd05 qa: add wrappers for vstart's run() with check_status as False
Too often in tests it is required to run a command that we want to (or
will probably) fail so that we can check if it failed for expected
reason(s) (eg. a testcase where command must fail with "Permission
denied"). Therefore, add few wrapper methods for vstart_runner.py's
run() with check_status's default value as False so that we don't need
to pass check_status's value at every call to run() or it's other
wrappers.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2019-04-17 23:58:22 +05:30
Rishabh Dave
e9bc9f84e5 qa: add a method to create an empty file with any user
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2019-04-17 23:58:22 +05:30
Rishabh Dave
d90c0a0e81 qa: add stdin parameter to run_shell
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2019-04-17 23:58:22 +05:30
Rishabh Dave
5462ba5d9d qa: command to be ran as a different user should be a single string
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2019-04-17 23:58:19 +05:30
Rishabh Dave
bbca211225 qa: looks for quotes in Python shell and get rid of them
Since quotes are not a token for Python's shell simulation (unlike
Bash), raise a RuntimeError for them and add an exception for Python
command since it quotes to define a program on commandline.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2019-04-12 15:00:58 +05:30
Rishabh Dave
512f4721a5 qa: move checks on command arguments to a different method
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2019-04-12 15:00:58 +05:30
Rishabh Dave
ee940faaff qa: accept args as strings
Till now the run() method in vstart_runner.py accepts commands only as
a (Python) list. It is very inconvenient to write commands as
['setfacl', '-m', 'user:someuser:rwx', 'somedir/somefile'] when they
can be simply be written as
'setfacl -m user:someuser:rwx somedir/somefile'. Also, converting the
latter form to former one is exceedingly simple. So writing commands as
strings should be allowed.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2019-04-12 15:00:58 +05:30
Rishabh Dave
cb262323bc qa: add a method to run given command as root user
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2019-04-12 15:00:58 +05:30
Rishabh Dave
8ca094ff99 qa: add a method to run a command as a different user
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2019-04-12 15:00:57 +05:30
Kefu Chai
42167b8790 qa/tasks/ceph_deploy: install python3.6 instead of python3.4 for py3 tests
EPEL7 has switched over to python3.6 as the main python3. and we started
packaging python bindings for python3.6 since
https://github.com/ceph/ceph-build/pull/1283

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-04-11 10:03:56 +08:00
Rishabh Dave
3e0a1361f7 qa: allow keeping sudo in command arguments
sudo cannot be omitted from the given command's arguments, when running
passwd, chown and, specially, when sudo is used for running the given
command as different user.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2019-04-09 21:03:31 +05:30
Rishabh Dave
5df2b82c4f qa: make execution abortion optional for command ran through run_shell()
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2019-04-09 21:03:31 +05:30
Patrick Donnelly
95714b5c7c
qa: decouple session map test from simple msgr
Instead of looking at the number of threads (used by the simple messenger) to
judge the coming and going of connections, use the (async) messenger perf
counters.

Plus some other minor improvements.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2019-04-08 11:50:17 -07:00
J. Eric Ivancich
a33ae8c97a
Merge pull request #26183 from letterwuyu/wip-rgw-get-detail-user-info
rgw: Make rgw admin ops api get user info consistent with the command line
2019-04-03 12:36:23 -04:00
Lenz Grimmer
96a65fbfb7
Merge pull request #26914 from votdev/issue_38331
mgr/dashboard: Add separate option to config SSL port

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
2019-03-28 10:55:27 +01:00
lishuhao
d2c02b37e3 rgw: make rgw admin ops api get user info consistent with the command line
GET /{admin}/user?format=json HTTP/1.1
Host: {fqdn}
This api gets the information is incomplete relative to radosgw-admin user info --uid xxxx

This modification will change the information returned by the three calls :
RGWUserAdminOp_User::info
RGWUserAdminOp_User::create
RGWUserAdminOp_User::modify

Signed-off-by: Li Shuhao <lishuhao@unitedstack.com>
2019-03-28 11:28:43 +08:00
Volker Theile
91fe2f0799 mgr/dashboard/qa: Increase timeout for test_disable (tasks.mgr.dashboard.test_mgr_module.MgrModuleTelemetryTest)
Fixes: https://tracker.ceph.com/issues/38820

Signed-off-by: Volker Theile <vtheile@suse.com>
2019-03-26 15:43:54 +01:00
Lenz Grimmer
7c1f1efeb5
Merge pull request #26925 from votdev/issue_38265
mgr/dashboard/qa: Improve tasks.mgr.test_dashboard.TestDashboard.test_standby

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
2019-03-26 13:44:19 +01:00
Casey Bodley
9fdcaae19a
Merge pull request #26100 from ceph/wip-s3a-hadoop-ver
qa/tests: update s3a hadoop versions used for test

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2019-03-25 13:22:39 -04:00
Volker Theile
c29e587007 mgr/dashboard/qa: Improve tasks.mgr.test_dashboard.TestDashboard.test_standby
The changes of this PR were done while trying to fix the failing test. The problem has been solved by another PR, but the changes are worth to be integrated because they help debugging and an additional test has been added (check if previously active manager is listed as standby).

Signed-off-by: Volker Theile <vtheile@suse.com>
2019-03-21 15:26:52 +01:00
Sebastian Wagner
cee38745ea
Merge pull request #26404 from sebastian-philipp/orchestrator-error-handling
mgr/orchestrator: Add error handling to interface

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Tim Serong <tserong@suse.com>
2019-03-21 12:30:13 +01:00
Sage Weil
4f41800386 ms/async/ProtocolV2: add ms_die_on_bug and assert rxbuf/txbuf don't get big
Signed-off-by: Sage Weil <sage@redhat.com>
2019-03-15 06:42:29 -05:00
Sage Weil
96b837830c Merge PR #26920 into master
* refs/pull/26920/head:
	qa/tasks/mgr/test_module_selftest: fix localized value test
	mgr/BaseMgrStandbyModule: parse prefix properly

Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
2019-03-13 08:16:20 -05:00
Volker Theile
86f47f6bfd mgr/dashboard: Add separate option to config SSL port
There is a need to introduce this new config option because the MgrModule::get_module_option() and MgrModule::get_localized_module_option() method will be refactored soon and will not support the default parameter anymore. Instead the default value must be configured in the MODULE_OPTIONS. Currently we misuse the server_port depending on if SSL is enabled or not.

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

Signed-off-by: Volker Theile <vtheile@suse.com>
2019-03-13 13:50:14 +01:00
Sage Weil
ebdd003bf4 qa/tasks/mgr/test_module_selftest: fix localized value test
When mgr/selftest/testkey = foo and mgr/selftest/x/testkey is not set,
then get_localized() should return foo.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-03-13 07:11:47 -05:00
Patrick Donnelly
4f3df2cc82
Merge PR #26893 into master
* refs/pull/26893/head:
	qa: unmount clients prior to marking fs down

Reviewed-by: Zheng Yan <zyan@redhat.com>
2019-03-12 10:47:53 -07:00
Volker Theile
bc9643657a mgr: Fix broken get_localized_module_option function
Fixes: https://tracker.ceph.com/issues/38560

Signed-off-by: Volker Theile <vtheile@suse.com>
2019-03-11 17:25:18 +01:00
Patrick Donnelly
e7e4eea3a6
Merge PR #26818 into master
* refs/pull/26818/head:
	qa/cephfs: relax min_caps_per_client check

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2019-03-11 09:21:43 -07:00
Patrick Donnelly
9aaf6118a4
qa: unmount clients prior to marking fs down
Evicted RHEL7.5 clients may hang.

Fixes: http://tracker.ceph.com/issues/38677
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2019-03-11 09:15:37 -07:00
Yan, Zheng
8e81bd74c5 qa/cephfs: relax min_caps_per_client check
new kernel client proactively release caps. caps count can go below
mds_min_caps_per_client

Fixes: http://tracker.ceph.com/issues/38270
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
2019-03-07 21:32:20 +08:00