Investigate why the cloud image isn't working at Digital Ocean
I just tried uploading the cloud image to Digital Ocean as a [custom image](https://www.digitalocean.com/docs/images/custom-images/) and it didn't work :/. The VM boots but it isn't pingable.
---
Digital Ocean is providing the relevant metadata as a [config drive](https://cloudinit.readthedocs.io/en/latest/topics/datasources/configdrive.html). `cloud-init` expects the metadata to be in [OpenStack format](https://docs.openstack.org/nova/latest/user/metadata.html#openstack-format-metadata) which it isn't. Example:
```json
openstack/latest/network_data.json
{
"links": [
{
"ethernet_mac_address": "72:71:cc:2f:9d:20",
"id": "interface-public",
"mtu": 1500,
"type": "phy"
},
{
"ethernet_mac_address": "4e:23:ee:79:8f:b7",
"id": "interface-private",
"mtu": 1500,
"type": "phy"
}
],
"networks": [
{
"id": "public-ipv4",
"link": "interface-public",
"neutron_network_id": "7d9cd798-2dc0-502f-41ca-e04b552ddffd",
"type": "ipv4-dhcp"
},
{
"id": "private-ipv4",
"link": "interface-private",
"neutron_network_id": "95cb2248-41ef-512c-41a8-c8d6bc054272",
"type": "ipv4-dhcp"
}
]
}
```
Type should be `ipv4_dhcp` not `ipv4-dhcp`. `ipv4-dhcp` isn't valid as documented in the [OpenStack schema](https://github.com/openstack/nova/blob/4f69d8e6c7b091c902409f6761512ec95d7c88de/doc/api_schemas/network_data.json#L277).
issue