Investigate LUKS header restore failure
On Jeknins, I saw 2 failures regarding Scenario LUKS backup header is restored if something goes wrong during upgrade.
Here is the relevant log for build 32
03:27:06.001171632: executing Python as Debian-gdm: node2988 = dogtail.tree.root.application('Welcome to Tails!')
03:27:06.020037955: execution complete
03:27:06.020226747: executing Python as Debian-gdm: node2989 = node2988.child('Unlock Encryption', roleName='push button', showingOnly=True)
03:27:06.046082338: execution complete
03:27:06.046173259: try_for: failed by code block returning failure
03:27:07.047269959: try_for: attempt 51 (59.01s elapsed of 60s)...
03:27:07.059038721: executing Python as Debian-gdm: node2990 = dogtail.tree.root.application('Welcome to Tails!')
03:27:07.079468522: execution complete
03:27:07.079650914: executing Python as Debian-gdm: node2991 = node2990.child('Unlock Encryption', roleName='push button', showingOnly=True)
03:27:07.114940282: execution complete
03:27:07.115040054: try_for: failed by code block returning failure
And I enable persistence but something goes wrong during the LUKS header upgrade (failed) # features/step_definitions/usb.rb:638
try_for() timeout expired (Timeout::Error)
./features/support/helpers/misc_helpers.rb:145:in `rescue in try_for'
./features/support/helpers/misc_helpers.rb:51:in `try_for'
./features/step_definitions/usb.rb:624:in `/^I enable persistence( with the changed passphrase)?$/'
./features/step_definitions/usb.rb:645:in `/^I enable persistence but something goes wrong during the LUKS header upgrade$/'
features/persistence.feature:161:in `And I enable persistence but something goes wrong during the LUKS header upgrade'
execution expired (#<Class:0x0000558625851140>)
./features/support/helpers/misc_helpers.rb:114:in `sleep'
./features/support/helpers/misc_helpers.rb:114:in `block (2 levels) in try_for'
./features/support/helpers/misc_helpers.rb:66:in `loop'
./features/support/helpers/misc_helpers.rb:66:in `block in try_for'
./features/support/helpers/misc_helpers.rb:65:in `try_for'
./features/step_definitions/usb.rb:624:in `block in <top (required)>'
./features/step_definitions/usb.rb:645:in `block in <top (required)>'
Then the Tails persistence partition on USB drive "__internal" still has LUKS version 1 (skipped) # features/step_definitions/usb.rb:543
03:27:11.094912277: Stopping video capture of '/tmp/TailsToaster/run-2023-06-08_14:50:19_+0000-git_bae0c21-9FDKo5/LUKS_backup_header_is_restored_if_something_goes_wrong_during_upgrade.mkv'
03:27:11.369539706: Remote shell: calling as root: echo 'hello?'
03:27:11.703971431: Remote shell: sh_call returned: [0, "hello?\n", ""]
03:27:11.704177474: Remote shell: calling as root: journalctl -a --no-pager > /tmp/artifact.journal 2>&1
03:27:11.808373790: Remote shell: sh_call returned: [0, "", ""]
03:27:11.808560332: opening file /tmp/artifact.journal in 'read' mode
03:27:11.822732291: read complete
03:27:11.823305029: Remote shell: calling as root: cat /var/log/boot.log* > /tmp/artifact.boot-log 2>&1
03:27:11.876670200: Remote shell: sh_call returned: [0, "", ""]
03:27:11.877000164: opening file /tmp/artifact.boot-log in 'read' mode
03:27:11.889423784: read complete
03:27:11.890366475: Remote shell: calling as root: echo 'hello?'
03:27:11.955747933: Remote shell: sh_call returned: [0, "hello?\n", ""]
03:27:11.955936875: Remote shell: calling as root: systemctl stop tor@default
03:27:12.073498722: Remote shell: sh_call returned: [0, "", ""]
SCENARIO FAILED: 'LUKS backup header is restored if something goes wrong during upgrade' (at time 03:27:11)
Screenshot: https://jenkins.tails.boum.org/job/test_Tails_ISO_19677-fix-userenv-read-as-root/32/artifact/build-artifacts/03:27:11_LUKS_backup_header_is_restored_if_something_goes_wrong_during_upgrade.png
Video: https://jenkins.tails.boum.org/job/test_Tails_ISO_19677-fix-userenv-read-as-root/32/artifact/build-artifacts/03:27:11_LUKS_backup_header_is_restored_if_something_goes_wrong_during_upgrade.mkv
Boot log: https://jenkins.tails.boum.org/job/test_Tails_ISO_19677-fix-userenv-read-as-root/32/artifact/build-artifacts/03:27:11_LUKS_backup_header_is_restored_if_something_goes_wrong_during_upgrade.boot-log
Systemd journal: https://jenkins.tails.boum.org/job/test_Tails_ISO_19677-fix-userenv-read-as-root/32/artifact/build-artifacts/03:27:11_LUKS_backup_header_is_restored_if_something_goes_wrong_during_upgrade.journal
@segfault can you investigate that? I downloaded the artifacts, in case you need them. Here are artifacts for build 32.
03_27_11_LUKS_backup_header_is_restored_if_something_goes_wrong_during_upgrade.journal
03_27_11_LUKS_backup_header_is_restored_if_something_goes_wrong_during_upgrade.mkv