{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/bugs/issues/768","labels_url":"https://api.github.com/repos/coreos/bugs/issues/768/labels{/name}","comments_url":"https://api.github.com/repos/coreos/bugs/issues/768/comments","events_url":"https://api.github.com/repos/coreos/bugs/issues/768/events","html_url":"https://github.com/coreos/bugs/issues/768","id":108035187,"number":768,"title":"etcd drop-in 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":7,"created_at":"2015-09-24T00:51:06Z","updated_at":"2015-09-24T00:52:10Z","closed_at":"2015-09-24T00:51:06Z","body":"<a href=\"https://github.com/superstructor\"><img src=\"https://avatars.githubusercontent.com/u/350450?v=3\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [superstructor](https://github.com/superstructor)**\n_Saturday Sep 13, 2014 at 09:26 GMT_\n_Originally opened as https://github.com/coreos/coreos-cloudinit/issues/232_\n\n----\n\nOn CoreOS 435.0.0 in my cloudinit config yaml I have:\r\n\r\n```yaml\r\ncoreos:\r\n  etcd:\r\n    name: akl2.example.com\r\n    addr: 103.18.59.164:4001\r\n    peer-addr: 103.18.59.164:7001\r\n    discovery: https://discovery.etcd.io/token\r\n```\r\n\r\nHowever etcd starts with a name of `default` which is set in `/usr/lib/systemd/system/etcd.service`.\r\n\r\nThe value in `/run/systemd/system/etcd.service.d/20-cloudinit.conf` is not being applied despite systemd recognizing the drop-in and it having the expected content from the cloudinit config yaml.\r\n\r\n```sh\r\n$ systemd-delta --type=extended /run/systemd/system\r\n[EXTENDED]   /usr/lib/systemd/system/fleet.service → /run/systemd/system/fleet.service.d/20-cloudinit.conf\r\n[EXTENDED]   /usr/lib/systemd/system/etcd.service → /run/systemd/system/etcd.service.d/20-cloudinit.conf\r\n[EXTENDED]   /usr/lib/systemd/system/sshd@.service → /usr/lib/systemd/system/sshd@.service.d/sshd-keygen.conf\r\n\r\n$ systemctl status etcd.service\r\n● etcd.service - etcd\r\n   Loaded: loaded (/usr/lib64/systemd/system/etcd.service; enabled)\r\n  Drop-In: /run/systemd/system/etcd.service.d\r\n           └─20-cloudinit.conf\r\n   Active: active (running) since Sat 2014-09-13 15:33:12 NZST; 5h 42min ago\r\n Main PID: 451 (etcd)\r\n   CGroup: /system.slice/etcd.service\r\n           └─451 /usr/bin/etcd\r\n\r\nSep 13 15:33:12 akl4 systemd[1]: Started etcd.\r\nSep 13 15:33:12 akl4 systemd[1]: Started etcd.\r\nSep 13 15:33:12 akl4 etcd[451]: [etcd] Sep 13 15:33:12.779 INFO      | default: state changed from 'follower' to 'candidate'.\r\nSep 13 15:33:12 akl4 etcd[451]: [etcd] Sep 13 15:33:12.779 INFO      | default: state changed from 'candidate' to 'leader'.\r\nSep 13 15:33:12 akl4 etcd[451]: [etcd] Sep 13 15:33:12.779 INFO      | default: leader changed from '' to 'default'.\r\nSep 13 16:16:02 akl4 etcd[451]: [etcd] Sep 13 16:16:02.456 INFO      | default: snapshot of 10006 events at index 10006 completed\r\nSep 13 17:20:59 akl4 etcd[451]: [etcd] Sep 13 17:20:59.826 INFO      | default: snapshot of 10003 events at index 20009 completed\r\nSep 13 18:25:57 akl4 etcd[451]: [etcd] Sep 13 18:25:57.200 INFO      | default: snapshot of 10002 events at index 30011 completed\r\nSep 13 19:30:54 akl4 etcd[451]: [etcd] Sep 13 19:30:54.588 INFO      | default: snapshot of 10003 events at index 40014 completed\r\nSep 13 20:35:51 akl4 etcd[451]: [etcd] Sep 13 20:35:51.958 INFO      | default: snapshot of 10003 events at index 50017 completed\r\n\r\n$ systemctl cat etcd.service\r\n# /usr/lib64/systemd/system/etcd.service\r\n[Unit]\r\nDescription=etcd\r\n\r\n[Service]\r\nUser=etcd\r\nPermissionsStartOnly=true\r\nEnvironment=ETCD_DATA_DIR=/var/lib/etcd ETCD_NAME=default\r\nExecStart=/usr/bin/etcd \r\nRestart=always\r\nRestartSec=10s\r\n\r\n# /run/systemd/system/etcd.service.d/20-cloudinit.conf\r\n[Service]\r\nEnvironment=\"ETCD_ADDR=74.125.237.191:4001\"\r\nEnvironment=\"ETCD_DISCOVERY=https://discovery.etcd.io/token\"\r\nEnvironment=\"ETCD_NAME=akl4.example.com\"\r\nEnvironment=\"ETCD_PEER_ADDR=74.125.237.191:7001\"\r\n```\r\n\r\n\r\n\r\n\r\n\r\n\n"},"comment":{"url":"https://api.github.com/repos/coreos/bugs/issues/comments/142770753","html_url":"https://github.com/coreos/bugs/issues/768#issuecomment-142770753","issue_url":"https://api.github.com/repos/coreos/bugs/issues/768","id":142770753,"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-24T00:52:10Z","updated_at":"2015-09-24T00:52:10Z","body":"<a href=\"https://github.com/superstructor\"><img src=\"https://avatars.githubusercontent.com/u/350450?v=3\" align=\"left\" width=\"48\" height=\"48\" hspace=\"10\"></img></a> **Comment by [superstructor](https://github.com/superstructor)**\n_Tuesday Sep 23, 2014 at 22:49 GMT_\n\n----\n\nAlso, just to re-confirm etcd is *not* enabled yet it is running before coreos-cloudinit:\r\n\r\n```\r\n44 core2 update_engine[744]: [0924/101844:INFO:update_attempter.cc(748)] Updating boot flags...\r\ncore@core2 ~ $ systemctl status etcd.service\r\n● etcd.service - etcd\r\n   Loaded: loaded (/usr/lib64/systemd/system/etcd.service; static)\r\n  Drop-In: /run/systemd/system/etcd.service.d\r\n           └─20-cloudinit.conf\r\n   Active: active (running) since Wed 2014-09-24 10:17:58 NZST; 30min ago\r\n Main PID: 449 (etcd)\r\n   CGroup: /system.slice/etcd.service\r\n           └─449 /usr/bin/etcd\r\n```\n"}}