aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/gce
Commit message (Collapse)AuthorAgeFilesLines
* pkg: move gcpsecret to a separate packageAleksandr Nogikh2025-08-111-61/+0
| | | | | It simplifies the dependency tree and fixes a build error for the send-test-email container.
* pkg/gce: set GVNIC feature for Compute imagesAleksandr Nogikh2025-08-081-1/+11
| | | | | | Google Cloud cannot automatically infer it from our images, so we need to explicitly set it. The flag is required to create a GVNIC-based GCE instance (the only type for C4A machines).
* pkg/gce: set minimum disk size for C4A instancesAleksandr Nogikh2025-08-082-0/+16
| | | | It must be more than 10GB.
* pkg/gce.go: replace deprecated methodTaras Madan2025-08-051-6/+5
| | | | Bonus: add error processing.
* pkg/gcs: add helper methods for secret retrievalAleksandr Nogikh2025-05-091-1/+24
| | | | | Add a method for querying the current project name. Add a method for querying the latest secret version.
* all: fix up context import after go fixDmitry Vyukov2024-04-261-1/+1
|
* all: go fix everythingDmitry Vyukov2024-04-261-1/+1
|
* vm/gce: use regional serial port connectionsAleksandr Nogikh2024-01-232-0/+42
| | | | | | | It's now the recommended approach. Co-authored-by: Alex Tyler <alextyler@google.com> Co-authored-by: Aleksandr Nogikh <nogikh@google.com>
* pkg/gce: recognize more pool exhausted errorsAleksandr Nogikh2023-12-121-2/+3
| | | | | | | We seem to be getting more of ZONE_RESOURCE_POOL_EXHAUSTED_WITH_DETAILS errors rather than ZONE_RESOURCE_POOL_EXHAUSTED. Let's support both.
* all: use errors.As instead of .(type)Taras Madan2023-07-241-3/+7
|
* all: use special placeholder for errorsTaras Madan2023-07-241-11/+11
|
* pkg/gce/gcp_secret.go: update deprecated apiTaras Madan2023-02-241-1/+1
|
* all: ioutil is deprecated in go1.19 (#3718)Taras Madan2023-02-231-2/+2
|
* pkg/gce, vm/gce: leave nested virt support up to imagesKris Alder2022-09-021-7/+3
| | | | | | | Since this can be enabled on per-image basis, we don't need to specifically add this to the creation RPC. This is basically a revert of https://github.com/google/syzkaller/pull/3328.
* pkg/gce, vm/gce: add param to enable nested virtualizationKris Alder2022-08-251-3/+12
| | | | | | This is needed for Cuttlefish-on-GCE. It adds the field 'nested_virt' to the config file and then passes it through to the relevant field in the call to gce.CreateInstance().
* vm/gce: make zone_id configurableAleksandr Nogikh2022-04-121-5/+10
| | | | | At the moment syzkaller can only use the zone where it's running. Make it a configurable option instead (with the old behavior as a fallback).
* vm/gce: enable display device configurationAleksandr Nogikh2022-03-221-2/+3
| | | | Now we always enable it, make this configurable for GCE instances.
* syzkaller: add the gcp secret manager dependency (#2949)Taras Madan2021-12-281-0/+38
| | | | Adds the function to read GCP Secrets.
* pkg/gce: enable DisplayDeviceDmitry Vyukov2020-11-261-3/+5
| | | | | Enabling DisplayDevice can give us some more coverage. Requires switching to v1 API which is a good idea anyway.
* dashboard/app: fix testing for go1.11 runtimeDmitry Vyukov2020-01-291-0/+5
| | | | | | | | | | 0. Remove aetest build tag. We don't need it anymore, go test should work. 1. IsDevAppServer does not return true in tests anymore, so don't use it 2. Use a different mechanism to register test/prod config. We don't have aetest tag anymore, so we need something even more dynamic. 3. Fix new golangci-lint warnings: all test files are checked now. Update #1461
* pkg/gce: fix creation of non-preemptible E2 instancesDmitry Vyukov2019-12-181-0/+5
|
* pkg/gce: poll for operation completion less frequentlyDmitry Vyukov2019-04-011-1/+2
| | | | | | We are hitting quotas for operation completion polling. Not surprising since we create/delete instances all the time. Slightly decrease rate of polling.
* vm/gce: allow non-preemptible VMsDmitry Vyukov2019-03-281-2/+2
| | | | | | | | | We are seeing some flakes during bisection and image testing. Hard to tell what's the root cause because they are episodic. But using non-preemptible VMs for bisection and image testing looks good on all fronts. Update #501
* .gometalinter.json: enable gofmtDmitry Vyukov2018-07-311-1/+1
| | | | | | | The part that we want from gofmt is simplify (-s). Fix all code that needs fixing. Update #538
* pkg/gce: improve API rate limit logicDmitry Vyukov2018-04-241-31/+73
| | | | | | Sometimes we see rate limiting errors. This is especially bad for e.g. patch testing requests. Increase default API delay and add backoff logic.
* pkg/gce: fix a typeDmitry Vyukov2018-02-271-1/+1
|
* pkg/gce: use current instance networkDmitry Vyukov2018-02-271-1/+6
| | | | The current instance is not necessary in the default network.
* syz-manager: send public web addr to dashboardDmitry Vyukov2017-12-041-1/+6
|
* vm/gce: fix boot output captureDmitry Vyukov2017-11-221-10/+0
| | | | | | Turns out GetSerialPortOutput API does not work if instance has serial port connections enabled (which we always have). Get output from serial port relay service instead.
* vm/gce: provide VM console output on boot failuresDmitry Vyukov2017-11-191-0/+10
| | | | "can't ssh into the instance" is not a very useful error.
* vendor: update all packagesDmitry Vyukov2017-08-081-3/+6
| | | | | | google.golang.org/api/compute/v0.beta again changed public interfaces which causes breakages in other build environments. Update everything to HEAD.
* pkg/gce: move from gceDmitry Vyukov2017-06-031-0/+291