class documentation
class Burner(JobHandler):
Burner class.
Static Method |
|
Rename instance. |
Static Method |
|
Start given instance. |
Static Method |
|
Stop given instance. |
Method | __init__ |
Constructor. |
Method |
|
Activate and deactivate disks of the instances. |
Method |
|
Add an extra disk to every instance and then detach it. |
Method |
|
Add, change and remove an extra NIC for the instances. |
Method |
|
Run confd queries for our instances. |
Method |
|
Create the given instances. |
Method |
|
Failover the instances. |
Method |
|
Grow both the os and the swap disks by the requested amount, if any. |
Method |
|
Export the instance, delete it, and import it back. |
Method |
|
Test a cluster intensively. |
Method |
|
Migrate the instances. |
Method |
|
Alter the runtime memory. |
Method |
|
Move the instances. |
Method |
|
Reboot the instances. |
Method |
|
Reinstall the instances. |
Method |
|
Remove the instances. |
Method |
|
Attach a previously detached disk to an instance and then remove it. |
Method |
|
Rename the instances. |
Method |
|
Rename the instances to their own name. |
Method |
|
Replace disks on primary and secondary for drbd8. |
Method |
|
Replace secondary node. |
Method |
|
Stop/start the instances. |
Method |
|
Callback for confd queries |
Method |
|
Undocumented |
Method |
|
Find a disk whose nodes match the instance's disk nodes. |
Method |
|
Read the cluster state from the master daemon. |
Method |
|
Parses the command line options. |
Instance Variable | bep |
Undocumented |
Instance Variable | cluster |
Undocumented |
Instance Variable | cluster |
Undocumented |
Instance Variable | confd |
Undocumented |
Instance Variable | confd |
Undocumented |
Instance Variable | confd |
Undocumented |
Instance Variable | disk |
Undocumented |
Instance Variable | disk |
Undocumented |
Instance Variable | disk |
Undocumented |
Instance Variable | disk |
Undocumented |
Instance Variable | hv |
Undocumented |
Instance Variable | hvp |
Undocumented |
Instance Variable | hypervisor |
Undocumented |
Instance Variable | instance |
Undocumented |
Instance Variable | instances |
Undocumented |
Instance Variable | nodes |
Undocumented |
Instance Variable | opts |
Undocumented |
Instance Variable | to |
Undocumented |
Instance Variable | url |
Undocumented |
Method | _ |
Check if an instance is alive by doing http checks. |
Inherited from JobHandler
:
Method |
|
Execute all submitted opcodes in case of parallel burnin |
Method |
|
Execute a set of jobs and return once all are done. |
Method |
|
Execute one or more opcodes and manage the exec buffer. |
Method |
|
Execute an opcode and manage the exec buffer. |
Method |
|
Possibly retry a given function execution. |
Method |
|
Start a new batch of jobs. |
Instance Variable | cl |
Undocumented |
Instance Variable | queue |
Undocumented |
Instance Variable | queued |
Undocumented |
Method | _ |
Execute one or more opcodes and manage the exec buffer. |
Inherited from FeedbackAccumulator
(via JobHandler
):
Method |
|
Clear the feedback buffer. |
Method |
|
Acumulate feedback in our buffer. |
Method |
|
Return the contents of the buffer. |
Class Variable | _feed |
Undocumented |
Run confd queries for our instances.
The following confd queries are tested:
- CONFD_REQ_PING: simple ping
- CONFD_REQ_CLUSTER_MASTER: cluster master
- CONFD_REQ_NODE_ROLE_BYNAME: node role, for the master
Test a cluster intensively.
This will create instances and then start/stop/failover them. It is safe for existing instances but could impact performance.
Rename the instances.
Note that this function will not execute in parallel, since we only have one target for rename.
Parses the command line options.
In case of command line errors, it will show the usage and exit the program.