Skip to content
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

B #117: VR: Wait for one-context to be fully started #118

Merged
merged 1 commit into from
Jun 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion appliances/VRouter/Failover/execute.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,19 @@ def up

load_env

# Give one-context 30 seconds to fully start..
6.times do
bash 'rc-service one-context status', terminate: false
break
rescue RuntimeError
sleep 5
end.then do |result|
unless result.nil?
msg :error, 'one-context not ready!'
return
end
end

# Give keepalived 30 seconds to setup VIPs..
6.times do
bash 'rc-service keepalived ready', terminate: false
Expand All @@ -139,7 +152,7 @@ def up
sleep 5
end.then do |result|
unless result.nil?
msg :error, 'Keepalived not ready!'
msg :error, 'keepalived not ready!'
return
end
end
Expand Down