[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:36 UTC 2013
The following commit has been merged in the master branch:
commit 08cdb0defcd4c24889b0f027320fd15167e7f18c
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date: Wed Mar 6 15:10:20 2013 -0800
Implement PutScheduledUpdateGroupAction
Fixes TOOLS-224
diff --git a/bin/kilo-put-scheduled-update-group-action b/bin/kilo-put-scheduled-update-group-action
new file mode 100755
index 0000000..2f11681
--- /dev/null
+++ b/bin/kilo-put-scheduled-update-group-action
@@ -0,0 +1,6 @@
+#!/usr/bin/python -tt
+
+import euca2ools.commands.autoscaling.putscheduledupdategroupaction
+
+if __name__ == '__main__':
+ euca2ools.commands.autoscaling.putscheduledupdategroupaction.PutScheduledUpdateGroupAction.run()
diff --git a/euca2ools/commands/autoscaling/executepolicy.py b/euca2ools/commands/autoscaling/putscheduledupdategroupaction.py
similarity index 54%
copy from euca2ools/commands/autoscaling/executepolicy.py
copy to euca2ools/commands/autoscaling/putscheduledupdategroupaction.py
index 0a91b17..26a26c2 100644
--- a/euca2ools/commands/autoscaling/executepolicy.py
+++ b/euca2ools/commands/autoscaling/putscheduledupdategroupaction.py
@@ -32,17 +32,25 @@ from euca2ools.commands.autoscaling import AutoScalingRequest
from requestbuilder import Arg
-class ExecutePolicy(AutoScalingRequest):
- DESCRIPTION = "Manually set an auto-scaling instance's health status"
- ARGS = [Arg('PolicyName', metavar='POLICY',
- help='name or ARN of the policy to run (required)'),
+class PutScheduledUpdateGroupAction(AutoScalingRequest):
+ DESCRIPTION = 'Schedule a scaling action for an auto-scaling group'
+ ARGS = [Arg('ScheduledActionName', metavar='NAME',
+ help='name of the new scheduled action'),
Arg('-g', '--auto-scaling-group', dest='AutoScalingGroupName',
- metavar='ASGROUP',
- help='name or ARN of the auto-scaling group'),
- Arg('-h', '--honor-cooldown', dest='HonorCooldown',
- action='store_const', const='true',
- help='''reject the request if the group is in cooldown
- (default: override any cooldown period)'''),
- Arg('-H', '--no-honor-cooldown', dest='HonorCooldown',
- action='store_const', const='false',
- help='override any cooldown period (this is the default)')]
+ metavar='ASGROUP', required=True, help='''auto-scaling group the
+ new action should affect (required)'''),
+ Arg('-b', '--start-time', dest='StartTime',
+ metavar='YYYY-MM-DDThh:mm:ssZ',
+ help='time for this action to start'),
+ Arg('-e', '--end-time', dest='EndTime',
+ metavar='YYYY-MM-DDThh:mm:ssZ',
+ help='time for this action to end'),
+ Arg('-r', '--recurrence', dest='Recurrence',
+ metavar='"MIN HOUR DATE MONTH DAY"', help='''time when recurring
+ future actions will start, in crontab format'''),
+ Arg('--desired-capacity', dest='DesiredCapacity', metavar='COUNT',
+ type=int, help='new capacity setting for the group'),
+ Arg('--max-size', dest='MaxSize', metavar='COUNT', type=int,
+ help='maximum number of instances to allow in the group'),
+ Arg('--min-size', dest='MinSize', metavar='COUNT', type=int,
+ help='minimum number of instances to allow in the group')]
--
managing cloud instances for Eucalyptus
More information about the pkg-eucalyptus-commits
mailing list