Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion infra/gcp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,21 @@ export GCP_PROJECT=<gcp project name>
}
```

Issues with this file may cause errors when launching dev deploys, in particular due to malformed/expired OAuth tokens. Errors like these likely point to a malformed token:

```
dev deploy failed: error finding {"repo": {"owner": "populationgenomics", "name": "hail"}, "name": "<branch-name>"} at GitHub
```

Inspection of the pods can reveal what token is being used and help with further debugging of the deploy:
```
$ kubectl exec -it ci-7fb45cb8cb-sgvwn -- bash
root@ci-7fb45cb8cb-sgvwn:/# cat /secrets/oauth-token/oauth-token; echo
github_pat_<snip>_<snip>
root@ci-7fb45cb8cb-sgvwn:/# exit
$
```

## Check Service Accounts into Repository

- Install [sops](https://github.com/mozilla/sops).
Expand Down Expand Up @@ -409,4 +424,4 @@ gcloud compute ssh --zone "us-central1-a" "<VM-NAME>" --project "<PROJECT>"

## Remove the cloud VM

- Once the deployment is complete, you can remove the cloud VM in the Google cloud console.
- Once the deployment is complete, you can remove the cloud VM in the Google cloud console.