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

KVM: corrupted source files #1030

Open
bmwiedemann opened this issue Sep 21, 2024 · 3 comments
Open

KVM: corrupted source files #1030

bmwiedemann opened this issue Sep 21, 2024 · 3 comments

Comments

@bmwiedemann
Copy link
Member

For my work on reproducible builds I am using osc build --vm-type=kvm a lot and noticed that the VM occasionally gets corrupted build input files on a on Leap 15.5 system.

For .spec .changes and .rpm (BuildRequires) the build fails early, but now that I started using pbuild I also found 3 cases where the .src.rpm silently contained the corrupted file (cpanspec.yml, rpmlintrc etc).
The corrupted file had the same size but contained binary garbage (and build-compare would not even report a diff).

The 2nd stage should verify all checksums of build inputs before starting to build, so silent corruption gets avoided and a consistent build error message is produced.

This was with build-20240313-150500.446.1 from openSUSE:Tools but has been going on for a longer time.

@bmwiedemann
Copy link
Member Author

I am now trying osc build --build-opt=--vm-use-mkfs-copyin as a possible workaround. Should have results next week.

@adrianschroeter
Copy link
Member

so you are building as root? (otherwise mkfs-copyin would be default).

If there are corupted files without that mode I would verify if the umount did not happen for some reason before starting the VM. (As I can not really believe that the kernel is corrupting the block cache, but that would be another option).

@bmwiedemann
Copy link
Member Author

Yes, that was building as root. I did not see this corruption with mkfs-copyin so far.

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

No branches or pull requests

2 participants