Skip to content
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

test/storagelib: step up our destroy-and-reboot efforts #20449

Draft
wants to merge 1 commit into
base: rhel-8
Choose a base branch
from

Conversation

allisonkarlitskaya
Copy link
Member

Instead of trying to gracefully shutdown a destroyed system from the inside, do it forcefully from the outside.


# Destroy our current boot device. This prevents the system from
# shutting down properly, so do it forcefully from outside.
m.spawn("sync; dd if=/dev/zero of=/dev/vda bs=1M count=100; sync; sync; sync;")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You want m.execute() for that to make it sync. Will also fix this failure

@martinpitt
Copy link
Member

But more generally, this is just cosmetics -- it's not the shutdown that fails, it's the boot. The systemd askpass agent doesn't properly hand over the passphrase to stratis in the initrd. See #20373 (comment)

Instead of trying to gracefully shutdown a destroyed system from the
inside, do it forcefully from the outside.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants