Commit graph

655 commits

Author SHA1 Message Date
Scott Schneider
e0356968df (QENG-2995) Display associated VMs in GET /token/:token endpoint 2015-11-04 12:35:35 -08:00
Scott Schneider
12da1e07d2 Merge pull request #136 from briancain/master
Update API docs to include "domain" key for get vm requests
2015-10-20 14:58:34 -05:00
Brian Cain
e1168e1145 Update API docs to include "domain" key for get vm requests 2015-10-16 15:32:07 -07:00
Scott Schneider
d9724b698c Merge pull request #133 from colinPL/maint_remove_ping
(MAINT) Remove Ping Check on Running VMs
2015-10-02 13:08:05 -07:00
Colin
7b9b178861 (MAINT) Remove Ping Check on Running VMs
Prior to this commit, a running VM could fail a ping check and be
destroyed. This causes issues when network hiccups occur or the machine
is performing a reboot.

A VM that is in a ready state will now be destroyed when handed back or
it hits the lifetime TTL.
2015-10-02 13:03:48 -07:00
Scott Schneider
c5d0850dd1 Merge pull request #131 from puppetlabs/maint_wait_pending
(maint) Move VM Only When SSH Check Succeeds
2015-09-17 15:39:39 -07:00
Colin
b8bdfe1301 (maint) Move VM Only When SSH Check Succeeds
An SSH check was added before moving a VM from pending to ready.
However, the result of that check did not matter and move_pending would
still be called. This moves the move_pending call to within the begin
block that holds the SSH check. If the check fails, then only
fail_pending will be called.
2015-09-17 12:54:29 -07:00
Colin
6395d0227e Merge pull request #130 from sschneid/check_ssh_before_marking_ready
(QENG-2952) Check that SSH is available
2015-09-17 11:58:44 -07:00
Scott Schneider
d1c8bcdbcc RSpec mocking for TCPSocket.new 2015-09-17 11:31:31 -07:00
Scott Schneider
5b6985c3a7 (QENG-2952) Check that SSH is available
SSH should be available before a VM is moved from the 'pending' queue to
'ready'.

`check_ssh` should probably be a function in the tradition of DRY; I'm
going to hopefully follow up this PR with a `Vmpooler::Utility` library.
2015-09-17 11:12:51 -07:00
Colin
0c1e89f047 Merge pull request #127 from sschneid/duplicate_ok
(maint) Remove duplicate (nested) "ok" responses
2015-09-04 11:36:57 -07:00
Michael Stahnke
3fdf1685ba Merge pull request #128 from sschneid/license_update
(maint) Update license copyright
2015-08-22 14:13:30 -07:00
Scott Schneider
40b13e2b22 Update license copyright 2015-08-21 18:07:07 -07:00
Scott Schneider
906ae89987 Remove duplicate (nested) "ok" responses
As we approach an "official" v1.0.0 of the API I'd like to remove some old
nested "ok" responses.  These were left in as the Beaker vmpooler
hypervisor used them, but I long-ago patched that code and I think it's
time to deprecate these.
2015-08-21 13:58:07 -07:00
Colin
f7ad3bb7e8 Merge pull request #126 from sschneid/missing_docs
(maint) Documentation updates
2015-08-21 13:11:06 -07:00
Scott Schneider
fd6a707b15 /api/v1 2015-08-20 22:41:19 -07:00
Scott Schneider
5e30932900 Snapshot route documentation 2015-08-20 22:39:48 -07:00
Scott Schneider
825ade9e12 'clone_target' is overridable pool-level
You know, like for a cluster of Mac Minis, maybe.
2015-08-20 22:25:42 -07:00
Justin Stoller
9ae19e0d4d Merge pull request #125 from sschneid/token_last
Track token use times
2015-08-20 20:31:33 -07:00
Scott Schneider
89ce70dba9 Track token use times
* rename the Redis token 'timestamp' var to 'created'
* update the Redis token 'last' var when token is successfully validataed
* expose the Redis token 'last' var in GET /token route
2015-08-20 19:54:59 -07:00
Justin Stoller
ce158d9fec Merge pull request #123 from sschneid/user_token_list
User token list
2015-08-20 19:15:20 -07:00
Scott Schneider
e4f2777889 Spec tests for GET /token 2015-08-20 18:50:55 -07:00
Scott Schneider
47deddcc46 Split API spec into /token and /token/:token 2015-08-20 18:50:55 -07:00
Scott Schneider
492cfb06a3 List tokens via GET /token 2015-08-20 18:50:51 -07:00
Colin
ed63c56724 Merge pull request #124 from sschneid/docs_update
Docs update
2015-08-20 10:54:18 -07:00
Scott Schneider
91ca5c282b Description tweak 2015-08-19 16:24:58 -07:00
Scott Schneider
969e479d47 This sentence always bugged me 2015-08-18 19:39:29 -07:00
Scott Schneider
3f83f52f90 Docs for GET /token 2015-08-18 19:37:50 -07:00
Scott Schneider
5ce08b907f Split API docs into separate markdown file 2015-08-18 19:33:23 -07:00
Colin
7cd8c9a8c1 Merge pull request #122 from sschneid/scripts
(maint) Additional utility and reporting scripts
2015-08-18 14:28:04 -07:00
Scott Schneider
7546904db7 Additional utility and reporting scripts 2015-08-07 14:52:24 -07:00
Colin
4e7dc236b9 Merge pull request #121 from sschneid/syntax
(maint) Syntax fixup
2015-08-07 10:20:16 -07:00
Scott Schneider
243eba7820 Whitespace, ;; 2015-08-07 10:12:26 -07:00
Scott Schneider
3c3172615b Merge pull request #120 from colinPL/main_less_redis
(MAINT) Reduce redis Calls in API
2015-08-03 09:42:16 -07:00
Colin
5b6a60ca3e Merge pull request #119 from sschneid/rspec_cleanup
(maint) Use expect_json helper method for determining JSON response status
2015-07-28 15:37:23 -07:00
Scott Schneider
2d514f53bf Use expect_json helper method for determining JSON response status 2015-07-28 14:54:28 -07:00
Colin
acb95d34c8 (MAINT) Reduce redis Calls in API
The return values from most redis calls inform the caller of whether a
key or hash value exists. Several exists() calls can be removed in
favor of this approach.

Updated spec tests to account for a removal of exists() and ismember()
calls in API tests.
2015-07-28 14:47:01 -07:00
Colin
5789d2c708 Merge pull request #118 from sschneid/qeng_1304
(QENG-1304) vmpooler should require an auth key for VM destruction
2015-07-28 14:08:07 -07:00
Scott Schneider
add88c7bba (QENG-1304) vmpooler should require an auth key for VM destruction 2015-07-28 12:03:14 -07:00
Colin
7fddaf86e0 Merge pull request #117 from sschneid/host_snapshots
(QENG-2636) Host snapshots
2015-07-27 11:19:13 -07:00
Scott Schneider
85aad61192 Fix snapshort revert functionality 2015-07-16 11:41:00 -07:00
Scott Schneider
1689133b19 Require an auth token to use snapshots 2015-07-16 10:59:30 -07:00
Scott Schneider
fe65d5b11b Merge branch 'master' into host_snapshots 2015-07-16 10:42:16 -07:00
Scott Schneider
93acc8327b Host snapshot rspec tests 2015-07-16 10:35:44 -07:00
Scott Schneider
1c3045fd65 Host snapshot functionality 2015-07-16 10:29:49 -07:00
Colin
ea5c1aff3d Merge pull request #112 from sschneid/log_empty_pools
Log empty pools
2015-07-14 11:13:04 -07:00
Roger Ignazio
68d02f50a2 Merge pull request #115 from sschneid/readme_build_status
(maint) Include travis-ci build status in README
2015-07-07 13:37:57 -07:00
Roger Ignazio
a475517857 Merge pull request #116 from sschneid/travis-ci_containers
(maint) Use dep caching and containers
2015-07-07 13:33:00 -07:00
Scott Schneider
705644756f Use dep caching and containers 2015-07-07 12:52:55 -07:00
Scott Schneider
d19b2f1d62 Include travis-ci build status in README 2015-07-07 12:36:06 -07:00