Revision b459a848 lib/backend.py
b/lib/backend.py | ||
---|---|---|
28 | 28 |
|
29 | 29 |
""" |
30 | 30 |
|
31 |
# pylint: disable-msg=E1103
|
|
31 |
# pylint: disable=E1103 |
|
32 | 32 |
|
33 | 33 |
# E1103: %s %r has no %r member (but some types could not be |
34 | 34 |
# inferred), because the _TryOSFromDisk returns either (True, os_obj) |
... | ... | |
412 | 412 |
utils.RemoveFile(constants.CONFD_HMAC_KEY) |
413 | 413 |
utils.RemoveFile(constants.RAPI_CERT_FILE) |
414 | 414 |
utils.RemoveFile(constants.NODED_CERT_FILE) |
415 |
except: # pylint: disable-msg=W0702
|
|
415 |
except: # pylint: disable=W0702 |
|
416 | 416 |
logging.exception("Error while removing cluster secrets") |
417 | 417 |
|
418 | 418 |
result = utils.RunCmd([constants.DAEMON_UTIL, "stop", constants.CONFD]) |
... | ... | |
1340 | 1340 |
|
1341 | 1341 |
""" |
1342 | 1342 |
# TODO: remove the obsolete "size" argument |
1343 |
# pylint: disable-msg=W0613
|
|
1343 |
# pylint: disable=W0613 |
|
1344 | 1344 |
clist = [] |
1345 | 1345 |
if disk.children: |
1346 | 1346 |
for child in disk.children: |
... | ... | |
1352 | 1352 |
# we need the children open in case the device itself has to |
1353 | 1353 |
# be assembled |
1354 | 1354 |
try: |
1355 |
# pylint: disable-msg=E1103
|
|
1355 |
# pylint: disable=E1103 |
|
1356 | 1356 |
crdev.Open() |
1357 | 1357 |
except errors.BlockDeviceError, err: |
1358 | 1358 |
_Fail("Can't make child '%s' read-write: %s", child, err) |
... | ... | |
1568 | 1568 |
try: |
1569 | 1569 |
result = _RecursiveAssembleBD(disk, owner, as_primary) |
1570 | 1570 |
if isinstance(result, bdev.BlockDev): |
1571 |
# pylint: disable-msg=E1103
|
|
1571 |
# pylint: disable=E1103 |
|
1572 | 1572 |
result = result.dev_path |
1573 | 1573 |
if as_primary: |
1574 | 1574 |
_SymlinkBlockDev(owner, result, idx) |
... | ... | |
3322 | 3322 |
# ensure the child is running on ram |
3323 | 3323 |
try: |
3324 | 3324 |
utils.Mlockall() |
3325 |
except Exception: # pylint: disable-msg=W0703
|
|
3325 |
except Exception: # pylint: disable=W0703 |
|
3326 | 3326 |
pass |
3327 | 3327 |
time.sleep(5) |
3328 | 3328 |
hyper.PowercycleNode() |
... | ... | |
3347 | 3347 |
hooks_base_dir = constants.HOOKS_BASE_DIR |
3348 | 3348 |
# yeah, _BASE_DIR is not valid for attributes, we use it like a |
3349 | 3349 |
# constant |
3350 |
self._BASE_DIR = hooks_base_dir # pylint: disable-msg=C0103
|
|
3350 |
self._BASE_DIR = hooks_base_dir # pylint: disable=C0103 |
|
3351 | 3351 |
|
3352 | 3352 |
def RunHooks(self, hpath, phase, env): |
3353 | 3353 |
"""Run the scripts in the hooks directory. |
Also available in: Unified diff