Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.22 #11076 +/- ##
============================================
+ Coverage 17.62% 17.89% +0.27%
- Complexity 15668 16091 +423
============================================
Files 5917 5938 +21
Lines 531255 532886 +1631
Branches 64951 65193 +242
============================================
+ Hits 93639 95383 +1744
+ Misses 427077 426824 -253
- Partials 10539 10679 +140
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
engine/schema/src/main/java/com/cloud/network/dao/PublicIpQuarantineDaoImpl.java
Outdated
Show resolved
Hide resolved
|
@blueorangutan package |
|
@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. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 14153 |
|
@blueorangutan LLtest |
|
@DaanHoogland a [LL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
@erikbocks , do you still want to move this forwards? |
|
Hello, @DaanHoogland Yes, I wish to move forward with this PR. It is currently waiting for reviews. |
engine/schema/src/main/java/com/cloud/network/dao/PublicIpQuarantineDao.java
Outdated
Show resolved
Hide resolved
engine/schema/src/main/java/com/cloud/network/dao/PublicIpQuarantineDaoImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/cloud/network/IpAddressManagerImpl.java
Outdated
Show resolved
Hide resolved
|
@erikbocks can this go into 4.20.3? |
|
@bernardodemarco I checked the code for the @winterhazel, sure, I will re-target the PR. |
4975e0b to
d5d4aa9
Compare
|
@blueorangutan package |
|
@sureshanaparti 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. |
|
Packaging result [SF]: ✖️ el8 ✖️ el9 ✔️ debian ✖️ suse15. SL-JID 16819 |
|
@blueorangutan package |
|
@sureshanaparti 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. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 16824 |
Description
Currently, when a public IP allocation request is made, the
quarantined_ipstable is ignored during the selection process. Instead, the system selects an IP without checking its quarantine status, and only validates if the IP is quarantined afterward, throwing an exception if it is.This causes repeated failures for automatic IP selections, as the same IP will be chosen over and over, until the quarantine period ends.
This PR fixes this behaviour by considering the
quarantined_ipstable during the selection process, and choosing only an allocatable IP. It also brings a minor improvement to the IP quarantine logic, where IPs that were not removed either in active quarantine, were not set removed when allocated.Now, when these IPs are allocated, the removed column is updated and the removal reason is set to:
IP was removed from quarantine because it was no longer in quarantine. The PR also does a little code refactor, improving its legibility and dropping the usage of deprecated methods.Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
How Has This Been Tested?
I made the following tests: