-
Notifications
You must be signed in to change notification settings - Fork 281
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
Adapt password typing for slower arch #20097
Conversation
52e1c0e
to
a1bc127
Compare
@Vogtinator, the password for the user fails as it is too short, but the same one works just fine for |
Currently it's intentional behaviour, similar to YaST, which just shows a warning that can be ignored. When the root pw dialog in jeos-firstboot gets rewritten some time in the future it'll probably do the same. |
Hm, that particular failure is because of the username. I also wonder how ssh can drop input, that shouldn't happen... |
Ok, there's just no screenshot for the fully typed in dialog or the error message.
IMO it shouldn't ever set "linux" as password, only use it for login if necessary. |
94f6ce2
to
b60e751
Compare
tests/jeos/prepare_firstboot.pm
Outdated
@@ -45,7 +45,7 @@ sub run { | |||
# Handle default credentials for ssh login | |||
# On SLE we use an image preprocessed by openQA where the default | |||
# $testapi::password was set | |||
$testapi::password = $default_password; | |||
local $testapi::password = $default_password; | |||
} | |||
# 'root-ssh' console will wait for SUT to be reachable from ssh | |||
select_console('root-ssh'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it should just reset $testapi::password
after the select_console
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alright, even the original $testapi::password
is changed outside this module.
@ggardet, is it possible that the password somewhere in the testapi code is changed in RPi tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default password is linux
on JeOS images. I guess we can change it in firstboot config interface.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that password fails the cracklib-check and it seems that the osado's default password in testapi also defaults to linux
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have done a PoC, https://openqa.opensuse.org/tests/4457380#step/firstrun/14 shows that $testapi::password
is set to linux
. In the PoC run I have changed it, the UI test object passed. Later the password was restored to linux
(default) hence the test fails in another point.
If we keep linux
as default, I would rather skip this test object by setting WIZARD_SKIP_USER
in community jeos RPi test runs
13ef71d
to
837e719
Compare
@mloviska are verifications just outdated or problem not fixed yet? I tried your fork to verify os-autoinst/opensuse-jobgroups#516, but it failed as well. |
73d4023
to
2c2d093
Compare
I had a look. What currently happens is this: The TW job group hardcodes My initial attempt was to remove the Not sure how this can be addressed the best way. IMO the |
Or we can simply skip this dialog as it is tested everywhere. Anyway, I am fine with both ways but not sure who should make the call when it comes to community images. |
That's also an option, but means a separate code path for creation of the |
The code path is already present. We just need to set WIZARD_SKIP_USER=1 in the medium |
There's also #20212 with a similar issue FTR |
I would rather blame yaml schedule over here :D |
PoC https://openqa.opensuse.org/tests/4522171#details, no code changes |
I don't see |
Why is there a need of |
Ah, I'm sorry, now I understand "no code changes meaning". No, problem don't persist any more (got fixed by I wonder if we need this PR for other jobs. If yes, shouldn't be the second commit removed? If not, it should be closed, right? |
In https://openqa.opensuse.org/tests/4444816#step/firstrun/15 the password typing results in incomplete typing string which yields a cracklib error that the string is too short. - ticket: https://progress.opensuse.org/issues/165800
2c2d093
to
c956ecb
Compare
I guess it is not necessary to have, but it is Hacktober afterall, every PR counts :D |
VRs:
|
In https://openqa.opensuse.org/tests/4444816#step/firstrun/15 the password typing results in incomplete typing string which yields a cracklib error that the string is too short.
Verification runs
opensuse-Tumbleweed-JeOS-for-RPi-aarch64-Build20240829-jeos@RPi3 -> https://openqa.opensuse.org/tests/4445634
opensuse-Tumbleweed-JeOS-for-RPi-aarch64-Build20240829-jeos@RPi4 -> https://openqa.opensuse.org/tests/4445635
opensuse-Tumbleweed-JeOS-for-RPi-aarch64-Build20240829-jeos@RPi4 -> https://openqa.opensuse.org/tests/4445636
opensuse-Tumbleweed-JeOS-for-RPi-aarch64-Build20240829-jeos@RPi3 -> https://openqa.opensuse.org/tests/4445637