Page MenuHomeDevCentral

Deploy CARP devd configuration via Salt
ClosedPublic

Authored by yousra on Tue, Mar 31, 12:25.
Tags
None
Referenced Files
F26643074: D4032.id10688.diff
Fri, Apr 24, 12:09
F26635226: D4032.id10657.diff
Fri, Apr 24, 10:27
Unknown Object (File)
Wed, Apr 22, 14:59
Unknown Object (File)
Wed, Apr 22, 14:57
Unknown Object (File)
Wed, Apr 22, 07:23
Unknown Object (File)
Wed, Apr 22, 07:23
Unknown Object (File)
Tue, Apr 21, 23:48
Unknown Object (File)
Tue, Apr 21, 18:09

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 Skipped
Unit
No Test Coverage
Branch
devd-carp
Build Status
Buildable 6557
Build 6841: arc lint + arc unit

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
2
This revision was automatically updated to reflect the committed changes.