Can not associate the floating ip to instance

asked 2017-08-06 23:09:30 -0500

liaodalin19903 gravatar image

updated 2017-08-07 05:02:38 -0500

When I associate a floating ip to the instance, create success, but can not attach it to the instance.

enter image description here

The error information:

Error: External network 8603929d-6d3b-44dd-af59-d9a4f77d4048 is not reachable from subnet 4c76341d-c7b4-49a4-add9-465eb1696344. Therefore, cannot associate Port 14b82c66-209a-4c64-9791-49042a3667e3 with a Floating IP. Neutron server returns request_ids: ['req-ae0d016c-97a9-408d-9a40-2bf741463034']

Error: Unable to associate IP address 45.117.40.62.

And in the Project->COMPUTE->Instance all are down.

enter image description here


EDIT-1

All the neutron service status are active(running):

systemctl status  neutron-server.service neutron-l3-agent.servic neutron-server.service neutron-linuxbridge-agent.service neutron-dhcp-agent.service neutron-metadata-agent.service

# all the service information are running.

EDIT-2

This is the network topology:

image description

The interfaces all are active:

image description


EDIT-3

I only find crm status the vim_public_monitor is not running. I don't know if this affect it:

[root@ha-node1 ~]# crm status 
Last updated: Mon Aug  7 13:58:05 2017      Last change: Sun Aug  6 18:33:12 2017 by root via cibadmin on ha-node1
Stack: corosync
Current DC: ha-node1 (version 1.1.13-10.el7-44eb2dd) - partition with quorum
3 nodes and 2 resources configured

Online: [ ha-node1 ha-node2 ha-node3 ]

Full list of resources:

 vip_public (ocf::heartbeat:IPaddr2):   Started ha-node1
 vip_management (ocf::heartbeat:IPaddr2):   Started ha-node2

Failed Actions:
* vip_public_monitor_30000 on ha-node1 'not running' (7): call=12, status=complete, exitreason='none',
    last-rc-change='Mon Aug  7 10:02:46 2017', queued=0ms, exec=0ms

EDIT-4

I find in the router's interfaces, the ha-node1, and ha-node3 interface are Build Status, not Active. I am not sure if is because of this issue.if is the interface is down the VM can not connect to the public network.(but my vm1 and vm3 all are in the ha-node2).

image description


EDIT-5

I cat the neutron-server.log use the command in ha-node1 or ha-node2, or ha-node3 :cat server.log | grep ERROR

get the below log info:

2017-08-07 13:02:09.564 49128 ERROR oslo_db.sqlalchemy.exc_filters 
2017-08-07 13:02:09.581 49128 ERROR oslo_messaging.rpc.server [req-7fc47486-406d-4b63-b68c-b46fc15f0914 - - - - -] Exception during message handling
2017-08-07 13:02:09.581 49128 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2017-08-07 13:02:09.581 49128 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/
...
2017-08-07 13:02:10.208 49131 ERROR oslo_db.sqlalchemy.exc_filters Traceback (most recent call last):
...
2017-08-07 13:02:10.208 49131 ERROR oslo_db.sqlalchemy.exc_filters     err.raise_mysql_exception(self._data)
2017-08-07 13:02:10.208 49131 ERROR oslo_db.sqlalchemy.exc_filters   File "/usr/lib/python2.7/site-packages/pymysql/err.py", line 107, in raise_mysql_exception
2017-08-07 13:02:10.208 49131 ERROR oslo_db.sqlalchemy.exc_filters     raise errorclass(errno, errval)
2017-08-07 13:02:10.208 49131 ERROR oslo_db.sqlalchemy.exc_filters InternalError: (1047, u'WSREP has not yet prepared node for application use')
2017-08-07 13:02:10.208 49131 ERROR oslo_db.sqlalchemy.exc_filters 
2017-08-07 13:02:10.211 49131 ERROR oslo_messaging.rpc.server [req-fd5daf2a-f9d7-48d0-a730-9361e82fd306 - - - - -] Exception during message handling
2017-08-07 13:02:10.211 49131 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2017-08-07 13:02:10.211 49131 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line ...
(more)
edit retag flag offensive close merge delete

Comments

1

I believe your network doesn't have a route to floating IP network. is the router attached to the external network as gateway and the router interface to the private network ? What is your network topology ?

Rajesh Ramachandran gravatar imageRajesh Ramachandran ( 2017-08-06 23:19:51 -0500 )edit

@RajeshRamachandran See my EDIT-2.

liaodalin19903 gravatar imageliaodalin19903 ( 2017-08-07 00:56:40 -0500 )edit

@RajeshRamachandran Finally I find I tried several times, I can success associate the floating ip success. I don't know why get so many times I can do that yet.

liaodalin19903 gravatar imageliaodalin19903 ( 2017-08-07 21:31:49 -0500 )edit