-
Notifications
You must be signed in to change notification settings - Fork 462
OCPBUGS-61487: Add timer for Azure VIP routes reconciliation #5455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| name: openshift-azure-routes.timer | ||
| enabled: true | ||
| contents: | | ||
| [Unit] | ||
| Description=Periodic reconciliation of Azure VIP routes | ||
| [Timer] | ||
| OnBootSec=30 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmm does it mean it will run 30sec after bootup as a one time thing? or this is every 30seconds like you said in PR description.. cause isn't it too much if we act on the filechange and run this every 30seconds?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So it gets triggered the first time 30 seconds after boot ( |
||
| OnUnitActiveSec=30 | ||
| [Install] | ||
| WantedBy=timers.target | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,7 @@ contents: | | |
| ExecStart=/bin/bash /opt/libexec/openshift-gcp-routes.sh start | ||
| ExecStopPost=/bin/bash /opt/libexec/openshift-gcp-routes.sh cleanup | ||
| User=root | ||
| SyslogIdentifier=openshift-gcp-routes | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nice, didn't know about this setting. |
||
| RestartSec=30 | ||
| Restart=always | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reason I had added sooo many echo statements was because script was soo raw and we were directly touching the DBs that I was super worried what command we are transaction for history purposes....plus I wasn't a bash expert really :) so wanted to be extra careful with each step I was doing LOL
But I think its been some years now, which hopefully means this is stable, so I'm ok to remove these statements and have less logs. - but also OK with what you did, which is consolidate them into a single line.
systemd logging it every 30 seconds is going to be annoying a bit