Cells Service Manager
Bases: nova.manager.Manager
The nova-cells manager class. This class defines RPC methods that the local cell may call. This class is NOT used for messages coming from other cells. That communication is driver-specific.
Communication to other cells happens via the nova.cells.messaging module. The MessageRunner from that module will handle routing the message to the correct cell via the communications driver. Most methods below create ‘targeted’ (where we want to route a message to a specific cell) or ‘broadcast’ (where we want a message to go to multiple cells) messages.
Scheduling requests get passed to the scheduler class.
Backup an instance in its cell.
BDM was destroyed for instance in this cell. Tell the API cells.
BDM was created/updated in this cell. Tell the API cells.
Pick a cell (possibly ourselves) to build new instance(s) and forward the request accordingly.
Update bandwidth usage at top level cell.
Return list of compute nodes in all cells.
Return compute node stats totals from all cells.
Confirm a resize for an instance in its cell.
Delete consoleauth tokens for an instance in API cells.
Return cell information for our neighbor cells.
Return host uptime for a compute host in a certain cell
Parameters: | host_name – fully qualified hostname. It should be in format of parent!child@host_id |
---|
Fetch migrations applying the filters.
Inject networking for an instance in its cell.
This is used by API cell when it didn’t know what cell an instance was in, but the instance was requested to be deleted or soft_deleted. So, we’ll broadcast this everywhere.
Destroy an instance at the top level cell.
Create an instance fault at the top level cell.
Update an instance at the top level cell.
Update an instance in its cell.
Live migrate an instance in its cell.
Pause an instance in its cell.
Have the driver start its servers for inter-cell communication. Also ask our child cells for their capacities and capabilities so we get them more quickly than just waiting for the next periodic update. Receiving the updates from the children will cause us to update our parents. If we don’t have any children, just update our parents immediately.
Reboot an instance in its cell.
Reset networking for an instance in its cell.
Resize an instance in its cell.
Resume an instance in its cell.
Revert a resize for an instance in its cell.
Call a compute API method in a specific cell.
Deletes the specified service.
Return services in this cell and in all child cells.
Used to enable/disable a service. For compute services, setting to disabled stops new builds arriving on that host.
Parameters: |
|
---|---|
Returns: | the service reference |
Snapshot an instance in its cell.
Soft-delete an instance in its cell.
Start an instance in its cell.
Stop an instance in its cell.
Suspend an instance in its cell.
Force a sync of all instances, potentially by project_id, and potentially since a certain date/time.
Get task logs from the DB from all cells or a particular cell.
If ‘host’ is not None, host will be of the format 'cell!name@host‘, with '@host‘ being optional. The query will be directed to the appropriate cell and return all task logs, or task logs matching the host if specified.
‘state’ also may be None. If it’s not, filter by the state as well.
Delete an instance in its cell.
Unpause an instance in its cell.
Validate console port with child cell compute node.