Page MenuHomeDevCentral

Synchronize nodes pillar with NetBox information
ClosedPublic

Authored by yousra on Sun, Feb 22, 20:03.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 13, 18:41
Unknown Object (File)
Fri, Mar 13, 18:26
Unknown Object (File)
Fri, Mar 13, 18:20
Unknown Object (File)
Fri, Mar 13, 17:43
Unknown Object (File)
Fri, Mar 13, 17:37
Unknown Object (File)
Fri, Mar 13, 17:30
Unknown Object (File)
Fri, Mar 13, 17:01
Unknown Object (File)
Fri, Mar 13, 16:57
Subscribers

Details

Summary

Configuration drifted between NetBox and the nodes pillar.

By using pillarize.py (D2790) to compare generated pillar data with nodes.sls,
this change aligned both configurations.

This change also integrates network configuration for new routers.

Ref T2203

Test Plan

The new network configuration has been successfully deployed on all machines.

All errors that occurred during the deployment were resolved, except for one documented in T2269.

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Skipped
Unit
No Test Coverage
Branch
pillar-nodes
Build Status
Buildable 6437
Build 6721: arc lint + arc unit

Event Timeline

yousra requested review of this revision.Sun, Feb 22, 20:03
yousra created this revision.

Fix priority for CARP in NetBox, and then in the file nodes.sls

Best practice:

  • MASTER router: advskew 0 (effective priority 255)
  • BACKUP router: advskew 100 (effective priority 155)

Use True and False (capitalized) to follow Salt's Python boolean conventions.

Add the flag ipv6_dhcp_duid for windriver

Hostnames should always be written in lowercase and the node name must match the hostname.

This comment was removed by yousra.

Adjusted the ordering of entries (and the content) in nodes.sls to maintain consistency with the generated pillar structure and ensure deterministic output.

Rename network interfaces on selected machines to standardize the naming convention across all hosts, using intranought and public.

Add canonical_public_ipv4 for Ysul

When I was trying to do salt 'router-001' state.apply roles/core/network, an error
occurs saying that canonical_public_ipv4 is missing, so the router-001 has it but not
the gre destination Ysul.

Add some changes : some flags where missing

dereckson requested changes to this revision.Wed, Mar 4, 07:37

Virtually OK, but one critical flag missing from pillarize for ongoing IPv6 connectivity

pillar/nodes/nodes.sls
351–352

That one really need hello_ipv6_ovh, we should understand why here pillarize.py doesn't add it.

This revision now requires changes to proceed.Wed, Mar 4, 07:37

The flag hello_ipv6_ovh was missing in web-001, because in netbox the ipv6 was in /56 not in /64.

No more VIP for intranought, we will see in the futur when it will be necessary.

Add the gateway public for router-002 and router-003

This revision is now accepted and ready to land.Thu, Mar 12, 22:01
dereckson retitled this revision from Synchronize nodes.sls with NetBox pillar to Synchronize nodes pillar with NetBox information.Thu, Mar 12, 22:05
dereckson edited the summary of this revision. (Show Details)
dereckson edited the test plan for this revision. (Show Details)