Commit dbdfb73
148328: roachprod: azure vm identity and role assignment r=golgeek a=golgeek
Previously Azure VMs didn't have an identity attached at creation, which meant they couldn't perform actions requiring authentication via the Azure metadata server.
As some roachtests require access to an Azure storage container to pull and push fixtures, a User Managed Identity will now be assigned to the VMs at creation in order to simplify the credentials management.
One `rp-roachtest` UMI has been created in each subscription used to run roachtests. These UMIs have been assigned a `roachtest` role that grants blob management in Azure storage containers in the same subscription.
Since VMs are only attached a single identity, this is compatible with `DefaultAzureCredential` without specifying any other credentials.
The subscription scope ensures that no test-production fixtures will be created or updated during tests development (in the `Sponsorship` sub), and that the nightly tests triggered from TeamCity (in the `e2e-infra` sub) will always be isolated.
This requires the creation of one storage account per subscription roachtests are triggered on, and will require the tests to implement logic to determine the storage account to use based on the current subscription ID, which can be accessed via the `AZURE_SUBSCRIPTION_ID` environment variable.
Resolves #149811
Epic: none
Release note: None
153078: jobfrontier: change Get to accept read-only frontier r=msbutler a=andyyang890
**span: redefine Frontier in terms of ReadOnlyFrontier**
The `ReadOnlyFrontier` interface is a strict subset of `Frontier`
and to reduce duplicate code, this commit redefines `Frontier`
in terms of `ReadOnlyFrontier`.
Release note: None
---
**jobfrontier: change Get to accept read-only frontier**
This patch changes `Get` to accept a read-only frontier to prevent
any accidental modification of the passed-in frontier.
Release note: None
---
Epic: None
Co-authored-by: Ludovic Leroux <ludo.leroux@cockroachlabs.com>
Co-authored-by: Andy Yang <yang@cockroachlabs.com>
File tree
4 files changed
+36
-21
lines changed- pkg
- jobs/jobfrontier
- roachprod/vm/azure
- util/span
4 files changed
+36
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
86 | 90 | | |
87 | 91 | | |
88 | 92 | | |
| |||
92 | 96 | | |
93 | 97 | | |
94 | 98 | | |
95 | | - | |
| 99 | + | |
96 | 100 | | |
97 | 101 | | |
98 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
49 | 55 | | |
50 | 56 | | |
51 | 57 | | |
| |||
983 | 989 | | |
984 | 990 | | |
985 | 991 | | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
986 | 1003 | | |
987 | 1004 | | |
988 | 1005 | | |
| |||
1102 | 1119 | | |
1103 | 1120 | | |
1104 | 1121 | | |
| 1122 | + | |
1105 | 1123 | | |
1106 | 1124 | | |
1107 | 1125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | 38 | | |
43 | 39 | | |
44 | 40 | | |
| |||
49 | 45 | | |
50 | 46 | | |
51 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
52 | 58 | | |
53 | 59 | | |
54 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | 244 | | |
258 | 245 | | |
259 | 246 | | |
| |||
0 commit comments