action #33649
closed[sle][functional][u][medium] File /root/snapfile not found
0%
Description
Observation¶
openQA test in scenario opensuse-15.0-DVD-x86_64-extra_tests_filesystem@64bit fails in
snapper_undochange
/root/snapfile cannot be found, the tests in question use /root and assume it's not writable - /root is not a separate subvolume so it's writable even when loading a read-only filesystem. so the tests shouldn't use /root when testing if the filesystem is ro. It should use pretty much anywhere besides /root
Reproducible¶
Fails since (at least) Build 173.1
Expected result¶
Last good: 172.1 (or more recent)
Further details¶
Always latest result in this scenario: latest
Updated by lnussel over 6 years ago
This is due to /root on a separate subvolume: https://bugzilla.suse.com/show_bug.cgi?id=1085266
All tests that use /root for something related to snapshot rollback need to use a different directory.
Updated by riafarov over 6 years ago
- Subject changed from File /root/snapfile not found to [sle][functional] File /root/snapfile not found
- Description updated (diff)
- Due date set to 2018-04-10
- Status changed from New to Workable
Updated by dimstar over 6 years ago
Also impacted: Tumbleweed/boot_into_snapshot:
https://openqa.opensuse.org/tests/643977#step/boot_into_snapshot/11
Updated by okurz over 6 years ago
- Category set to Bugs in existing tests
- Priority changed from Normal to Urgent
- Target version set to Milestone 15
because of currently failing tests
Updated by okurz over 6 years ago
- Subject changed from [sle][functional] File /root/snapfile not found to [sle][functional][u][medium] File /root/snapfile not found
Updated by oorlov over 6 years ago
- Status changed from Workable to In Progress
- Assignee set to oorlov
Updated by okurz over 6 years ago
- Related to action #34018: [functional][fast][yast][y][easy]test fails in yast2_snapper - need to select different directory to unpack data to, e.g. '/' added
Updated by oorlov over 6 years ago
As /root is not a sub-volume by default on SUSE distributions, the /root folder is excluded by snapper while doing snapshots of the system.
I've changed the path to a dummy file, that is used to simulate system changing from '/root/snapfile' to '/etc/snapfile'.
Pull request: https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/4737
Updated by okurz over 6 years ago
PR merged, now to "boot_to_snapshot" as mentioned in #33649#note-4
Updated by okurz over 6 years ago
https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/4738 for boot_into_snapshot, merged
Updated by okurz over 6 years ago
- Status changed from Feedback to Resolved
- openSUSE Leap 15.0: https://openqa.opensuse.org/tests/646289
- openSUSE TW: https://openqa.opensuse.org/tests/646084