Skip to content

prevent duplicate ip table rules in SSVM#8530

Merged
DaanHoogland merged 10 commits intoapache:4.18from
shapeblue:ghi8061-duplicateIpTableRules
Jun 14, 2024
Merged

prevent duplicate ip table rules in SSVM#8530
DaanHoogland merged 10 commits intoapache:4.18from
shapeblue:ghi8061-duplicateIpTableRules

Conversation

@DaanHoogland
Copy link
Contributor

Description

This PR...

Fixes: #8061

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

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

might become more than minor on long running ssvms

Screenshots (if appropriate):

How Has This Been Tested?

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

@DaanHoogland DaanHoogland changed the title Ghi8061 duplicate ip table rules prevent duplicate ip table rules in SSVM Jan 18, 2024
@DaanHoogland DaanHoogland force-pushed the ghi8061-duplicateIpTableRules branch from 057ab32 to ca2f543 Compare January 18, 2024 12:47
@codecov
Copy link

codecov bot commented Jan 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 13.17%. Comparing base (0b080cf) to head (0d50cba).

Additional details and impacted files
@@            Coverage Diff            @@
##               4.18    #8530   +/-   ##
=========================================
  Coverage     13.17%   13.17%           
  Complexity     9204     9204           
=========================================
  Files          2724     2724           
  Lines        258137   258137           
  Branches      40235    40235           
=========================================
  Hits          33998    33998           
  Misses       219830   219830           
  Partials       4309     4309           

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

@DaanHoogland DaanHoogland linked an issue Jan 18, 2024 that may be closed by this pull request
@apache apache deleted a comment from blueorangutan Jan 19, 2024
@apache apache deleted a comment from blueorangutan Jan 19, 2024
@apache apache deleted a comment from blueorangutan Jan 19, 2024
@apache apache deleted a comment from blueorangutan Jan 19, 2024
@apache apache deleted a comment from blueorangutan Feb 16, 2024
@apache apache deleted a comment from blueorangutan Feb 16, 2024
@apache apache deleted a comment from blueorangutan Feb 16, 2024
@apache apache deleted a comment from blueorangutan Feb 16, 2024
@apache apache deleted a comment from blueorangutan Feb 16, 2024
@apache apache deleted a comment from blueorangutan Feb 16, 2024
@apache apache deleted a comment from blueorangutan Feb 16, 2024
@DaanHoogland DaanHoogland marked this pull request as ready for review February 16, 2024 14:34
@apache apache deleted a comment from ustcweizhou Feb 19, 2024
@weizhouapache
Copy link
Member

@DaanHoogland
this looks not work

@DaanHoogland DaanHoogland marked this pull request as draft February 23, 2024 08:24
@DaanHoogland DaanHoogland force-pushed the ghi8061-duplicateIpTableRules branch from 5dd121c to 0d50cba Compare March 5, 2024 11:59
@apache apache deleted a comment from blueorangutan Mar 5, 2024
@apache apache deleted a comment from blueorangutan Mar 5, 2024
@blueorangutan
Copy link

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

@weizhouapache
Copy link
Member

@blueorangutan package

@blueorangutan
Copy link

@weizhouapache 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]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 9881

@weizhouapache
Copy link
Member

@blueorangutan test rocky8 kvm-rocky8

@blueorangutan
Copy link

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

Copy link
Member

@weizhouapache weizhouapache left a comment

Choose a reason for hiding this comment

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

overall lgtm

left minor comments

//process completed successfully
if (_process.exitValue() == 0) {
_logger.debug("Execution is successful.");
String result;
Copy link
Member

Choose a reason for hiding this comment

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

I guess these are for debugging, right ? @DaanHoogland

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, should I remove those? I think they could serve purpose for other work as well.

//process completed successfully
if (_process.exitValue() == 0) {
_logger.debug("Execution is successful.");
String result;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, should I remove those? I think they could serve purpose for other work as well.

…udstack/storage/template/DownloadManagerImpl.java

Co-authored-by: Wei Zhou <weizhou@apache.org>
@vladimirpetrov vladimirpetrov self-assigned this Jun 12, 2024
@vladimirpetrov
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

@vladimirpetrov 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]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 9902

@blueorangutan
Copy link

[SF] Trillian test result (tid-10417)
Environment: kvm-rocky8 (x2), Advanced Networking with Mgmt server r8
Total time taken: 44990 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8530-t10417-kvm-rocky8.zip
Smoke tests completed. 109 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_migrate_VM_and_root_volume Error 88.05 test_vm_life_cycle.py
test_02_migrate_VM_with_two_data_disks Error 55.20 test_vm_life_cycle.py
test_08_migrate_vm Error 0.07 test_vm_life_cycle.py

Copy link
Contributor

@nvazquez nvazquez 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 Author

[SF] Trillian test result (tid-10417) Environment: kvm-rocky8 (x2), Advanced Networking with Mgmt server r8 Total time taken: 44990 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8530-t10417-kvm-rocky8.zip Smoke tests completed. 109 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_migrate_VM_and_root_volume Error 88.05 test_vm_life_cycle.py
test_02_migrate_VM_with_two_data_disks Error 55.20 test_vm_life_cycle.py
test_08_migrate_vm Error 0.07 test_vm_life_cycle.py

The failures are due to a host being in connecting state, which has not to do with the SSVM, so I consider them unrelated.

@weizhouapache
Copy link
Member

The failures are due to a host being in connecting state, which has not to do with the SSVM, so I consider them unrelated.

a side-note, I have faced the issue frequently, a random node (among 3) is stuck at Connecting state. It comes normal after 3600 seconds.
the error log

2024-06-10T09:30:54,046 DEBUG [c.c.a.m.ClusteredAgentManagerImpl] (AgentConnectTaskPool-35:[ctx-d47a6aa2]) (logid:8d018ce9) Failed to handle host connection: com.cloud.exception.ConnectionException: Unable to acquire lock on host 9c8f74c5-17aa-46f3-9b65-b905520b2879
        at com.cloud.agent.manager.AgentManagerImpl.sendReadyAndGetAttache(AgentManagerImpl.java:1127)
        at com.cloud.agent.manager.AgentManagerImpl.handleConnectedAgent(AgentManagerImpl.java:1140)

I think it deserves an investigation. cc @vishesh92 @DaanHoogland

Copy link
Contributor

@vladimirpetrov vladimirpetrov left a comment

Choose a reason for hiding this comment

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

LGTM based on manual testing, using steps as described in the issue.

@DaanHoogland DaanHoogland merged commit 56b69b1 into apache:4.18 Jun 14, 2024
@DaanHoogland DaanHoogland deleted the ghi8061-duplicateIpTableRules branch June 14, 2024 07:01
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Jun 20, 2024
Co-authored-by: Wei Zhou <weizhou@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

Duplicated iptables rules in Secondary Storage VM

6 participants