Commit graph

1191 commits

Author SHA1 Message Date
Samuel
e600336a7e
Merge pull request #418 from mattkirby/pooler_191
(POOLER-191) Add checking for running instances that are not in active
2020-10-14 13:14:51 -05:00
kirby@puppetlabs.com
0ad069b958 (POOLER-191) Add checking for running instances that are not in active
This change adds detection of running instances that are in a running
queue, but have no data in a active queue for the same pool. When this
happens a machine will live forever, impacting the running count, and
preventing the machine from being killed. Without this change running
instances that are not marked as active will live forever.
2020-10-13 14:17:51 -07:00
Jenkins
35104a75bb (GEM) update vmpooler version to 0.16.2 2020-10-08 22:44:29 +00:00
Belén
5a1da663b2
Merge pull request #417 from puppetlabs/otel-071
Bump OTel Sinatra to 0.7.1
2020-10-08 15:19:09 -07:00
cb1f19ad1f
Bump OTel Sinatra to 0.7.1
This is to pull in the bug fix in
https://github.com/open-telemetry/opentelemetry-ruby/pull/434
so that the new feature of naming spans based on their Sinatra route
actually works.
2020-10-08 18:13:33 -04:00
Jenkins
a8bdfc1647 (GEM) update vmpooler version to 0.16.1 2020-10-08 19:06:50 +00:00
Jenkins
ccdf8a4ccb (GEM) update vmpooler version to 0.16.0 2020-10-08 19:02:28 +00:00
635181c694
Merge pull request #416 from puppetlabs/otel-070
Update to OTel 0.7.0
2020-10-08 14:55:12 -04:00
f5698d49fc
Update to OTel 0.7.0
This update includes two key benefits:

1. Spans will be named based on their route instead of the full path
   info thanks to https://github.com/open-telemetry/opentelemetry-ruby/pull/415
2. Helper methods were added to the configurator to simplify setting
   service.name and service.version
2020-10-08 09:49:45 -04:00
Jenkins
4e7e16e001 (GEM) update vmpooler version to 0.15.0 2020-09-30 20:12:39 +00:00
Belén
8423887672
Merge pull request #406 from puppetlabs/pooler-180
(pooler-180) Add healthcheck endpoint, spec testing
2020-09-30 11:27:39 -07:00
mattkirby
42d97dcfd6
Merge branch 'master' into pooler-180 2020-09-30 14:05:53 -04:00
ced794c788
Merge pull request #407 from puppetlabs/fix-gem
(maint) Centralize dependency management in the gemspec
2020-09-23 15:41:29 -04:00
Samuel Beaulieu
338c97b33f (maint) Centralize dependency management in the gemspec
As per best practices, removed duplication between the Gemfile and gemspec.
There was also some seemingly superfluous install in the Gemfile.
Ordered the dependency by alphabetical order.
Tested locally by deleting the .bundle and recreating successfully
2020-09-23 14:37:27 -05:00
Belen Bustamante
08132f75bd
Add healthcheck endpoint, spec testing 2020-09-22 12:25:26 -07:00
Jenkins
4d06c01d21 (GEM) update vmpooler version to 0.14.9 2020-09-21 17:45:43 +00:00
Samuel
6374f376b9
Merge pull request #405 from puppetlabs/add-make-to-dockerfiles
Adding make to the other two Dockerfiles
2020-09-18 15:01:49 -05:00
87abab272c
Adding make to the other two Dockerfiles 2020-09-18 15:29:05 -04:00
Jenkins
b484cc5992 (GEM) update vmpooler version to 0.14.8 2020-09-18 19:05:23 +00:00
1acc70c897
Fix mixup of gem placement. (#404)
It seems I should have put these in vmpooler.gemspec instead of the
Gemfile. Now I know :)
2020-09-18 12:53:56 -05:00
Jenkins
c49a94a819 (GEM) update vmpooler version to 0.14.7 2020-09-18 16:07:03 +00:00
a282ae0bc9
Merge pull request #401 from puppetlabs/resource-detectors
Add OTel resource detectors
2020-09-18 12:05:43 -04:00
214f01c501
Add OTel resource detecors
Adding this should allow OpenTelemetry to detect information about our
Kubernetes environment.
2020-09-17 21:11:07 -04:00
8f3039e321
Add distributed tracing (#399)
This change utilizes OpenTelemetry's automatic instrumentation to add
distributed tracing capabilities to VMPooler. This is a non-breaking
change as traces are processed in noop mode by default.
2020-09-17 15:35:21 -04:00
Jenkins
8dda72ebb3 (GEM) update vmpooler version to 0.14.6 2020-09-17 15:14:18 +00:00
dependabot[bot]
92652bf6ee
Update rbvmomi requirement from ~> 2.1 to >= 2.1, < 4.0 (#391)
Updates the requirements on [rbvmomi](https://github.com/vmware/rbvmomi) to permit the latest version.
- [Release notes](https://github.com/vmware/rbvmomi/releases)
- [Commits](https://github.com/vmware/rbvmomi/compare/v2.1.0...v2.4.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mattkirby <kirby@puppet.com>
2020-09-09 15:28:15 -07:00
mattkirby
747c76284b
Test vmpooler on latest 2.5 (#393)
This change updates vmpooler to test ruby 2.5.8, and jruby 9.2.12.0. Without this change vmpooler tests against 2.5.7 and jruby 9.2.9.0. Additionally, testing on 2.4.x is removed. Lastly, rubocop tests are updated to run on 2.5.8.
2020-09-09 13:38:48 -07:00
debd0bd9ac
Merge pull request #398 from puppetlabs/POOLER-184
(POOLER-184) Pool manager retry and exit on failure
2020-09-03 09:51:38 -04:00
Samuel Beaulieu
1c53625fd8 add the default in the standard location, also adding
support for an ENV var. Update the example yaml file with the new config
2020-09-03 08:49:45 -05:00
Samuel Beaulieu
a35d66c606 (POOLER-184) Pool manager retry and exit on failure
Adding a reconnect retry for redis, which by default would retry 10 times,
for a total wait time of ~80 seconds
2020-09-02 11:38:40 -05:00
John O'Connor
bdf77a9e33
Merge pull request #397 from puppetlabs/maint-promstats-check
(maint) Add promstats component check
2020-09-01 16:48:10 +01:00
Belen Bustamante
07d1ca2b2c Add promstats component check 2020-08-29 09:40:29 -07:00
Jenkins
d47df61c19 (GEM) update vmpooler version to 0.14.5 2020-08-21 18:15:48 +00:00
f8c64b4006
Merge pull request #396 from jcoconnor/MAINT-Fix-Staledns-count
(MAINT) Fix Staledns error counter
2020-08-21 14:13:24 -04:00
John O'Connor
18988ddc3c (MAINT) Fix Staledns error counter
This was logging the hostname instead of the poolname.
2020-08-21 19:03:19 +01:00
Jenkins
90e91f858a (GEM) update vmpooler version to 0.14.4 2020-08-21 17:30:39 +00:00
e533223db8
Merge pull request #395 from jcoconnor/MAINT-Remove-Tokens
(MAINT) Normalise all tokens for stats
2020-08-21 12:37:45 -04:00
John O'Connor
3050e99fd6 (MAINT) Normalise all tokens for stats
/api/v1/token, /token, /img and /lib endpoints need to be normalised the
same way that /vm and /ondemandvm endpoints are handled.
2020-08-21 17:24:56 +01:00
Jenkins
f4f0904168 (GEM) update vmpooler version to 0.14.3 2020-08-06 00:11:19 +00:00
Heath Seals
cef050b129
Merge pull request #394 from mattkirby/pooler_186
(POOLER-186) Fix template alias evaluation with backend weight of 0
2020-08-05 18:50:34 -05:00
kirby@puppetlabs.com
c6fdc8d6fd (POOLER-186) Fix template alias evaluation with backend weight of 0
This change fixes template alias evaluation to ensure that the correct
data is set when generating on demand requests for pools that have a
backend weight configured for a value of 0. Without this change vmpooler
will return an empty selection in api for template alias evaluation.

To support this change tests are added that first reproduced the
failure, and then verified that it is resolved with the addition of the
patch. Additionally, test coverage is added to ensure that code paths
that include pickup gem usage are covered.
2020-08-05 16:33:10 -07:00
Belén
ea160ca9ca
Merge pull request #390 from jcoconnor/MAINT-promstats-refactor
(MAINT) Clarity refactor of Prom Stats code
2020-08-05 07:19:56 -07:00
John O'Connor
0a6ad896f5 (MAINT) Clarity refactor of Prom Stats code
Introducing the Prometheus Stats code into ABS showed that the Clarity
could be improved a bit with better variable naming, some refactoring
to reduce repitition and documenting the Metrics table itself.

Filtering these changes back to the vmpooler code base.
2020-08-05 14:57:48 +01:00
Jenkins
2556ed6105 (GEM) update vmpooler version to 0.14.2 2020-08-03 22:24:28 +00:00
Heath Seals
662fdf2851
Merge pull request #389 from mattkirby/fix_purge
Fix vmpooler folder purging
2020-08-03 17:15:30 -05:00
kirby@puppetlabs.com
ef4ca261d0 Fix vmpooler folder purging
This commit updates folder purging references to ensure that provider
name references are referring to the named provider, rather than the
provider type. Without this change folder purging fails because it
cannot identify target folders.
2020-08-03 15:08:03 -07:00
Heath Seals
807daef248
Merge pull request #392 from mattkirby/pooler_185
Ensure lifetime is set when creating ondemand instances
2020-08-03 16:53:35 -05:00
kirby@puppetlabs.com
ef7e54e288 Ensure lifetime is set when creating ondemand instances 2020-08-03 14:22:51 -07:00
Jenkins
733506fdd9 (GEM) update vmpooler version to 0.14.1 2020-07-08 20:11:28 +00:00
Belén
8da96e1af7
Merge pull request #388 from mattkirby/alias_bug_fix
Correctly handle multiple pools of same alias in ondemand checkout
2020-07-08 10:54:06 -07:00