class NodeRequestHandler(http.server.HttpServerHandler):
The server implementation.
This class holds all methods exposed over the RPC interface.
Class Method | perspective |
Run a light verify sequence on this node. |
Static Method | perspective |
Prepare the node to accept an instance. |
Static Method | perspective |
Query information about all instances. |
Static Method | perspective |
Query the list of block devices |
Static Method | perspective |
Add a child to a mirror device. |
Static Method | perspective |
Assemble a block device. |
Static Method | perspective |
Closes the given block devices. |
Static Method | perspective |
Copy data from source block device to target. |
Static Method | perspective |
Create a block device. |
Static Method | perspective |
Expose the FindBlockDevice functionality for a disk. |
Static Method | perspective |
Compute the sizes of the given block devices. |
Static Method | perspective |
Return the mirror status for a list of disks. |
Static Method | perspective |
Return the mirror status for a list of disks. |
Static Method | perspective |
Grow a stack of devices. |
Static Method | perspective |
Image a block device. |
Static Method | perspective |
Opens the given block devices. |
Static Method | perspective |
Pause/resume sync of a block device. |
Static Method | perspective |
Remove a block device. |
Static Method | perspective |
Remove a child from a mirror device. |
Static Method | perspective |
Remove a block device. |
Static Method | perspective |
Sets metadata information on the given block device. |
Static Method | perspective |
Shutdown a block device. |
Static Method | perspective |
Create a snapshot device. |
Static Method | perspective |
Wipe a block device. |
Static Method | perspective |
Check if all bridges given exist on this node. |
Static Method | perspective |
Attaches the network connection of drbd disks. |
Static Method | perspective |
Disconnects the network connection of drbd disks. |
Static Method | perspective |
Query drbd helper. |
Static Method | perspective |
Checks if the drbd devices need activation |
Static Method | perspective |
Wait until DRBD disks are synched. |
Static Method | perspective |
Modify a node entry in /etc/hosts. |
Static Method | perspective |
Query information about an existing export on this node. |
Static Method | perspective |
List the available exports on this node. |
Static Method | perspective |
Remove an export. |
Static Method | perspective |
Starts an export daemon. |
Static Method | perspective |
Query detailed information about existing extstorage providers. |
Static Method | perspective |
Create the file storage directory. |
Static Method | perspective |
Remove the file storage directory. |
Static Method | perspective |
Rename the file storage directory. |
Static Method | perspective |
Expose the finalize export functionality. |
Static Method | perspective |
Get info on whether a file exists and its properties. |
Static Method | perspective |
Get watcher pause end. |
Static Method | perspective |
Run hook scripts. |
Static Method | perspective |
Hotplugs device to a running instance. |
Static Method | perspective |
Checks if hotplug is supported. |
Static Method | perspective |
Validate the hypervisor parameters. |
Static Method | perspective |
Run an iallocator script. |
Static Method | perspective |
Aborts an import or export. |
Static Method | perspective |
Cleans up after an import or export. |
Static Method | perspective |
Retrieves the status of an import or export daemon. |
Static Method | perspective |
Starts an import daemon. |
Static Method | perspective |
Modify instance runtime memory. |
Static Method | perspective |
Query information on how to get console access to instances |
Static Method | perspective |
Finalize the instance migration on the destination node. |
Static Method | perspective |
Finalize the instance migration on the source node. |
Static Method | perspective |
Reports migration status. |
Static Method | perspective |
Query instance information. |
Static Method | perspective |
Query the list of running instances. |
Static Method | perspective |
Modify instance metadata. |
Static Method | perspective |
Query whether the specified instance can be migrated. |
Static Method | perspective |
Migrates an instance. |
Static Method | perspective |
Install an OS on a given instance. |
Static Method | perspective |
Reboot an instance. |
Static Method | perspective |
Runs the OS rename script for an instance. |
Static Method | perspective |
Shutdown an instance. |
Static Method | perspective |
Start an instance. |
Static Method | perspective |
Purge job queue. |
Static Method | perspective |
Rename a job queue file. |
Static Method | perspective |
Set job queue's drain flag. |
Static Method | perspective |
Update job queue. |
Static Method | perspective |
Query the list of logical volumes in a given volume group. |
Static Method | perspective |
Returns the master node name. |
Static Method | perspective |
Gather information about an instance to be migrated. |
Static Method | perspective |
Activate the master IP on this node. |
Static Method | perspective |
Change the master IP netmask. |
Static Method | perspective |
Sets up OpenvSwitch on the node. |
Static Method | perspective |
Gets the node's public crypto tokens. |
Static Method | perspective |
Deactivate the master IP on this node. |
Static Method | perspective |
Demote a node from the master candidate role. |
Static Method | perspective |
Ensure daemon is running. |
Static Method | perspective |
Checks if a node has the given ip address. |
Static Method | perspective |
Query node information. |
Static Method | perspective |
Cleanup after leaving a cluster. |
Static Method | perspective |
Tries to powercycle the node. |
Static Method | perspective |
Distributes a new node's SSH key if authorized. |
Static Method | perspective |
Removes a node's SSH key from the other nodes' SSH files. |
Static Method | perspective |
Generates a new root SSH key pair on the node. |
Static Method | perspective |
Start the master daemons on this node. |
Static Method | perspective |
Stops master daemons on this node. |
Static Method | perspective |
Run a verify sequence on this node. |
Static Method | perspective |
Query the list of all logical volume groups. |
Static Method | perspective |
Query detailed information about existing OSes. |
Static Method | perspective |
Export an OS definition into an instance specific package. |
Static Method | perspective |
Run a given OS' validation routine. |
Static Method | perspective |
Runs a restricted command. |
Static Method | perspective |
Runs oob on node. |
Static Method | perspective |
Set watcher pause. |
Static Method | perspective |
Execute an operation on a storage unit. |
Static Method | perspective |
Get list of storage units. |
Static Method | perspective |
Modify a storage unit. |
Static Method | perspective |
Run test delay. |
Static Method | perspective |
Upload a file. |
Static Method | perspective |
Upload a file. |
Static Method | perspective |
Query version information. |
Static Method | perspective |
Query the list of volume groups. |
Static Method | perspective |
Write ssconf files. |
Static Method | perspective |
Creates a new X509 certificate for SSL/TLS. |
Static Method | perspective |
Removes a X509 certificate. |
Method | __init__ |
Undocumented |
Method |
|
Handle a request. |
Instance Variable | noded |
Undocumented |
Inherited from HttpServerHandler
:
Static Method |
|
Formats the body of an error message. |
Method |
|
Called before handling a request. |
Run a light verify sequence on this node.
This call is meant to perform a less strict verification of the node in certain situations. Right now, it is invoked only when a node is just about to be added to a cluster, and even then, it performs the same checks as perspective_node_verify
.
Add a child to a mirror device.
Note: this is only valid for mirror devices. It's the caller's duty to send a correct disk, otherwise we raise an error.
Remove a child from a mirror device.
This is only valid for mirror devices, of course. It's the callers duty to send a correct disk, otherwise we raise an error.
Create a snapshot device.
Note that this is only valid for LVM and ExtStorage disks, if we get passed something else we raise an exception. The snapshot device can be remove by calling the generic block device remove call.
Attaches the network connection of drbd disks.
Note that this is only valid for drbd disks, so the members of the disk list must all be drbd devices.
Disconnects the network connection of drbd disks.
Note that this is only valid for drbd disks, so the members of the disk list must all be drbd devices.
Checks if the drbd devices need activation
Note that this is only valid for drbd disks, so the members of the disk list must all be drbd devices.
Wait until DRBD disks are synched.
Note that this is only valid for drbd disks, so the members of the disk list must all be drbd devices.
Query information about an existing export on this node.
The given path may not contain an export, in which case we return None.
List the available exports on this node.
Note that as opposed to export_info, which may query data about an export in any path, this only queries the standard Ganeti path (pathutils.EXPORT_DIR).
Upload a file.
Note that the backend implementation imposes strict rules on which files are accepted.
Upload a file.
Note that the backend implementation imposes strict rules on which files are accepted.