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 and it didn't work :/. The VM boots but it isn't pingable.


Digital Ocean is providing the relevant metadata as a config drive. cloud-init expects the metadata to be in OpenStack format which it isn't. Example:

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.

Edited by Kristian Klausen
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information