Hello All,
Thanks for the tips in troubleshooting. So it looks like CoreOS is never calling out to get the data from the metadata service. Though, I'm at a loss to explain why.
My meta data is definitely available:
>> Connecting to 169.254.169.254:80... connected.
>> HTTP request sent, awaiting response... 200 OK
>> Length: 438 [text/plain]
>> Saving to: 'user-data'
>>
>> user-data 100%[===================================================>] 438 --.-KB/s in 0s
>>
>> 2016-02-22 18:43:56 (37.5 MB/s) - 'user-data' saved [438/438]
>>
>> localhost ~ # cat user-data
>> #cloud-config
>>
>> ssh_authorized_keys:
>> - ssh-rsa <ssh key> opnestack-userdata
I believe I'm using the current stable version:
>> localhost ~ # cat /etc/oem-release
>> ID=vmware
>> VERSION_ID=9.10.0-r3
>> NAME="VMWare"
>> HOME_URL=""
For the purposes of testing I can try the Beta image, but the issue Alex linked seems to deal with iPXE.
This is my cloud-config.yaml... Should there be some kind of stanza that tells it to pull openstack data, or does cloud-config magically know to do this already?
>> localhost ~ # cat /usr/share/oem/cloud-config.yml
>> #cloud-config
>>
>> coreos:
>> units:
>> - name: vmtoolsd.service
>> command: start
>> content: |
>> [Unit]
>> Description=VMware Tools Agent
>> ConditionVirtualization=vmware
>>
>> [Service]
>> ExecStartPre=/usr/bin/ln -sfT /usr/share/oem/vmware-tools /etc/vmware-tools
>> ExecStart=/usr/share/oem/bin/vmtoolsd
>> TimeoutStopSec=5
>>
>> - name: oem-cloudinit.service
>> command: restart
>> runtime: yes
>> content: |
>> [Unit]
>> Description=Cloudinit from VMware Backdoor
>>
>> [Service]
>> Type=oneshot
>> ExecStart=/usr/bin/coreos-cloudinit --oem=vmware
>>
>> oem:
>> id: vmware
>> name: VMWare
>> version-id: "9.10.0-r3"
It definitely appears to be working correctly, save the lack of openstack data...
>> localhost ~ # coreos-cloudinit --from-file=/usr/share/oem/cloud-config.yml
>> 2016/02/22 18:46:17 Checking availability of "local-file"
>> 2016/02/22 18:46:17 Fetching user-data from datasource of type "local-file"
>> 2016/02/22 18:46:17 Fetching meta-data from datasource of type "local-file"
>> 2016/02/22 18:46:17 Parsing user-data as cloud-config
>> 2016/02/22 18:46:17 Merging cloud-config from meta-data and user-data
>> 2016/02/22 18:46:17 Writing file to "/etc/oem-release"
>> 2016/02/22 18:46:17 Wrote file to "/etc/oem-release"
>> 2016/02/22 18:46:17 Wrote file /etc/oem-release to filesystem
>> 2016/02/22 18:46:17 Writing unit "vmtoolsd.service" to filesystem
>> 2016/02/22 18:46:17 Writing file to "/etc/systemd/system/vmtoolsd.service"
>> 2016/02/22 18:46:17 Wrote file to "/etc/systemd/system/vmtoolsd.service"
>> 2016/02/22 18:46:17 Wrote unit "vmtoolsd.service"
>> 2016/02/22 18:46:17 Writing unit "oem-cloudinit.service" to filesystem
>> 2016/02/22 18:46:17 Writing file to "/run/systemd/system/oem-cloudinit.service"
>> 2016/02/22 18:46:17 Wrote file to "/run/systemd/system/oem-cloudinit.service"
>> 2016/02/22 18:46:17 Wrote unit "oem-cloudinit.service"
>> 2016/02/22 18:46:17 Ensuring runtime unit file "oem-cloudinit.service" is unmasked
>> 2016/02/22 18:46:17 /run/systemd/system/oem-cloudinit.service is not null or empty, refusing to unmask
>> 2016/02/22 18:46:17 Ensuring runtime unit file "etcd.service" is unmasked
>> 2016/02/22 18:46:17 Ensuring runtime unit file "etcd2.service" is unmasked
>> 2016/02/22 18:46:17 Ensuring runtime unit file "fleet.service" is unmasked
>> 2016/02/22 18:46:17 Ensuring runtime unit file "locksmithd.service" is unmasked
>> 2016/02/22 18:46:17 Calling unit command "start" on "vmtoolsd.service"'
>> 2016/02/22 18:46:17 Result of "start" on "vmtoolsd.service": done
>> 2016/02/22 18:46:17 Calling unit command "restart" on "oem-cloudinit.service"'
>> 2016/02/22 18:46:17 Result of "restart" on "oem-cloudinit.service": done
I tried googling "coreos openstack cloud-config yaml" but that only takes me to the "cloud-config file locations" page... I tried using the OpenStack CoreOS image, but I get a "500 error" from OpenStack when instantiating instances... (trying to troubleshoot that, but I can literally think of nothing more painful...)
I appreciate any help.
Thanks,
Jon A