Page MenuHomeDevCentral

Update GRE tunnels syslog configuration
Needs ReviewPublic

Authored by yousra on Tue, May 5, 12:52.
Tags
None
Referenced Files
F28094161: D4101.diff
Sun, May 10, 00:17
F28079897: D4101.id10739.diff
Sat, May 9, 22:31
F28068892: D4101.diff
Sat, May 9, 21:12
F28009351: D4101.id10740.diff
Sat, May 9, 13:42
F28001399: D4101.diff
Sat, May 9, 12:42
F27989149: D4101.id10737.diff
Sat, May 9, 11:12
Unknown Object (File)
Sat, May 9, 04:29
Unknown Object (File)
Sat, May 9, 04:29

Details

Summary

D4097 was not complete, so this review ensures that the log file works properly.

Ref T2322

Test Plan
  • logger -t gre-tunnels "hello after salt"
  • tail -f /var/log/gre-tunnels.log

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Skipped
Unit
No Test Coverage
Branch
log-gre-udpate
Build Status
Buildable 6695
Build 6983: arc lint + arc unit

Event Timeline

yousra requested review of this revision.Tue, May 5, 12:52
yousra created this revision.
yousra edited the test plan for this revision. (Show Details)
yousra retitled this revision from Update file log for gre tunnels creation script to Update syslog file for gre-tunnne logs.

change : the file log should only be added on routers and windriver/ysul

Update roles/router/carp/init.sls so its /etc/syslog.conf replacement logic is consistent with GRE logging.

This avoids CARP and GRE logging states overwriting each other when both tags are configured.

dereckson retitled this revision from Update syslog file for gre-tunnne logs to Update GRE tunnels syslog configuration.Thu, May 7, 16:07

Tested?

Test result :

`
[duranzed@windriver ~]$ logger -t gre-tunnels "hello after salt"
[duranzed@windriver ~]$ tail -f /var/log/gre-tunnels.log
May  6 11:48:59 windriver gre-tunnels[83870]: Configuring the tunnel on windriver
May  6 11:48:59 windriver gre-tunnels[83875]: Destroying gre1
May  6 11:48:59 windriver gre-tunnels[83883]: Configuring gre1 �M-^FM-^R windriver_to_primary_router
May  6 11:48:59 windriver gre-tunnels[83906]: Tunnel configuration completed
May  6 11:52:30 windriver gre-tunnels[84072]: CARP PRIMARY ROUTER detected: router-003
May  6 11:52:30 windriver gre-tunnels[84077]: Configuring the tunnel on windriver
May  6 11:52:30 windriver gre-tunnels[84082]: Destroying gre1
May  6 11:52:30 windriver gre-tunnels[84090]: Configuring gre1 �M-^FM-^R windriver_to_primary_router
May  6 11:52:30 windriver gre-tunnels[84113]: Tunnel configuration completed
May  8 18:57:35 windriver gre-tunnels[93086]: hello after salt
`