[lxc-users] "The configuration file contains legacy configuration keys" - which ones?

Tomasz Chmielewski mangoo at wpkg.org
Thu Oct 26 09:55:47 UTC 2017


On 2017-10-20 12:27, Stéphane Graber wrote:

>> What's legacy there?
> 
> Can you confirm you restarted that container?

Yes, it was restarted.


> Also, the "lxc config show" isn't very useful if you don't pass it
> "--expanded" as you may have some raw.lxc config keys set through
> profiles.
> 
> So please post "lxc config show --expanded proddeploymenttest"

# lxc exec work02-2017-10-26-08-46-40 /bin/date
The configuration file contains legacy configuration keys.
Please update your configuration file!
Thu Oct 26 09:55:10 UTC 2017


# lxc config show work02-2017-10-26-08-46-40 --expanded
architecture: x86_64
config:
   environment.http_proxy: ""
   image.architecture: amd64
   image.description: ubuntu 16.04 LTS amd64 (release) (20171011)
   image.label: release
   image.os: ubuntu
   image.release: xenial
   image.serial: "20171011"
   image.version: "16.04"
   user.network_mode: ""
   volatile.base_image: 
61d54418874f2f84e24ddd6934b3bb759ca76cbc49820da7d34f8b5b778e4816
   volatile.eth0.hwaddr: 00:16:3e:30:b0:e7
   volatile.eth0.name: eth0
   volatile.idmap.base: "0"
   volatile.idmap.next: 
'[{"Isuid":true,"Isgid":false,"Hostid":100000,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":100000,"Nsid":0,"Maprange":65536}]'
   volatile.last_state.idmap: 
'[{"Isuid":true,"Isgid":false,"Hostid":100000,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":100000,"Nsid":0,"Maprange":65536}]'
   volatile.last_state.power: RUNNING
devices:
   eth0:
     nictype: bridged
     parent: lxdbr0
     type: nic
   root:
     path: /
     pool: default
     type: disk
ephemeral: false
profiles:
- default
stateful: false
description: ""


> Also listing what's in /usr/share/lxc/config/common.conf.d/ would be 
> useful.

# ls -l /usr/share/lxc/config/common.conf.d/
total 4
-rw-r--r-- 1 root root 103 Jul  5 22:24 00-lxcfs.conf


# cat /usr/share/lxc/config/common.conf.d/00-lxcfs.conf
lxc.hook.mount = /usr/share/lxcfs/lxc.mount.hook
lxc.hook.post-stop = /usr/share/lxcfs/lxc.reboot.hook



# dpkg -l|grep lxd
ii  lxd                              2.18-0ubuntu3~16.04.2               
        amd64        Container hypervisor based on LXC - daemon
ii  lxd-client                       2.18-0ubuntu3~16.04.2               
        amd64        Container hypervisor based on LXC - client



Tomasz Chmielewski
https://lxadm.com


More information about the lxc-users mailing list