Skip to content
This repository was archived by the owner on Apr 28, 2026. It is now read-only.

Rsync all system images#205

Closed
scholzp wants to merge 3 commits into
cyberus-technology:mainfrom
scholzp:rsync_all_system_images
Closed

Rsync all system images#205
scholzp wants to merge 3 commits into
cyberus-technology:mainfrom
scholzp:rsync_all_system_images

Conversation

@scholzp
Copy link
Copy Markdown
Contributor

@scholzp scholzp commented Apr 17, 2026

We used rsync to reset the NixOS image in the NFS that controllerVM and computeVM are using for their guests. We did so, because we observed that a sytsem/firmware might write to the image even though it is read only (e.g. efivars).

The NixOS is not the only image we use to boot systems from. It is only consequent to rsync all other images. This PR implements a small helper und utilizes it to rsync all system images.

Pipeline: https://gitlab.cyberus-technology.de/cyberus/cloud/libvirt/-/pipelines/215996

I'll add information about the overhead soon.

@scholzp scholzp self-assigned this Apr 17, 2026
Copy link
Copy Markdown
Member

@phip1611 phip1611 left a comment

Choose a reason for hiding this comment

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

LGTM! Please add information to the commit message about the expected overhead

Comment thread test_helper/test_helper/test_helper.py Outdated
We use `reset_system_image` nowhere, thus we remove it completely.

Note: We'll add a similar function in a follow up commit, but decided to
remove the function in this commit to reach a consistent state.

Signed-off-by: Pascal Scholz <pascal.scholz@cyberus-technology.de>
On-behalf-of: SAP pascal.scholz@sap.com
@scholzp scholzp force-pushed the rsync_all_system_images branch from 4d5346d to 2c4c47b Compare April 21, 2026 14:55
scholzp added 2 commits April 24, 2026 15:08
We perform the same operations for all system images. We therefore
introduce a list of image names and create a helper that processes this
list instead of repeating code for all images.

Signed-off-by: Pascal Scholz <pascal.scholz@cyberus-technology.de>
On-behalf-of: SAP pascal.scholz@sap.com
Apply the same workaround for all system images that we already apply
for `nixos` to make each test start with a fresh image in a known good
state.

Signed-off-by: Pascal Scholz <pascal.scholz@cyberus-technology.de>
On-behalf-of: SAP pascal.scholz@sap.com
@scholzp scholzp force-pushed the rsync_all_system_images branch from 2c4c47b to 00dab25 Compare April 24, 2026 13:09
@scholzp scholzp marked this pull request as ready for review April 24, 2026 14:40
@scholzp scholzp requested review from amphi and hertrste April 24, 2026 14:41
hertrste
hertrste previously approved these changes Apr 27, 2026
Copy link
Copy Markdown
Collaborator

@hertrste hertrste left a comment

Choose a reason for hiding this comment

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

I'll approve but if you notice this introduces an unexpected high amount of overhead, we should take a look again :)

@phip1611
Copy link
Copy Markdown
Member

Should we declare a code freeze here? Because of the transition to the libvirt repo

@hertrste hertrste dismissed their stale review April 28, 2026 07:42

I think we should go with the libvirt-tests -> libvirt move first and re-open this PR in libvirt afterwards. Sorry for the inconvinience!

@hertrste
Copy link
Copy Markdown
Collaborator

Closing due to moving libvirt-tests into libvirt. Please reopen the pr in libvirt repository.

@hertrste hertrste closed this Apr 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants