Metadata http request from instance using 169.254.169.254 is failing when external interface is used

asked 2019-05-02 15:20:26 -0500

gee@regitalk gravatar image

Metadata http request from instance using 169.254.169.254 is failing when only external interface is attached with the following error during initial reboot:

http://254.169.254.169/2009-04-04/metadata/instance-id (http://254.169.254.169/2009-04-04/met...) failed. network unreachable

When I attach an internal network it works fine and cloud-init is successful. I have updated the metadata.ini file, dhcp.ini, and nova.conf files, but same issue.

Openstack version = Queens 1 Controller, same as network node 10 compute hosts. External network is configured as vxlan and it is a flat network.

Let me know if anyone has an input or question on this.

Thanks, Gee

edit retag flag offensive close merge delete

Comments

What do you mean by external interface is attached? What is an external interface, and where do you attach it?

If you mean that the instance is attached to an external network: The metadata service is only designed for tenant networks, though I think you can make it work with some tweaking.

Bernd Bausch gravatar imageBernd Bausch ( 2019-05-02 17:35:46 -0500 )edit

The "tweaking" is actually documented in the networking guide, for example when using Openvswitch: https://docs.openstack.org/neutron/ro....

Bernd Bausch gravatar imageBernd Bausch ( 2019-05-03 04:43:12 -0500 )edit

Thanks for responding. Yes, I meant the instance is attached to an external/provider network, and not the tenant internal network. I will check the tweaking you mentioned and revert if it worked.

gee@regitalk gravatar imagegee@regitalk ( 2019-05-03 10:05:42 -0500 )edit

I went through the link you provided. Can you point me to which scenario has the tweaking you mentioned ? Thanks,

gee@regitalk gravatar imagegee@regitalk ( 2019-05-03 10:26:27 -0500 )edit

Probably the compute node setup, steps 5, 6 and 10, and anything else that contains the word “metadata”.

Bernd Bausch gravatar imageBernd Bausch ( 2019-05-03 11:04:49 -0500 )edit