Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PowerFlex on demand disable config key #9664

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mprokopchuk
Copy link
Contributor

@mprokopchuk mprokopchuk commented Sep 10, 2024

Description

Added configuration key powerflex.connect.on.demand. When set to false, then logic in ScaleIO plugin to disconnect Host from the storage pool when there are no volumes and connect Host to storage pool when new volume created will not be used (#9268).

The reason for that - plugin's connect/disconnect logic stops and starts scini service. If Host connected to multiple storage pools, then it won't be disconnected from unused pools, there will be all or none. Also we observed scini stability issue - after multiple start/stop it is not always starting back properly.
For now we would like to have flag to enable/disable this feature.

In addition, as part of the PR, added SQL to update resource_reservation table with two new columns. Right now we are copy-pasting that SQL within RPMs to be executed during deployment, but having migration script would be better issue.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • 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)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

Screenshot 2024-08-15 at 6 09 24 PM

How Has This Been Tested?

Tested manually.

…disable PowerFlex on-demand connection from Host to Storage Pool feature.
@mprokopchuk
Copy link
Contributor Author

@blueorangutan test

@sureshanaparti
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

Copy link

codecov bot commented Sep 10, 2024

Codecov Report

Attention: Patch coverage is 14.28571% with 18 lines in your changes missing coverage. Please review.

Project coverage is 15.81%. Comparing base (501d8c1) to head (468dbcb).
Report is 29 commits behind head on main.

Files with missing lines Patch % Lines
...orage/datastore/manager/ScaleIOSDCManagerImpl.java 14.28% 17 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9664      +/-   ##
============================================
+ Coverage     15.77%   15.81%   +0.03%     
- Complexity    12538    12555      +17     
============================================
  Files          5621     5629       +8     
  Lines        491556   492061     +505     
  Branches      60227    60644     +417     
============================================
+ Hits          77562    77836     +274     
- Misses       405537   405903     +366     
+ Partials       8457     8322     -135     
Flag Coverage Δ
uitests 4.48% <ø> (+0.43%) ⬆️
unittests 16.61% <14.28%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@sureshanaparti sureshanaparti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clgtm

@sureshanaparti
Copy link
Contributor

Hi @mprokopchuk No SQL changes in the PR as mention in the description, Please check/update the PR changes or description accordingly. Thanks.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 11067

@sureshanaparti
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

@sureshanaparti a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

@JoaoJandre JoaoJandre modified the milestones: 4.20.0.0, 4.21.0.0 Sep 10, 2024
@blueorangutan
Copy link

[SF] Trillian test result (tid-11435)
Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 52922 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9664-t11435-kvm-ol8.zip
Smoke tests completed. 141 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

@rohityadavcloud
Copy link
Member

cc @JoaoJandre we've asked our @borisstoyanov to help with QA.

@rohityadavcloud rohityadavcloud removed this from the 4.20.1.0 milestone Sep 17, 2024
@rohityadavcloud rohityadavcloud added this to the 4.20.0.0 milestone Sep 17, 2024
@JoaoJandre
Copy link
Contributor

@mprokopchuk the description states that there is a SQL change, but I don't see any SQL changes, will it be added? If not, could you update the description?

@borisstoyanov
Copy link
Contributor

@mprokopchuk the description states that there is a SQL change, but I don't see any SQL changes, will it be added? If not, could you update the description?

Looks like a copy/paste error, I believe this part can be removed from the PR description.

…tack/storage/datastore/manager/ScaleIOSDCManagerImpl.java
@sureshanaparti
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el8 ✖️ el9 ✔️ debian ✖️ suse15. SL-JID 11157

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants