Newuidmap binary is missing


(eva2000) #1

when I run a lxc info container --show-log run, i see in logs the warning message newgidmap binary is missing ?

lxd --version
3.1

warning message

lxc info centos75-3 --show-log
Name: centos75-3
Remote: unix://
Architecture: x86_64
Created: 2018/06/06 19:50 UTC
Status: Running
Type: persistent
Profiles: default
Pid: 10300
Ips:
  eth0: inet    10.71.164.174   vethYGU0NS
  eth0: inet6   fd42:769c:ebd9:a0f7:216:3eff:fe50:5edb  vethYGU0NS
  eth0: inet6   fe80::216:3eff:fe50:5edb        vethYGU0NS
  lo:   inet    127.0.0.1
  lo:   inet6   ::1
Resources:
  Processes: 14
  CPU usage:
    CPU usage (in seconds): 2
  Memory usage:
    Memory (current): 23.24MB
    Memory (peak): 25.09MB
  Network usage:
    eth0:
      Bytes received: 16.74kB
      Bytes sent: 4.65kB
      Packets received: 168
      Packets sent: 44
    lo:
      Bytes received: 0B
      Bytes sent: 0B
      Packets received: 0
      Packets sent: 0

Log:

lxc centos75-3 20180606195011.424 WARN     lxc_conf - conf.c:lxc_map_ids:2855 - newuidmap binary is missing
lxc centos75-3 20180606195011.425 WARN     lxc_conf - conf.c:lxc_map_ids:2861 - newgidmap binary is missing
lxc centos75-3 20180606195011.137 WARN     lxc_conf - conf.c:lxc_map_ids:2855 - newuidmap binary is missing
lxc centos75-3 20180606195011.138 WARN     lxc_conf - conf.c:lxc_map_ids:2861 - newgidmap binary is missing

and

lxc config show centos75-3
architecture: x86_64
config:
  volatile.base_image: fc44baf0b7ca0da23e98501294d364cdd9cbf7a2be8130919a8bc995df1a6dab
  volatile.eth0.hwaddr: 00:16:3e:50:5e:db
  volatile.idmap.base: "0"
  volatile.idmap.next: '[{"Isuid":true,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000}]'
  volatile.last_state.idmap: '[{"Isuid":true,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000}]'
  volatile.last_state.power: RUNNING
devices: {}
ephemeral: false
profiles:
- default
stateful: false
description: ""

(Stéphane Graber) #2

That’s expected, don’t worry about it. liblxc will try to use newuidmap and newgidmap if they’re present but we don’t include them in the snap as there’s no good reason to have that overhead.


(eva2000) #3

thanks for the clarification :slight_smile: