Repository navigation
Commit c5210eb
authored
Addressed the comments received on upstream PR for refactoring the fix for NFS Cancel maintenance (#131)
### Description
This PR addresses the comments received on upstream PR
apache#13897 to refactor the code
written for fixing the Cancel Maintenance where the Pool wasn't getting
mounted back in case of NFS.
<!---
*******************************************************************************
-->
<!--- NOTE: AUTOMATION USES THE DESCRIPTIONS TO SET LABELS AND PRODUCE
DOCUMENTATION. -->
<!--- PLEASE PUT AN 'X' in only **ONE** box -->
<!---
*******************************************************************************
-->
### Types of changes
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] New feature (non-breaking change which adds functionality)
- [X] Bug fix (non-breaking change which fixes an issue)
- [ ] Enhancement (improves an existing feature and functionality)
- [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
- [ ] Build/CI
- [ ] Test (unit or integration test code)
### Feature/Enhancement Scale or Bug Severity
#### Feature/Enhancement Scale
- [ ] Major
- [ ] Minor
#### Bug Severity
- [ ] BLOCKER
- [ ] Critical
- [X] Major
- [ ] Minor
- [ ] Trivial
### Screenshots (if appropriate):
<img width="1045" height="339" alt="Screenshot 2026-10-22 at 8 08 49 PM"
src="https://github.com/user-attachments/assets/438b7f0e-8b45-4b39-a425-3fb4bd4451ab"
/>
<img width="1298" height="183" alt="Screenshot 2026-10-22 at 8 10 22 PM"
src="https://github.com/user-attachments/assets/58507563-828d-4ff2-b50c-0decd4674578"
/>
<img width="1049" height="358" alt="Screenshot 2026-10-22 at 8 11 18 PM"
src="https://github.com/user-attachments/assets/0ad746fd-137a-4e76-92c8-8bddf3d28692"
/>
<img width="1302" height="216" alt="Screenshot 2026-10-22 at 8 12 02 PM"
src="https://github.com/user-attachments/assets/c0efeadf-a2b6-4328-adb3-928f6bfee618"
/>
<img width="1048" height="360" alt="Screenshot 2026-10-22 at 8 13 28 PM"
src="https://github.com/user-attachments/assets/f6eae7fb-08fc-4d29-94b6-678371f0054c"
/>
<img width="1301" height="314" alt="Screenshot 2026-10-22 at 8 12 51 PM"
src="https://github.com/user-attachments/assets/0eeba7e2-2e98-4e9c-b463-5606f1838776"
/>
### How Has This Been Tested?
- Created `Primary1` storage pool of `NetworkFileSystem` type using
`DefaultPrimary` storage plugin.
- Created `testPool` storage pool of `NetworkFileSystem` type using
`NetApp ONTAP` storage plugin.
- Enter Maintenance on both the pools.
- Cancel Maintenance on both the pools.
- At each stage, both `mount | grep nfs` and libvirtd's `virst pool-list
--all` should reflect the pools appropriately.
- Before Enter Maintenance, both the commands should have mount and pool
listed respectively.
- On Enter Maintenance, neither should be listed.
- On Cancel Maintenance, both should be listed again.1 parent 99acce7 commit c5210eb
4 files changed
Lines changed: 13 additions & 11 deletions
File tree
- plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm
- resource
- storage
- server/src/main/java/com/cloud/storage
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
53 | 59 | | |
54 | 60 | | |
55 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
460 | | - | |
461 | | - | |
462 | | - | |
| 460 | + | |
463 | 461 | | |
464 | | - | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
465 | 466 | | |
466 | 467 | | |
467 | 468 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
891 | 891 | | |
892 | 892 | | |
893 | 893 | | |
894 | | - | |
895 | | - | |
896 | | - | |
897 | | - | |
898 | | - | |
899 | 894 | | |
900 | 895 | | |
901 | 896 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1276 | 1276 | | |
1277 | 1277 | | |
1278 | 1278 | | |
1279 | | - | |
| 1279 | + | |
1280 | 1280 | | |
1281 | 1281 | | |
1282 | 1282 | | |
| |||
1286 | 1286 | | |
1287 | 1287 | | |
1288 | 1288 | | |
1289 | | - | |
| 1289 | + | |
1290 | 1290 | | |
1291 | 1291 | | |
1292 | 1292 | | |
| |||
0 commit comments