How to run neutron metadata agent in an isolated network with enable_isolated_metadata

Solution Verified - Updated -

Issue

When one uses neutron provider networks with an external router, there is no need for L3 agent function in Openstack.

However, the NAT rule for 169.254.169.254 (metadata agent) is done in the virtual router's namespace. How can one run the metadata agent without a neutron router on the subnet?

Cloud-init is unable to set up ssh key for an instance that is using a provider network.
Unable to inject ssh key at boot time
cloud init ssh key

Environment

Red Hat Enterprise Linux OpenStack Platform 7.0
Red Hat OpenStack Platform 8
Red Hat OpenStack Platform 9
Red Hat OpenStack Platform 10
Red Hat OpenStack Platform 13
Red Hat OpenStack Platform 16.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content