{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/bugs/issues/761","labels_url":"https://api.github.com/repos/coreos/bugs/issues/761/labels{/name}","comments_url":"https://api.github.com/repos/coreos/bugs/issues/761/comments","events_url":"https://api.github.com/repos/coreos/bugs/issues/761/events","html_url":"https://github.com/coreos/bugs/issues/761","id":108030979,"number":761,"title":"Private IP not loaded on OpenStack","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":13,"created_at":"2015-09-24T00:04:32Z","updated_at":"2015-09-24T00:05:39Z","closed_at":"2015-09-24T00:04:32Z","body":"<a href=\"https://github.com/jack-ley\"><img src=\"https://avatars.githubusercontent.com/u/8509355?v=3\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [jack-ley](https://github.com/jack-ley)**\n_Saturday Aug 23, 2014 at 14:05 GMT_\n_Originally opened as https://github.com/coreos/coreos-cloudinit/issues/205_\n\n----\n\nUsing OpenStack Icehouse on Ubuntu 14.04 and CoreOS alpha 410.0.0\r\n\r\netcd is failing to run because the private IP address is not being loaded from config drive. The user-configdrive.path service has failed to load, but the configdrive data is mounted.\r\n\r\njournalctl -u etcd (extract)\r\n```\r\nAug 23 12:58:02 coreos-a5b80d53-01d1-4aed-bb2f-e4ca72102353.novalocal etcd[677]: [etcd] Aug 23 12:58:02.133 CRITICAL  | failed sanitizing configuration: Advertised URL: parse :4001: missing protocol scheme\r\nAug 23 12:58:02 coreos-a5b80d53-01d1-4aed-bb2f-e4ca72102353.novalocal systemd[1]: etcd.service: main process exited, code=exited, status=1/FAILURE\r\nAug 23 12:58:02 coreos-a5b80d53-01d1-4aed-bb2f-e4ca72102353.novalocal systemd[1]: Unit etcd.service entered failed state.\r\nAug 23 12:58:12 coreos-a5b80d53-01d1-4aed-bb2f-e4ca72102353.novalocal systemd[1]: etcd.service holdoff time over, scheduling restart.\r\nAug 23 12:58:12 coreos-a5b80d53-01d1-4aed-bb2f-e4ca72102353.novalocal systemd[1]: Stopping etcd...\r\n```\r\n\r\n/run/systemd/system/etcd.service.d/20-cloudinit.conf\r\n```\r\n[Service]\r\nEnvironment=\"ETCD_ADDR=:4001\"\r\nEnvironment=\"ETCD_DISCOVERY=https://discovery.etcd.io/7e5071c11108cf5da841c6fee43efac6\"\r\nEnvironment=\"ETCD_NAME=00e3c5142b434c75bb81d4d0a789e68e\"\r\nEnvironment=\"ETCD_PEER_ADDR=:7001\"\r\n```\r\n\r\ncloud-config.yml\r\n```\r\n#cloud-config\r\n\r\ncoreos:\r\n  etcd:\r\n    # generate a new token for each unique cluster from https://discovery.etcd.io/new\r\n    discovery: https://discovery.etcd.io/7e5071c11108cf5da841c6fee43efac6\r\n    # multi-region and multi-cloud deployments need to use $public_ipv4\r\n    addr: $private_ipv4:4001\r\n    peer-addr: $private_ipv4:7001\r\n  units:\r\n    - name: etcd.service\r\n      command: start\r\n    - name: fleet.service\r\n      command: start\r\nssh_authorized_keys:\r\n  # include one or more SSH public keys\r\n  - ssh-rsa ...\r\n```\r\n\r\nServices\r\n```\r\n$ systemctl status user-configdrive.path\r\n● user-configdrive.path - Watch for a cloud-config at /media/configdrive\r\n   Loaded: loaded (/usr/lib64/systemd/system/user-configdrive.path; static)\r\n   Active: failed (Result: resources)\r\n\r\nAug 23 13:27:10 coreos-a5b80d53-01d1-4aed-bb2f-e4ca72102353.novalocal systemd[1]: Starting Watch for a cloud-config at /media/configdrive.\r\nAug 23 13:27:10 coreos-a5b80d53-01d1-4aed-bb2f-e4ca72102353.novalocal systemd[1]: Failed to start Watch for a cloud-config at /media/configdrive.\r\n\r\n$ systemctl status user-configdrive.service\r\n● user-configdrive.service\r\n   Loaded: masked (/dev/null)\r\n   Active: inactive (dead)\r\n```\r\n\r\nConfig drive files\r\n```\r\n$ ls -Rl /media/configdrive/\r\n/media/configdrive/:\r\ntotal 4\r\ndr-xr-xr-x 4 root root 2048 Aug 23 12:43 ec2\r\ndr-xr-xr-x 6 root root 2048 Aug 23 12:43 openstack\r\n\r\n/media/configdrive/ec2:\r\ntotal 4\r\ndr-xr-xr-x 2 root root 2048 Aug 23 12:43 2009-04-04\r\ndr-xr-xr-x 2 root root 2048 Aug 23 12:43 latest\r\n\r\n/media/configdrive/ec2/2009-04-04:\r\ntotal 3\r\n-r--r--r-- 1 root root 1109 Aug 23 12:43 meta-data.json\r\n-r--r--r-- 1 root root  874 Aug 23 12:43 user-data\r\n\r\n/media/configdrive/ec2/latest:\r\ntotal 3\r\n-r--r--r-- 1 root root 1109 Aug 23 12:43 meta-data.json\r\n-r--r--r-- 1 root root  874 Aug 23 12:43 user-data\r\n\r\n/media/configdrive/openstack:\r\ntotal 8\r\ndr-xr-xr-x 2 root root 2048 Aug 23 12:43 2012-08-10\r\ndr-xr-xr-x 2 root root 2048 Aug 23 12:43 2013-04-04\r\ndr-xr-xr-x 2 root root 2048 Aug 23 12:43 2013-10-17\r\ndr-xr-xr-x 2 root root 2048 Aug 23 12:43 latest\r\n\r\n/media/configdrive/openstack/2012-08-10:\r\ntotal 2\r\n-r--r--r-- 1 root root 690 Aug 23 12:43 meta_data.json\r\n-r--r--r-- 1 root root 874 Aug 23 12:43 user_data\r\n\r\n/media/configdrive/openstack/2013-04-04:\r\ntotal 3\r\n-r--r--r-- 1 root root 1393 Aug 23 12:43 meta_data.json\r\n-r--r--r-- 1 root root  874 Aug 23 12:43 user_data\r\n\r\n/media/configdrive/openstack/2013-10-17:\r\ntotal 3\r\n-r--r--r-- 1 root root 1393 Aug 23 12:43 meta_data.json\r\n-r--r--r-- 1 root root  874 Aug 23 12:43 user_data\r\n-r--r--r-- 1 root root    2 Aug 23 12:43 vendor_data.json\r\n\r\n/media/configdrive/openstack/latest:\r\ntotal 3\r\n-r--r--r-- 1 root root 1393 Aug 23 12:43 meta_data.json\r\n-r--r--r-- 1 root root  874 Aug 23 12:43 user_data\r\n-r--r--r-- 1 root root    2 Aug 23 12:43 vendor_data.json\r\n```\n"},"comment":{"url":"https://api.github.com/repos/coreos/bugs/issues/comments/142764994","html_url":"https://github.com/coreos/bugs/issues/761#issuecomment-142764994","issue_url":"https://api.github.com/repos/coreos/bugs/issues/761","id":142764994,"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:05:39Z","updated_at":"2015-09-24T00:05:39Z","body":"<a href=\"https://github.com/crawford\"><img src=\"https://avatars.githubusercontent.com/u/368848?v=3\" align=\"left\" width=\"48\" height=\"48\" hspace=\"10\"></img></a> **Comment by [crawford](https://github.com/crawford)**\n_Friday Sep 12, 2014 at 00:45 GMT_\n\n----\n\n@Metamogul variable escaping is now in cloudinit v0.10.0 (https://github.com/coreos/coreos-cloudinit/pull/228 ).\n"}}