Revision 5bbd3f7f lib/backend.py
b/lib/backend.py | ||
---|---|---|
308 | 308 |
|
309 | 309 |
|
310 | 310 |
def GetNodeInfo(vgname, hypervisor_type): |
311 |
"""Gives back a hash with different informations about the node.
|
|
311 |
"""Gives back a hash with different information about the node. |
|
312 | 312 |
|
313 | 313 |
@type vgname: C{string} |
314 | 314 |
@param vgname: the name of the volume group to ask for disk space information |
... | ... | |
581 | 581 |
|
582 | 582 |
|
583 | 583 |
def GetInstanceInfo(instance, hname): |
584 |
"""Gives back the informations about an instance as a dictionary.
|
|
584 |
"""Gives back the information about an instance as a dictionary. |
|
585 | 585 |
|
586 | 586 |
@type instance: string |
587 | 587 |
@param instance: the instance name |
... | ... | |
746 | 746 |
|
747 | 747 |
|
748 | 748 |
def _GetVGInfo(vg_name): |
749 |
"""Get informations about the volume group.
|
|
749 |
"""Get information about the volume group. |
|
750 | 750 |
|
751 | 751 |
@type vg_name: str |
752 | 752 |
@param vg_name: the volume group which we query |
... | ... | |
1032 | 1032 |
msg = "Failed to accept instance" |
1033 | 1033 |
logging.exception(msg) |
1034 | 1034 |
return (False, '%s: %s' % (msg, err)) |
1035 |
return (True, "Accept successfull")
|
|
1035 |
return (True, "Accept successful") |
|
1036 | 1036 |
|
1037 | 1037 |
|
1038 | 1038 |
def FinalizeMigration(instance, info, success): |
... | ... | |
1080 | 1080 |
msg = "Failed to migrate instance" |
1081 | 1081 |
logging.exception(msg) |
1082 | 1082 |
return (False, "%s: %s" % (msg, err)) |
1083 |
return (True, "Migration successfull")
|
|
1083 |
return (True, "Migration successful") |
|
1084 | 1084 |
|
1085 | 1085 |
|
1086 | 1086 |
def BlockdevCreate(disk, size, owner, on_primary, info): |
... | ... | |
1273 | 1273 |
def BlockdevShutdown(disk): |
1274 | 1274 |
"""Shut down a block device. |
1275 | 1275 |
|
1276 |
First, if the device is assembled (Attach() is successfull), then
|
|
1276 |
First, if the device is assembled (Attach() is successful), then |
|
1277 | 1277 |
the device is shutdown. Then the children of the device are |
1278 | 1278 |
shutdown. |
1279 | 1279 |
|
... | ... | |
1391 | 1391 |
def _RecursiveFindBD(disk): |
1392 | 1392 |
"""Check if a device is activated. |
1393 | 1393 |
|
1394 |
If so, return informations about the real device.
|
|
1394 |
If so, return information about the real device. |
|
1395 | 1395 |
|
1396 | 1396 |
@type disk: L{objects.Disk} |
1397 | 1397 |
@param disk: the disk object we need to find |
... | ... | |
1411 | 1411 |
def BlockdevFind(disk): |
1412 | 1412 |
"""Check if a device is activated. |
1413 | 1413 |
|
1414 |
If it is, return informations about the real device.
|
|
1414 |
If it is, return information about the real device. |
|
1415 | 1415 |
|
1416 | 1416 |
@type disk: L{objects.Disk} |
1417 | 1417 |
@param disk: the disk to find |
... | ... | |
2094 | 2094 |
@param file_storage_dir: the directory we should cleanup |
2095 | 2095 |
@rtype: tuple (success,) |
2096 | 2096 |
@return: tuple of one element, C{success}, denoting |
2097 |
whether the operation was successfull
|
|
2097 |
whether the operation was successful |
|
2098 | 2098 |
|
2099 | 2099 |
""" |
2100 | 2100 |
file_storage_dir = _TransformFileStorageDir(file_storage_dir) |
Also available in: Unified diff