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

Add support for fedora ssh prompt extra control characters #858

Closed
abdhaleegit opened this issue Aug 13, 2024 · 1 comment
Closed

Add support for fedora ssh prompt extra control characters #858

abdhaleegit opened this issue Aug 13, 2024 · 1 comment

Comments

@abdhaleegit
Copy link
Collaborator

The fedora machine has a different ssh console prompt and additional console characters .. causing the set_term to fail to set the unique prompt

Traceback (most recent call last):
File "/data/jenkins/workspace/sandbox/install/op-test/testcases/OpTestKernelTest.py", line 198, in setUp
super(KernelBuild,self).setUp()
File "/data/jenkins/workspace/sandbox/install/op-test/testcases/OpTestKernelTest.py", line 68, in setUp
self.host_distro_name = self.util.distro_name()
File "/data/jenkins/workspace/sandbox/install/op-test/common/OpTestUtil.py", line 2227, in distro_name
res = host.host_run_command("cat /etc/os-release")
File "/data/jenkins/workspace/sandbox/install/op-test/common/OpTestHost.py", line 211, in host_run_command
return self.ssh.run_command(i_cmd, timeout, retry)
File "/data/jenkins/workspace/sandbox/install/op-test/common/OpTestSSH.py", line 225, in run_command
return self.util.run_command(self, command, timeout, retry)
File "/data/jenkins/workspace/sandbox/install/op-test/common/OpTestUtil.py", line 1815, in run_command
output = self.try_command(term_obj, command, timeout)
File "/data/jenkins/workspace/sandbox/install/op-test/common/OpTestUtil.py", line 1835, in try_command
pty = term_obj.get_console()
File "/data/jenkins/workspace/sandbox/install/op-test/common/OpTestSSH.py", line 205, in get_console
self.connect(logger)
File "/data/jenkins/workspace/sandbox/install/op-test/common/OpTestSSH.py", line 185, in connect
self.check_set_term()
File "/data/jenkins/workspace/sandbox/install/op-test/common/OpTestSSH.py", line 200, in check_set_term
self.util.setup_term(self.system, self.pty,
File "/data/jenkins/workspace/sandbox/install/op-test/common/OpTestUtil.py", line 1709, in setup_term
raise ConsoleSettings(before=pty.before, after=pty.after,
common.Exceptions.ConsoleSettings: Setting the prompt or logging in for the console was not successful, check credentials and review the following for more details

new characherts and prompt
Last login: Tue Aug 13 03:23:33 2024 from 9.40.192.121^M
^[]0;root@ltcrain4-lp2:^G^[[32mroot@ltcrain4-lp2^[[0m:^[[32m^[[0m#^[[0m

@abdhaleegit
Copy link
Collaborator Author

#859

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant