<p>For me, this ended up being because my system administrator disabled Floating IPs. I was getting the same error in OpenStack Horizons (the web interface).</p>
<p><a href="https://i.sstatic.net/TWH1t.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/TWH1t.png" alt="enter image description here" /></a></p>

CC BY-SA 4.0
2022-02-21T19:38:52.437Z
2022-02-21T19:38:52.437Z
Evan Carroll
<p>When I try to create a <code>openstack_compute_floatingip_associate_v2</code> in terraform I'm getting the following error,</p>
<blockquote>
<p>Error: Error creating openstack_compute_floatingip_associate_v2: Bad request with: [POST https://nova-cc.hou-01.cloud.prod.acme.net:8774/v2.1/servers/REDACTED_UUID/action], error message: {&quot;badRequest&quot;: {&quot;code&quot;: 400, &quot;message&quot;: &quot;Unable to associate floating IP 10.2.66.173 to fixed IP 10.2.65.167 for instance REDACTED_UUID. Error: External network REDACTED_UUID is not reachable from subnet REDACTED_UUID.  Therefore, cannot associate Port REDACTED_UUID with a Floating IP.\nNeutron server returns request_ids: ['req-a35d140e-3061-4d2d-a88b-7dfb634340c7']&quot;}}</p>
</blockquote>

<terraform><openstack>
Error: Error creating openstack_compute_floatingip_associate_v2
Evan Carroll
# Error: Error creating openstack_compute_floatingip_associate_v2

(Asked by: username_0 on 2022-02-21)

When I try to create a `openstack_compute_floatingip_associate_v2` in terraform I'm getting the following error,

> Error: Error creating openstack\_compute\_floatingip\_associate\_v2: Bad request with: [POST https://nova-cc.hou-01.cloud.prod.acme.net:8774/v2.1/servers/REDACTED\_UUID/action], error message: {"badRequest": {"code": 400, "message": "Unable to associate floating IP 10.2.66.173 to fixed IP 10.2.65.167 for instance REDACTED\_UUID. Error: External network REDACTED\_UUID is not reachable from subnet REDACTED\_UUID. Therefore, cannot associate Port REDACTED\_UUID with a Floating IP.\nNeutron server returns request\_ids: ['req-a35d140e-3061-4d2d-a88b-7dfb634340c7']"}}

**Tags:** terraform, openstack


---

## 1 answers

### Answer by username_0 on 2022-02-21. Score: 0 | Accepted answer

For me, this ended up being because my system administrator disabled Floating IPs. I was getting the same error in OpenStack Horizons (the web interface).

[![enter image description here](https://i.sstatic.net/TWH1t.png)](https://i.sstatic.net/TWH1t.png)


---

