Skip to content

Conversation

@shwstppr
Copy link
Contributor

Description

Fixes #10002

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?

@shwstppr shwstppr force-pushed the ui-fix-firewall-sourcecidr branch from af70946 to 4762115 Compare January 20, 2025 05:50
@apache apache deleted a comment from blueorangutan Jan 20, 2025
@apache apache deleted a comment from blueorangutan Jan 20, 2025
@shwstppr
Copy link
Contributor Author

@blueorangutan ui

@blueorangutan
Copy link

@shwstppr a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@blueorangutan
Copy link

UI build failed: ✖️
(SL-JID-509)

Signed-off-by: Abhishek Kumar <[email protected]>
@codecov
Copy link

codecov bot commented Jan 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 15.14%. Comparing base (9967bb3) to head (20244ab).
Report is 34 commits behind head on 4.19.

Additional details and impacted files
@@             Coverage Diff              @@
##               4.19   #10208      +/-   ##
============================================
+ Coverage     15.13%   15.14%   +0.01%     
- Complexity    11274    11285      +11     
============================================
  Files          5408     5408              
  Lines        473974   473769     -205     
  Branches      57813    57813              
============================================
+ Hits          71730    71768      +38     
+ Misses       394227   393982     -245     
- Partials       8017     8019       +2     
Flag Coverage Δ
uitests 4.30% <ø> (-0.01%) ⬇️
unittests 15.87% <100.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.

@shwstppr
Copy link
Contributor Author

@blueorangutan ui

@blueorangutan
Copy link

@shwstppr a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@blueorangutan
Copy link

UI build: ✔️
Live QA URL: https://qa.cloudstack.cloud/simulator/pr/10208 (QA-JID-510)

Copy link
Collaborator

@abh1sar abh1sar left a comment

Choose a reason for hiding this comment

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

LGTM.

p.s. what would be the behaviour if the same was done using api (Passing empty string cidr)? If it is the same, can we sanitise the input or throw some error from the api?

Signed-off-by: Abhishek Kumar <[email protected]>
@shwstppr shwstppr changed the title ui: fix empty source cidr value for firewall rule api,ui: fix empty source cidr value for firewall rule Jan 22, 2025
@shwstppr
Copy link
Contributor Author

@abh1sar API was allowing empty cidr as it takes List as input,

(qaserver) 🐱 > create firewallrule cidrlist= protocol=tcp ipaddressid=e7314c68-c570-42c5-939e-e61f5b30cb4b startport=22 endport=22
{
  "firewallrule": {
    "cidrlist": "",
    "destcidrlist": "",
    "endport": 22,
    "fordisplay": true,
    "id": "2a0c6f0f-bb4c-4f2d-9c2d-1129b523f584",
    "ipaddress": "192.168.1.173",
    "ipaddressid": "e7314c68-c570-42c5-939e-e61f5b30cb4b",
    "networkid": "00089a57-3cc1-4ddc-973c-251a6f097372",
    "protocol": "tcp",
    "startport": 22,
    "state": "Active",
    "tags": [],
    "traffictype": "Ingress"
  }
}

I've added a check

@blueorangutan package

@blueorangutan
Copy link

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

@shwstppr
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

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

@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 Build Failed (tid-12176)

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.

code lgtm

@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

[LL]Trillian test result (tid-7066)
Environment: kvm-alma8 (x2), Advanced Networking with Mgmt server a8
Total time taken: 41014 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10208-t7066-kvm-alma8.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

@blueorangutan
Copy link

[SF] Trillian test result (tid-12185)
Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 45412 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10208-t12185-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

@shwstppr shwstppr marked this pull request as ready for review January 27, 2025 08:23
@DaanHoogland DaanHoogland added this to the 4.19.2 milestone Jan 27, 2025
@DaanHoogland DaanHoogland self-assigned this Jan 30, 2025
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, tested in a lab env (also unit tests provided

@DaanHoogland DaanHoogland merged commit 27efc77 into apache:4.19 Jan 31, 2025
26 checks passed
@DaanHoogland DaanHoogland deleted the ui-fix-firewall-sourcecidr branch January 31, 2025 12:30
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Jun 19, 2025
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.

UI bug: the Source/Destination CIDR are set to empty not 0.0.0.0/0

5 participants