Revision 6c00d19a lib/backend.py
b/lib/backend.py | ||
---|---|---|
240 | 240 |
@rtype: None |
241 | 241 |
|
242 | 242 |
""" |
243 |
# TODO: log and report back to the caller the error failures; we |
|
244 |
# need to decide in which case we fail the RPC for this |
|
243 | 245 |
master_netdev, master_ip, _ = GetMasterInfo() |
244 | 246 |
if not master_netdev: |
245 |
return False |
|
247 |
return False, "Cluster configuration incomplete, cannot read ssconf files"
|
|
246 | 248 |
|
247 | 249 |
result = utils.RunCmd(["ip", "address", "del", "%s/32" % master_ip, |
248 | 250 |
"dev", master_netdev]) |
... | ... | |
255 | 257 |
for daemon in constants.RAPI_PID, constants.MASTERD_PID: |
256 | 258 |
utils.KillProcess(utils.ReadPidFile(utils.DaemonPidFileName(daemon))) |
257 | 259 |
|
258 |
return True |
|
260 |
return True, None
|
|
259 | 261 |
|
260 | 262 |
|
261 | 263 |
def AddNode(dsa, dsapub, rsa, rsapub, sshkey, sshpub): |
Also available in: Unified diff