[lxc-users] lxd 0.16 lxcbr0 not starting

Mark Constable markc at renta.net
Mon Aug 24 01:55:28 UTC 2015


On 24/08/15 08:19, Stéphane Graber wrote:
> I'm not aware of any change there. Can you manually run:
>      sudo lxd --group lxd --debug

Thanks for looking into this and apologies to everyone else for a large dump.

Just 2 containers, this is the above startup then a "lxc list" then a "lxc start goldcoast.org"

The 2nd part is what journalctl -f provided at the same time. ATM neither lxcfs or
dnsmasq are automatically started up. lxcbr0 is up because I manually brought it up.

~ sudo lxd --group lxd --debug
INFO[08-24|11:44:38] LXD is starting                          path=/var/lib/lxd
INFO[08-24|11:44:38] Default uid/gid map:
INFO[08-24|11:44:38]  - u 0 100000 65536
INFO[08-24|11:44:38]  - g 0 100000 65536
INFO[08-24|11:44:38] Init                                     driver=storage/btrfs
DBUG[08-24|11:44:38] Container load                           container=gc5.goldcoast.org
DBUG[08-24|11:44:38] Applying limits.memory: 500M
DBUG[08-24|11:44:38] Container load                           container=goldcoast.org
DBUG[08-24|11:44:38] Applying limits.memory: 500M
DBUG[08-24|11:44:38] Container load                           container=goldcoast.org
DBUG[08-24|11:44:38] Applying limits.memory: 500M
DBUG[08-24|11:44:38] Container load                           container=gc5.goldcoast.org
DBUG[08-24|11:44:38] Applying limits.memory: 500M
INFO[08-24|11:44:38] Looking for existing certificates:       cert=/var/lib/lxd/server.crt key=/var/lib/lxd/server.key
INFO[08-24|11:44:38] LXD isn't socket activated
INFO[08-24|11:44:38] REST API daemon:
INFO[08-24|11:44:38]  - binding socket                        socket=/var/lib/lxd/unix.socket
INFO[08-24|11:44:38]  - binding socket                        socket=192.168.0.2:8443
INFO[08-24|11:45:06] handling                                 method=GET url="/1.0/containers?recursion=1" ip=@
DBUG[08-24|11:45:06] Container load                           container=gc5.goldcoast.org
DBUG[08-24|11:45:06] Applying limits.memory: 500M
DBUG[08-24|11:45:06] Container load                           container=goldcoast.org
DBUG[08-24|11:45:06] Applying limits.memory: 500M
DBUG[08-24|11:45:06]
         {
                 "type": "sync",
                 "status": "Success",
                 "status_code": 200,
                 "metadata": [
                         {
                                 "state": {
                                         "architecture": 0,
                                         "config": {
                                                 "volatile.base_image": "7f95f1933d1a3da7a496a36540aefeb6e6a15a1b0c934da51152086528ee5f8c",
                                                 "volatile.eth0.hwaddr": "00:16:3e:c9:56:ce"
                                         },
                                         "devices": {},
                                         "ephemeral": false,
                                         "expanded_config": {
                                                 "volatile.base_image": "7f95f1933d1a3da7a496a36540aefeb6e6a15a1b0c934da51152086528ee5f8c",
                                                 "volatile.eth0.hwaddr": "00:16:3e:c9:56:ce"
                                         },
                                         "expanded_devices": {
                                                 "eth0": {
                                                         "hwaddr": "00:16:3e:c9:56:ce",
                                                         "nictype": "bridged",
                                                         "parent": "lxcbr0",
                                                         "type": "nic"
                                                 }
                                         },
                                         "log": "",
                                         "name": "gc5.goldcoast.org",
                                         "profiles": [
                                                 "default"
                                         ],
                                         "status": {
                                                 "status": "STOPPED",
                                                 "status_code": 1,
                                                 "init": 0,
                                                 "ips": null
                                         },
                                         "userdata": ""
                                 },
                                 "snaps": null
                         },
                         {
                                 "state": {
                                         "architecture": 0,
                                         "config": {
                                                 "volatile.base_image": "cf110dae6189b5983292d52cd13cd236aa5052bdeeccdd9c08e167bd3f6675e7",
                                                 "volatile.eth0.hwaddr": "00:16:3e:c7:95:53",
                                                 "volatile.last_state.idmap": "[{\"Isuid\":true,\"Isgid\":false,\"Hostid\":100000,\"Nsid\":0,\"Maprange\":65536},{\"Isuid\":false,\"Isgid\":true,\"Hostid\":100000,\"Nsid\":0,\"Maprange\":65536}]"
                                         },
                                         "devices": {},
                                         "ephemeral": false,
                                         "expanded_config": {
                                                 "volatile.base_image": "cf110dae6189b5983292d52cd13cd236aa5052bdeeccdd9c08e167bd3f6675e7",
                                                 "volatile.eth0.hwaddr": "00:16:3e:c7:95:53",
                                                 "volatile.last_state.idmap": "[{\"Isuid\":true,\"Isgid\":false,\"Hostid\":100000,\"Nsid\":0,\"Maprange\":65536},{\"Isuid\":false,\"Isgid\":true,\"Hostid\":100000,\"Nsid\":0,\"Maprange\":65536}]"
                                         },
                                         "expanded_devices": {
                                                 "eth0": {
                                                         "hwaddr": "00:16:3e:c7:95:53",
                                                         "nictype": "bridged",
                                                         "parent": "lxcbr0",
                                                         "type": "nic"
                                                 }
                                         },
                                         "log": "",
                                         "name": "goldcoast.org",
                                         "profiles": [
                                                 "default"
                                         ],
                                         "status": {
                                                 "status": "STOPPED",
                                                 "status_code": 1,
                                                 "init": 0,
                                                 "ips": null
                                         },
                                         "userdata": ""
                                 },
                                 "snaps": null
                         }
                 ]
         }





INFO[08-24|11:45:35] handling                                 method=PUT url=/1.0/containers/goldcoast.org/state ip=@
DBUG[08-24|11:45:35]
         {
                 "action": "start",
                 "force": false,
                 "timeout": -1
         }
DBUG[08-24|11:45:35] Container load                           container=goldcoast.org
DBUG[08-24|11:45:35] Applying limits.memory: 500M
DBUG[08-24|11:45:35]
         {
                 "type": "async",
                 "status": "OK",
                 "status_code": 100,
                 "operation": "/1.0/operations/f29438f8-0c42-441e-a631-e06784f931d3",
                 "resources": null,
                 "metadata": null
         }
INFO[08-24|11:45:35] handling                                 url=/1.0/operations/f29438f8-0c42-441e-a631-e06784f931d3/wait ip=@ method=GET
DBUG[08-24|11:45:35] ContainerStart                           driver=storage/btrfs container=goldcoast.org
DBUG[08-24|11:45:35] Operation %!s(func() shared.OperationResult=0x60ab30) finished: { <nil>}
DBUG[08-24|11:45:35]
         {
                 "type": "sync",
                 "status": "Success",
                 "status_code": 200,
                 "metadata": {
                         "created_at": "2015-08-24T11:45:35.417622598+10:00",
                         "updated_at": "2015-08-24T11:45:35.536605105+10:00",
                         "status": "Success",
                         "status_code": 200,
                         "resources": null,
                         "metadata": null,
                         "may_cancel": false
                 }
         }


----------------------------------------------------------------------

Aug 24 11:45:35 mbox kernel: device vethCK6MSG entered promiscuous mode
Aug 24 11:45:35 mbox kernel: lxcbr0: port 3(vethCK6MSG) entered forwarding state
Aug 24 11:45:35 mbox kernel: lxcbr0: port 3(vethCK6MSG) entered forwarding state
Aug 24 11:45:35 mbox kernel: lxcbr0: port 3(vethCK6MSG) entered disabled state
Aug 24 11:45:35 mbox systemd-udevd[25846]: Could not generate persistent MAC address for vethS561KS: No such file or directory
Aug 24 11:45:35 mbox avahi-daemon[892]: Withdrawing workstation service for vethS561KS.
Aug 24 11:45:35 mbox kernel: eth0: renamed from vethS561KS
Aug 24 11:45:35 mbox audit[25856]: AVC apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/sys/fs/cgroup/systemd/" pid=25856 comm="systemd" fstype="cgroup" srcname="cgroup" flags="rw, nosuid, nodev, noexec"
Aug 24 11:45:35 mbox audit[25856]: AVC apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/sys/fs/cgroup/systemd/" pid=25856 comm="systemd" fstype="cgroup" srcname="cgroup" flags="rw, nosuid, nodev, noexec"
Aug 24 11:45:35 mbox kernel: audit: type=1400 audit(1440380735.535:31): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/sys/fs/cgroup/systemd/" pid=25856 comm="systemd" fstype="cgroup" srcname="cgroup" flags="rw, nosuid, nodev, noexec"
Aug 24 11:45:35 mbox kernel: audit: type=1400 audit(1440380735.535:32): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/sys/fs/cgroup/systemd/" pid=25856 comm="systemd" fstype="cgroup" srcname="cgroup" flags="rw, nosuid, nodev, noexec"
Aug 24 11:45:35 mbox audit[25856]: AVC apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/sys/fs/cgroup/net_cls,net_prio/" pid=25856 comm="systemd" fstype="cgroup" srcname="cgroup" flags="rw, nosuid, nodev, noexec"
Aug 24 11:45:35 mbox audit[25856]: AVC apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/sys/fs/cgroup/hugetlb/" pid=25856 comm="systemd" fstype="cgroup" srcname="cgroup" flags="rw, nosuid, nodev, noexec"
Aug 24 11:45:35 mbox audit[25856]: AVC apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/sys/fs/cgroup/freezer/" pid=25856 comm="systemd" fstype="cgroup" srcname="cgroup" flags="rw, nosuid, nodev, noexec"
Aug 24 11:45:35 mbox audit[25856]: AVC apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/sys/fs/cgroup/cpu,cpuacct/" pid=25856 comm="systemd" fstype="cgroup" srcname="cgroup" flags="rw, nosuid, nodev, noexec"
Aug 24 11:45:35 mbox audit[25856]: AVC apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/sys/fs/cgroup/blkio/" pid=25856 comm="systemd" fstype="cgroup" srcname="cgroup" flags="rw, nosuid, nodev, noexec"
Aug 24 11:45:35 mbox audit[25856]: AVC apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/sys/fs/cgroup/memory/" pid=25856 comm="systemd" fstype="cgroup" srcname="cgroup" flags="rw, nosuid, nodev, noexec"
Aug 24 11:45:35 mbox audit[25856]: AVC apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/sys/fs/cgroup/devices/" pid=25856 comm="systemd" fstype="cgroup" srcname="cgroup" flags="rw, nosuid, nodev, noexec"
Aug 24 11:45:35 mbox audit[25856]: AVC apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/sys/fs/cgroup/perf_event/" pid=25856 comm="systemd" fstype="cgroup" srcname="cgroup" flags="rw, nosuid, nodev, noexec"
Aug 24 11:45:35 mbox audit[25856]: AVC apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/sys/fs/cgroup/cpuset/" pid=25856 comm="systemd" fstype="cgroup" srcname="cgroup" flags="rw, nosuid, nodev, noexec"
Aug 24 11:45:35 mbox audit[25856]: AVC apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/sys/fs/cgroup/" pid=25856 comm="systemd" flags="ro, nosuid, nodev, noexec, remount, strictatime"
Aug 24 11:45:35 mbox kernel: audit: type=1400 audit(1440380735.536:33): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/sys/fs/cgroup/net_cls,net_prio/" pid=25856 comm="systemd" fstype="cgroup" srcname="cgroup" flags="rw, nosuid, nodev, noexec"
Aug 24 11:45:35 mbox kernel: audit: type=1400 audit(1440380735.536:34): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/sys/fs/cgroup/hugetlb/" pid=25856 comm="systemd" fstype="cgroup" srcname="cgroup" flags="rw, nosuid, nodev, noexec"
Aug 24 11:45:35 mbox kernel: audit: type=1400 audit(1440380735.536:35): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/sys/fs/cgroup/freezer/" pid=25856 comm="systemd" fstype="cgroup" srcname="cgroup" flags="rw, nosuid, nodev, noexec"
Aug 24 11:45:35 mbox kernel: audit: type=1400 audit(1440380735.536:36): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/sys/fs/cgroup/cpu,cpuacct/" pid=25856 comm="systemd" fstype="cgroup" srcname="cgroup" flags="rw, nosuid, nodev, noexec"
Aug 24 11:45:35 mbox kernel: audit: type=1400 audit(1440380735.536:37): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/sys/fs/cgroup/blkio/" pid=25856 comm="systemd" fstype="cgroup" srcname="cgroup" flags="rw, nosuid, nodev, noexec"
Aug 24 11:45:35 mbox kernel: audit: type=1400 audit(1440380735.536:38): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/sys/fs/cgroup/memory/" pid=25856 comm="systemd" fstype="cgroup" srcname="cgroup" flags="rw, nosuid, nodev, noexec"
Aug 24 11:45:35 mbox kernel: audit: type=1400 audit(1440380735.536:39): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/sys/fs/cgroup/devices/" pid=25856 comm="systemd" fstype="cgroup" srcname="cgroup" flags="rw, nosuid, nodev, noexec"





More information about the lxc-users mailing list