Project

General

Profile

Bug #36581

mgr/dashboard/qa: CephfsTest - admin_socket() got an unexpected keyword argument 'timeout'

Added by Tatjana Dehler 10 months ago. Updated 10 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
dashboard/qa
Target version:
-
Start date:
10/24/2018
Due date:
% Done:

0%

Source:
Development
Tags:
dashboard CephFS QA
Backport:
Regression:
Yes
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

The dashboard module is facing some issues with running the integration tests on the local docker container currently:

2018-10-24 09:01:50,841.841 INFO:tasks.cephfs.filesystem:Creating filesystem 'cephfs'
2018-10-24 09:01:50,842.842 INFO:__main__:ERROR
2018-10-24 09:01:50,842.842 INFO:__main__:
2018-10-24 09:01:50,842.842 INFO:__main__:======================================================================
2018-10-24 09:01:50,842.842 INFO:__main__:ERROR: setUpClass (tasks.mgr.dashboard.test_cephfs.CephfsTest)
2018-10-24 09:01:50,842.842 INFO:__main__:----------------------------------------------------------------------
2018-10-24 09:01:50,842.842 INFO:__main__:Traceback (most recent call last):
2018-10-24 09:01:50,842.842 INFO:__main__:  File "/ceph/qa/tasks/mgr/dashboard/helper.py", line 121, in setUpClass
2018-10-24 09:01:50,843.843 INFO:__main__:    cls.fs = cls.mds_cluster.newfs(create=True)
2018-10-24 09:01:50,843.843 INFO:__main__:  File "../qa/tasks/vstart_runner.py", line 698, in newfs
2018-10-24 09:01:50,843.843 INFO:__main__:    return LocalFilesystem(self._ctx, name=name, create=create)
2018-10-24 09:01:50,843.843 INFO:__main__:  File "../qa/tasks/vstart_runner.py", line 748, in __init__
2018-10-24 09:01:50,843.843 INFO:__main__:    self.create()
2018-10-24 09:01:50,843.843 INFO:__main__:  File "/ceph/qa/tasks/cephfs/filesystem.py", line 513, in create
2018-10-24 09:01:50,843.843 INFO:__main__:    pgs_per_fs_pool = self.get_pgs_per_fs_pool()
2018-10-24 09:01:50,843.843 INFO:__main__:  File "../qa/tasks/vstart_runner.py", line 769, in get_pgs_per_fs_pool
2018-10-24 09:01:50,843.843 INFO:__main__:    return 3 * int(self.get_config('mon_pg_warn_min_per_osd'))
2018-10-24 09:01:50,843.843 INFO:__main__:  File "../qa/tasks/vstart_runner.py", line 637, in get_config
2018-10-24 09:01:50,843.843 INFO:__main__:    return self.json_asok(['config', 'get', key], service_type, service_id)[key]
2018-10-24 09:01:50,843.843 INFO:__main__:  File "/ceph/qa/tasks/cephfs/filesystem.py", line 178, in json_asok
2018-10-24 09:01:50,844.844 INFO:__main__:    proc = self.mon_manager.admin_socket(service_type, service_id, command, timeout=timeout)
2018-10-24 09:01:50,844.844 INFO:__main__:TypeError: admin_socket() got an unexpected keyword argument 'timeout'
2018-10-24 09:01:50,844.844 INFO:__main__:
2018-10-24 09:01:50,844.844 INFO:__main__:----------------------------------------------------------------------
2018-10-24 09:01:50,844.844 INFO:__main__:Ran 9 tests in 77.540s
2018-10-24 09:01:50,844.844 INFO:__main__:
2018-10-24 09:01:50,844.844 INFO:__main__:FAILED (errors=1, skipped=1)
2018-10-24 09:01:50,844.844 INFO:__main__:
2018-10-24 09:01:50,844.844 INFO:__main__:======================================================================
2018-10-24 09:01:50,844.844 INFO:__main__:ERROR: setUpClass (tasks.mgr.dashboard.test_cephfs.CephfsTest)
2018-10-24 09:01:50,844.844 INFO:__main__:----------------------------------------------------------------------
2018-10-24 09:01:50,845.845 INFO:__main__:Traceback (most recent call last):
2018-10-24 09:01:50,845.845 INFO:__main__:  File "/ceph/qa/tasks/mgr/dashboard/helper.py", line 121, in setUpClass
2018-10-24 09:01:50,845.845 INFO:__main__:    cls.fs = cls.mds_cluster.newfs(create=True)
2018-10-24 09:01:50,845.845 INFO:__main__:  File "../qa/tasks/vstart_runner.py", line 698, in newfs
2018-10-24 09:01:50,845.845 INFO:__main__:    return LocalFilesystem(self._ctx, name=name, create=create)
2018-10-24 09:01:50,845.845 INFO:__main__:  File "../qa/tasks/vstart_runner.py", line 748, in __init__
2018-10-24 09:01:50,845.845 INFO:__main__:    self.create()
2018-10-24 09:01:50,845.845 INFO:__main__:  File "/ceph/qa/tasks/cephfs/filesystem.py", line 513, in create
2018-10-24 09:01:50,845.845 INFO:__main__:    pgs_per_fs_pool = self.get_pgs_per_fs_pool()
2018-10-24 09:01:50,845.845 INFO:__main__:  File "../qa/tasks/vstart_runner.py", line 769, in get_pgs_per_fs_pool
2018-10-24 09:01:50,845.845 INFO:__main__:    return 3 * int(self.get_config('mon_pg_warn_min_per_osd'))
2018-10-24 09:01:50,846.846 INFO:__main__:  File "../qa/tasks/vstart_runner.py", line 637, in get_config
2018-10-24 09:01:50,846.846 INFO:__main__:    return self.json_asok(['config', 'get', key], service_type, service_id)[key]
2018-10-24 09:01:50,846.846 INFO:__main__:  File "/ceph/qa/tasks/cephfs/filesystem.py", line 178, in json_asok
2018-10-24 09:01:50,846.846 INFO:__main__:    proc = self.mon_manager.admin_socket(service_type, service_id, command, timeout=timeout)
2018-10-24 09:01:50,846.846 INFO:__main__:TypeError: admin_socket() got an unexpected keyword argument 'timeout'
2018-10-24 09:01:50,846.846 INFO:__main__:

or:

2018-10-24 08:55:04,773.773 INFO:__main__:e: <unittest.suite.TestSuite tests=[]>
2018-10-24 08:55:04,774.774 INFO:__main__:e: <unittest.suite.TestSuite tests=[<tasks.mgr.dashboard.test_user.UserTest testMethod=test_create_user_already_exists>, <tasks.mgr.dashboard.test_user.UserTest testMethod=test_create_user_invalid_role>, <tasks.mgr.dashboard.test_user.UserTest testMethod=test_crud_user>, <tasks.mgr.dashboard.test_user.UserTest testMethod=test_delete_current_user>, <tasks.mgr.dashboard.test_user.UserTest testMethod=test_delete_user_does_not_exist>, <tasks.mgr.dashboard.test_user.UserTest testMethod=test_list_users>, <tasks.mgr.dashboard.test_user.UserTest testMethod=test_update_user_does_not_exist>, <tasks.mgr.dashboard.test_user.UserTest testMethod=test_update_user_invalid_role>]>
2018-10-24 08:55:04,774.774 INFO:__main__:Running ['ps', '-u0']
2018-10-24 08:55:04,795.795 WARNING:__main__:Killing stray process  6740 pts/0    00:00:00 ceph-mds
2018-10-24 08:55:04,795.795 WARNING:__main__:Killing stray process  6797 pts/0    00:00:00 ceph-mds
2018-10-24 08:55:04,795.795 WARNING:__main__:Killing stray process  6854 pts/0    00:00:00 ceph-mds
2018-10-24 08:55:04,802.802 INFO:__main__:Running ['./bin/ceph', 'auth', 'get-or-create', 'client.0', 'osd', 'allow rw', 'mds', 'allow', 'mon', 'allow r']
Traceback (most recent call last):
  File "../qa/tasks/vstart_runner.py", line 1096, in <module>
    exec_test()
  File "../qa/tasks/vstart_runner.py", line 960, in exec_test
    if mount.is_mounted():
  File "/ceph/qa/tasks/cephfs/fuse_mount.py", line 193, in is_mounted
    timeout=(15*60)
TypeError: run() got an unexpected keyword argument 'timeout'

I haven't tested yet if this also applies to the test runs in Teuthology.

The issue could relate to https://github.com/ceph/ceph/pull/24533

History

#1 Updated by Volker Theile 10 months ago

It seems this issue is related to vstart environments, e.g. LocalRemote::run is missing the timeout argument (see https://github.com/ceph/ceph/blob/master/qa/tasks/vstart_runner.py#L232).

#2 Updated by Volker Theile 10 months ago

  • Regression changed from No to Yes

#3 Updated by Tatjana Dehler 10 months ago

To reproduce the issue you'll need to run the 'src/pybind/mgr/dashboard/run-backend-api-tests.sh' script in the ceph directory.

#4 Updated by Volker Theile 10 months ago

  • Status changed from New to In Progress
  • Assignee set to Volker Theile

#5 Updated by Volker Theile 10 months ago

  • Status changed from In Progress to Need Review

#6 Updated by John Spray 10 months ago

  • Status changed from Need Review to Resolved

Also available in: Atom PDF