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] Add & Remove PowerFlex/ScaleIO MDMs for the storage SDC connections #9903

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

sureshanaparti
Copy link
Contributor

@sureshanaparti sureshanaparti commented Nov 7, 2024

Description

This PR adds & removes PowerFlex/ScaleIO MDM IP addressess while preparing & unpreparing the storage SDC connections (instead of start & stop scini), when powerflex.connect.on.demand is true. And adds & removes MDM IP addresses during Host connection/disconnection to/from storage pool, when powerflex.connect.on.demand is false.

MDMs details persisted using powerflex.storagepool.mdms detail, in storage_pool_details table:

mysql> SELECT * FROM cloud.storage_pool_details WHERE pool_id = 3 AND name = 'powerflex.storagepool.mdms';
+----+---------+---------------------------------+------------------------------------------------------+---------+
| id | pool_id | name                            | value                                                | display |
+----+---------+---------------------------------+------------------------------------------------------+---------+
|  2 |       3 | powerflex.storagepool.mdms      | 10.0.33.178,10.0.33.87                               |       1 |
+----+---------+---------------------------------+------------------------------------------------------+---------+

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)
  • build/CI
  • test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

Tested VM start/stop operations, noticed MDMs added/removed in hosts.

@sureshanaparti
Copy link
Contributor Author

@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 Nov 7, 2024

Codecov Report

Attention: Patch coverage is 9.81912% with 349 lines in your changes missing coverage. Please review.

Project coverage is 16.05%. Comparing base (c94d0ab) to head (b065389).
Report is 27 commits behind head on main.

Files with missing lines Patch % Lines
...orage/datastore/manager/ScaleIOSDCManagerImpl.java 0.00% 70 Missing ⚠️
...torage/datastore/provider/ScaleIOHostListener.java 0.00% 64 Missing ⚠️
.../hypervisor/kvm/storage/ScaleIOStorageAdaptor.java 21.62% 25 Missing and 4 partials ⚠️
...atastore/driver/ScaleIOPrimaryDataStoreDriver.java 12.00% 21 Missing and 1 partial ⚠️
...re/lifecycle/ScaleIOPrimaryDataStoreLifeCycle.java 33.33% 17 Missing and 3 partials ⚠️
...ck/storage/datastore/api/StorageConfiguration.java 0.00% 19 Missing ⚠️
.../hypervisor/kvm/storage/KVMStoragePoolManager.java 0.00% 16 Missing ⚠️
...cloudstack/storage/datastore/util/ScaleIOUtil.java 50.00% 14 Missing and 2 partials ⚠️
...ore/client/ScaleIOGatewayClientConnectionPool.java 0.00% 14 Missing ⚠️
...a/com/cloud/storage/StoragePoolAutomationImpl.java 0.00% 11 Missing ⚠️
... and 13 more
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9903      +/-   ##
============================================
- Coverage     16.06%   16.05%   -0.01%     
- Complexity    12862    12869       +7     
============================================
  Files          5641     5645       +4     
  Lines        493791   494297     +506     
  Branches      59858    59962     +104     
============================================
+ Hits          79318    79368      +50     
- Misses       405691   406130     +439     
- Partials       8782     8799      +17     
Flag Coverage Δ
uitests 4.01% <ø> (-0.01%) ⬇️
unittests 16.90% <9.81%> (-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.

@blueorangutan
Copy link

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

@sureshanaparti
Copy link
Contributor Author

@blueorangutan test

@blueorangutan
Copy link

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

@blueorangutan
Copy link

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

Test Result Time (s) Test File
test_02_unsecure_vm_migration Error 503.38 test_vm_life_cycle.py

@sureshanaparti
Copy link
Contributor Author

@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.

@sureshanaparti sureshanaparti changed the title [PowerFlex] Add & Remove PowerFlex/ScaleIO MDMs while preparing & unpreparing the storage SDC connections [PowerFlex] Add & Remove PowerFlex/ScaleIO MDMs for the storage SDC connections Dec 24, 2024
@blueorangutan
Copy link

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

… storage SDC connections (instead of start & stop scini)
…rom storage pool when powerflex.connect.on.demand is false
@sureshanaparti sureshanaparti force-pushed the powerflex_scaleio-connection-with-mdms branch from c8603d2 to 86f5f0c Compare December 26, 2024 06:10
@sureshanaparti
Copy link
Contributor Author

@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 11910

@apache apache deleted a comment from blueorangutan Dec 27, 2024
@apache apache deleted a comment from blueorangutan Dec 27, 2024
@sureshanaparti
Copy link
Contributor Author

@blueorangutan test

@blueorangutan
Copy link

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

@sureshanaparti sureshanaparti force-pushed the powerflex_scaleio-connection-with-mdms branch from e7b0700 to b065389 Compare December 27, 2024 14:01
@apache apache deleted a comment from blueorangutan Dec 27, 2024
@sureshanaparti
Copy link
Contributor Author

@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.

@apache apache deleted a comment from blueorangutan Dec 27, 2024
@blueorangutan
Copy link

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

@blueorangutan
Copy link

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

Test Result Time (s) Test File
test_01_vpc_site2site_vpn_multiple_options Failure 557.77 test_vpc_vpn.py

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.

2 participants