Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
6.5 SP1
-
None
Description
When writing a cloud-config.yml file for CoreOS the variables $private_ipv4 or $public_ipv4 are not recognised and are substituted for empty strings. Other vendors (VMWare etc) support this.
To resolve this XenServer should populate /usr/share/oem I believe. Related documentation and the source:
https://coreos.com/os/docs/latest/notes-for-distributors.html
https://github.com/coreos/coreos-cloudinit
Example logs:
-- Unit etcd2.service has begun starting up. Nov 28 14:35:35 coreos1 etcd2[2270]: recognized and used environment variable ETCD_ADVERTISE_CLIENT_URLS=http://:2379 Nov 28 14:35:35 coreos1 etcd2[2270]: recognized and used environment variable ETCD_DATA_DIR=/var/lib/etcd2 Nov 28 14:35:35 coreos1 etcd2[2270]: recognized and used environment variable ETCD_DISCOVERY=https://discovery.etcd.io/7ad8b4a0b91913254a90d77a6e12e0a8 Nov 28 14:35:35 coreos1 etcd2[2270]: recognized and used environment variable ETCD_INITIAL_ADVERTISE_PEER_URLS=http://:2380 Nov 28 14:35:35 coreos1 etcd2[2270]: recognized and used environment variable ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379,http://0.0.0.0:4001 Nov 28 14:35:35 coreos1 etcd2[2270]: recognized and used environment variable ETCD_LISTEN_PEER_URLS=http://:2380,http://:7001 Nov 28 14:35:35 coreos1 etcd2[2270]: recognized and used environment variable ETCD_NAME=coreos1 Nov 28 14:35:35 coreos1 etcd2[2270]: etcd Version: 2.3.7 Nov 28 14:35:35 coreos1 etcd2[2270]: Git SHA: fd17c91 Nov 28 14:35:35 coreos1 etcd2[2270]: Go Version: go1.7.1 Nov 28 14:35:35 coreos1 etcd2[2270]: Go OS/Arch: linux/amd64 Nov 28 14:35:35 coreos1 etcd2[2270]: setting maximum number of CPUs to 4, total number of available CPUs is 4 Nov 28 14:35:35 coreos1 etcd2[2270]: listening for peers on http://:2380 Nov 28 14:35:35 coreos1 etcd2[2270]: listening for peers on http://:7001 Nov 28 14:35:35 coreos1 etcd2[2270]: listening for client requests on http://0.0.0.0:2379 Nov 28 14:35:35 coreos1 etcd2[2270]: listening for client requests on http://0.0.0.0:4001 Nov 28 14:35:35 coreos1 etcd2[2270]: resolving :2380 to :2380 Nov 28 14:35:35 coreos1 etcd2[2270]: resolving :2380 to :2380