"""Build a list of nic information tuples.
This list is suitable to be passed to _BuildInstanceHookEnv or as a return
"""Build a list of nic information tuples.
This list is suitable to be passed to _BuildInstanceHookEnv or as a return
cert = OpenSSL.crypto.load_certificate(OpenSSL.crypto.FILETYPE_PEM,
utils.ReadFile(filename))
except Exception, err: # pylint: disable-msg=W0703
cert = OpenSSL.crypto.load_certificate(OpenSSL.crypto.FILETYPE_PEM,
utils.ReadFile(filename))
except Exception, err: # pylint: disable-msg=W0703
"""Modifies the parameters of a node.
@cvar _F2R: a dictionary from tuples of flags (mc, drained, offline)
"""Modifies the parameters of a node.
@cvar _F2R: a dictionary from tuples of flags (mc, drained, offline)
" node %s" % (file_storage_dir, pnode))
# Note: this needs to be kept in sync with adding of disks in
" node %s" % (file_storage_dir, pnode))
# Note: this needs to be kept in sync with adding of disks in
for idx, device in enumerate(instance.disks):
if to_skip and idx in to_skip:
continue
for idx, device in enumerate(instance.disks):
if to_skip and idx in to_skip:
continue
"""Connect to an instance's console.
This is somewhat special in that it returns the command line that
"""Connect to an instance's console.
This is somewhat special in that it returns the command line that