Commit graph

1028 commits

Author SHA1 Message Date
kirby@puppetlabs.com
8459e2ec21 Move to using redis to track the ondemand clone task count so it can be displayed by dashboard and API 2020-05-11 18:22:54 -07:00
kirby@puppetlabs.com
4de3490bfe Add test cases for when ondemandvm GET is run and the request has been deleted, or marked as failed. 2020-05-11 17:46:09 -07:00
kirby@puppetlabs.com
ea4322799b Ensure get ondemandvm shows when a request has been deleted 2020-05-11 17:12:46 -07:00
kirby@puppetlabs.com
18ca38b8db Remove pool empty messages for pools with a size of 0 configured 2020-05-11 16:47:30 -07:00
kirby@puppetlabs.com
590c9a4c14 Add capability to delete a request by ID 2020-05-11 16:37:34 -07:00
kirby@puppetlabs.com
0e798c391d Add a configurable maximum per pool request upper limit 2020-05-11 13:13:03 -07:00
kirby@puppetlabs.com
9ea80f2a10 Add capability to specify max lifetime via environment variable 2020-05-08 15:43:59 -07:00
kirby@puppetlabs.com
203cadf1ed Add auth from ondemand request to provisioned vms 2020-05-08 15:43:35 -07:00
kirby@puppetlabs.com
74fbc74c4d Update clone_vm so the redis connection is released during the VM clone. 2020-05-08 15:04:59 -07:00
kirby@puppetlabs.com
e4062dc005 Remove unreasonable ttl of 0 concept for a ready vm 2020-05-08 14:39:25 -07:00
kirby@puppetlabs.com
b1d4f0971c Expire ondemand requests and remove associated instances when ondemand_request_ttl has been exceeded for a given request 2020-05-07 21:38:42 -07:00
kirby@puppetlabs.com
9538c0b3e3 Address rubocop offenses 2020-05-07 15:19:44 -07:00
kirby@puppetlabs.com
86f6848ef0 Undo redis new_redis rename. Update vmpooler version in dockerfile. 2020-05-07 09:06:47 -07:00
kirby@puppetlabs.com
ef40f2610b Remove request_id from fail_pending_vm 2020-05-07 09:01:21 -07:00
kirby@puppetlabs.com
3f1a2a2dc4 Remove debug statements and fix additional config_spec tests 2020-05-07 02:00:34 -07:00
kirby@puppetlabs.com
c29ce0d56e Add remaining tests for new functionality 2020-05-07 01:57:38 -07:00
kirby@puppetlabs.com
2ed170fa23 Add tests for api additions. Begin adding tests for pool_manager additions 2020-05-06 17:45:47 -07:00
kirby@puppetlabs.com
ebde903ddc Start adding tests for ondemandvm 2020-04-30 21:02:30 -07:00
kirby@puppetlabs.com
62aaa37f78 Fix accepting request_id 2020-04-30 15:17:15 -07:00
kirby@puppetlabs.com
2b96d7e476 Fix tests for changes 2020-04-30 12:31:40 -07:00
kirby@puppetlabs.com
90e09bfe1c Replace connection_pool with vmpooler generic_connection_pool. Fix tests for changes. 2020-04-30 12:25:01 -07:00
kirby@puppetlabs.com
b32b88b753 Add parameters for redis connection pool size and timeout values. 2020-04-30 12:25:01 -07:00
kirby@puppetlabs.com
9973ed878f Implement redis connection pooling, multi, and pipelines. 2020-04-30 12:25:01 -07:00
kirby@puppetlabs.com
52bf6c4c89 First attempt at adding connection pool to pool manager 2020-04-30 12:25:01 -07:00
kirby@puppetlabs.com
70f0482d33 Provisioning on demand initially functioning prototype. 2020-04-30 12:25:01 -07:00
kirby@puppetlabs.com
edd9d9e62c Handle the delta between requested and configured limits 2020-04-30 12:25:01 -07:00
kirby@puppetlabs.com
11c5107279 Add concurrent-ruby and configure additional parts for provisioning on demand 2020-04-30 12:25:01 -07:00
kirby@puppetlabs.com
63712741a0 (POOLER-158) Getting started with provisioning on demand 2020-04-30 12:25:01 -07:00
Jenkins
e9a79cb6db (GEM) update vmpooler version to 0.11.3 2020-04-29 15:02:04 +00:00
Brandon High
9b41a542e9
Merge pull request #374 from puppetlabs/DIO-608
(DIO-608) vmpooler SUT handed out multiple times
2020-04-23 17:03:34 -07:00
Samuel Beaulieu
9c6f50691d (DIO-608) vmpooler SUT handed out multiple times
Before this change if the smove returned false, we would continue handing out the VM
which presumably could still be in the 'ready' state. Upon 'delete' that ready VM would not be
picked up and return a 404 which is consistent with the behavior seen. Adding a metric to keep
track of the smove failures since this is not expected. I think some API logging would be good
to add in the future.
2020-04-23 16:10:36 -05:00
Brandon High
48b4fb9a6b
Merge pull request #373 from jcoconnor/MAINT-Update-Codeowners
(MAINT) Update CODEOWNERS
2020-04-16 10:29:51 -07:00
John O'Connor
56a6e61dc7 (MAINT) Update CODEOWNERS
Changing ownership to DIO
2020-04-16 18:25:51 +01:00
Jenkins
4019a082f0 (GEM) update vmpooler version to 0.11.2 2020-04-16 15:54:02 +00:00
Brandon High
5fac5684a9
Merge pull request #371 from puppetlabs/POOLER-161
(POOLER-161) Fix extending vm lifetime when max lifetime is set
2020-04-15 13:27:27 -07:00
Samuel Beaulieu
953aa68907 (POOLER-161) Fix extending vm lifetime when max lifetime is set
Before this PR, the current running time was being inspected to decide if the
vm lifetime could be extended. But since vm lifetime is absolute and not relative
this check is now removed.
2020-04-15 13:17:14 -05:00
Brandon High
9ab1b89a6c
Merge pull request #370 from mattkirby/purge_failed
(POOLER-165) Fix purge_unconfigured_folders
2020-04-07 11:27:36 -07:00
kirby@puppetlabs.com
fc616ce055 Fix rubocop offenses 2020-04-07 11:22:05 -07:00
kirby@puppetlabs.com
68ecb7a3a4 (POOLER-165) Fix purge_unconfigured_folders
This commit fixes the purge_unconfigured_folders feature to ensure that it can successfully identify folders and instances that are no longer used. Without this change the feature does not work as advertised.
2020-04-07 09:39:59 -07:00
Brandon High
04a3c448fd
Merge pull request #369 from puppetlabs/16c0dependabot/bundler/rake-gte-12.3-and-lt-14.0
Update rake requirement from ~> 12.3 to >= 12.3, < 14.0
2020-03-18 14:25:13 -07:00
Jenkins
451003484e (GEM) update vmpooler version to 0.11.1 2020-03-17 23:51:30 +00:00
Brandon High
458b862b63
Update CHANGELOG for 0.11.1 2020-03-17 16:45:08 -07:00
Brandon High
0c0ee0cdd2
rake gemspec dep in ~> format instead of range 2020-03-17 15:10:15 -07:00
dependabot-preview[bot]
526d88d673
Update rake requirement from ~> 12.3 to >= 12.3, < 14.0
Updates the requirements on [rake](https://github.com/ruby/rake) to permit the latest version.
- [Release notes](https://github.com/ruby/rake/releases)
- [Changelog](https://github.com/ruby/rake/blob/master/History.rdoc)
- [Commits](https://github.com/ruby/rake/compare/v12.3.0...v13.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-17 19:33:09 +00:00
Brandon High
3e2ab2db5f
Merge pull request #367 from puppetlabs/dependabot
Add Dependabot to keep gems updated
2020-03-17 12:32:01 -07:00
Brandon High
0289dac4f0
Merge pull request #366 from mattkirby/update_gems
Update gem dependencies to latest versions
2020-03-17 12:31:08 -07:00
Brandon High
5cfad48aac
Merge pull request #368 from mattkirby/docker_compose_defaults
Remove providers addition to docker-compose.yml
2020-03-17 12:30:30 -07:00
kirby@puppetlabs.com
85cd1fb4ed Remove providers addition to docker-compose.yml 2020-03-17 12:17:53 -07:00
Brandon High
ad39b53445
Merge pull request #365 from mattkirby/pooler_156
(POOLER-156) Detect redis connection failures
2020-03-17 12:07:26 -07:00
a717e5c5ca
Add Dependabot to keep gems updated 2020-03-17 15:01:57 -04:00