open-power / op-test

Testing Firmware for OpenPOWER systems
Apache License 2.0
36 stars 85 forks source link

OOBHostLogin failure after updating to Ubuntu 22.04.4 LTS #856

Closed zmoose closed 1 month ago

zmoose commented 1 month ago

After updating from Ubuntu 18 to Ubuntu 22 op-test is now failing during OOBHostLogin. I suspect its due to some changes in the console/prompt between Ubuntu 18 and Ubuntu 22. Can you please look into fixing op-test to handle this new prompt? Thanks

====================================================================== ERROR: runTest (testcases.SystemLogin.OOBHostLogin.runTest)

Traceback (most recent call last): File "/tmp/hostboot-jenkins.swg-devops/jenkins-agent/workspace/Hostboot/OpenPower/HW/p9-test-param/op-test/testcases/SystemLogin.py", line 60, in runTest r = l_con.run_command("echo 'Hello World'") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/hostboot-jenkins.swg-devops/jenkins-agent/workspace/Hostboot/OpenPower/HW/p9-test-param/op-test/common/OpTestSSH.py", line 225, in run_command return self.util.run_command(self, command, timeout, retry) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/hostboot-jenkins.swg-devops/jenkins-agent/workspace/Hostboot/OpenPower/HW/p9-test-param/op-test/common/OpTestUtil.py", line 1665, in run_command raise cf File "/tmp/hostboot-jenkins.swg-devops/jenkins-agent/workspace/Hostboot/OpenPower/HW/p9-test-param/op-test/common/OpTestUtil.py", line 1660, in run_command output = self.try_command(term_obj, command, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/hostboot-jenkins.swg-devops/jenkins-agent/workspace/Hostboot/OpenPower/HW/p9-test-param/op-test/common/OpTestUtil.py", line 1735, in try_command raise CommandFailed(command, res, echo_rc) common.Exceptions.CommandFailed: Command 'echo 'Hello World'' exited with '-1'. Output ['\x1b[?2004l', 'Hello World', '\x1b[?2004h']

PraveenPenguin commented 1 month ago

@zmoose as we discussed as it user setting issue in OS side , can we close this issue

zmoose commented 1 month ago

Yes we can close this. Note the "fix" is to run these commands on the Ubuntu 22 OS console as root:

echo "set enable-bracketed-paste off" > .inputrc bind 'set enable-bracketed-paste off'