Revision e22af31d
b/daemons/ganeti-confd | ||
---|---|---|
147 | 147 |
# new watch. This is not a race condition, though, since we're anyway |
148 | 148 |
# going to realod the file after setting up the new watch. |
149 | 149 |
self.callback(False) |
150 |
except errors.ConfdFatalError, err: |
|
151 |
logging.critical("Critical error, shutting down: %s", err) |
|
152 |
sys.exit(constants.EXIT_FAILURE) |
|
153 | 150 |
except: |
154 | 151 |
# we need to catch any exception here, log it, but proceed, because even |
155 | 152 |
# if we failed handling a single request, we still want the confd to |
... | ... | |
165 | 162 |
|
166 | 163 |
try: |
167 | 164 |
self.callback(True) |
168 |
except errors.ConfdFatalError, err: |
|
169 |
logging.critical("Critical error, shutting down: %s", err) |
|
170 |
sys.exit(constants.EXIT_FAILURE) |
|
171 | 165 |
except: |
172 | 166 |
# we need to catch any exception here, log it, but proceed, because even |
173 | 167 |
# if we failed handling a single request, we still want the confd to |
b/lib/errors.py | ||
---|---|---|
305 | 305 |
""" |
306 | 306 |
|
307 | 307 |
|
308 |
class ConfdFatalError(GenericError): |
|
309 |
"""A fatal failure in Ganeti confd. |
|
310 |
|
|
311 |
Events that compromise the ability of confd to proceed further. |
|
312 |
(for example: inability to load the config file) |
|
313 |
|
|
314 |
""" |
|
315 |
|
|
316 |
|
|
317 | 308 |
class ConfdRequestError(GenericError): |
318 | 309 |
"""A request error in Ganeti confd. |
319 | 310 |
|
Also available in: Unified diff