Bases: nepi.resources.linux.node.LinuxNode
Based on the attributes defined by the user, discover the suitable nodes for provision.
Add node to user’s slice after verifing that the node is functioning correctly
Bases: object
Returns detailed information on a given node’s flavour, i.e. its base installation.
This depends on the global PLC settings in the PLC_FLAVOUR area, optionnally overridden by any of the following tags if set on that node: ‘arch’, ‘pldistro’, ‘fcdistro’, ‘deployment’, ‘extensions’
Params:
- node : int or string
- int, Node identifier
- string, Fully qualified hostname
Returns:
- struct
- extensions : array of string, extensions to add to the base install
- fcdistro : string, the fcdistro this node should be based upon
- nodefamily : string, the nodefamily this node should be based upon
- plain : boolean, use plain bootstrapfs image if set (for tests)
Returns an array of structs containing details about nodes. If node_id_or_name is specified and is an array of node identifiers or hostnames, or the filters keyword argument with struct of node attributes, or node attributes by keyword argument, only nodes matching the filter will be returned.
If fields is specified, only the specified details will be returned. NOTE that if fields is unspecified, the complete set of native fields are returned, which DOES NOT include tags at this time.
Some fields may only be viewed by admins.
Special params:
fields: an optional list of fields to retrieve. The default is all.
- filters: an optional mapping with custom filters, which is the only
- way to support complex filters like negation and numeric comparisons.
- peer: a string (or sequence of strings) with the name(s) of peers
- to filter - or None for local nodes.
Bases: object
Note
It allows PlanetLab RMs sharing a same slice, to use a same plcapi instance, and to sincronize blacklisted and reserved hosts.
Create an PLCAPI instance
Parameters: |
|
---|
Get existing PLCAPI instance
Parameters: |
|
---|
Bases: nepi.resources.linux.node.LinuxNode
Based on the attributes defined by the user, discover the suitable nodes for provision.
Add node to user’s slice and verifing that the node is functioning correctly. Check ssh, file system.