We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c1ae82 commit 3eb39c0Copy full SHA for 3eb39c0
1 file changed
controller/scheduler/coreos.py
@@ -148,6 +148,7 @@ def start(self, name):
148
self._wait_for_container(name)
149
150
def _wait_for_container(self, name):
151
+ failures = 0
152
# we bump to 20 minutes here to match the timeout on the router and in the app unit files
153
for _ in range(1200):
154
states = self._get_state(name)
@@ -157,7 +158,10 @@ def _wait_for_container(self, name):
157
158
if subState == 'running' or subState == 'exited':
159
break
160
elif subState == 'failed':
- raise RuntimeError('container failed to start')
161
+ # FIXME: fleet unit state reports failed when containers are fine
162
+ failures += 1
163
+ if failures == 10:
164
+ raise RuntimeError('container failed to start')
165
time.sleep(1)
166
else:
167
raise RuntimeError('container timeout on start')
0 commit comments