{"action":"closed","issue":{"url":"https://api.github.com/repos/coreos/docs/issues/868","repository_url":"https://api.github.com/repos/coreos/docs","labels_url":"https://api.github.com/repos/coreos/docs/issues/868/labels{/name}","comments_url":"https://api.github.com/repos/coreos/docs/issues/868/comments","events_url":"https://api.github.com/repos/coreos/docs/issues/868/events","html_url":"https://github.com/coreos/docs/issues/868","id":170224023,"number":868,"title":"$prviate_ipv4 vartiable is empty - vmware guestinfo ","user":{"login":"samiqs","id":1679124,"avatar_url":"https://avatars.githubusercontent.com/u/1679124?v=3","gravatar_id":"","url":"https://api.github.com/users/samiqs","html_url":"https://github.com/samiqs","followers_url":"https://api.github.com/users/samiqs/followers","following_url":"https://api.github.com/users/samiqs/following{/other_user}","gists_url":"https://api.github.com/users/samiqs/gists{/gist_id}","starred_url":"https://api.github.com/users/samiqs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samiqs/subscriptions","organizations_url":"https://api.github.com/users/samiqs/orgs","repos_url":"https://api.github.com/users/samiqs/repos","events_url":"https://api.github.com/users/samiqs/events{/privacy}","received_events_url":"https://api.github.com/users/samiqs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-09T17:26:56Z","updated_at":"2016-08-09T17:51:32Z","closed_at":"2016-08-09T17:51:32Z","body":"**$private_ipv4 token is replaced by an empty value.** \r\n\r\n```bash\r\ncore@master1 ~ $ etcdctl cluster-health\r\nmember a8459349e7362457 is healthy: got healthy result from http://:2379\r\ncluster is healthy\r\ncore@master1 ~ $ cat /run/systemd/system/etcd2.service.d/20-cloudinit.conf \r\n[Service]\r\nEnvironment=\"ETCD_ADVERTISE_CLIENT_URLS=http://:2379,http://:4001\"\r\nEnvironment=\"ETCD_DISCOVERY=https://discovery.etcd.io/<token here>\"\r\nEnvironment=\"ETCD_INITIAL_ADVERTISE_PEER_URLS=http://:2380\"\r\nEnvironment=\"ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379,http://0.0.0.0:4001\"\r\nEnvironment=\"ETCD_LISTEN_PEER_URLS=http://:2380\"\r\n```\r\n\r\n**Using guestinfo interface and editing the .vmx manually prior to booting vm:**\r\n\r\n```bash\r\nguestinfo.hostname = \"master1\"                                                  \r\nguestinfo.interface.0.name = \"ens192\"                                           \r\nguestinfo.interface.0.role = \"private\"                                          \r\nguestinfo.coreos.config.data = \"H4sICIz....\"\r\nguestinfo.coreos.config.data.encoding = \"gzip+base64\"\r\n```\r\n\r\n**Cloud Config:**\r\n\r\n```yaml\r\n\r\n#cloud-config\r\n\r\nusers:\r\n  - name: \"core\"\r\n    passwd: \"$6$ro...\"\r\n    groups:\r\n      - \"sudo\"\r\n      - \"docker\"\r\n    ssh-authorized-keys:\r\n      - \"ssh-rsa ...\"\r\n\r\ncoreos:\r\n  etcd2:\r\n    # generate a new token for each unique cluster from https://discovery.etcd.io/new?size=3\r\n    # specify the initial size of your cluster with ?size=X\r\n    discovery: https://discovery.etcd.io/<token>\r\n    advertise-client-urls: http://$private_ipv4:2379,http://$private_ipv4:4001\r\n    initial-advertise-peer-urls: http://$private_ipv4:2380\r\n    # listen on both the official ports and the legacy ports\r\n    # legacy ports can be omitted if your application doesn't depend on them\r\n    listen-client-urls: http://0.0.0.0:2379,http://0.0.0.0:4001\r\n    listen-peer-urls: http://$private_ipv4:2380\r\n  units:\r\n    - name: etcd2.service\r\n      command: start\r\n    - name: fleet.service\r\n      command: start\r\n    - name: vmtoolsd.service\r\n      command: start\r\n      content: |\r\n        [Unit]\r\n        Description=VMware Tools Agent\r\n        Documentation=http://open-vm-tools.sourceforge.net/\r\n        ConditionVirtualization=vmware\r\n\r\n        [Service]\r\n        ExecStartPre=/usr/bin/ln -sfT /usr/share/oem/vmware-tools /etc/vmware-tools\r\n        ExecStart=/usr/share/oem/bin/vmtoolsd\r\n        TimeoutStopSec=5\r\n\r\n    - name: oem-cloudinit.service\r\n      command: restart\r\n      runtime: yes\r\n      content: |\r\n        [Unit]\r\n        Description=Cloudinit from VMware Backdoor\r\n\r\n        [Service]\r\n        Type=oneshot\r\n        ExecStart=/usr/bin/coreos-cloudinit --oem=vmware\r\n\r\n  oem:\r\n    bug-report-url: \"https://github.com/coreos/bugs/issues\"\r\n    id: vmware\r\n    name: VMWare\r\n    version-id: \"9.10.0-r3\"\r\n```\r\n\r\nI am using the latest coreos image. Nothing in any of the logs I have looked at indicate any issue pertaining to why the variable is missing. I am not sure how to debug this. Any help would be appreciated.\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"crawford"}}