Revision d823660a daemons/ganeti-masterd
b/daemons/ganeti-masterd | ||
---|---|---|
27 | 27 |
""" |
28 | 28 |
|
29 | 29 |
|
30 |
import os |
|
31 |
import errno |
|
30 | 32 |
import sys |
31 | 33 |
import SocketServer |
32 | 34 |
import time |
... | ... | |
436 | 438 |
if not CheckAgreement(): |
437 | 439 |
return |
438 | 440 |
|
441 |
try: |
|
442 |
os.mkdir(constants.SOCKET_DIR, constants.SOCKET_DIR_MODE) |
|
443 |
except EnvironmentError, err: |
|
444 |
if err.errno != errno.EEXIST: |
|
445 |
raise errors.GenericError("Cannot create socket directory" |
|
446 |
" '%s': %s" % (constants.SOCKET_DIR, err)) |
|
447 |
|
|
439 | 448 |
master = IOServer(constants.MASTER_SOCKET, ClientRqHandler) |
440 | 449 |
finally: |
441 | 450 |
rpc.Shutdown() |
Also available in: Unified diff