Commit graph

1162 commits

Author SHA1 Message Date
be72bb46d8
Merge pull request #466 from puppetlabs/fix-release-workflow
Use credentials file for Rubygems auth
2021-12-08 09:38:49 -05:00
950e8cd7f3
Use credentials file for Rubygems auth 2021-12-08 09:33:45 -05:00
Erik Hansen
3c61050032
Merge pull request #465 from puppetlabs/release-prep-for-2.0
Release prep for v2.0.0
2021-12-07 16:32:59 -08:00
1163cbe02c
Release prep for v2.0.0 2021-12-07 19:12:45 -05:00
trvs-sdlr
d2330054f9
Merge pull request #464 from puppetlabs/release-workflow
Add Gem release workflow
2021-12-07 11:32:42 -08:00
4742977e16
Add Gem release workflow 2021-12-07 11:32:14 -05:00
19626ddea0
Merge pull request #463 from puppetlabs/icon-updates
Update icon in the readme to reference this repo
2021-12-07 11:18:00 -05:00
816be4a721
Update icon in the readme to reference this repo
A copy of the icon in PNG format is also being added as part of this
2021-12-07 11:03:02 -05:00
kfjohnson
5f8913184b
Merge pull request #462 from puppetlabs/extract-vsphere-provider
(DIO-2769) Move vsphere provider to its own gem
2021-12-03 09:56:03 -08:00
bc0a369602
Move vsphere provider to its own gem 2021-12-03 09:41:29 -05:00
Jenkins
48c5d6d445 (GEM) update vmpooler version to 1.3.0 2021-11-15 15:57:33 +00:00
e24fa97c25
Merge pull request #461 from puppetlabs/dio2675
(DIO-2675) Undo pool size & template overrides
2021-11-04 15:11:42 -04:00
a0caa41a54
(DIO-2675) Undo pool size template overrides
This implements a delete method for pooltemplate and poolsize. The API
removes the override from Redis and then adds an entry in Redis that
causes the pool manager to wake up and process the removal of the
override.

To facilitate this, a new variable has been created in lib/vmpooler.rb
to hold a copy of the original / pre-override config. This supplemental
copy of the pools is then indexed for use as a reference.

When pool manager wakes up to process an override removal, it looks up
the pre-override value from the config via the new variables mentioned
above.

Just as with entering overrides, no restart is needed. Template and pool
size changes are logged so that anyone watching or reviewing the logs
can see what happened when. The new API endpoints also return values for
both the pre-revert and post-revert value.
2021-11-04 14:03:06 -04:00
6db71d8589
Update Dockerfile_local to rebuild faster
This makes it so that cached layers can be used when all that is
changing is VMPooler's code, and not its gems.
2021-11-04 13:32:21 -04:00
Jake Spain
b9a5b52cdd
Merge pull request #460 from puppetlabs/token-migration
(DIO-2186) Token migration
2021-09-17 08:55:25 -04:00
dd1b8167a9
(DIO-2186) Add vmp_utils cli tool
This adds a thor-based cli under the utils folder. Its initial function
is to make it easier to migrate tokens from one redis instance to
another.
2021-09-16 16:02:02 -04:00
9ba85bfa14
Ignore .dccache, sort ignore file 2021-09-16 14:08:16 -04:00
Jenkins
f6eb636dff (GEM) update vmpooler version to 1.2.0 2021-09-15 13:54:19 +00:00
1c1f551908
Merge pull request #459 from puppetlabs/fix_ldap_auth
(DIO-2621) Make LDAP encryption configurable
2021-09-15 09:46:51 -04:00
5cd7658ab4
(DIO-2621) Make LDAP encryption configurable
Prior to this, the encryption settings for LDAP auth were hard coded to
start_tls on port 389 with TLSv1. These are still the defaults, as
insecure as they are, so as to not break existing users. This change
facilitates replacing the defaults so that simple_tls over port 636 via
TLS1.2 can be used.
2021-09-14 16:35:32 -04:00
Jenkins
5f0d41412c (GEM) update vmpooler version to 1.1.2 2021-08-25 15:04:35 +00:00
036a9ae502
Merge pull request #458 from puppetlabs/fix-jenkins-and-user-usage-metrics
(DIO-541) Fix jenkins and user usage metrics
2021-08-25 11:00:05 -04:00
Jake Spain
c88f5d8b5a
Fix missing function when moving metrics from pool_manager to api/v1
Fix dependency function component_to_test for jenkins metrics that was not copied from pool_manager to api/v1 in https://github.com/puppetlabs/vmpooler/pull/455
2021-08-25 09:27:45 -04:00
Jake Spain
a28d142f50
Fix user metric so that poolnames with a dot are replaced by underscore 2021-08-25 08:27:30 -04:00
Jenkins
45662e4d2a (GEM) update vmpooler version to 1.1.1 2021-08-24 13:16:46 +00:00
Heath Seals
9b81aa1ccb
Merge pull request #457 from puppetlabs/bump_otel_gems
Fix otel warning: Bump otel gems to 0.17.0
2021-08-24 08:08:30 -05:00
Jake Spain
c541617452
Bump otel gems to 0.17.0 and address breaking changes 2021-08-23 12:16:45 -04:00
Jenkins
771c5b721a (GEM) update vmpooler version to 1.1.0 2021-08-18 12:05:25 +00:00
Jake Spain
674e2b5aba
Merge pull request #455 from puppetlabs/fix-user-metrics
(POOLER-176) Add Operation Label to User Metric
2021-08-17 15:40:51 -04:00
Jake Spain
c06cfc28f7
Add operation label to user metric and move from manager to api
This adds an "operation" label to the user metrics and moves incrementing from the manager to api, so that the user metrics show when resources are allocated, as well as destroyed. Previously, user metrics were only updated upon destroying a resource.

I think its better suited to increment the metric as part of the api instead of the pool_manger, because it's expected to do so when a user successfully checks out or deletes a VM, but can be problematic when doing so in the provider since it can clone VMs before actually being checked out by a user.
2021-08-13 11:23:10 -04:00
Heath Seals
3b6073933e
Merge pull request #450 from puppetlabs/otel-update
Update OTel gems to 0.15.0
2021-03-11 15:12:18 -06:00
e05ee525be
Update OTel gems to 0.15.0 2021-02-23 14:32:07 -05:00
56f5945565
Merge pull request #446 from puppetlabs/move-to-gh-actions
Migrate testing to GH Actions from Travis
2021-02-03 12:45:40 -05:00
mattkirby
09e86d4be2
Merge branch 'master' into move-to-gh-actions 2021-02-02 09:17:14 -08:00
Jenkins
9984a274b5 (GEM) update vmpooler version to 1.0.0 2021-02-02 17:05:29 +00:00
Samuel
b3183d85bb
Merge pull request #447 from puppetlabs/otel-update
Update OTel gems to 0.13.z
2021-02-02 10:50:16 -06:00
8e9d8ee51e
Update OTel gems to 0.13.z 2021-02-02 11:25:26 -05:00
Heath Seals
40bf2f50dd
Merge pull request #445 from puppetlabs/fix-metrics-path-rollups
(DIO-1503) Fix regex for ondemand instances
2021-02-02 10:17:44 -06:00
7a1fc24685
Fix regex for ondemand instances
It appears we renamed `/ondemand/` to `/ondemandvm/` at some point and,
as a result, have not been stripping hostnames from that endpoint's
metrics. This has caused issues with metrics collection due a very high
cardinality.
2021-02-02 11:11:17 -05:00
95ebc4837a
Migrate testing to GH Actions from Travis 2021-02-02 11:02:23 -05:00
mattkirby
45c14312b6
Merge pull request #440 from puppetlabs/maint_lightstep_ghaction
(maint) Update lightstep pre-deploy ghaction to v0.2.6
2020-12-03 10:31:43 -08:00
Belen Bustamante
a5aa6d4613 Update lightstep pre-deploy ghaction to v0.2.6 2020-12-01 15:40:12 -08:00
Jenkins
eddca1c67d (GEM) update vmpooler version to 0.18.2 2020-11-10 21:07:51 +00:00
Belén
cade2aa942
Merge pull request #438 from mattkirby/pooler_193_2
Remove usage of redis multi from api
2020-11-10 12:40:46 -08:00
Belén
65495fc2ee
Merge branch 'master' into pooler_193_2 2020-11-10 11:46:12 -08:00
Belén
7dd1dc147a
Merge pull request #437 from puppetlabs/MAINT-Fix-checkout-count-AGAIN
(MAINT) Fix checkout counter allocation
2020-11-10 11:40:15 -08:00
kirby@puppetlabs.com
7ff23a386d Remove usage of redis multi from api
This change removes usage of redis multi from API. Without this change the redis usage can cause issues because no connection pool is used, so another worker may try to use the same backend object causing a failure.
2020-11-10 11:38:14 -08:00
John O'Connor
a407d2329d (MAINT) Fix checkout counter allocation
Checkout metric counters were against the template name and not the
actual pool used which prevents us from counting the checkouts in the
pixa4 pools for example.

Note - this is a re-rerun - the last commit on this file over-wrote
the change.
2020-11-10 19:13:24 +00:00
Jenkins
55e45bcbe5 (GEM) update vmpooler version to 0.18.1 2020-11-10 18:04:50 +00:00
John O'Connor
dc8cd998ed
Merge pull request #434 from mattkirby/pooler_193
(POOLER-193) Mark checked out VM as active
2020-11-10 16:31:24 +00:00