Bugzilla – Bug 1223504
transactional_update cannot deal with new table look of snapper
Last modified: 2024-06-11 10:20:04 UTC
See https://build.opensuse.org/request/show/1169010. snapper uses unicode symbols for the table lines now. The code in transactional_update cannot deal with that: https://github.com/openSUSE/transactional-update/blob/master/sbin/transactional-update.in#L1383 transactional_update should use the CSV or JSON output of snapper instead. CSV is partly used already: https://github.com/openSUSE/transactional-update/blob/master/systemd/prepare-nextroot-for-softreboot#L14
Fixed in transactional-update 4.6.7: https://build.opensuse.org/request/show/1170997
I'm afraid there is still some issue going on, see the failure in the transactional_update test: https://openqa.opensuse.org/tests/4159669#step/transactional_update/196 transactional-update 4.6.7 started Options: -n rollback 8│single││FriMay310:40:462024│root│12.07MiB│number│SnapshotUpdateof#7│ Separate /var detected. Rollback to snapshot 8│single││FriMay310:40:462024│root│12.07MiB│number│SnapshotUpdateof#7│... /sbin/transactional-update: line 1293: [: 8│single││FriMay310:40:462024│root│12.07MiB│number│SnapshotUpdateof#7│: integer expression expected 2024-05-03 10:43:26 tukit 4.6.7 started 2024-05-03 10:43:26 Options: rollback 8│single││FriMay310:40:462024│root│12.07MiB│number│SnapshotUpdateof#7│ Invalid snapshot '8│single││FriMay310:40:462024│root│12.07MiB│number│SnapshotUpdateof#7│'. ERROR: `snapper rollback 8│single││FriMay310:40:462024│root│12.07MiB│number│SnapshotUpdateof#7│` returned with error code 1. ERROR: Rollback to snapshot 8│single││FriMay310:40:462024│root│12.07MiB│number│SnapshotUpdateof#7│ failed! transactional-update finished HWQhg-1- And snapper_create (IIRC this is the original issue) https://openqa.opensuse.org/tests/4159674#step/snapper_create/25
That looks more like a problem of openQA to me (I have already reported one, see bug #1223840).
Yes, these are the openQA tests themselves failing. Assigning to Martin.
This is an autogenerated message for OBS integration: This bug (1223504) was mentioned in https://build.opensuse.org/request/show/1172470 Factory / transactional-update
Assigned to Dominik since he wrote snapper parsing code. See https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/19231 for possible fix.