{"action":"created","issue":{"url":"https://api.github.com/repos/lxc/lxd/issues/4510","repository_url":"https://api.github.com/repos/lxc/lxd","labels_url":"https://api.github.com/repos/lxc/lxd/issues/4510/labels{/name}","comments_url":"https://api.github.com/repos/lxc/lxd/issues/4510/comments","events_url":"https://api.github.com/repos/lxc/lxd/issues/4510/events","html_url":"https://github.com/lxc/lxd/issues/4510","id":318739162,"number":4510,"title":"Networking does not work in fresh Bionic container","user":{"login":"Kramerican","id":627217,"avatar_url":"https://avatars3.githubusercontent.com/u/627217?v=4","gravatar_id":"","url":"https://api.github.com/users/Kramerican","html_url":"https://github.com/Kramerican","followers_url":"https://api.github.com/users/Kramerican/followers","following_url":"https://api.github.com/users/Kramerican/following{/other_user}","gists_url":"https://api.github.com/users/Kramerican/gists{/gist_id}","starred_url":"https://api.github.com/users/Kramerican/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kramerican/subscriptions","organizations_url":"https://api.github.com/users/Kramerican/orgs","repos_url":"https://api.github.com/users/Kramerican/repos","events_url":"https://api.github.com/users/Kramerican/events{/privacy}","received_events_url":"https://api.github.com/users/Kramerican/received_events","type":"User","site_admin":false},"labels":[{"id":145665855,"url":"https://api.github.com/repos/lxc/lxd/labels/Incomplete","name":"Incomplete","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":20,"created_at":"2018-04-29T18:38:56Z","updated_at":"2018-04-30T22:18:12Z","closed_at":null,"author_association":"NONE","body":"Tried with LXD v2.21 on Ubuntu 16.04 and LXD v3.0.0 on 18.04 (system upgraded from 16.04)\r\n\r\nNetworking does not come up and container does not get an Ip assigned on my network bridge.\r\n\r\nOn both my 16.04 and 18.04 host system, a xenial image comes up just fine.\r\n\r\nI have tried provisioning from `ubuntu:bionic `as well as `images:ubuntu/bionic/amd64` with identical results.\r\n\r\n`/var/log/syslog` on the host shows in all cases lines similar to\r\n\r\n```\r\nApr 29 20:25:15 krellide kernel: [6056886.886248] audit: type=1400 audit(1525026315.592:23530): apparmor=\"DENIED\" operation=\"mount\" info=\"failed flags match\" error=-13 profile=\"lxd-bionic-template-xlemp72_</var/lib/lxd>\" name=\"/sys/fs/cgroup/unified/\" pid=19042 comm=\"systemd\" fstype=\"cgroup2\" srcname=\"cgroup\" flags=\"rw, nosuid, nodev, noexec\"\r\nApr 29 20:25:15 krellide kernel: [6056886.886297] audit: type=1400 audit(1525026315.592:23531): apparmor=\"DENIED\" operation=\"mount\" info=\"failed flags match\" error=-13 profile=\"lxd-bionic-template-xlemp72_</var/lib/lxd>\" name=\"/sys/fs/cgroup/unified/\" pid=19042 comm=\"systemd\" fstype=\"cgroup2\" srcname=\"cgroup\" flags=\"rw, nosuid, nodev, noexec\"\r\nApr 29 20:25:16 krellide kernel: [6056887.323323] audit: type=1400 audit(1525026316.029:23532): apparmor=\"DENIED\" operation=\"mount\" info=\"failed flags match\" error=-13 profile=\"lxd-bionic-template-xlemp72_</var/lib/lxd>\" name=\"/run/systemd/unit-root/var/lib/lxcfs/\" pid=19482 comm=\"(networkd)\" flags=\"ro, nosuid, nodev, remount, bind\"\r\n```\r\n\r\nThese lines are not present in syslog when provisioning other versions of Ubuntu (Xenial/Zesty). Interestingly upgrading an existing Xenial container to Bionic does not cause any networking issues.\r\n\r\nWithout knowing much about apparmor, I am assuming that the `DENIED ... networkd` line is an indicator of the culprit here. Any assistance would be much appreciated :)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/lxc/lxd/issues/comments/385545690","html_url":"https://github.com/lxc/lxd/issues/4510#issuecomment-385545690","issue_url":"https://api.github.com/repos/lxc/lxd/issues/4510","id":385545690,"user":{"login":"davidfavor","id":87222,"avatar_url":"https://avatars1.githubusercontent.com/u/87222?v=4","gravatar_id":"","url":"https://api.github.com/users/davidfavor","html_url":"https://github.com/davidfavor","followers_url":"https://api.github.com/users/davidfavor/followers","following_url":"https://api.github.com/users/davidfavor/following{/other_user}","gists_url":"https://api.github.com/users/davidfavor/gists{/gist_id}","starred_url":"https://api.github.com/users/davidfavor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidfavor/subscriptions","organizations_url":"https://api.github.com/users/davidfavor/orgs","repos_url":"https://api.github.com/users/davidfavor/repos","events_url":"https://api.github.com/users/davidfavor/events{/privacy}","received_events_url":"https://api.github.com/users/davidfavor/received_events","type":"User","site_admin":false},"created_at":"2018-04-30T22:18:12Z","updated_at":"2018-04-30T22:18:12Z","author_association":"NONE","body":"The info you've posted above is non-netplan type networking.\r\n\r\nI'm using pure Netplan at machine level + inside containers, so my setup will be very different than yours."}}
{"actor":{"display_login":"davidfavor"}}