Project

General

Profile

Bug #601

VHID changes do not apply immediately on secondary

Added by Chris Buechler over 9 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Virtual IP Addresses
Target version:
Start date:
05/17/2010
Due date:
% Done:

0%

Estimated time:
Affected Version:
All
Affected Architecture:

Description

When changing the VHID on the primary, it's applied immediately on the primary and synced to the secondary so its config.xml is correct, but the secondary does not update its configured CARP IPs with the correct VHID. So you end up with dual master status, with each on a different VHID.

Associated revisions

Revision a57d6170 (diff)
Added by Scott Ullrich about 9 years ago

Ensure config.cache does not exist so the subsequent requests can cleanly reload the configuration. Ticket #601

Revision 7de83e03 (diff)
Added by Ermal Luçi about 9 years ago

Simplify/optimize code for carp [re]configuration. This is possibly related to Ticket #601. Also this speedups vip creation on large number of interfaces.

Revision 19b5c3e7 (diff)
Added by Ermal Luçi about 9 years ago

Ticket #601. If 'virtualip' section is going to be restored or merged through xmlrpc bring down all vips which will be brough up later on from the configure_carp call. This ensures that the peers on the cluster stay current to each other.

Revision 2de2abe0 (diff)
Added by Ermal Luçi about 9 years ago

No need to triger a vips re-configure explicitly but rather detect this during config merges. This is the best way to do this after fixing Ticket #601.

History

#1 Updated by Jim Pingle about 9 years ago

This does not happen as expected. The VHID does sync in the config, but that change does not propagate to the actual CARP interface. I suspect this is due to the issue I found in ticket #643

It won't update a CARP interface on sync, only at boot or when you edit/save the VIP.

#2 Updated by Chris Buechler about 9 years ago

  • Tracker changed from Todo to Bug

#3 Updated by Chris Buechler about 9 years ago

  • Subject changed from verify VHID change applies immediately on secondary to VHID changes do not apply immediately on secondary

#4 Updated by Jim Pingle about 9 years ago

Just tested this again, and it is still a problem. On the secondary box, the VHID changes under the CARP settings screen, but on Status > CARP, the interface name is still the old VHID, and even though it shows "backup" in the GUI, the output of ifconfig -a shows it as master.

So the logic for renaming the CARP VIP interface (e.g. vip55 -> vip41) as well as changing the VHID on the interface isn't happening after the xmlrpc sync.

#5 Updated by Ermal Luçi about 9 years ago

  • Status changed from New to Feedback

I implemented the fix for this.
Though i think it is better to put even the reloading of carps through rpcxml in the same way i did for destroying the old ones, instead of relying on a xmlrpc call to bring them up again!

#6 Updated by Jim Pingle almost 9 years ago

  • Status changed from Feedback to Resolved

This works properly now.

Also available in: Atom PDF