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

SLES16 : failed to set prompt .. check if the new OS changed the prompt tag #878

Open
abdhaleegit opened this issue Feb 27, 2025 · 0 comments

Comments

@abdhaleegit
Copy link
Collaborator

Close command sent[console-expect]#echo $?
echo $?
0
[console-expect]#2025-02-27 03:58:37,082:op-test.common.OpTestHMC:connect:INFO:Opening the LPAR console
PS1=[console-expect]#
2025-02-27 04:01:27,719:op-test.common.OpTestHMC:get_login_prompt:ERROR:Failed to get login prompt

2025-02-27 04:01:27,750:op-test:init:INFO:Running Local HMC tests
runTest (testcases.OpTestFlash.FSPFWImageFLASH.runTest) ... skipped 'FSP In-band firmware Update test'
runTest (testcases.OpTestFlash.BmcImageFlash.runTest) ... skipped 'BMC image not provided, so skipping test'
runTest (testcases.OpTestFlash.PNORFLASH.runTest) ... skipped 'PNOR image not provided, so skipping test'
runTest (testcases.OpTestFlash.OpalLidsFLASH.runTest) ... skipped 'No custom skiboot/kernel to flash'


Ran 4 tests in 0.000s

OK (skipped=4)
runTest (testcases.InstallUpstreamKernel.InstallUpstreamKernel.runTest) ... command-line line 0: Unsupported option "afstokenpassing"^M
^L^L^M~.
ERROR

======================================================================
ERROR: runTest (testcases.InstallUpstreamKernel.InstallUpstreamKernel.runTest)

Traceback (most recent call last):
File "/var/lib/jenkins/workspace/abdul/sandbox/op-test/testcases/InstallUpstreamKernel.py", line 57, in setUp
self.host_distro_name = self.util.distro_name()
^^^^^^^^^^^^^^^^^^^^^^^
File "/var/lib/jenkins/workspace/abdul/sandbox/op-test/common/OpTestUtil.py", line 2227, in distro_name
res = host.host_run_command("cat /etc/os-release")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/lib/jenkins/workspace/abdul/sandbox/op-test/common/OpTestHost.py", line 211, in host_run_command
return self.ssh.run_command(i_cmd, timeout, retry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/lib/jenkins/workspace/abdul/sandbox/op-test/common/OpTestSSH.py", line 225, in run_command
return self.util.run_command(self, command, timeout, retry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/lib/jenkins/workspace/abdul/sandbox/op-test/common/OpTestUtil.py", line 1815, in run_command
output = self.try_command(term_obj, command, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/lib/jenkins/workspace/abdul/sandbox/op-test/common/OpTestUtil.py", line 1835, in try_command
pty = term_obj.get_console()
^^^^^^^^^^^^^^^^^^^^^^
File "/var/lib/jenkins/workspace/abdul/sandbox/op-test/common/OpTestSSH.py", line 205, in get_console
self.connect(logger)
File "/var/lib/jenkins/workspace/abdul/sandbox/op-test/common/OpTestSSH.py", line 185, in connect
self.check_set_term()
File "/var/lib/jenkins/workspace/abdul/sandbox/op-test/common/OpTestSSH.py", line 200, in check_set_term
self.util.setup_term(self.system, self.pty,
File "/var/lib/jenkins/workspace/abdul/sandbox/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
Expect Before Buffer="command-line line 0: Unsupported option "afstokenpassing"
^L
~."
Expect After Buffer="<class 'pexpect.exceptions.TIMEOUT'>"
Message="Getting login and sudo not successful, probably connection issue, retry"

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