Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
7f1989dc
Commit
7f1989dc
authored
Mar 03, 2014
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding a wait loop to ec2_elb for the initial lb state when registering
Fixes #5305
parent
a8a9b6c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
+11
-1
library/cloud/ec2_elb
+11
-1
No files found.
library/cloud/ec2_elb
View file @
7f1989dc
...
...
@@ -157,7 +157,17 @@ class ElbManager:
to report the instance in-service"""
for
lb
in
self
.
lbs
:
if
wait
:
initial_state
=
self
.
_get_instance_health
(
lb
)
tries
=
1
while
True
:
initial_state
=
self
.
_get_instance_health
(
lb
)
if
initial_state
:
break
time
.
sleep
(
1
)
tries
+=
1
# FIXME: this should be configurable, but since it didn't
# wait at all before this is at least better
if
tries
>
10
:
self
.
module
.
fail_json
(
msg
=
'failed to find the initial state of the load balancer'
)
if
enable_availability_zone
:
self
.
_enable_availailability_zone
(
lb
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment