Page MenuHomeDevCentral

Fix IPv4 alias not applied on Ysul
Needs ReviewPublic

Authored by yousra on Fri, Apr 24, 09:36.

Details

Reviewers
dereckson
Duranzed
Maniphest Tasks
T2315: Reprovision Ysul
Summary

Ysul has two public IPv4 addresses:

  • 163.172.49.16
  • 212.83.187.132 as an alias, which is the canonical public IPv4 address

However, we noticed that the alias was not actually applied on the server after applying roles/core/network.

The pillar nodes.sls was correct, but the Jinja syntax used to read the aliases was wrong.

The template used interface.get("ipv4.aliases", []), which looks for a key literally named ipv4.aliases.

It should instead read the aliases with:

interface.ipv4.get("aliases", [])

After this change, the alias is correctly generated in /etc/rc.conf.d/netif/ipv4_public and aplied on the server.

Ref T2315

Test Plan
  • salt 'ysul' state.apply roles/core/network
  • Restart netif and routing
  • Verify that the alias 212.83.187.132 was applied on ysul

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Skipped
Unit
No Test Coverage
Branch
alias-ysul-issue
Build Status
Buildable 6671
Build 6959: arc lint + arc unit

Event Timeline

yousra requested review of this revision.Fri, Apr 24, 09:36
yousra created this revision.