Updated Ubuntu images patterns to 12.04 version in default config fabfile.cfg.def.
Introduced django_fabfile.utils.Config.refresh() for rereading configuration.
Updated order of applying configuration files (next overrides settings from previous):
Was | Now |
---|---|
BotoConfigLocations | fabfile.cfg.def |
fabfile.cfg.def | BotoConfigLocations |
fabfile.cfg | fabfile.cfg |
Avoid to clone AWS read-only tags like ‘aws:autoscaling:groupName’ between instances, snapshots, etc.
Added fallback to DEFAULT section in Django settings.
Added inst_type argument to django_fabfile.instances.create_instance().
Added user_data argument to django_fabfile.instances.launch_instance_from_ami() and django_fabfile.instances.create_instance().
Updated check for existing replication process. Removed comparison with snapshots in destination region by snapshot.start_time, only existing or in-process replica of the snapshot interrupts replication (newer snapshot in destination region were interrupted replication in earlier versions). Replication collision raised as exception now (returned nothing before).
Increased volume detach timeout.
Removed unnecessary temporary snapshot creation during django_fabfile.backup.rsync_snapshot().
Fixed locating of volume when it not yet attached in django_fabfile.instances.get_vol_dev() used by django_fabfile.backup.rsync_snapshot().
Added explicit exception for preventing generator didn’t yield RuntimeError.
Increased new instance launch awaiting time in django_fabfile.instances.launch_instance_from_ami() and temporary volume availability awaiting time before deleting in django_fabfile.instances.attach_snapshot().
Increased snapshot awaiting time in django_fabfile.instances.attach_snapshot().
Fixed replication of existing snapshots that led to non-incremental snapshots.
Preventing snapshot replication if it’s already in process of replication.
Added django_fabfile.backup.get_oldest_replica() for filtering snapshots without replicas with ordering by creation time.
django_fabfile.backup expects to locate TAG_NAME and TAG_VALUE in the ‘DEFAULT’ section of fabfile.cfg.
Added force option to django_fabfile.backup.rsync_snapshot() for enforcing old snapshots replication.
Added django_fabfile.backup.rsync_all_regions() for replicating snapshots across all available regions.
Fixed error in django_fabfile.utils.get_inst_by_id() caused by distinct responses from boto get_all_instances().
Introduced consistent snapshots (disabled by default) for preventing files corruption that was caused by not synced and not locked filesystem. Filesystem lock lasts 10 seconds.
Added security groups replication django_fabfile.security_groups.replicate_security_groups().
Added security groups synchronization django_fabfile.security_groups.sync_rules() and corresponding Fabric task django_fabfile.security_groups.sync_rules_by_id().
Accept security_groups argument only formatted as string separated with semicolons ‘;’.
Fixed snapshots trimming on 31st days of months.
Added support for transferring encrypted snapshots between regions.
Updated package and configuration layout.
Note
sporadical errors “SSH session not active” (see https://github.com/fabric/fabric/issues/402 for more details) could be fixed by using patched version of Fabric https://github.com/webengineer/fabric/tree/fix-ssh-session-not-active.
Updated config file parsing - only options to override should be mentioned in local fabfile.cfg for django_fabfile.backup module.
Added instance encryption support with create_encrypted_instance task. Encrypted instance could not be replicated to backup region yet - it could be restored from snapshots only within its region. Support for encrypted instance replication to backup region could be added in future.
Added AMI assembling from two or more snapshots (see http://redmine.odeskps.com/issues/2843 for details).
Changed snapshots creation with function django_fabfile.backup.backup_instances_by_tag to wait for successful completion in order to avoid snapshots with status “error”.
Updated logging setup with option logging_folder.
Added minutes_for_snap option to DEFAULT section of config.
Added django_fabfile.backup.update_volumes_tags for cloning tags from instances.
XXX Requirements updated with patched version of Fabric - please install it from http://pypi.odeskps.com/simple/odeskps-fabric/ using:
pip install odeskps-Fabric
Added logging to file with rotation. Note: logging to a single file from multiple processes is not supported.
Added configuration option username in new odesk section.
Added django_fabfile.switchdb module with commands for switching current primary DB server.
Added workaround with kernels for AMI creation to fix problems at instance boot stage.
Fixed wrongly removed statement in django_fabfile.backup.trim_snapshots.
Added django_fabfile.backup.modify_kernel command for make pv-grub working.
Enabled volume deletion after termination for AMI, created by django_fabfile.backup.create_ami.
Added adduser and deluser commands to django_fabfile.useradd module.
Please update your local version of fabfile.cfg:
Please update your local version of fabfile.cfg.
2011-05-17 * resolved #2269 - merged backup fabric scripts and added readme.rtf.
2011-04-13