Commit graph

1378 commits

Author SHA1 Message Date
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
Belén
f0670b3130
Merge branch 'master' into alias_bug_fix 2020-07-08 10:14:48 -07:00
kirby@puppetlabs.com
88899d4513 Correctly handle multiple pools of same alias in ondemand checkout
This commit updates the method used for chceking the status of an
ondemand request to ensure that if multiple aliases are used to fulfill
a request that they are correctly presented as a single pool again when
everything is ready. Without this change it is possible for only one
group of an aliased pool to show up in pending or completed requests.
2020-07-08 09:15:47 -07:00
70292bf860
Merge pull request #386 from puppetlabs/dependabot/add-v2-config-file
Update Dependabot config file
2020-07-07 15:02:05 -04:00
e46ff69220
Merge pull request #387 from puppetlabs/maint-update-travis
Update travis config to remove deprecated style
2020-07-07 14:57:36 -04:00
Belen Bustamante
99e4976941 Update travis config to remove deprecated style 2020-07-07 11:36:11 -07:00
dependabot-preview[bot]
a1de58280e
Update Dependabot config file 2020-07-07 14:43:21 +00:00
Jenkins
6d01079f4a (GEM) update vmpooler version to 0.14.0 2020-07-01 18:19:27 +00:00
Brandon High
8c18880e29
Merge pull request #372 from jcoconnor/POOLER-160-Prometheus-Endpoints
(POOLER-160) Add Prometheus Metrics to vmpooler
2020-07-01 11:14:08 -07:00
John O'Connor
416f1f6e7b (POOLER-160) Revise Redis buckets
Output from our discussion on histogram buckets for the Clone, Time to
ready and Redis connection buckets.
2020-06-30 21:56:37 +01:00
John O'Connor
85ff3f7022 (MAINT) Add optional API Request Logging
This was partially an exercise to use middleware, but also to enable
basic logging for the API by logging all the API calls to the logger.
2020-06-29 19:56:29 +01:00
John O'Connor
a21d8c5642 (POOLER-178) Target Stats for api & manager
Ensure that the correct stats are registered for the Manager and the api
respectively. E.g. all checkout counters are for the api only, whereas
clone times belong to the manager.

Also new ondemand functionality stats weren't registered, so add these
along with missing delete stats.
2020-06-29 19:54:28 +01:00
John O'Connor
8ed8c43970 (POOLER-160) Revise Metrics Classwork
Review changes suggested to revise the Metrics related files into a more
logical class structure.

Also fixup grammar typos in docs strings and any trailing metrics that
have been recently added to vmpooler.
2020-06-29 19:54:28 +01:00
John O'Connor
cb955a1bed (POOLER-177) Filter hostname from API Paths
Use the example provided in the Ruby Client to provide a customised
collector appropriate to log all calls to the API. The customised
filtering is used to replace individual node names and templates
for the /vm and request ID's for the /ondemand endpoints.

This module was failing our rubocop checks so have updated it since
it now forms part of vmpooler.

Separate trapping for litmus jobs is also included so that they don't
interfere with stats from the jenkins pipelines.
2020-06-29 19:53:59 +01:00