Skip to content

Conversation

@rp-
Copy link
Contributor

@rp- rp- commented Oct 21, 2024

Description

In non-hyperconverged setups, diskless nodes don't have a connection to each other, so setting properties there had no effect. Now it is checked if a connection exists,
between the live migration nodes and if not,
it will set the allow-two-primaries on resource-definition level.

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?

Linstor cluster with storage nodes (non hyperconverged) and a hyperconverged Linstor cluster.

How did you try to break this feature and the system with this change?

@codecov
Copy link

codecov bot commented Oct 21, 2024

Codecov Report

Attention: Patch coverage is 0% with 45 lines in your changes missing coverage. Please review.

Project coverage is 12.27%. Comparing base (1af4158) to head (8c1a6b3).
Report is 1 commits behind head on 4.18.

Files with missing lines Patch % Lines
.../hypervisor/kvm/storage/LinstorStorageAdaptor.java 0.00% 36 Missing ⚠️
...cloudstack/storage/datastore/util/LinstorUtil.java 0.00% 9 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               4.18    #9832      +/-   ##
============================================
- Coverage     12.27%   12.27%   -0.01%     
+ Complexity     9335     9334       -1     
============================================
  Files          4699     4699              
  Lines        414691   414724      +33     
  Branches      53409    51688    -1721     
============================================
- Hits          50891    50888       -3     
- Misses       357475   357512      +37     
+ Partials       6325     6324       -1     
Flag Coverage Δ
unittests 12.27% <0.00%> (-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.

@rp- rp- marked this pull request as draft October 23, 2024 08:48
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

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

@rp-
Copy link
Contributor Author

rp- commented Oct 23, 2024

sorry have to rework it a bit, to be more fine grained in the non-hyperconverged case

@blueorangutan
Copy link

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

@rp- rp- marked this pull request as ready for review October 29, 2024 07:53
@rp-
Copy link
Contributor Author

rp- commented Oct 29, 2024

Ok reviewed/discussed this again, we lack the API's currently in Linstor to do this in a perfect way.
So this is for now good enough and will also work for all current use cases.

@rp- rp- requested a review from DaanHoogland October 29, 2024 07:54
Copy link
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

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

clgtm

In non-hyperconverged setups, diskless nodes don't have a connection
to each other, so setting properties there had no effect.
Now it is checked if a connection exists,
between the live migration nodes and if not,
it will set the allow-two-primaries on resource-definition level.
@rp- rp- force-pushed the linstor-4.18-fix-live-migration-non-hyperconverged branch from 7bd2eb7 to 8c1a6b3 Compare October 29, 2024 14:10
Copy link
Contributor

@borisstoyanov borisstoyanov left a comment

Choose a reason for hiding this comment

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

code LGTM

@DaanHoogland
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

@DaanHoogland 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 11479

@DaanHoogland
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

@DaanHoogland 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-11729)
Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 44188 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9832-t11729-kvm-ol8.zip
Smoke tests completed. 110 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
ContextSuite context=TestISOUsage>:setup Error 0.00 test_usage.py

@rohityadavcloud rohityadavcloud added this to the 4.19.2.0 milestone Nov 7, 2024
@rohityadavcloud rohityadavcloud merged commit 371e244 into apache:4.18 Nov 7, 2024
24 of 27 checks passed
@DaanHoogland
Copy link
Contributor

@rp- this has been merged forward to main, but with conflicts. Can you please check if the merge was successful/done properly? thanks

@rp-
Copy link
Contributor Author

rp- commented Nov 7, 2024

@rp- this has been merged forward to main, but with conflicts. Can you please check if the merge was successful/done properly? thanks

LGTM

@rp- rp- deleted the linstor-4.18-fix-live-migration-non-hyperconverged branch November 7, 2024 12:12
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Nov 20, 2024
In non-hyperconverged setups, diskless nodes don't have a connection
to each other, so setting properties there had no effect.
Now it is checked if a connection exists,
between the live migration nodes and if not,
it will set the allow-two-primaries on resource-definition level.
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.

6 participants