When associating floating ip to vm, I receive error: External Network is not reachable from subnet

asked 2015-04-30 21:41:32 -0500

madschuy gravatar image

Hello all,

I am having some trouble with adding a Floating IP to an instance. I believe I have set everything up correctly, please let me know if I have missed anything.

I am able to create a floating IP either within the dashboard or on the command line, but associating it to an instance returns an error:

$ neutron floatingip-associate 169d55c5-5408-44dc-b645-36ee93bc1299 fc7ea728-d0c6-4e55-a22d-239021026f1d
External network 3807be64-f86b-432a-9112-4a7999c1d5c2 is not reachable from subnet 8792635b-c77a-4444-86e3-e7ad1c2ca000.  Therefore, cannot associate Port fc7ea728-d0c6-4e55-a22d-239021026f1d with a Floating IP. (HTTP 404) (Request-ID: req-373bd1b5-c50d-4e83-9192-7dbfa05d369c)

I am following the Juno install guide for Ubuntu 14: http://docs.openstack.org/juno/install-guide/install/apt/content/neutron-initial-networks.html (http://docs.openstack.org/juno/instal...)

The setup is a Neutron networking configuration using VLAN's for the tenant networks. I have separate servers for the Cloud Controller, Network node and 2 HV's for the compute nodes. So far, everything but Floating IP's are working properly.

I have reviewed the following questions previously asked on this topic on this site and others: https://ask.openstack.org/en/question/17408/external-network-09403640-62fb-402f-bec5-0aaedf759504-is-not-reachable-from-subnet/ (https://ask.openstack.org/en/question...) https://ask.openstack.org/en/question/11463/assigning-floating-ip-fails/ (https://ask.openstack.org/en/question...) https://www.rdoproject.org/forum/discussion/255/unable-to-associate-floating-ips/p1 (https://www.rdoproject.org/forum/disc...) https://lists.launchpad.net/openstack/msg25321.html (https://lists.launchpad.net/openstack...)

What I have determined from the other topics related to the issue, and the install guide and openstack docs, the following is required to associate a floating IP to and instance:

  1. External network & subnet with floating IP pool
  2. Router for the tenant
  3. Subnet for the tenant
  4. Interface on the router for the tenant's subnet
  5. Default gateway for the router set to the external network
  6. A VM with an interface on the tenant's network.

The 2 networks:

$ neutron subnet-list
+--------------------------------------+-------------------+-------------------+------------------------------------------------------+
| id                                   | name              | cidr              | allocation_pools                                     |
+--------------------------------------+-------------------+-------------------+------------------------------------------------------+
| 8792635b-c77a-4444-86e3-e7ad1c2ca000 | smh-subnet        | 10.5.22.0/24      | {"start": "10.5.22.2", "end": "10.5.22.254"}         |
| d6c8d0d4-3964-49f4-962c-ceac78540b1b | ext-subnet        | X.X.X/26          | {"start": "X.X.X.194", "end": "X.X.X.239"}           |
+--------------------------------------+-------------------+-------------------+------------------------------------------------------+

External Network Configuration:

$ neutron subnet-show ext-subnet
+-------------------+------------------------------------------------------+
| Field             | Value                                                |
+-------------------+------------------------------------------------------+
| allocation_pools  | {"start": "X.X.X.194", "end": "X.X.X.239"}       |
| cidr              | X.X.X.192/26                                         |
| dns_nameservers   |                                                      |
| enable_dhcp       | False                                                |
| gateway_ip        | X.X.X.193                                            |
| host_routes       |                                                      |
| id                | d6c8d0d4-3964-49f4-962c-ceac78540b1b                 |
| ip_version        | 4                                                    |
| ipv6_address_mode |                                                      |
| ipv6_ra_mode      |                                                      |
| name              | ext-subnet                                           |
| network_id        | 3807be64-f86b-432a-9112-4a7999c1d5c2                 |
| tenant_id         | 4d6f9baa23b640d58a036e26e8ec044b                     |
+-------------------+------------------------------------------------------+

Router configuration:

$ neutron router-show smh-router
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field                 | Value                                                                                                                                                                                      |
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up        | True                                                                                                                                                                                       |
| distributed           | False                                                                                                                                                                                      |
| external_gateway_info | {"network_id": "3807be64-f86b-432a-9112-4a7999c1d5c2", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "d6c8d0d4-3964-49f4-962c-ceac78540b1b", "ip_address": "X.X.X.X.198"}]} |
| ha                    | False                                                                                                                                                                                      |
| id                    | 23365267-3a22-4e99-8f15-772483d4722b                                                                                                                                                       |
| name                  | smh-router                                                                                                                                                                                 |
| routes                |                                                                                                                                                                                            |
| status                | ACTIVE                                                                                                                                                                                     |
| tenant_id             | 44c32cb0b47040b5b3187fcfad2b3750                                                                                                                                                           |
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

Router interfaces:

$ neutron router-port-list smh-router
+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------------+
| id                                   | name | mac_address       | fixed_ips                                                                             |
+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------------+
| bf7ea472-1531-4614-9559-f6d2a702c823 |      | fa:16:3e:2e:a6:25 | {"subnet_id": "d6c8d0d4-3964-49f4-962c-ceac78540b1b", "ip_address": "X.X.X.198"} |
| ee6eb67d-ca19-4430-b158-50feff76c00a |      | fa:16:3e:d1:39:ff | {"subnet_id": "8792635b-c77a-4444-86e3-e7ad1c2ca000", "ip_address": "10.5.22.1"}      |
+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------------+

Additional information:

The install guide was followed completely, and I was able to verify the network configuration using the following doc: http://docs.openstack.org/juno/install-guide/install/apt/content/neutron_initial-networks-verify.html (http://docs.openstack.org/juno/instal...)

I am ... (more)

edit retag flag offensive close merge delete