-
Notifications
You must be signed in to change notification settings - Fork 276
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
Fixing virtio console for users #16190
Conversation
Great PR! Please pay attention to the following items before merging: Files matching
This is an automatically generated QA checklist based on modified files. |
bd17f33
to
cf1e5f9
Compare
ded31bd
to
33e027a
Compare
@@ -354,6 +374,7 @@ sub select_serial_terminal { | |||
} | |||
|
|||
die "No support for backend '$backend', add it" if (!defined $console) || ($console eq ''); | |||
$testapi::distri->{serial_term_prompt} = $prompt; |
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.
Together with this call. Or should be prompt be handled in select_console()
(optionally, probably part of another effort)?
Calling this can bring problems somewhere. At least SAP tests (and others, which set $serial_term_prompt
should be carefully tested.
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.
Without having tested it, it looks good to me.
Regarding the serial_term_prompt
, maybe it should be stored somehow in each console. And get's read from there when activate such console. But this is only needed if you switch between the consoles and using custom prompts, not sure if it is worth the effort.
33e027a
to
a96513e
Compare
48542aa
to
e4efa3a
Compare
4b4af5f
to
cc2efda
Compare
@b10n1k FYI Pushed changes, which fixes HPC tests when only this repo is merged: http://quasar.suse.cz/tests/2121 http://quasar.suse.cz/tests/2122 http://quasar.suse.cz/tests/2119 http://quasar.suse.cz/tests/2120 |
cc2efda
to
ab6ae9e
Compare
Only updated perldoc. |
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.
lets do that :)
6204604
to
b8e99a2
Compare
How to fix this? Do I need to use |
This allows switching between root and non-root user. NOTE: passing socked_path is possible only to updated os-autoinst backend/qemu.pm (must have this path in virtio_console_names()) thus guarded with $OpenQA::Isotovideo::Interface::version ge 35 detection (changes in 20d0119b ("backend/qemu.pm: Add virtio_console_user fifo name")). Console names should be handled in library (why tests should care about the internals?), but for now at least properly document that. This also requires to add new getty (serial console) to system_prepare.pm (will be working with newly generated images) and shift numbers in wickedbase.pm. This will work also on older backend/qemu.pm, getty just won't be used. Signed-off-by: Petr Vorel <pvorel@suse.cz>
This fixes switching from user and serial console. Signed-off-by: Petr Vorel <pvorel@suse.cz>
Print id and running serial-getty services (debugging). Signed-off-by: Petr Vorel <pvorel@suse.cz>
This way is directory always created, but avoids error: mkdir: cannot create directory /home/bernhard/bin: File exists Signed-off-by: Petr Vorel <pvorel@suse.cz>
This needs to be done to get user serial terminal working again, likely due: 2fcbb2b ("select_serial_terminal(): Update prompt") Guarded by $OpenQA::Isotovideo::Interface::version ge 35 (changes in 20d0119b ("backend/qemu.pm: Add virtio_console_user fifo name")). Signed-off-by: Petr Vorel <pvorel@suse.cz>
b8e99a2
to
58d9d69
Compare
PR should be ready now (rerun all tests with and without os-autoinst/os-autoinst#2240). Waiting if anybody has any more comments. @cfconrad @asmorodskyi @dzedro @jlausuch any comment? Or could you please approve? |
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.
LGTM
This is amazing! Thank you Petr |
This breaks on RPi3/4 tests (generalhw backend): https://openqa.opensuse.org/tests/3065106#step/system_prepare/8 |
Deployment: https://progress.opensuse.org/issues/122935#note-7
Ticket: https://progress.opensuse.org/issues/122935
NOTE: verification run for changes in all 3 repos is in os-autoinst/openQA#4973
Verification run of just change in this repo:
various tests on both osd and o3