Scott Schneider
dc2cbbe712
Clean up the 'deploy_vm' method
...
Removing duplicate lines of code better accomplished with a '||'
fallback to the 'find_vm_heavy' method.
2014-02-05 12:41:54 -08:00
Scott Schneider
c286b44553
'booting' metric should never be a negative number
2014-02-05 11:44:26 -08:00
Scott Schneider
261fdb5007
Past-tense log messages
2014-02-05 11:29:57 -08:00
Scott Schneider
a258b0eb95
Merge pull request #3 from sschneid/clone_timestamp_in_redis
...
Store VM 'clone' timestamp in Redis
2014-02-05 11:27:05 -08:00
Scott Schneider
b6e15080de
Adding missing 'start' variable
2014-02-04 15:13:38 -08:00
Scott Schneider
087be6014d
Store 'clone' timestamps in Redis database
...
Using redis keys to store clone timestamps will allow for a global TTL
for VMs in the 'pending' pool; failed clones should be cleaned up and
retried after a set period of time (eg. 15m).
2014-02-04 15:05:24 -08:00
Scott Schneider
e8aa7237e7
Explicit #fff background
2014-02-04 11:35:15 -08:00
Scott Schneider
7c4c65ebf1
Configurable site name in dashboard
2014-02-04 11:31:58 -08:00
Scott Schneider
ab450662cc
Remove non-inventory VMs sitting in 'completed' queue
2014-02-04 10:34:55 -08:00
Scott Schneider
2e50082661
Dashboard wrapper div
2014-02-04 10:21:43 -08:00
Scott Schneider
bbe67ab8a3
Rework vCenter VM retrieval method
...
Previous, the propertyCollector method was used to find VMs within
vCenter. This method was ineffecient, as it would retrieve a list of
the entire vCenter inventory and then parse for the specified VM. This
has been replaced with a fetch via searchIndex.FindByDnsName, which
returns only the requested VM object.
2014-02-04 09:42:28 -08:00
Scott Schneider
ba3831bffb
Remove VMs not found in vCenter inventory from 'ready' queues
2014-02-03 15:57:35 -08:00
Scott Schneider
b0105a1509
Catch clonevm_task exceptions
2014-02-03 10:26:21 -08:00
Scott Schneider
601a500100
Syntax fix
2014-01-23 13:38:59 -08:00
Scott Schneider
6f59436047
Recover from failed clones/deletes
2014-01-23 13:38:10 -08:00
Scott Schneider
4be2c0ef3e
Provide more numbers to the dashboard
2014-01-23 13:36:12 -08:00
Scott Schneider
f4caa5a3ad
Implement clone rate-limiting
2014-01-21 16:28:41 -08:00
Scott Schneider
36cc7ea3fe
Don't fail if graphite stats found for unconfigured pools
2013-12-20 11:41:44 -08:00
Scott Schneider
e3080a432d
Merge branch 'dashboard'
2013-12-18 11:14:13 -08:00
Scott Schneider
0720c8bb91
Align text
2013-12-18 11:05:28 -08:00
Scott Schneider
ac3e9f9602
Fix graph's y range
2013-12-17 10:44:50 -08:00
Scott Schneider
607fa53a27
Fixups for Firefox
2013-12-13 16:31:35 -08:00
Scott Schneider
b7a9457ef1
Merge branch 'master' into dashboard
2013-12-13 11:30:08 -08:00
Scott Schneider
67ed2c8a2e
Check
2013-12-13 11:22:06 -08:00
Scott Schneider
6611c210a5
Fixup for long-running destruction
2013-12-13 11:19:37 -08:00
Scott Schneider
f0651ae235
Merge branch 'master' into dashboard
2013-12-13 10:13:38 -08:00
Scott Schneider
43047fbf80
Delete long-running VMs after 12 hours
2013-12-13 10:13:28 -08:00
Scott Schneider
5062fb5b9f
Merge branch 'master' into dashboard
2013-12-12 11:48:03 -08:00
Scott Schneider
b264104643
Pool stats should still work without graphite
2013-12-12 11:22:52 -08:00
Scott Schneider
7e3169bc70
Add dashboard (initial)
2013-12-12 11:12:13 -08:00
Scott Schneider
37c55bcbf8
Add dashboard API paths
2013-12-12 10:52:45 -08:00
Scott Schneider
d13a9fcf3a
Start keeping track of how long hosts are running
2013-12-12 10:04:49 -08:00
Scott Schneider
52861f4682
A little bit o' cleanup
2013-12-12 10:03:36 -08:00
Scott Schneider
bcd90bde75
Catch ALL THE EXCEPTIONS
2013-12-12 10:02:29 -08:00
Scott Schneider
bac80108b2
Each pool gets it's own vSphere object
2013-12-06 14:16:56 -08:00
Scott Schneider
e67d8a5d54
Additional object-existance checks
2013-12-06 12:05:47 -08:00
Scott Schneider
77ffd7f829
Missing an 'and'
2013-12-05 11:46:58 -08:00
Scott Schneider
2f1a83eeb6
Avoid racing, only hand over VMs after a successful smove
2013-12-05 11:44:11 -08:00
Scott Schneider
72b1cd485e
Replace srem/sadd with smove, check power state of 'ready' and 'running' VMs
2013-12-05 11:38:11 -08:00
Scott Schneider
2912056b45
Only check VMs found in inventory
2013-12-04 11:37:51 -08:00
Scott Schneider
d581524b81
Separate ready_ttl and running_ttl config params
2013-12-04 11:31:23 -08:00
Scott Schneider
4f23d8bb31
Use pool['running_ttl'], or a default
2013-12-04 11:25:46 -08:00
Scott Schneider
754c27020c
Quick hack to auto-destroy long-running VMs
2013-12-04 11:15:03 -08:00
Scott Schneider
7b866f788e
Clear pending queue on init
2013-11-25 22:31:08 -08:00
Scott Schneider
7ac06dc4d6
Why so sleepy?
2013-11-25 22:29:59 -08:00
Scott Schneider
9228abb5d1
Remove (commented-out) race condition
2013-11-25 13:46:47 -08:00
Scott Schneider
dc906164c1
Reinitialize if connection is reset
2013-11-25 11:33:59 -08:00
Scott Schneider
73c61ec26b
Spacing
2013-11-21 15:33:41 -08:00
Scott Schneider
f9e2c30e29
Remove unused find_customization method
2013-11-21 14:44:15 -08:00
Scott Schneider
4f64355241
Only one pools.each required...
2013-11-21 10:47:25 -08:00