Commit graph

15 commits

Author SHA1 Message Date
Anders Ingemann
e355e99189 Ensure the volume size is a multiple of 1024 when using EBS 2013-07-09 21:30:39 +02:00
Anders Ingemann
4e2503ad9c Put task class properties in identical order 2013-07-09 20:32:50 +02:00
Anders Ingemann
1acd86a85a Remove after = [Connect] from CreateVolume.
Connect & CreateVolume do not run in the same phase,
so the order is a given.
2013-07-09 20:24:08 +02:00
Anders Ingemann
20587148f4 implemented CreateSnapshot 2013-07-08 23:14:07 +02:00
Anders Ingemann
a92133edcf Remove rollback remnants 2013-07-08 23:14:02 +02:00
Anders Ingemann
9aae74b0fa counter tasks for CreateMountDir and MountVolume 2013-07-08 23:14:01 +02:00
Anders Ingemann
ba461a815c Rename TaskException to TaskError, use it when checking installed packages 2013-07-08 23:14:01 +02:00
Anders Ingemann
442397fb2e Way better rollback architecture through improvements in flexibility 2013-07-08 23:14:00 +02:00
Anders Ingemann
2135cdbc1a PEP8 fixes 2013-07-08 23:14:00 +02:00
Anders Ingemann
96028f96e1 Various improvements and additions.
I couldn't be bothered to untangle this, so here it goes:
* Log colors depending on loglevel
* Simplified Filelogger
* Remove description=None from basetask
* create_list creates task list from argument now
* Task rollback feature: If a task fails, the tasklist calls rollback() on the completed tasks in reverse order
* Added TaskException to common.exceptions as a base to extend from
* Added TriggerRollback task to common.tasks for development purposes
* An EBS volume for bootstrapping is now created and attached to the instance (including rollback actions)
* EC2 Connect task now depends on host.GetInfo
2013-07-08 23:14:00 +02:00
Anders Ingemann
c7625f85d8 Move EC2 VolumeError out of common 2013-07-08 23:14:00 +02:00
Anders Ingemann
29b52a6a70 Create volume 2013-07-08 23:14:00 +02:00
Anders Ingemann
88ebeadd25 fix phases and their ordering 2013-07-08 23:13:59 +02:00
Anders Ingemann
1e4af40b3c Task dependencies, bogus implementation 2013-07-08 23:13:59 +02:00
Anders Ingemann
5689b77011 Manifest validation, simplified main run fn 2013-07-08 23:13:58 +02:00