IP address failover with custom net mask and default gateway. Hooks ?

Asked by Lior Goikhburg

Hello,

On a public IaaS I'm having a situation where only one floating IP address is allowed on the external interface (eth0).
Since the interfaces are unconfigured by default, the default gateway is not set. All communications are done on internal network (eth1), including the mysql replication and mmm monitoring.
Is there any configuration option to assign default gateway and custom net mask with the IP address when a node assumes a role ? Or perhaps run a script (hook ?) on every change of a role ?

I tried using mmm, it works but it only sets the IP with mask of /32 and no default gateway. The IP address failover between node works well, still the solution is no usable because of the situation described above.

Please advice.

Thanks in advance,
Lior

Question information

Language:
English Edit question
Status:
Answered
For:
mysql-mmm Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Walter Heck (walterheck) said :
#1

Hi Lior,

similar situations as the one you describe come up from time to time.
It is not possible with the current version of MMM, but it would be a
very welcome feature to be able to have a hook on role changes. You're
more then welcome to customise MMM to be able to do that. You'll make
lots of fans really quickly :)

kind regards,

Walter

On Fri, Sep 10, 2010 at 02:17, Lior Goikhburg
<email address hidden> wrote:
> New question #124782 on mysql-mmm:
> https://answers.launchpad.net/mysql-mmm/+question/124782
>
> Hello,
>
> On a public IaaS I'm having a situation where only one floating IP address is allowed on the external interface (eth0).
> Since the interfaces are unconfigured by default, the default gateway is not set. All communications are done on internal network (eth1), including the mysql replication and mmm monitoring.
> Is there any configuration option to assign default gateway and custom net mask with the IP address when a node assumes a role ? Or perhaps run a script (hook ?) on every change of a role ?
>
> I tried using mmm, it works but it only sets the IP with mask of /32 and no default gateway. The IP address failover between node works well, still the solution is no usable because of the situation described above.
>
> Please advice.
>
> Thanks in advance,
> Lior
>
> --
> You received this question notification because you are an answer
> contact for mysql-mmm.
>

--
Walter Heck
--
Checkout my new startup: Server Monitoring as a Service @ http://tribily.com

Can you help with this problem?

Provide an answer of your own, or ask Lior Goikhburg for more information if necessary.

To post a message you must log in.