Page MenuHomeDevCentral

Install dependencies to register MAC address to ISP
Needs ReviewPublic

Authored by yousra on Mon, Mar 23, 20:37.
Tags
None
Referenced Files
F25002589: D4027.id10523.diff
Tue, Mar 24, 14:39
F24999403: D4027.id10523.diff
Tue, Mar 24, 10:49
F24996578: D4027.diff
Tue, Mar 24, 07:12
F24995627: D4027.id10524.diff
Tue, Mar 24, 05:31
F24995625: D4027.id10523.diff
Tue, Mar 24, 05:31
F24995599: D4027.id10524.diff
Tue, Mar 24, 05:28

Details

Summary

When the CARP device becomes active, the upstream router needs to be notified
of the address MAC of the device where to route traffic for the shared address.

For dedicated servers, the router is managed by our provider, not by us.
The first implementation is for hyper-001, hosted at OVH. An API is available
to update the MAC address.

We develop a Python script solution to trigger the API. Credentials are stored
in Vault.

References:

Ref T2276

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Skipped
Unit
No Test Coverage
Branch
install-ovh-secretsmith
Build Status
Buildable 6539
Build 6823: arc lint + arc unit

Event Timeline

yousra requested review of this revision.Mon, Mar 23, 20:37
yousra created this revision.
roles/router/carp/init.sls
26

We need a way to put 3.11 in a map to avoid to hunt version every time we update python.

Fix :

1.Add map to avoid to hunt version every time we update python.

2.Add installation of pip (is not installed on the routers).

ovh and secretsmith are now installed on the router-002 and router-003.

dereckson retitled this revision from Install ovh and secretsmith via Salt to Install dependencies to register MAC address to ISP.Tue, Mar 24, 13:42
dereckson edited the summary of this revision. (Show Details)
dereckson edited the test plan for this revision. (Show Details)
yousra edited the summary of this revision. (Show Details)

Fix :

  1. Install pip using the OS-specific package prefix from map.jinja.
  1. Use python.get_site_packages_directory() to avoid relying on Salt Python version detection, as it may differ from the system.
  1. Rename python_pip state to carp_switch_pip to better reflect its purpose for the CARP switch automation.