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

VR: fix issue between VPC VMs and other Public IPs in the same subnet as additional Public IPs #8599

Merged
merged 2 commits into from
Feb 13, 2024

Conversation

weizhouapache
Copy link
Member

Description

This PR fixes #8562

If there are mutliple public subnets in a VR, there should be iptables rules like

-A POSTROUTING -o eth1 -j SNAT --to-source <Source NAT IP>
-A POSTROUTING -o eth3 -j SNAT --to-source <Source NAT IP>
-A POSTROUTING -o ethX -j SNAT --to-source <Source NAT IP>

in VR of isolated networks, these rules do exist.
Howver in VPC VR, only the first rule exists, the other rules are missing

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

Screenshots (if appropriate):

How Has This Been Tested?

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

@weizhouapache weizhouapache added this to the 4.18.2.0 milestone Feb 2, 2024
@weizhouapache
Copy link
Member Author

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

Copy link

codecov bot commented Feb 2, 2024

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (b34f093) 13.16% compared to head (894995c) 13.16%.
Report is 5 commits behind head on 4.18.

❗ Current head 894995c differs from pull request most recent head 9236d16. Consider uploading reports for the commit 9236d16 to get more accurate results

Files Patch % Lines
...ork/router/VirtualNetworkApplianceManagerImpl.java 0.00% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               4.18    #8599      +/-   ##
============================================
- Coverage     13.16%   13.16%   -0.01%     
+ Complexity     9203     9201       -2     
============================================
  Files          2724     2724              
  Lines        258087   258091       +4     
  Branches      40223    40225       +2     
============================================
- Hits          33987    33984       -3     
- Misses       219793   219801       +8     
+ Partials       4307     4306       -1     

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

@blueorangutan
Copy link

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

@weizhouapache
Copy link
Member Author

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

code lgtm

@weizhouapache weizhouapache linked an issue Feb 5, 2024 that may be closed by this pull request
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

@rohityadavcloud
Copy link
Member

@blueorangutan package

@blueorangutan
Copy link

@rohityadavcloud 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 8601

@weizhouapache
Copy link
Member Author

@blueorangutan test

@blueorangutan
Copy link

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

@blueorangutan
Copy link

[SF] Trillian test result (tid-9141)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 41128 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8599-t9141-kvm-centos7.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_08_migrate_vm Error 0.06 test_vm_life_cycle.py

@rohityadavcloud rohityadavcloud merged commit e47a910 into apache:4.18 Feb 13, 2024
23 of 25 checks passed
@DaanHoogland DaanHoogland deleted the 4.18-fix-vpc-vr-to-source branch February 13, 2024 08:11
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Feb 20, 2024
… as additional Public IPs (apache#8599)

* VR: fix issue between VPC VMs and other Public IPs in the same subnet as additional Public IPs

* Update PR8599: move to VpcVirtualNetworkApplianceManagerImpl
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.

VPC Routing/Network Issue
5 participants