Instance Cannot Contact Metadata Service (Ubuntu 16.04)
Problem
An instance is unable to contact the metadata service via the metadata proxy IP (169.254.169.254) with an error similar to the following.
The gateway IP for the metadata proxy route is associated with a reserved DHCP port.
Identify the gateway IP.
2. Track the IP down to a Neutron port.
3. Check the device ID of the port.
- The value should be reserved_dhcp_port. If not, you are likely facing a separate issue with that particular DHCP agent.
Environment
Platform9 Managed OpenStack - All Versions
Ubuntu 16.04
Cause
A DHCP agent failover has occurred and thus the IP/route to the Neutron metadata proxy has changed.
Resolution
Remove the route for the metadata proxy IP.
Run dhclient.
Check that the gateway IP for the 169.254.169.254 route has been updated.
Ensure that the metadata service is reachable via the proxy IP.
