Commit graph

399 commits

Author SHA1 Message Date
Scott Schneider
4558828a20 Remove legacy (refactored) code 2013-11-05 13:16:52 -08:00
Scott Schneider
deea66b0da Refactor #1 2013-11-05 12:54:30 -08:00
Scott Schneider
a7d6b27847 Refactoring this mess of code 2013-11-05 12:54:08 -08:00
Scott Schneider
aea6e32e3d destroy_vm should clear out Redis queue 2013-11-05 10:25:43 -08:00
Scott Schneider
e1cf8d16a6 Everyday I'm shuffling 2013-11-05 10:13:33 -08:00
Scott Schneider
4891b0deb3 Show pool size in status 2013-11-05 09:39:37 -08:00
Scott Schneider
90b7e6585d Each Redis queue gets its own thread 2013-11-05 09:28:12 -08:00
Scott Schneider
d29552eaa6 Thread thread thread 2013-11-04 15:33:40 -08:00
Scott Schneider
f78c8352d5 Parallelize VM checks in threads 2013-11-04 15:08:58 -08:00
Scott Schneider
699bf83803 Thread ALL THE THINGS 2013-11-04 14:22:22 -08:00
Scott Schneider
ac7b2f1216 Use threaded destroy_vm function 2013-11-04 13:28:24 -08:00
Scott Schneider
f97977fdcf Whitespace 2013-11-04 13:23:41 -08:00
Scott Schneider
47ac1ed0ff Parallelize VM cleanup in threads 2013-11-04 13:20:52 -08:00
Scott Schneider
3859eb85c2 Fixing queue name 2013-11-04 12:30:10 -08:00
Scott Schneider
fabea30dbb Fixing typo 2013-11-04 12:15:22 -08:00
Scott Schneider
1ebf772d70 Parallelize VM clones in threads 2013-11-04 12:09:08 -08:00
Scott Schneider
6c74a89e11 Use boolean instead of string for 'ok' response 2013-11-04 11:03:53 -08:00
Scott Schneider
e051e625c8 Return ok=false if pool is empty 2013-11-04 10:46:46 -08:00
Scott Schneider
b808b9c6c1 vSphere functions should use connection object in vsphere_helper lib 2013-11-04 10:10:15 -08:00
Scott Schneider
30ebe4249e Make all JSON output pretty 2013-11-01 13:41:54 -07:00
Scott Schneider
026a4a459c Add a 'status' path 2013-11-01 13:41:11 -07:00
Scott Schneider
0c187a5486 Sleeping is for babies 2013-10-31 12:25:26 -07:00
Scott Schneider
e6e05b99ab Add some basic VM annotation 2013-10-31 12:25:07 -07:00
Scott Schneider
bf0150de4b Remove unused snapshot functions 2013-10-31 11:56:57 -07:00
Scott Schneider
6d4e326011 Adding some basic metrics reporting 2013-10-31 11:54:28 -07:00
Scott Schneider
4534310d94 More pooler queue logic 2013-10-10 15:00:52 -07:00
Scott Schneider
4faabb9842 Forgot an 'end', d'oh 2013-10-10 14:35:01 -07:00
Scott Schneider
26aa06e6fa Futzing with pooler queue logic 2013-10-10 14:32:03 -07:00
Scott Schneider
3ca6cdf418 s/break/next/ 2013-10-10 14:07:58 -07:00
Scott Schneider
e30ef61c56 Check 'failed' queue 2013-10-09 11:43:54 -07:00
Scott Schneider
b4828a82f5 Remove all VMware (rbvmomi) processing 2013-10-07 16:48:17 -07:00
Scott Schneider
90ee738726 Check other queues before adding VMs to 'pending' 2013-10-04 10:27:21 -07:00
Scott Schneider
1464981d9b Don't YAML.load_file() twice 2013-10-04 10:23:07 -07:00
Scott Schneider
c17637c8b1 Don't operate on 'host' object if it doesn't exist 2013-10-03 15:51:45 -07:00
Scott Schneider
32fee4e0b1 Auto-delete hosts in 'completed' queues 2013-10-03 15:21:12 -07:00
Scott Schneider
aec1e3ea16 Add a 'delete' path to the API 2013-10-03 14:59:23 -07:00
Scott Schneider
bd8a778f8f Use new queues in API 2013-10-01 16:57:39 -07:00
Scott Schneider
882fc36521 Don't use .fog for vSphere credentials 2013-10-01 16:41:15 -07:00
Scott Schneider
5838315609 Adding rudimentary logging 2013-10-01 16:34:32 -07:00
Scott Schneider
fe5f2dc28a chmod 755 require_relative.rb 2013-10-01 16:03:20 -07:00
Scott Schneider
2000ad6dae Implement 'failed' queue 2013-10-01 15:58:48 -07:00
Scott Schneider
bdee20cf21 Syntax (spacing) 2013-10-01 15:44:11 -07:00
Scott Schneider
ba56310415 Implement 'pending' and 'ready' queues 2013-10-01 15:40:24 -07:00
Scott Schneider
15841eb8e5 Use vsphere_helper lib to find resource pools 2013-10-01 12:19:38 -07:00
Scott Schneider
b130e9911a Load libraries and config from app's relative directory 2013-10-01 12:06:26 -07:00
Scott Schneider
6fdeed596e Support 'require_relative' in rubies less than v1.9.2 2013-10-01 12:05:31 -07:00
Scott Schneider
ce79fcfa0f Reordering API operatiosn for quicker response-times 2013-09-24 16:30:33 -07:00
Scott Schneider
545792dece Adding an API for plucking hosts from host pools 2013-09-24 13:13:08 -07:00
Scott Schneider
4c858d012a Initial 2013-09-24 11:27:46 -07:00