Commit graph

18 commits

Author SHA1 Message Date
isaac-hammes
493e358ba1 (POD-10) Log reason for failed VM checks. 2023-08-17 13:08:08 -07:00
Jake Spain
1aaa6711b5
Update spec tests for new dns settings 2023-03-29 09:53:45 -04:00
Samuel Beaulieu
2a39a8cf06
fix rubocop offences and spec tests 2022-07-27 09:31:24 -05:00
Samuel Beaulieu
79516d8014
(maint) Refactor cloud dns
Moved the creation and deletion methods to a vmpooler class, to be used by the ec2
provisioner.
Added a check for failed deletion attempts, they are now retried up to 30 times
2022-07-26 16:20:48 -05:00
Samuel Beaulieu
e06917dd92
(DIO-3162) vmpooler gce provider to support disk type (to use ssd)
Added a new pool config named disk_type, which can be set to pd-ssd to
use a SSD disk attahed to the instance. When not set, or set to empty,
the google default of pd-standard is used
2022-06-16 09:44:37 -05:00
Samuel Beaulieu
83770acd89
fix dns_setup as zone was already a method
also changed from setting the project name in the instance labels to a
instance tag aka network tag, as the setup for allowing traffic in the FW
is bassed on tag not label
2022-01-06 16:39:53 -06:00
Samuel Beaulieu
2cb2550aca
refactor dns_zone to be renamed domain to match the global parameter being overwritten
in the upstream vmpooler code, we use the global domain parameter, so naming that parameter
the same in GCE. This parameter can be optionally set in the provider config, and
overwrites the global parameter. It is used to infer the FQDN as .
2021-12-31 10:30:18 -06:00
Samuel Beaulieu
0beec3d8e9
code review fixes 2021-12-29 12:17:25 -06:00
Samuel Beaulieu
a4c730df7b
fix rubocop and spec tests 2021-12-29 12:02:55 -06:00
Samuel Beaulieu
daa55fe5b8
Adding the cloud DNS API library and related methods
we setup DNS when a VM is created and tear it down when a VM is deleted
the DNS zone should exist already and is referenced by a provider setting
the dns zone is also set in order to use it for vm_ready? instead of the global
domain
instances have a label that identifies which project they belong to, so
it can be used for FW rules
2021-12-29 08:21:51 -06:00
Samuel Beaulieu
55654387af
fix simplecov with jruby, add a .rubocop.yml config file 2021-12-10 12:34:06 -06:00
Samuel Beaulieu
356dfb3f52
fix spec test yaml 2021-12-09 18:53:25 -06:00
Samuel Beaulieu
5c67073dad
rubocop fixes 2021-12-09 18:43:36 -06:00
Samuel Beaulieu
662f965c0f
refactor the connection and add debug logs 2021-12-09 17:59:15 -06:00
Samuel Beaulieu
8594160fbe
Implementing the tag_vm_user method
This method gets the user name based on the token:user metadata in redis,
cleans it up to be safe for a label name (lowercase, numbers and dash or underscore only),
and update the existing instance labels adding a new one called token-user
2021-12-09 11:35:29 -06:00
Samuel Beaulieu
f6791baba0
Adding support for fully qualified allow list eg user=bob
before thhis change the allow list would only support checking the 'pool' label value
we can now specify a different label name by using the format labename=value where
the equal sign '=' is considered the separator
2021-12-09 11:33:10 -06:00
Samuel Beaulieu
fc7a628063
spec the purge method and align it with the new base method signature 2021-12-08 10:33:25 -06:00
Samuel Beaulieu
2a0e9f5bdc
adding spec tests 2021-12-07 08:41:55 -06:00