class Cluster(TaggableObject):
Config object representing the cluster.
Class Method |
|
Custom function for cluster. |
Static Method |
|
Fill an disk_state sub dict with cluster defaults. |
Static Method |
|
Fill an hv_state sub dict with cluster defaults. |
Method |
|
Fill an instance's beparams dict with cluster defaults. |
Method |
|
Fill an instance's hvparams dict with cluster defaults. |
Method |
|
Return filled out ndparams for objects.NodeGroup and objects.Node |
Method |
|
Return filled out ndparams for just objects.NodeGroup |
Method |
|
Get the default hypervisor parameters for the cluster. |
Method |
|
Checks if a particular disk template is enabled. |
Method |
|
Checks if file storage is enabled. |
Method |
|
Checks if shared file storage is enabled. |
Method |
|
Fill a given beparams dict with cluster defaults. |
Method |
|
Fill a given diskparams dict with cluster defaults. |
Method |
|
Fill a given hvparams dict with cluster defaults. |
Method |
|
Fill instance policy dict with defaults. |
Method |
|
Fill a given ndparams dict with defaults. |
Method |
|
Fill a given nicparams dict with cluster defaults. |
Method |
|
Fill an instance's osparams dict with cluster defaults. |
Method |
|
Custom function for cluster. |
Method |
|
Fill defaults for missing configuration values. |
Class Variable | __slots__ |
Undocumented |
Instance Variable | beparams |
Undocumented |
Instance Variable | blacklisted |
Undocumented |
Instance Variable | candidate |
Undocumented |
Instance Variable | compression |
Undocumented |
Instance Variable | default |
Undocumented |
Instance Variable | default |
Undocumented |
Instance Variable | default |
Undocumented |
Instance Variable | default |
Undocumented |
Instance Variable | disk |
Undocumented |
Instance Variable | diskparams |
Undocumented |
Instance Variable | enabled |
Undocumented |
Instance Variable | enabled |
Undocumented |
Instance Variable | gluster |
Undocumented |
Instance Variable | hidden |
Undocumented |
Instance Variable | hv |
Undocumented |
Instance Variable | hvparams |
Undocumented |
Instance Variable | install |
Undocumented |
Instance Variable | instance |
Undocumented |
Instance Variable | ipolicy |
Undocumented |
Instance Variable | maintain |
Undocumented |
Instance Variable | master |
Undocumented |
Instance Variable | max |
Undocumented |
Instance Variable | max |
Undocumented |
Instance Variable | modify |
Undocumented |
Instance Variable | modify |
Undocumented |
Instance Variable | ndparams |
Undocumented |
Instance Variable | nicparams |
Undocumented |
Instance Variable | os |
Undocumented |
Instance Variable | osparams |
Undocumented |
Instance Variable | osparams |
Undocumented |
Instance Variable | prealloc |
Undocumented |
Instance Variable | primary |
Undocumented |
Instance Variable | reserved |
Undocumented |
Instance Variable | shared |
Undocumented |
Instance Variable | ssh |
Undocumented |
Instance Variable | ssh |
Undocumented |
Instance Variable | uid |
Undocumented |
Instance Variable | use |
Undocumented |
Property | primary |
The first hypervisor is the primary. |
Inherited from TaggableObject
:
Class Method |
|
Check if a tag is valid. |
Method |
|
Add a new tag. |
Method |
|
Return the tags list. |
Method |
|
Remove a tag. |
Constant | VALID |
Undocumented |
Instance Variable | tags |
Undocumented |
Inherited from ConfigObject
(via TaggableObject
):
Method | __getattr__ |
Undocumented |
Method | __repr__ |
Implement __repr__ for ConfigObjects. |
Method | __setstate__ |
Undocumented |
Method |
|
Makes a deep copy of the current object and its children. |
Method |
|
Validates the slots. |
Inherited from ValidatedSlots
(via TaggableObject
, ConfigObject
):
Class Method |
|
Compute the list of all declared slots for a class. |
Method | __init__ |
Constructor for BaseOpCode. |
Fill an instance's beparams dict with cluster defaults.
Parameters | |
instance:objects.Instance | the instance parameter to fill |
Returns | |
dict | a copy of the instance's beparams with missing keys filled from the cluster defaults |
Fill an instance's hvparams dict with cluster defaults.
Parameters | |
instance:objects.Instance | the instance parameter to fill |
skip | if True, the global hypervisor parameters will not be filled |
Returns | |
dict | a copy of the instance's hvparams with missing keys filled from the cluster defaults |
Return filled out ndparams for objects.NodeGroup
and objects.Node
Parameters | |
node:objects.Node | A Node object to fill |
nodegroup:objects.NodeGroup | A Node object to fill @return a copy of the node's ndparams with defaults filled |
Return filled out ndparams for just objects.NodeGroup
Parameters | |
nodegroup:objects.NodeGroup | A Node object to fill @return a copy of the node group's ndparams with defaults filled |
Get the default hypervisor parameters for the cluster.
Parameters | |
hypervisor | the hypervisor name |
os | if specified, we'll also update the defaults for this OS |
skip | if passed, list of keys not to use |
Returns | |
the defaults dict |
Fill a given beparams dict with cluster defaults.
Parameters | |
beparams:dict | the dict to fill |
Returns | |
dict | a copy of the passed in beparams with missing keys filled from the cluster defaults |
Fill a given diskparams dict with cluster defaults.
Parameters | |
diskparams | The diskparams |
Returns | |
The defaults dict |
Fill a given hvparams dict with cluster defaults.
Parameters | |
hv | the hypervisor to use |
os | the OS to use for overriding the hypervisor defaults |
hvparams | Undocumented |
skip | if True, the global hypervisor parameters will not be filled |
Returns | |
dict | a copy of the given hvparams with missing keys filled from the cluster defaults |
Fill instance policy dict with defaults.
Parameters | |
ipolicy:dict | the dict to fill |
Returns | |
dict | a copy of passed ipolicy with missing keys filled from the cluster defaults |
Fill a given ndparams dict with defaults.
Parameters | |
ndparams:dict | the dict to fill |
Returns | |
dict | a copy of the passed in ndparams with missing keys filled from the cluster defaults |
Fill a given nicparams dict with cluster defaults.
Parameters | |
nicparams:dict | the dict to fill |
Returns | |
dict | a copy of the passed in nicparams with missing keys filled from the cluster defaults |
Fill an instance's osparams dict with cluster defaults.
Parameters | |
os | the OS name to use |
os | the dict to fill with default values |
os | the dict with private fields to fill with default values. Not passing this field results in no private fields being added to the return value. Private fields will be wrapped in Private objects. |
os | the dict with secret fields to fill with default values. Not passing this field results in no secret fields being added to the return value. Private fields will be wrapped in Private objects. |
Returns | |
dict | a copy of the instance's osparams with missing keys filled from the cluster defaults. Private and secret parameters are not included unless the respective optional parameters are supplied. |