Page MenuHomeDevCentral

Deploy CARP devd configuration via Salt
ClosedPublic

Authored by yousra on Tue, Mar 31, 12:25.
Tags
None
Referenced Files
F26365930: D4032.id10688.diff
Wed, Apr 22, 07:23
F26365925: D4032.id10657.diff
Wed, Apr 22, 07:23
F26327817: D4032.id10657.diff
Tue, Apr 21, 23:48
F26303524: D4032.id10549.diff
Tue, Apr 21, 18:09
F26303509: D4032.id10541.diff
Tue, Apr 21, 18:08
F26303499: D4032.id10539.diff
Tue, Apr 21, 18:08
Unknown Object (File)
Sat, Apr 18, 08:09
Unknown Object (File)
Thu, Apr 16, 03:12

Details

Summary

Addt to the Salt state CARP the file /usr/local/etc/devd/carp.conf on router nodes.
This configuration allows devd to listen for CARP state changes (MASTER/BACKUP)
and automatically trigger the OVH failover script.

Ref T2276

Test Plan
  • Apply state on router-002:

    salt 'router-002' state.apply roles/router
  • Apply state on router-003:

    salt 'router-003' state.apply roles/router
  • sudo service devd restart
  • Simulate failover of Master
  • Test if the script is called

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

yousra requested review of this revision.Tue, Mar 31, 12:25
yousra created this revision.
This revision is now accepted and ready to land.Tue, Mar 31, 13:37

Fix the path of the parameter action : /usr/local/scripts/carp/carp-ovh-switch.sh

Fix :

  • Change the name of the script in action (no more script .sh)
  • '0644' (Ansible) into 644 (Salt)
yousra edited the test plan for this revision. (Show Details)
yousra edited the test plan for this revision. (Show Details)
yousra edited the test plan for this revision. (Show Details)
yousra added a reviewer: yousra.
yousra removed a reviewer: yousra.
This revision now requires review to proceed.Mon, Apr 6, 14:58
yousra added a reviewer: yousra.
This revision is now accepted and ready to land.Mon, Apr 6, 14:58
This revision now requires review to proceed.Mon, Apr 6, 14:59
This revision is now accepted and ready to land.Mon, Apr 6, 16:36
roles/router/carp/files/carp-devd.conf
3
This revision was automatically updated to reflect the committed changes.