Commit 2590e63
committed
Merged PR 32: Support IcM ticket creation for OFR nodes
Support IcM ticket creation for OFR ndoes.
# Documents for testing new features
### Description:
Add node-recycler service to submit IcM ticket to UA nodes and recycle nodes.
### Test Actions:
1. Build the image for the node-recycler service.
2. Write the configuration file for the node-recycler under alert-manager:
```yaml
node-recycler:
configured: False
kusto:
cluster: luciatrainingplatform
datebase: ""
icm:
host: prod.microsofticm.com
crt_name: cert.pem
crt_path: /icm/cert.pem
key_name: key.pem
key_path: /icm/key.pem
connector_id: ""
routing_id: hpclucia://AzureHPC/Lucia/TrainingPlatform
vmss:
client_id: ""
vmss_ids: "/subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss}"
validation_image: bench.azurecr.io/superbench:0.11-rocm6.3
```
3. Prepare the certificate files for IcM connector.
4. Deploy the service to the cluster.
5. Mark some nodes as `triaged_hardware` in the node status table and add corresponding action record in the node action table.
6. Check whether the service can submit corresponding IcM tickets and deallocate/start the node.
### Expected Results:
1. Build the image successfully.
2. The service is deployed successfully.
3. The corresponding node should have the following status and action added to the node status table and node action table:
* status: `ua`, action: `triaged_hardware-ua`
* status: `deallocated_ua`, action: `ua-deallocated_ua`
* status: `allocated_ua`, action: `deallocated_ua-allocated-ua`
* status: `validating`, action: `allocated_ua-validating`
4. There exist one superbench job with the name `superbench_uaback_auto_xxxxxxxx` for corresponding node in the cluster.1 parent 40e4f7d commit 2590e63
File tree
11 files changed
+584
-0
lines changed- src/alert-manager
- build
- config
- deploy
- src/node-recycler
11 files changed
+584
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
26 | 43 | | |
27 | 44 | | |
28 | 45 | | |
| |||
Lines changed: 69 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
196 | 258 | | |
197 | 259 | | |
198 | 260 | | |
| |||
212 | 274 | | |
213 | 275 | | |
214 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
215 | 284 | | |
216 | 285 | | |
217 | 286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
34 | 42 | | |
35 | 43 | | |
36 | 44 | | |
| |||
Submodule python-icm added at bd61c6b
0 commit comments