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 test boot_into_snapshot_after_upgrade #10919
Add test boot_into_snapshot_after_upgrade #10919
Conversation
http://10.162.23.47/tests/8022#step/boot_into_snapshot/8 for example. And I can't see the need of it: |
cdb1767
to
84ad55d
Compare
That failed job is caused by a wrong use of module Please see: #10919 (comment) |
It is necessary to check if the SUT booted into a read-only snapshot. |
f8099ce
to
a86233a
Compare
ece1f0a
to
7932662
Compare
75cc0c3
to
e2c5b54
Compare
e2c5b54
to
ae63464
Compare
add boot_into_snapshot after upgrade from DVD installation see https://progress.opensuse.org/issues/12964 verifications: http://10.162.23.47/tests/8183 (BOOT_INTO_SNAPSHOT_AFTER_UPGRADE) http://10.162.23.47/tests/8185 (SLES boot_into_snapshot) http://10.162.23.47/tests/8184 (TW boot_into_snapshot)
ae63464
to
4092452
Compare
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.
Let me propose the following.
- Rename
boot_into_snapshot
torollback_from_ro_snapshot
. - Schedule
rollback_from_ro_snapshot
as the last module from test suiteupgrade_Leap_15.1_gnome
. - Create a test module called
boot_into_snapshot
which should be executed instead ofgrub_test
beforerollback_from_ro_snapshot
, which should take care of waiting for grub and booting into the RO snapshot. - Verify changes on following scenarios
@@ -0,0 +1,22 @@ | |||
--- | |||
name: boot_into_snapshot_after_upgrade |
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.
In ticket, AC1 states: boot_into_snapshot is scheduled at the end of
upgrade_Leap_15.1_gnome scenario (Leap->Tumbleweed) for the last Leap version.
There is no verification run for test suite upgrade_Leap_15.1_gnome
.
And the creation of test suite boot_into_snapshot_after_upgrade
is invalid.
assert_screen 'linux-login', 200; | ||
select_console 'root-console'; | ||
# 1) | ||
assert_script_run('touch /etc/NOWRITE;test ! -f /etc/NOWRITE'); |
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.
Annoyingly, the test module boot_into_snapshot
doesn't boot into a snapshot. It is only scheduled in test suite boot_to_snapshot
and directly after grub_test
, which boots into a RO snapshot if setting BOOT_TO_SNAPSHOT
is present (See https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/tests/installation/grub_test.pm#L80)
Then, boot_into_snapshot
expects the SUT to be already booted into a RO snapshot and performs checks and the rollback (in my opinion, the test module boot_into_snapshot
should be renamed to rollback_from_ro_snapshot
to properly describe what it does).
Because boot_into_snapshot
expects the system booted into a RO snapshot, the check assert_script_run('touch /etc/NOWRITE;test ! -f /etc/NOWRITE');
is mandatory.
If the check fails, it means that the SUT is on a writable snapshot, and that could mean that there is a product bug or a test bug. In this case, the failure is a test bug, since the verification run http://10.162.23.47/tests/8183, shows the module boot_into_snapshot
scheduled after:
grub_test
(which is booting into default writable snapshot)first_boot
opensuse_welcome
So, the changes on file tests/installation/boot_into_snapshot.pm
are wrong.
re-worked according to ticket. Close this PR and please follow: |
add boot_into_snapshot after upgrade from DVD installation
see https://progress.opensuse.org/issues/12964
verifications:
http://10.162.23.47/tests/8183 (BOOT_INTO_SNAPSHOT_AFTER_UPGRADE)
http://10.162.23.47/tests/8185 (SLES boot_into_snapshot)
http://10.162.23.47/tests/8184 (TW boot_into_snapshot)