{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/bugs/issues/825","labels_url":"https://api.github.com/repos/coreos/bugs/issues/825/labels{/name}","comments_url":"https://api.github.com/repos/coreos/bugs/issues/825/comments","events_url":"https://api.github.com/repos/coreos/bugs/issues/825/events","html_url":"https://github.com/coreos/bugs/issues/825","id":108041245,"number":825,"title":"Flannel configuration is not applied","user":{"login":"crawford","id":368848,"avatar_url":"https://avatars.githubusercontent.com/u/368848?v=3","gravatar_id":"","url":"https://api.github.com/users/crawford","html_url":"https://github.com/crawford","followers_url":"https://api.github.com/users/crawford/followers","following_url":"https://api.github.com/users/crawford/following{/other_user}","gists_url":"https://api.github.com/users/crawford/gists{/gist_id}","starred_url":"https://api.github.com/users/crawford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crawford/subscriptions","organizations_url":"https://api.github.com/users/crawford/orgs","repos_url":"https://api.github.com/users/crawford/repos","events_url":"https://api.github.com/users/crawford/events{/privacy}","received_events_url":"https://api.github.com/users/crawford/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-24T01:53:39Z","updated_at":"2015-09-24T01:53:43Z","closed_at":"2015-09-24T01:53:40Z","body":"<a href=\"https://github.com/vaijab\"><img src=\"https://avatars.githubusercontent.com/u/1308018?v=3\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [vaijab](https://github.com/vaijab)**\n_Thursday Jul 30, 2015 at 12:53 GMT_\n_Originally opened as https://github.com/coreos/coreos-cloudinit/issues/367_\n\n----\n\ncloudinit does not seem to create systemd `Environment=` entries for `flanneld.service`.\r\n\r\n```bash\r\n$ cat cloud-config.yaml\r\n#cloud-config\r\n\r\ncoreos:\r\n  flannel:\r\n    etcd_endpoints: https://127.0.0.1:2379\r\n    interface: $private_ipv4\r\n\r\n\r\n$ sudo coreos-cloudinit -from-file cloud-config.yaml \r\nChecking availability of \"local-file\"\r\nFetching user-data from datasource of type \"local-file\"\r\nFetching meta-data from datasource of type \"local-file\"\r\n2015/07/30 12:50:12 Parsing user-data as cloud-config\r\nMerging cloud-config from meta-data and user-data\r\n2015/07/30 12:50:12 Writing file to \"/run/flannel/options.env\"\r\n2015/07/30 12:50:12 Wrote file to \"/run/flannel/options.env\"\r\n2015/07/30 12:50:12 Wrote file /run/flannel/options.env to filesystem\r\n2015/07/30 12:50:12 Updated /etc/environment\r\n2015/07/30 12:50:12 Ensuring runtime unit file \"etcd.service\" is unmasked\r\n2015/07/30 12:50:12 Ensuring runtime unit file \"etcd2.service\" is unmasked\r\n2015/07/30 12:50:12 Ensuring runtime unit file \"fleet.service\" is unmasked\r\n2015/07/30 12:50:12 Ensuring runtime unit file \"locksmithd.service\" is unmasked\r\n\r\n\r\n\r\n$ systemctl cat flanneld \r\n# /usr/lib64/systemd/system/flanneld.service\r\n[Unit]\r\nDescription=Network fabric for containers\r\nDocumentation=https://github.com/coreos/flannel\r\nRequires=early-docker.service\r\nAfter=etcd.service etcd2.service early-docker.service\r\nBefore=early-docker.target\r\n\r\n[Service]\r\nType=notify\r\nRestart=always\r\nRestartSec=5\r\nEnvironment=\"TMPDIR=/var/tmp/\"\r\nEnvironment=\"DOCKER_HOST=unix:///var/run/early-docker.sock\"\r\nEnvironment=\"FLANNEL_VER=0.5.1\"\r\nEnvironment=\"ETCD_SSL_DIR=/etc/ssl/etcd\"\r\nLimitNOFILE=40000\r\nLimitNPROC=1048576\r\nExecStartPre=/sbin/modprobe ip_tables\r\nExecStartPre=/usr/bin/mkdir -p /run/flannel\r\nExecStartPre=/usr/bin/mkdir -p ${ETCD_SSL_DIR}\r\nExecStartPre=/usr/bin/touch /run/flannel/options.env\r\n\r\nExecStart=/usr/libexec/sdnotify-proxy /run/flannel/sd.sock \\\r\n  /usr/bin/docker run --net=host --privileged=true --rm \\\r\n  --volume=/run/flannel:/run/flannel \\\r\n  --env=NOTIFY_SOCKET=/run/flannel/sd.sock \\\r\n  --env=AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} \\\r\n  --env=AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} \\\r\n  --env-file=/run/flannel/options.env \\\r\n  --volume=/usr/share/ca-certificates:/etc/ssl/certs:ro \\\r\n  --volume=${ETCD_SSL_DIR}:/etc/ssl/etcd:ro \\\r\n  quay.io/coreos/flannel:${FLANNEL_VER} /opt/bin/flanneld --ip-masq=true\r\n\r\n# Update docker options\r\nExecStartPost=/usr/bin/docker run --net=host --rm -v /run:/run \\\r\n  quay.io/coreos/flannel:${FLANNEL_VER} \\\r\n  /opt/bin/mk-docker-opts.sh -d /run/flannel_docker_opts.env -i\r\n\r\n# /etc/systemd/system/flanneld.service.d/50-network-config.conf\r\n[Service]\r\nExecStartPre=/usr/bin/etcdctl set /coreos.com/network/config '{\"Network\":\"10.10.0.0/16\",\"Backend\":{\"Type\":\"vxlan\"}}'\r\n```\n"},"comment":{"url":"https://api.github.com/repos/coreos/bugs/issues/comments/142781270","html_url":"https://github.com/coreos/bugs/issues/825#issuecomment-142781270","issue_url":"https://api.github.com/repos/coreos/bugs/issues/825","id":142781270,"user":{"login":"crawford","id":368848,"avatar_url":"https://avatars.githubusercontent.com/u/368848?v=3","gravatar_id":"","url":"https://api.github.com/users/crawford","html_url":"https://github.com/crawford","followers_url":"https://api.github.com/users/crawford/followers","following_url":"https://api.github.com/users/crawford/following{/other_user}","gists_url":"https://api.github.com/users/crawford/gists{/gist_id}","starred_url":"https://api.github.com/users/crawford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crawford/subscriptions","organizations_url":"https://api.github.com/users/crawford/orgs","repos_url":"https://api.github.com/users/crawford/repos","events_url":"https://api.github.com/users/crawford/events{/privacy}","received_events_url":"https://api.github.com/users/crawford/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T01:53:43Z","updated_at":"2015-09-24T01:53:43Z","body":"<a href=\"https://github.com/lu4nm3\"><img src=\"https://avatars.githubusercontent.com/u/3936213?v=3\" align=\"left\" width=\"48\" height=\"48\" hspace=\"10\"></img></a> **Comment by [lu4nm3](https://github.com/lu4nm3)**\n_Wednesday Sep 16, 2015 at 17:25 GMT_\n\n----\n\nAwesome. Thank you!\n"}}