winterhazel opened a new pull request, #14834:
URL: https://github.com/apache/cloudstack/pull/14834

   ### Description
   
   `IscsiStorageCleanupMonitor` compares `/dev/disk/by-path` entries with 
libvirt disk paths using `String.equals`. Due to this, adapters that write 
identity-stable aliases into the XML (for example ONTAP `by-id`/`wwn` paths) 
never match, so LUNs that are still in use are treated as stale and can be 
logged out.
       
   This PR fixes the issue by resolving both the collected by-path entries and 
the VM disk paths to their backing kernel block devices, and matching on that 
identity. Additionally, it also contains a few adjustments to the iSCSI cleanup 
monitor:
       
   - Route inactive cleanup through `KVMStoragePoolManager` so the adaptor 
owning the alias handles it, and provide `by-id` and mapper aliases in a 
deterministic order.
   - Harden `IscsiAdmStorageAdaptor` so it claims only well-formed iSCSI 
`by-path` entries.
   - Make unresolved paths non-blocking by ignoring missing aliases, protecting 
existing but unidentifiable iSCSI entries without blocking other cleanups, and 
skipping a round only when a VM disk alias cannot be identified.
   
   ### 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)
   - [X] 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
   - [X] Minor
   
   #### Bug Severity
   
   - [ ] BLOCKER
   - [ ] Critical
   - [X] Major
   - [ ] Minor
   - [ ] Trivial
   
   ### How Has This Been Tested?
   
   Tests are still pending.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to