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
clear_config_item('lxc.mount.entries') leaves container config broken #712
Comments
On Tue, Dec 08, 2015 at 10:31:40AM -0800, Jeremiah Snapp wrote:
Thanks for reporting this. The bug here is a typo in the checking of valid keys to clear: lxc.mount.entries is not a valid key, lxc.mount.entry is. |
Closes lxc#712 Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Note that you can work around this by using c.set_config_item('lxc.mount.entry', '') |
Impressive timing! I was going to report this because it means using |
@hallyn thanks for fixing this! |
Closes lxc#712 Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>
Closes lxc#712 Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>
Closes #712 Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>
Ever since I believe liblxc 1.1.2 and up to at least 1.1.5-0ubuntu3
ubuntu15.04.1ppa1clear_config_item('lxc.mount.entries')
doesn't actually remove thelxc.mount.entry
lines from the config. Instead it just adds anlxc.mount.entries =
line to the config.In #559 (comment) @stgraber talks about how "clear_config_item leaves network key empty on config file" is expected and normal but in this case the
lxc.mount.entries =
line is invalid and breaks the container.Here is the version of liblxc I have installed.
Here are the
lxc.mount.entry
lines in my container's config.Here I am using ruby's Pry to try to remove the
lxc.mount.entry
lines from the config. Normally in my application I would replace the lines with my own set but here I will just demonstrate the broken functionality.Here are the
lxc.mount.entry
lines in my container's new config but this time you see thelxc.mount.entries =
line.Now try to start the container and you see it throws a config parsing error.
The text was updated successfully, but these errors were encountered: