Skip to content

consider a valid ipv4 address as a validish ipv4 /32 cidr - #10174

Merged
weizhouapache merged 5 commits into
apache:4.19from
shapeblue:ghi10172-isValidCidr
Jan 15, 2025
Merged

consider a valid ipv4 address as a validish ipv4 /32 cidr#10174
weizhouapache merged 5 commits into
apache:4.19from
shapeblue:ghi10172-isValidCidr

Conversation

@DaanHoogland

Copy link
Copy Markdown
Contributor

Description

This PR...

Fixes: #10172

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?

Comment threadutils/src/main/java/com/cloud/utils/net/NetUtils.java Outdated
@codecov

codecovBot commented Jan 9, 2025

Copy link
Copy Markdown

Codecov Report

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

Project coverage is 15.12%. Comparing base (afc95f1) to head (03c2598).
Report is 4 commits behind head on 4.19.

Files with missing linesPatch %Lines
.../secondarystorage/SecondaryStorageManagerImpl.java0.00%5 Missing ⚠️
Additional details and impacted files
@@ Coverage Diff @@## 4.19 #10174 +/- ##
============================================
- Coverage 15.12% 15.12% -0.01% 
Complexity 11268 11268 ============================================
Files 5408 5408 Lines 473954 473961 +7 Branches 57810 57812 +2 ============================================
- Hits 71709 71706 -3 - Misses 394231 394240 +9 - Partials 8014 8015 +1 
FlagCoverage Δ
uitests4.30% <ø> (ø)
unittests15.84% <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.

@DaanHooglandDaanHoogland added this to the 4.19.2 milestone Jan 10, 2025
…/cloudstack/secondarystorage/SecondaryStorageManagerImpl.java
@apacheapache deleted a comment from blueorangutanJan 10, 2025
@apacheapache deleted a comment from blueorangutanJan 10, 2025
@apacheapache deleted a comment from blueorangutanJan 10, 2025
@apacheapache deleted a comment from blueorangutanJan 10, 2025
@apacheapache deleted a comment from blueorangutanJan 10, 2025
@apacheapache deleted a comment from blueorangutanJan 10, 2025
@DaanHoogland
DaanHoogland marked this pull request as ready for review January 10, 2025 12:19
@DaanHoogland

Copy link
Copy Markdown
ContributorAuthor

@Pearl1594 , could you verify if this fits your purpose?

@apacheapache deleted a comment from blueorangutanJan 13, 2025
@DaanHoogland

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@wido
wido self-requested a review January 13, 2025 13:35

@widowido left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code LGTM

@apacheapache deleted a comment from blueorangutanJan 13, 2025
@blueorangutan

Copy link
Copy Markdown

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

@DaanHoogland

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@Pearl1594Pearl1594 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

tested. LTGM. However, I am not sure how 0.0.0.0 is to be handled

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-12097)
Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 46380 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10174-t12097-kvm-ol8.zip
Smoke tests completed. 133 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File

…/cloudstack/secondarystorage/SecondaryStorageManagerImpl.java
@DaanHoogland

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

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

@DaanHoogland

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-12107)
Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 45168 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10174-t12107-kvm-ol8.zip
Smoke tests completed. 133 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File

@weizhouapacheweizhouapache left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

code lgtm

@weizhouapache
weizhouapache merged commit cf5bd80 into apache:4.19Jan 15, 2025
@DaanHoogland
DaanHoogland deleted the ghi10172-isValidCidr branch January 15, 2025 14:15
DaanHoogland added a commit that referenced this pull request Jan 15, 2025
* 4.20:
Rollback of changes with errors during the VM assign (#7061)
[VMware] Consider CD/DVD drive when calculating next free unit number for volume attachment over IDE controller (#9644)
consider a valid ipv4 address as a validish ipv4 /32 cidr (#10174)
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Jan 16, 2025
* consider a valid ipv4 address as a validish ipv4 /32 cidr
* refactor cidr evaluation for internal nets
* Apply suggestions from code review
* Update services/secondary-storage/controller/src/main/java/org/apache/cloudstack/secondarystorage/SecondaryStorageManagerImpl.java
* Update services/secondary-storage/controller/src/main/java/org/apache/cloudstack/secondarystorage/SecondaryStorageManagerImpl.java
rg9975 pushed a commit to rg9975/cloudstack that referenced this pull request Jan 31, 2025
* consider a valid ipv4 address as a validish ipv4 /32 cidr
* refactor cidr evaluation for internal nets
* Apply suggestions from code review
* Update services/secondary-storage/controller/src/main/java/org/apache/cloudstack/secondarystorage/SecondaryStorageManagerImpl.java
* Update services/secondary-storage/controller/src/main/java/org/apache/cloudstack/secondarystorage/SecondaryStorageManagerImpl.java
Sign up for freeto 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.

SSVM goes into alert state if secstorage.allowed.internal.sites is set to an IP (not CIDR)

5 participants

@DaanHoogland@blueorangutan@wido@Pearl1594@weizhouapache