Project

General

Profile

Actions

Bug #47652

closed

teuthology's misc.sudo_write_file is incompatible with vstart_runner

Added by Rishabh Dave over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
qa
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Here's the traceback -

2020-09-25 19:30:28,675.675 INFO:__main__:======================================================================
2020-09-25 19:30:28,675.675 INFO:__main__:ERROR: test_mount_all_caps_absent (tasks.cephfs.test_multifs_auth.TestClientsWithoutAuth)
2020-09-25 19:30:28,675.675 INFO:__main__:----------------------------------------------------------------------
2020-09-25 19:30:28,675.675 INFO:__main__:Traceback (most recent call last):
2020-09-25 19:30:28,675.675 INFO:__main__:  File "/home/rishabh/repos/ceph/minor/qa/tasks/cephfs/test_multifs_auth.py", line 277, in test_mount_all_caps_absent
2020-09-25 19:30:28,675.675 INFO:__main__:    keyring)
2020-09-25 19:30:28,675.675 INFO:__main__:  File "/home/rishabh/repos/ceph/minor/qa/tasks/cephfs/cephfs_test_case.py", line 439, in create_keyring_file
2020-09-25 19:30:28,675.675 INFO:__main__:    sudo_write_file(remote, keyring_path, keyring)
2020-09-25 19:30:28,675.675 INFO:__main__:  File "/home/rishabh/repos/teuthology/teuthology/misc.py", line 539, in sudo_write_file
2020-09-25 19:30:28,675.675 INFO:__main__:    remote.sudo_write_file(path, data, mode=perms, owner=owner)
2020-09-25 19:30:28,675.675 INFO:__main__:AttributeError: 'LocalRemote' object has no attribute 'sudo_write_file'

The compatibility was broken by this teuthology PR, since it makes teuthology.misc.sudo_write_file() call teuthology.remote.Remote.sudo_write_file() which in turn calls teuthology.remote.Remote.write_file() and vstart_runner.LocalRemote does not have a write_file() method

Actions

Also available in: Atom PDF