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

Fixes #38222 - Add managed interface to ubuntu_autoinst4dhcp snapshot #10450

Merged

Conversation

bastian-src
Copy link
Contributor

@bastian-src bastian-src commented Feb 19, 2025

The Ubuntu Autoinstall template-snapshot-host ubuntu_autoinst4dhcp doesn't set its :managed_interfaces. Therefore, the network configuration of the snapshot doesn't include the NIC setup. This PR fixes the issue and updates the template snapshot accordingly.

@bastian-src
Copy link
Contributor Author

@stejskalleos can you maybe have a look? This fix completes our snapshot tests of the Ubuntu Autoinstall template. The network config was not rendered before.

You can validate this by comparing it to the Ubuntu Autoinstall docs here: https://canonical-subiquity.readthedocs-hosted.com/en/latest/reference/autoinstall-reference.html#network

@stejskalleos stejskalleos self-assigned this Feb 26, 2025
The managed interface must be set to render the NIC
in snapshots and, therefore, include it in snapshot tests.
@bastian-src bastian-src force-pushed the fix/ubuntu_snapshots/38222 branch from 42275a7 to 7b3bf00 Compare March 3, 2025 08:21
@stejskalleos stejskalleos merged commit 62f92bb into theforeman:develop Mar 3, 2025
29 checks passed
@stejskalleos
Copy link
Contributor

Thanks @bastian-src

@bastian-src
Copy link
Contributor Author

bastian-src commented Mar 3, 2025

Thanks a lot @stejskalleos! :)

I came across an issue with the preseed_netplan_generic_interface which is currently not covered by templates. I'm not sure, but what do you think about adding multiple snapshot machines to cover more cases?

I'm addressing the issue in #10451

@bastian-src bastian-src deleted the fix/ubuntu_snapshots/38222 branch March 3, 2025 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants