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

Migration: Always clone the device config #13175

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

roosterfish
Copy link
Contributor

@roosterfish roosterfish commented Mar 18, 2024

When instantiating a new device make sure to clone it's config. This ensures that the downstream drivers don't modify the original config map.

This fixes #13082 since the call to dev.CanMigrate() will populate the devices mtu field through dev.validateConfig() which will modify the outer config map passed down to the driver.

When instantiating a new device make sure to clone it's config.
This ensures that the downstream drivers don't modify the original config map.

Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
@tomponline tomponline merged commit e319c51 into canonical:main Mar 18, 2024
27 of 28 checks passed
@roosterfish roosterfish deleted the fix_evacuate_stop_dev branch March 20, 2024 08:04
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.

Manual cluster evacuation of live migratable instance on ceph fails with device mtu error
2 participants