Package ganeti :: Package server :: Module noded :: Class NodeRequestHandler
[hide private]
[frames] | no frames]

Class NodeRequestHandler

source code


The server implementation.

This class holds all methods exposed over the RPC interface.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
HandleRequest(self, req)
Handle a request.
source code

Inherited from http.server.HttpServerHandler: PreHandleRequest

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
perspective_node_verify_light(cls, params)
Run a light verify sequence on this node.
source code
Static Methods [hide private]
 
perspective_blockdev_create(params)
Create a block device.
source code
 
perspective_blockdev_convert(params)
Copy data from source block device to target.
source code
 
perspective_blockdev_pause_resume_sync(params)
Pause/resume sync of a block device.
source code
 
perspective_blockdev_image(params)
Image a block device.
source code
 
perspective_blockdev_wipe(params)
Wipe a block device.
source code
 
perspective_blockdev_remove(params)
Remove a block device.
source code
 
perspective_blockdev_rename(params)
Remove a block device.
source code
 
perspective_blockdev_assemble(params)
Assemble a block device.
source code
 
perspective_blockdev_shutdown(params)
Shutdown a block device.
source code
 
perspective_blockdev_addchildren(params)
Add a child to a mirror device.
source code
 
perspective_blockdev_removechildren(params)
Remove a child from a mirror device.
source code
 
perspective_blockdev_getmirrorstatus(params)
Return the mirror status for a list of disks.
source code
 
perspective_blockdev_getmirrorstatus_multi(params)
Return the mirror status for a list of disks.
source code
 
perspective_blockdev_find(params)
Expose the FindBlockDevice functionality for a disk.
source code
 
perspective_blockdev_snapshot(params)
Create a snapshot device.
source code
 
perspective_blockdev_grow(params)
Grow a stack of devices.
source code
 
perspective_blockdev_close(params)
Closes the given block devices.
source code
 
perspective_blockdev_open(params)
Opens the given block devices.
source code
 
perspective_blockdev_getdimensions(params)
Compute the sizes of the given block devices.
source code
 
perspective_blockdev_setinfo(params)
Sets metadata information on the given block device.
source code
 
perspective_drbd_disconnect_net(params)
Disconnects the network connection of drbd disks.
source code
 
perspective_drbd_attach_net(params)
Attaches the network connection of drbd disks.
source code
 
perspective_drbd_wait_sync(params)
Wait until DRBD disks are synched.
source code
 
perspective_drbd_needs_activation(params)
Checks if the drbd devices need activation
source code
 
perspective_drbd_helper(_)
Query drbd helper.
source code
 
perspective_finalize_export(params)
Expose the finalize export functionality.
source code
 
perspective_export_info(params)
Query information about an existing export on this node.
source code
 
perspective_export_list(params)
List the available exports on this node.
source code
 
perspective_export_remove(params)
Remove an export.
source code
 
perspective_bdev_sizes(params)
Query the list of block devices
source code
 
perspective_lv_list(params)
Query the list of logical volumes in a given volume group.
source code
 
perspective_vg_list(params)
Query the list of volume groups.
source code
 
perspective_storage_list(params)
Get list of storage units.
source code
 
perspective_storage_modify(params)
Modify a storage unit.
source code
 
perspective_storage_execute(params)
Execute an operation on a storage unit.
source code
 
perspective_bridges_exist(params)
Check if all bridges given exist on this node.
source code
 
perspective_instance_os_add(params)
Install an OS on a given instance.
source code
 
perspective_instance_run_rename(params)
Runs the OS rename script for an instance.
source code
 
perspective_instance_shutdown(params)
Shutdown an instance.
source code
 
perspective_instance_start(params)
Start an instance.
source code
 
perspective_hotplug_device(params)
Hotplugs device to a running instance.
source code
 
perspective_hotplug_supported(params)
Checks if hotplug is supported.
source code
 
perspective_instance_metadata_modify(params)
Modify instance metadata.
source code
 
perspective_migration_info(params)
Gather information about an instance to be migrated.
source code
 
perspective_accept_instance(params)
Prepare the node to accept an instance.
source code
 
perspective_instance_finalize_migration_dst(params)
Finalize the instance migration on the destination node.
source code
 
perspective_instance_migrate(params)
Migrates an instance.
source code
 
perspective_instance_finalize_migration_src(params)
Finalize the instance migration on the source node.
source code
 
perspective_instance_get_migration_status(params)
Reports migration status.
source code
 
perspective_instance_reboot(params)
Reboot an instance.
source code
 
perspective_instance_balloon_memory(params)
Modify instance runtime memory.
source code
 
perspective_instance_info(params)
Query instance information.
source code
 
perspective_instance_migratable(params)
Query whether the specified instance can be migrated.
source code
 
perspective_all_instances_info(params)
Query information about all instances.
source code
 
perspective_instance_console_info(params)
Query information on how to get console access to instances
source code
 
perspective_instance_list(params)
Query the list of running instances.
source code
 
perspective_node_has_ip_address(params)
Checks if a node has the given ip address.
source code
 
perspective_node_info(params)
Query node information.
source code
 
perspective_etc_hosts_modify(params)
Modify a node entry in /etc/hosts.
source code
 
perspective_node_verify(params)
Run a verify sequence on this node.
source code
 
perspective_node_start_master_daemons(params)
Start the master daemons on this node.
source code
 
perspective_node_activate_master_ip(params)
Activate the master IP on this node.
source code
 
perspective_node_deactivate_master_ip(params)
Deactivate the master IP on this node.
source code
 
perspective_node_stop_master(params)
Stops master daemons on this node.
source code
 
perspective_node_change_master_netmask(params)
Change the master IP netmask.
source code
 
perspective_node_leave_cluster(params)
Cleanup after leaving a cluster.
source code
 
perspective_node_volumes(params)
Query the list of all logical volume groups.
source code
 
perspective_node_demote_from_mc(params)
Demote a node from the master candidate role.
source code
 
perspective_node_powercycle(params)
Tries to powercycle the node.
source code
 
perspective_node_configure_ovs(params)
Sets up OpenvSwitch on the node.
source code
 
perspective_node_crypto_tokens(params)
Gets the node's public crypto tokens.
source code
 
perspective_node_ensure_daemon(params)
Ensure daemon is running.
source code
 
perspective_node_ssh_key_add(params)
Distributes a new node's SSH key if authorized.
source code
 
perspective_node_ssh_keys_renew(params)
Generates a new root SSH key pair on the node.
source code
 
perspective_node_ssh_key_remove(params)
Removes a node's SSH key from the other nodes' SSH files.
source code
 
perspective_version(params)
Query version information.
source code
 
perspective_upload_file(params)
Upload a file.
source code
 
perspective_upload_file_single(params)
Upload a file.
source code
 
perspective_master_node_name(params)
Returns the master node name.
source code
 
perspective_run_oob(params)
Runs oob on node.
source code
 
perspective_restricted_command(params)
Runs a restricted command.
source code
 
perspective_write_ssconf_files(params)
Write ssconf files.
source code
 
perspective_get_watcher_pause(params)
Get watcher pause end.
source code
 
perspective_set_watcher_pause(params)
Set watcher pause.
source code
 
perspective_get_file_info(params)
Get info on whether a file exists and its properties.
source code
 
perspective_os_diagnose(params)
Query detailed information about existing OSes.
source code
 
perspective_os_validate(params)
Run a given OS' validation routine.
source code
 
perspective_os_export(params)
Export an OS definition into an instance specific package.
source code
 
perspective_extstorage_diagnose(params)
Query detailed information about existing extstorage providers.
source code
 
perspective_hooks_runner(params)
Run hook scripts.
source code
 
perspective_iallocator_runner(params)
Run an iallocator script.
source code
 
perspective_test_delay(params)
Run test delay.
source code
 
perspective_file_storage_dir_create(params)
Create the file storage directory.
source code
 
perspective_file_storage_dir_remove(params)
Remove the file storage directory.
source code
 
perspective_file_storage_dir_rename(params)
Rename the file storage directory.
source code
 
perspective_jobqueue_update(params)
Update job queue.
source code
 
perspective_jobqueue_purge(params)
Purge job queue.
source code
 
perspective_jobqueue_rename(params)
Rename a job queue file.
source code
 
perspective_jobqueue_set_drain_flag(params)
Set job queue's drain flag.
source code
 
perspective_hypervisor_validate_params(params)
Validate the hypervisor parameters.
source code
 
perspective_x509_cert_create(params)
Creates a new X509 certificate for SSL/TLS.
source code
 
perspective_x509_cert_remove(params)
Removes a X509 certificate.
source code
 
perspective_import_start(params)
Starts an import daemon.
source code
 
perspective_export_start(params)
Starts an export daemon.
source code
 
perspective_impexp_status(params)
Retrieves the status of an import or export daemon.
source code
 
perspective_impexp_abort(params)
Aborts an import or export.
source code
 
perspective_impexp_cleanup(params)
Cleans up after an import or export.
source code

Inherited from http.server.HttpServerHandler: FormatErrorMessage

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

HandleRequest(self, req)

source code 

Handle a request.

Overrides: http.server.HttpServerHandler.HandleRequest

perspective_blockdev_addchildren(params)
Static Method

source code 

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.

perspective_blockdev_removechildren(params)
Static Method

source code 

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.

perspective_blockdev_find(params)
Static Method

source code 

Expose the FindBlockDevice functionality for a disk.

This will try to find but not activate a disk.

perspective_blockdev_snapshot(params)
Static Method

source code 

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.

perspective_drbd_disconnect_net(params)
Static Method

source code 

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.

perspective_drbd_attach_net(params)
Static Method

source code 

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.

perspective_drbd_wait_sync(params)
Static Method

source code 

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.

perspective_drbd_needs_activation(params)
Static Method

source code 

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.

perspective_export_info(params)
Static Method

source code 

Query information about an existing export on this node.

The given path may not contain an export, in which case we return None.

perspective_export_list(params)
Static Method

source code 

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).

perspective_node_verify_light(cls, params)
Class Method

source code 

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.

perspective_upload_file(params)
Static Method

source code 

Upload a file.

Note that the backend implementation imposes strict rules on which files are accepted.

perspective_upload_file_single(params)
Static Method

source code 

Upload a file.

Note that the backend implementation imposes strict rules on which files are accepted.

perspective_jobqueue_update(params)
Static Method

source code 

Update job queue.

Decorators:
  • @_RequireJobQueueLock

perspective_jobqueue_purge(params)
Static Method

source code 

Purge job queue.

Decorators:
  • @_RequireJobQueueLock

perspective_jobqueue_rename(params)
Static Method

source code 

Rename a job queue file.

Decorators:
  • @_RequireJobQueueLock

perspective_jobqueue_set_drain_flag(params)
Static Method

source code 

Set job queue's drain flag.

Decorators:
  • @_RequireJobQueueLock