Commit 7faa3a8
authored
fix: remove terminated extension services from instance config (#620)
## Description
Fixes a gap where extension services marked for removal were not cleaned
up from instance config even after all DPUs reported successful
termination.
Previously, terminated extension service cleanup was only executed in
the `WaitingForExtensionServicesConfig` instance state; however,
extension service config updates do not transition the machine out of
Ready (only tenant state moves to `Configuring`). This change adds
instance extension service config cleanup in the `Ready` state so
terminated services can be cleaned up.
## Type of Change
<!-- Check one that best describes this PR -->
- [ ] **Add** - New feature or capability
- [ ] **Change** - Changes in existing functionality
- [x] **Fix** - Bug fixes
- [ ] **Remove** - Removed features or deprecated functionality
- [ ] **Internal** - Internal changes (refactoring, tests, docs, etc.)
## Related Issues (Optional)
<!-- If applicable, provide GitHub Issue. -->
## Breaking Changes
- [ ] This PR contains breaking changes
<!-- If checked above, describe the breaking changes and migration steps
-->
## Testing
<!-- How was this tested? Check all that apply -->
- [x] Unit tests added/updated
- [ ] Integration tests added/updated
- [ ] Manual testing performed
- [ ] No testing required (docs, internal refactor, etc.)
Signed-off-by: Felicity Xu <hanyux@nvidia.com>1 parent 8d52f26 commit 7faa3a8
File tree
3 files changed
+284
-47
lines changed- crates/api/src
- state_controller/machine
- tests
- common/api_fixtures
3 files changed
+284
-47
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5438 | 5438 | | |
5439 | 5439 | | |
5440 | 5440 | | |
5441 | | - | |
5442 | | - | |
5443 | | - | |
| 5441 | + | |
| 5442 | + | |
| 5443 | + | |
| 5444 | + | |
| 5445 | + | |
| 5446 | + | |
| 5447 | + | |
| 5448 | + | |
| 5449 | + | |
| 5450 | + | |
| 5451 | + | |
| 5452 | + | |
| 5453 | + | |
| 5454 | + | |
| 5455 | + | |
| 5456 | + | |
| 5457 | + | |
| 5458 | + | |
| 5459 | + | |
5444 | 5460 | | |
5445 | 5461 | | |
5446 | 5462 | | |
| |||
5465 | 5481 | | |
5466 | 5482 | | |
5467 | 5483 | | |
5468 | | - | |
| 5484 | + | |
| 5485 | + | |
| 5486 | + | |
| 5487 | + | |
5469 | 5488 | | |
5470 | 5489 | | |
5471 | 5490 | | |
| |||
5511 | 5530 | | |
5512 | 5531 | | |
5513 | 5532 | | |
| 5533 | + | |
| 5534 | + | |
| 5535 | + | |
| 5536 | + | |
| 5537 | + | |
| 5538 | + | |
| 5539 | + | |
| 5540 | + | |
| 5541 | + | |
| 5542 | + | |
| 5543 | + | |
| 5544 | + | |
| 5545 | + | |
| 5546 | + | |
| 5547 | + | |
| 5548 | + | |
| 5549 | + | |
| 5550 | + | |
| 5551 | + | |
| 5552 | + | |
| 5553 | + | |
| 5554 | + | |
| 5555 | + | |
| 5556 | + | |
| 5557 | + | |
| 5558 | + | |
| 5559 | + | |
5514 | 5560 | | |
5515 | 5561 | | |
5516 | 5562 | | |
| |||
5610 | 5656 | | |
5611 | 5657 | | |
5612 | 5658 | | |
5613 | | - | |
| 5659 | + | |
| 5660 | + | |
| 5661 | + | |
| 5662 | + | |
| 5663 | + | |
5614 | 5664 | | |
5615 | 5665 | | |
5616 | 5666 | | |
| |||
5642 | 5692 | | |
5643 | 5693 | | |
5644 | 5694 | | |
| 5695 | + | |
| 5696 | + | |
5645 | 5697 | | |
5646 | 5698 | | |
5647 | 5699 | | |
| |||
6137 | 6189 | | |
6138 | 6190 | | |
6139 | 6191 | | |
6140 | | - | |
| 6192 | + | |
6141 | 6193 | | |
6142 | 6194 | | |
6143 | | - | |
6144 | | - | |
| 6195 | + | |
6145 | 6196 | | |
6146 | 6197 | | |
6147 | 6198 | | |
6148 | 6199 | | |
6149 | 6200 | | |
6150 | 6201 | | |
6151 | | - | |
6152 | | - | |
6153 | | - | |
6154 | | - | |
6155 | | - | |
6156 | | - | |
6157 | | - | |
6158 | | - | |
6159 | | - | |
6160 | | - | |
6161 | | - | |
6162 | | - | |
6163 | | - | |
6164 | | - | |
6165 | | - | |
6166 | | - | |
6167 | | - | |
6168 | | - | |
6169 | | - | |
6170 | | - | |
6171 | | - | |
6172 | | - | |
| 6202 | + | |
| 6203 | + | |
| 6204 | + | |
| 6205 | + | |
| 6206 | + | |
| 6207 | + | |
| 6208 | + | |
| 6209 | + | |
| 6210 | + | |
6173 | 6211 | | |
6174 | | - | |
6175 | | - | |
6176 | | - | |
6177 | | - | |
6178 | | - | |
6179 | | - | |
6180 | | - | |
6181 | | - | |
| 6212 | + | |
| 6213 | + | |
| 6214 | + | |
| 6215 | + | |
| 6216 | + | |
| 6217 | + | |
| 6218 | + | |
| 6219 | + | |
6182 | 6220 | | |
6183 | | - | |
6184 | | - | |
6185 | | - | |
6186 | | - | |
| 6221 | + | |
| 6222 | + | |
| 6223 | + | |
6187 | 6224 | | |
6188 | 6225 | | |
6189 | | - | |
| 6226 | + | |
| 6227 | + | |
| 6228 | + | |
| 6229 | + | |
| 6230 | + | |
| 6231 | + | |
| 6232 | + | |
| 6233 | + | |
| 6234 | + | |
| 6235 | + | |
| 6236 | + | |
| 6237 | + | |
| 6238 | + | |
| 6239 | + | |
| 6240 | + | |
| 6241 | + | |
| 6242 | + | |
| 6243 | + | |
| 6244 | + | |
| 6245 | + | |
| 6246 | + | |
| 6247 | + | |
| 6248 | + | |
6190 | 6249 | | |
6191 | 6250 | | |
6192 | 6251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2069 | 2069 | | |
2070 | 2070 | | |
2071 | 2071 | | |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
| 2079 | + | |
| 2080 | + | |
| 2081 | + | |
| 2082 | + | |
2072 | 2083 | | |
2073 | 2084 | | |
2074 | 2085 | | |
| |||
2160 | 2171 | | |
2161 | 2172 | | |
2162 | 2173 | | |
2163 | | - | |
2164 | | - | |
2165 | | - | |
| 2174 | + | |
| 2175 | + | |
| 2176 | + | |
2166 | 2177 | | |
2167 | 2178 | | |
2168 | 2179 | | |
| |||
0 commit comments