Commit graph

163 commits

Author SHA1 Message Date
Scott Schneider
1003afaf00 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
ed22ed6e08 Remove VMs not found in vCenter inventory from 'ready' queues 2014-02-03 15:57:35 -08:00
Scott Schneider
5823f099c1 Catch clonevm_task exceptions 2014-02-03 10:26:21 -08:00
Scott Schneider
282727aaa2 Adding new bug (to be fixed) 2014-01-23 14:21:02 -08:00
Scott Schneider
2894ef7944 Rate-limiting and clean-up of long-running VMs implemented 2014-01-23 14:08:09 -08:00
Scott Schneider
4ab3203d5b Syntax fix 2014-01-23 13:38:59 -08:00
Scott Schneider
a67a6a1bfa Recover from failed clones/deletes 2014-01-23 13:38:10 -08:00
Scott Schneider
3a4146a0ed Provide more numbers to the dashboard 2014-01-23 13:36:12 -08:00
Scott Schneider
175dbca9ca Implement clone rate-limiting 2014-01-21 16:28:41 -08:00
Scott Schneider
71d0cf2772 Don't fail if graphite stats found for unconfigured pools 2013-12-20 11:41:44 -08:00
Scott Schneider
502ebcf8b0 Merge branch 'dashboard' 2013-12-18 11:14:13 -08:00
Scott Schneider
33d268a513 Align text 2013-12-18 11:05:28 -08:00
Scott Schneider
e8861cb3dc Fix graph's y range 2013-12-17 10:44:50 -08:00
Scott Schneider
795a8c99f0 Fixups for Firefox 2013-12-13 16:31:35 -08:00
Scott Schneider
5ac118fd75 Merge branch 'master' into dashboard 2013-12-13 11:30:08 -08:00
Scott Schneider
977478b207 Check 2013-12-13 11:22:06 -08:00
Scott Schneider
3c42155c18 Fixup for long-running destruction 2013-12-13 11:19:37 -08:00
Scott Schneider
a4526ef341 Merge branch 'master' into dashboard 2013-12-13 10:13:38 -08:00
Scott Schneider
9675981927 Delete long-running VMs after 12 hours 2013-12-13 10:13:28 -08:00
Scott Schneider
9f3bff279a Added the dashboard 2013-12-12 11:48:26 -08:00
Scott Schneider
41efc97492 Merge branch 'master' into dashboard 2013-12-12 11:48:03 -08:00
Scott Schneider
f6e3722350 No more untimely deaths 2013-12-12 11:47:50 -08:00
Scott Schneider
45ab2455cf Pool stats should still work without graphite 2013-12-12 11:22:52 -08:00
Scott Schneider
c795880535 Add dashboard (initial) 2013-12-12 11:12:13 -08:00
Scott Schneider
116ef1d31f Add dashboard API paths 2013-12-12 10:52:45 -08:00
Scott Schneider
e3017beba1 Start keeping track of how long hosts are running 2013-12-12 10:04:49 -08:00
Scott Schneider
31ea12dc07 A little bit o' cleanup 2013-12-12 10:03:36 -08:00
Scott Schneider
bcfca89730 Catch ALL THE EXCEPTIONS 2013-12-12 10:02:29 -08:00
Scott Schneider
31df80aa7c Each pool gets it's own vSphere object 2013-12-06 14:16:56 -08:00
Scott Schneider
5ea20c71b9 Additional object-existance checks 2013-12-06 12:05:47 -08:00
Scott Schneider
4f3c2aedd5 Missing an 'and' 2013-12-05 11:46:58 -08:00
Scott Schneider
c261baeb3b Avoid racing, only hand over VMs after a successful smove 2013-12-05 11:44:11 -08:00
Scott Schneider
674a3eaf6f Replace srem/sadd with smove, check power state of 'ready' and 'running' VMs 2013-12-05 11:38:11 -08:00
Scott Schneider
5de7a8b244 Only check VMs found in inventory 2013-12-04 11:37:51 -08:00
Scott Schneider
f687641c98 Separate ready_ttl and running_ttl config params 2013-12-04 11:31:23 -08:00
Scott Schneider
14bd3e0084 Use pool['running_ttl'], or a default 2013-12-04 11:25:46 -08:00
Scott Schneider
009cf789ab Quick hack to auto-destroy long-running VMs 2013-12-04 11:15:03 -08:00
Scott Schneider
c4b85d0306 Initial 2013-12-04 11:03:55 -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
Scott Schneider
e8881d601c Check for dead threads and restart them 2013-11-18 10:27:35 -08:00
Scott Schneider
8aab996666 Move pool-checks into a function 2013-11-18 09:59:01 -08:00
Scott Schneider
29ad2b9e09 Expire hosts in 'ready' pool with uptimes exceeding TTL 2013-11-13 13:55:51 -08:00
Scott Schneider
0a0177e226 Rename 'check_vm' function to 'check_pending_vm' 2013-11-13 13:45:50 -08:00
Scott Schneider
3239ea29bd Send graphite data from within a thread
...so that if it fails, it doesn't kill our whole processing thread
2013-11-13 13:31:17 -08:00