auto release floating back to the pool

asked 2018-11-10 14:04:12 -0600

mheniMerzouki gravatar image

HI, is there an option that can make neutron release floating IPs automatically if an instance has been idle for some time? thanks.

edit retag flag offensive close merge delete

Comments

What do you mean by “idle”?

Even when you remove a floating IP from a server, it is not returned to the pool. You need to do that explicitly. You may however be able to automate this once you have a definition of “idle”.

Bernd Bausch gravatar imageBernd Bausch ( 2018-11-10 16:56:40 -0600 )edit

if we define "idle" as there has been no interaction with the instance for the last 30 minutes. how do you think it would work out? I can imagine using ceilometer to monitor idleness and maybe use heat to automate releasing floating IPs

mheniMerzouki gravatar imagemheniMerzouki ( 2018-11-10 21:36:59 -0600 )edit

What do you mean with "no interaction"? No network access? No console access? No OpenStack API that affects the instance? Something else?

Yes, my idea was using Ceilometer as well, plus Aodh to send an alarm when the idle condition is reached. The alarm processor then returns the floating IP.

Bernd Bausch gravatar imageBernd Bausch ( 2018-11-10 22:20:39 -0600 )edit

Or use Heat for more automation. However, I am not sure if your particular definition of idleness can be detected by Ceilometer/Aodh.

Bernd Bausch gravatar imageBernd Bausch ( 2018-11-10 22:21:52 -0600 )edit