[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:33 UTC 2013
The following commit has been merged in the master branch:
commit 1759701bf91007a15d7e92c66fba5354638d860e
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date: Thu Feb 28 18:07:19 2013 -0800
Implement SetInstanceHealth
Fixes TOOLS-211
diff --git a/bin/kilo-set-instance-health b/bin/kilo-set-instance-health
new file mode 100755
index 0000000..f8680e1
--- /dev/null
+++ b/bin/kilo-set-instance-health
@@ -0,0 +1,6 @@
+#!/usr/bin/python -tt
+
+import euca2ools.commands.autoscaling.setinstancehealth
+
+if __name__ == '__main__':
+ euca2ools.commands.autoscaling.setinstancehealth.SetInstanceHealth.run()
diff --git a/euca2ools/commands/autoscaling/setdesiredcapacity.py b/euca2ools/commands/autoscaling/setinstancehealth.py
similarity index 66%
copy from euca2ools/commands/autoscaling/setdesiredcapacity.py
copy to euca2ools/commands/autoscaling/setinstancehealth.py
index d76d75e..95c493d 100644
--- a/euca2ools/commands/autoscaling/setdesiredcapacity.py
+++ b/euca2ools/commands/autoscaling/setinstancehealth.py
@@ -32,17 +32,17 @@ from requestbuilder import Arg
from euca2ools.commands.autoscaling import AutoScalingRequest
-class SetDesiredCapacity(AutoScalingRequest):
- DESCRIPTION = "Set an auto-scaling group's desired capacity"
- ARGS = [Arg('AutoScalingGroupName', metavar='NAME',
- help='name of the auto-scaling group to update (required)'),
- Arg('-c', '--desired-capacity', dest='DesiredCapacity', type=int,
- required=True,
- help='new capacity setting for the group (required)'),
- Arg('-h', '--honor-cooldown', dest='HonorCooldown',
+class SetInstanceHealth(AutoScalingRequest):
+ DESCRIPTION = "Manually set an auto-scaling instance's health status"
+ ARGS = [Arg('InstanceId', metavar='INSTANCE',
+ help='ID of the instance to update (required)'),
+ Arg('-s', '--status', dest='HealthStatus', required=True,
+ choices=('Healthy', 'Unhealthy'), help='new status (required)'),
+ Arg('--respect-grace-period', dest='ShouldRespectGracePeriod',
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',
+ help="""respect the associated auto-scaling group's grace period
+ (this is the default)"""),
+ Arg('--no-respect-grace-period', dest='ShouldRespectGracePeriod',
action='store_const', const='false',
- help='override any cooldown period (this is the default)')]
+ help="""ignore the associated auto-scaling group's grace period
+ (default: respect the group's grace period)""")]
--
managing cloud instances for Eucalyptus
More information about the pkg-eucalyptus-commits
mailing list