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

lxd fails in unpredictable ways when used with an unsupported "future" guest #13808

Open
basak opened this issue Jul 23, 2024 · 0 comments
Open

Comments

@basak
Copy link

basak commented Jul 23, 2024

If an older lxd tries to use a newer image, it may fail in strange ways after the container is running, even though it did not complain when creating or starting the container.

See #13806 for the background. Today's lxd presumably has the same problem then, which will manifest when the next incompatible thing happens inside guests which the next lxd release will not be able to support.

Actual results

The issue is that this results in a really poor UX. lxd appears to be able to run a future container fine, but then breaks in some unexpected way.

Expected results

Instead, if lxd isn't going to be able to work with some future image feature an older lxd that cannot support it should refuse to start such a container by default with a sensible error message (though a --force type option would be fine).

Suggestion for implementation

lxd could be taught to be aware of some kind of "compatibility level" of images, and the images we produce to contain metadata such that it can implement the above.

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

1 participant