shrikantjoshi-hpe opened a new pull request, #11487: URL: https://github.com/apache/cloudstack/pull/11487
### Description This PR addresses a session leak issue in the Primera storage adapter by updating the disconnect method to ensure sessions are properly terminated. Additionally, a new logout method has been introduced to explicitly handle session cleanup. These changes improve resource management and prevent lingering sessions that could impact system stability. The disconnect method now calls the new logout method to ensure sessions are closed. The logout method encapsulates the logic for terminating sessions with the storage system. This is a bug fix aimed at improving reliability and resource usage. ### 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 - [x] Minor #### Bug Severity - [ ] BLOCKER - [ ] Critical - [ ] Major - [x] Minor - [ ] Trivial ### Screenshots (if appropriate): N/A ### How Has This Been Tested? - Deploying the updated adapter in a test environment. - Performing storage operations that trigger the disconnect method. - Verifying that sessions are properly terminated and no session leaks occur. - Monitoring logs and resource usage to confirm expected behavior. #### How did you try to break this feature and the system with this change? - Attempted multiple connect/disconnect cycles to ensure sessions do not accumulate. - Checked for any side effects on other storage operations. - Validated that the new logout method does not interfere with normal adapter functionality. -- 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: commits-unsubscr...@cloudstack.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org