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 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.
Update bandwidth usage at top level cell.
Get a compute node by ID in a specific cell.
Return list of compute nodes in all cells.
Return compute node stats totals from all cells.
Delete consoleauth tokens for an instance in API cells.
Return cell information for our neighbor cells.
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.
Have the driver start its consumers 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.
Proxy an RPC message as-is to a manager.
Call a compute API method in a specific cell.
Pick a cell (possibly ourselves) to build new instance(s) and forward the request accordingly.
Return services in this cell and in all child cells.
Return a service entry for a compute host in a certain 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.
Validate console port with child cell compute node.