Skip to content

Conversation

@weizhouapache
Copy link
Member

@weizhouapache weizhouapache commented Dec 9, 2024

Description

Some iptables rules are created for static routes and private gateways since #6153
However, when add/remove static routes, the rules are not updated.

  • Create a VPC and tier/vm
  • Enable static nat to the vm
  • Create private gateway
  • Add static route to the private gateway

check the iptables rules by iptables-save |grep PREROUTING-eth1-def
expected: there is a rule for the static route, for example 192.168.x.x/24

-A PREROUTING-eth1-def -d 192.168.x.x/24 -j RETURN

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?

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

@codecov
Copy link

codecov bot commented Dec 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 15.12%. Comparing base (971a5b2) to head (b4e20fd).
Report is 11 commits behind head on 4.19.

Additional details and impacted files
@@            Coverage Diff            @@
##               4.19   #10064   +/-   ##
=========================================
  Coverage     15.12%   15.12%           
- Complexity    11259    11262    +3     
=========================================
  Files          5408     5408           
  Lines        473842   473842           
  Branches      57771    57771           
=========================================
+ Hits          71677    71688   +11     
+ Misses       394168   394155   -13     
- Partials       7997     7999    +2     
Flag Coverage Δ
uitests 4.30% <ø> (ø)
unittests 15.84% <ø> (+<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.

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

@DaanHoogland DaanHoogland added this to the 4.19.2 milestone Dec 9, 2024
@blueorangutan
Copy link

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

@DaanHoogland
Copy link
Contributor

@blueorangutan test keepEnv

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

Test Result Time (s) Test File

@DaanHoogland
Copy link
Contributor

tested, without static nat:

Screenshot From 2024-12-20 11-05-43

and with static nat:

Screenshot From 2024-12-20 11-00-30

Copy link
Member

@vishesh92 vishesh92 left a comment

Choose a reason for hiding this comment

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

lgtm

@vishesh92 vishesh92 merged commit ed1b145 into apache:4.19 Dec 20, 2024
25 checks passed
@DaanHoogland DaanHoogland deleted the 4.19-static-route-apply-rules branch December 20, 2024 10:37
DaanHoogland added a commit that referenced this pull request Dec 20, 2024
* 4.20:
  VR: apply iptables rules when add/remove static routes (#10064)
  Certificate and VM hostname validation improvements (#10051)
  set ulimit for server according to redhat spec (#10040)
  kvm-storage: provide isVMMigrate information to storage plugins (#10093)
  Allow config drive deletion of migrated VM, on host maintenance (#10045)
  linstor: improve heartbeat check with also asking linstor (#10105)
  server: simplify role change validation (#9173)
  UI: create VPC network offering with conserve mode (#10082)
  server: fix typo removeaccessvpn in VirtualRouterElement (#10086)
  UI: remove duplicated Instance Name in Public IP details page (#10087)
  UI: Fixes in the Usage UI (#10000)
  SAML2: add cookie with HttpOnly too #10013 (#10047)
  ui: Allow font-awesome icon usage and optimise icon size inconsistency (#9744)
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Dec 26, 2024
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.

4 participants