Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix OSError in postprocess #3997

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions virttest/env_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -1041,13 +1041,13 @@ def preprocess(test, params, env):
_setup_manager.register(CheckInstalledCMDs)
_setup_manager.register(UlimitConfig)
_setup_manager.register(NetworkProxies)
_setup_manager.register(LibvirtdDebugLogConfig)
_setup_manager.register(BridgeConfig)
_setup_manager.register(StorageConfig)
_setup_manager.register(FirewalldService)
_setup_manager.register(IPSniffer)
_setup_manager.register(StorageConfig)
_setup_manager.register(MigrationEnvSetup)
_setup_manager.register(UnrequestedVMHandler)
_setup_manager.register(LibvirtdDebugLogConfig)
_setup_manager.do_setup()

vm_type = params.get("vm_type")
Expand Down
3 changes: 3 additions & 0 deletions virttest/nfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,9 @@ class NFSClient(object):

def __init__(self, params):
self.nfs_client_ip = params.get("nfs_client_ip")
# Create /root/.ssh/known_hosts file
cmd = "ssh-keyscan %s >> ~/.ssh/known_hosts" % params.get("nfs_server_ip")
process.run(cmd, shell=True, ignore_status=True)
# To Avoid host key verification failure
ret = process.run("ssh-keygen -R %s" % self.nfs_client_ip, ignore_status=True)
stderr = ret.stderr_text
Expand Down
Loading