class documentation
class _DiskImportExportBase(object):
Known subclasses: ganeti.masterd.instance.DiskExport, ganeti.masterd.instance.DiskImport
Undocumented
| Method | __init__ |
Initializes this class. |
| Method | |
Sends SIGTERM to import/export daemon (if still active). |
| Method | |
Checks whether the daemon is connected. |
| Method | |
Checks whether daemon has been started and if not, starts it. |
| Method | |
Checks whether the daemon exited. |
| Method | |
Checks whether the daemon is listening. |
| Method | |
Finalizes this import/export. |
| Method | |
Returns the daemon name. |
| Method | |
Updates daemon status data. |
| Method | |
Sets the parent loop. |
| Constant | MODE |
Undocumented |
| Instance Variable | final |
Undocumented |
| Instance Variable | node |
Undocumented |
| Instance Variable | node |
Undocumented |
| Instance Variable | success |
Undocumented |
| Property | active |
Determines whether this transport is still active. |
| Property | loop |
Returns parent loop. |
| Property | magic |
Returns the magic value for this import/export. |
| Property | progress |
Returns transfer progress information. |
| Property | recent |
Returns the most recent output from the daemon. |
| Method | _ |
Checks whether a progress update should be reported. |
| Method | _ |
Makes the RPC call to finalize this import/export. |
| Method | _ |
Returns timeout to calculate connect timeout. |
| Method | _ |
Transfer is finished or daemon exited. |
| Method | _ |
Internal function for updating status daemon data. |
| Method | _ |
Starts the import/export daemon. |
| Instance Variable | _cbs |
Undocumented |
| Instance Variable | _component |
Undocumented |
| Instance Variable | _daemon |
Undocumented |
| Instance Variable | _daemon |
Undocumented |
| Instance Variable | _instance |
Undocumented |
| Instance Variable | _loop |
Undocumented |
| Instance Variable | _lu |
Undocumented |
| Instance Variable | _opts |
Undocumented |
| Instance Variable | _private |
Undocumented |
| Instance Variable | _timeouts |
Undocumented |
| Instance Variable | _ts |
Undocumented |
| Instance Variable | _ts |
Undocumented |
| Instance Variable | _ts |
Undocumented |
| Instance Variable | _ts |
Undocumented |
| Instance Variable | _ts |
Undocumented |
| Instance Variable | _ts |
Undocumented |
Initializes this class.
| Parameters | |
| lu | Logical unit instance |
| node | Node UUID for import |
opts:objects.ImportExportOptions | Import/export daemon options |
instance:objects.Instance | Instance object |
| component:string | which part of the instance is being imported |
timeouts:ImportExportTimeouts | Timeouts for this import |
cbs:ImportExportCbBase | Callbacks |
| private | Private data for callback functions |
Updates daemon status data.
| Parameters | |
| success:bool | Whether fetching data was successful or not |
data:objects.ImportExportStatus | Daemon status data |
Transfer is finished or daemon exited.
| Parameters | |
| success:bool | Whether the transfer was successful |
| message:string | Error message |
Internal function for updating status daemon data.
| Parameters | |
data:objects.ImportExportStatus | Daemon status data |