[lxc-users] [lxc-devel] Suggestions regarding (ultimately) LXC 2.1.0 lxc-update-configy

Christian Brauner christian.brauner at mailbox.org
Thu Oct 5 08:16:02 UTC 2017


On Wed, Oct 04, 2017 at 06:53:16PM -0500, Serge Hallyn wrote:
> agreed to both, lxc-update-config should delete it, and it should be
> (initially the only) member of a (new) group of keys to ignore, bc

I sent a branch [1] that does:
- removes lxc.kmsg and lxc.pivotdir from config files if deteced
- ingores lxc.kmsg and lxc.pivotdir in configuration files if detected

Let me **stress** that with 3.0 bot configuration items lxc.kmsg and
lxc.pivotdir will finally be killed. They will be removed and any config file
that contains them will not be parseable anymore. lxc.pivotdir has been
deprecated at least since 2014 and a warning in the logs has been printed that
this config key will be removed soon. "soon" for us meant three years later. :)

Christian

[1]: https://github.com/lxc/lxc/pull/1845

> it cannot possibly hurt.  Do you happen to have time to write one
> or both patches?
> 
> thanks,
> -serge
> 
> On Wed, Oct 04, 2017 at 03:35:08PM -0400, Adrian Pepper wrote:
> > Does mentioning lxc.pivotdir really need to be a fatal error?  Currently
> > it seems fatal to the degree that "lxc-ls -f" does not show the
> > container at all, not RUNNING and not STOPPED.
> > 
> > Or, at least, could the lxc-update-config command be modified to
> > effectively delete mentions of lxc.pivotdir?
> > (Comment out or delete it; I see lxc.rootfs.backend gets deleted by
> > lxc-update-config; it might be nice if that also was done as commenting
> > out, instead).
> > It seems that "lxc-update-config" currently just leaves lxc.pivotdir alone.
> > (In the following version).
> > 
> > -rwxr-xr-x 1 root root 3791 Sep 21 14:35 /usr/bin/lxc-update-config
> > (Ubuntu 16.04)
> > 
> > 
> > The messages indicating the need to update the config should be
> > improved to name the config file in question, and mention the
> > lxc-update-config command.
> > 
> > Perhaps...
> > 
> >   < The configuration file contains legacy configuration keys.
> >   < Please update your configuration file!
> >   ---
> >   > /var/lib/lxc/u1204-postfix-1/config contains legacy configuration keys.
> >   > "lxc-update-config" can be used to update most configuration files.
> > 
> > 
> > Oh, and "lxc-update-config" does not accept "--version".
> > 
> > 
> > Adrian Pepper
> > arpepper at uwaterloo.ca
> > 
> > 
> > Actual diagnostics associated with lxc.pivotdir...
> > 
> > lxc-start: u1204-postfix-1: confile.c: parse_line: 1982 Unknown configuration key "lxc.pivotdir"
> > lxc-start: u1204-postfix-1: parse.c: lxc_file_for_each_line: 58 Failed to parse config: lxc.pivotdir = lxc_putold
> > 
> > lxc-start: u1204-postfix-1: tools/lxc_start.c: main: 286 Failed to create lxc_container
> > 
> > 
> > _______________________________________________
> > lxc-users mailing list
> > lxc-users at lists.linuxcontainers.org
> > http://lists.linuxcontainers.org/listinfo/lxc-users
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel


More information about the lxc-users mailing list