[pkg-eucalyptus-commits] [SCM] managing cloud instances for Eucalyptus branch, master, updated. 3.0.0-alpha3-257-g1da8e3a

Garrett Holmstrom gholms at fedoraproject.org
Sun Jun 16 02:30:30 UTC 2013


The following commit has been merged in the master branch:
commit f3f0e9868d407be345d7c9492ebff117cf542fba
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date:   Wed Feb 27 14:55:43 2013 -0800

    Implement UpdateAutoScalingGroup
    
    Fixes TOOLS-205

diff --git a/bin/kilo-update-auto-scaling-group b/bin/kilo-update-auto-scaling-group
new file mode 100755
index 0000000..b67b84e
--- /dev/null
+++ b/bin/kilo-update-auto-scaling-group
@@ -0,0 +1,6 @@
+#!/usr/bin/python -tt
+
+import euca2ools.commands.autoscaling.updateautoscalinggroup
+
+if __name__ == '__main__':
+    euca2ools.commands.autoscaling.updateautoscalinggroup.UpdateAutoScalingGroup.run()
diff --git a/euca2ools/commands/autoscaling/createautoscalinggroup.py b/euca2ools/commands/autoscaling/updateautoscalinggroup.py
similarity index 72%
copy from euca2ools/commands/autoscaling/createautoscalinggroup.py
copy to euca2ools/commands/autoscaling/updateautoscalinggroup.py
index 7c31347..dc720fd 100644
--- a/euca2ools/commands/autoscaling/createautoscalinggroup.py
+++ b/euca2ools/commands/autoscaling/updateautoscalinggroup.py
@@ -31,24 +31,12 @@
 from requestbuilder import Arg
 from euca2ools.commands.argtypes import delimited_list
 from euca2ools.commands.autoscaling import AutoScalingRequest
-from euca2ools.commands.autoscaling.argtypes import autoscaling_tag_def
 
 
-class CreateAutoScalingGroup(AutoScalingRequest):
-    DESCRIPTION = 'Create a new auto-scaling group'
+class UpdateAutoScalingGroup(AutoScalingRequest):
+    DESCRIPTION = "Update an auto-scaling group's parameters"
     ARGS = [Arg('AutoScalingGroupName', metavar='NAME',
                 help='name of the new auto-scaling group (required)'),
-            Arg('-l', '--launch-configuration', dest='LaunchConfigurationName',
-                metavar='LAUNCHCONFIG', required=True, help='''name of the
-                launch configuration to use with the new group (required)'''),
-            Arg('-M', '--max-size', dest='MaxSize', metavar='COUNT', type=int,
-                required=True, help='maximum group size (required)'),
-            Arg('-m', '--min-size', dest='MinSize', metavar='COUNT', type=int,
-                required=True, help='minimum group size (required)'),
-            Arg('--availability-zones', dest='AvailabilityZones.member',
-                metavar='ZONE,ZONE,...', type=delimited_list(','),
-                help='''comma-separated list of availability zones for the new
-                group (required unless subnets are supplied)'''),
             Arg('--default-cooldown', dest='DefaultCooldown',
                 metavar='SECONDS', type=int,
                 help='''amount of time, in seconds, after a scaling activity
@@ -63,21 +51,15 @@ class CreateAutoScalingGroup(AutoScalingRequest):
             Arg('--health-check-type', dest='HealthCheckType',
                 choices=('EC2', 'ELB'),
                 help='service to obtain health check status from'),
-            Arg('--load-balancers', dest='LoadBalancerNames.member',
-                metavar='ELB,ELB,...', type=delimited_list(','),
-                help='comma-separated list of load balancers to use'),
+            Arg('-l', '--launch-configuration', dest='LaunchConfigurationName',
+                metavar='LAUNCHCONFIG', help='''name of the launch
+                configuration to use with the new group (required)'''),
+            Arg('-M', '--max-size', dest='MaxSize', metavar='COUNT', type=int,
+                help='maximum group size (required)'),
+            Arg('-m', '--min-size', dest='MinSize', metavar='COUNT', type=int,
+                help='minimum group size (required)'),
             Arg('--placement-group', dest='PlacementGroup',
                 help='placement group in which to launch new instances'),
-            Arg('--tag', dest='Tags.member', type=autoscaling_tag_def,
-                action='append', metavar=('"k=VALUE, id=VALUE, t=VALUE, '
-                'v=VALUE, p={true,false}"'), help=('''
-                tags to create or update.  Tags follow the following format:
-                "id=resource-name, t=resource-type, k=tag-key, v=tag-val,
-                p=propagate-at-launch-flag", where k is the tag's name, v is
-                the tag's value, id is a resource ID, t is a resource type, and
-                p is whether to propagate tags to instances created by the new
-                group.  A value for 'k=' is required for each tag.  The
-                remainders are optional.''')),
             Arg('--termination-policies', dest='TerminationPolicies.member',
                 metavar='POLICY,POLICY,...', type=delimited_list(','),
                 help='''ordered list of termination policies.  The first has
@@ -86,4 +68,8 @@ class CreateAutoScalingGroup(AutoScalingRequest):
                 metavar='ZONE,ZONE,...',
                 help='''comma-separated list of subnet identifiers.  If you
                 specify availability zones as well, ensure the subnets'
-                availability zones match the ones you specified''')]
+                availability zones match the ones you specified'''),
+            Arg('-z', '--availability-zones', dest='AvailabilityZones.member',
+                metavar='ZONE,ZONE,...', type=delimited_list(','),
+                help='''comma-separated list of availability zones for the new
+                group (required unless subnets are supplied)''')]

-- 
managing cloud instances for Eucalyptus



More information about the pkg-eucalyptus-commits mailing list