-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Enforce distinct hostnames network #10212
base: 4.19
Are you sure you want to change the base?
Enforce distinct hostnames network #10212
Conversation
@blueorangutan package |
@vishesh92 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. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.19 #10212 +/- ##
============================================
+ Coverage 15.13% 15.85% +0.72%
- Complexity 11274 11279 +5
============================================
Files 5408 5042 -366
Lines 473974 444507 -29467
Branches 57813 52651 -5162
============================================
- Hits 71730 70474 -1256
+ Misses 394227 366156 -28071
+ Partials 8017 7877 -140
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12125 |
befd5a5
to
8888b27
Compare
@blueorangutan package |
@vishesh92 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 12130 |
d7336c1
to
c9855aa
Compare
fbd4153
to
5aa2b60
Compare
5aa2b60
to
91344bf
Compare
@blueorangutan package |
@vishesh92 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 12144 |
@blueorangutan test |
@vishesh92 a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
Description
Fixes #9775
This PR adds check to ensure we check for unique hostname for other networks in the VPC as well.
This PR also adds another global setting
vm.distinct.hostname.scope
which sets the scope of resources for which the VMs should have a unique hostname. Default value isnetwork
.Details
This pull request includes several changes to enhance the network domain search functionality and improve the configuration management for VM hostname uniqueness. The most important changes include adding new methods for network domain searches, updating the search builder initialization, and modifying the hostname uniqueness check logic.
Enhancements to network domain search functionality:
engine/schema/src/main/java/com/cloud/network/dao/NetworkDao.java
: Added new methodslistByNetworkDomains
,listByNetworkDomainsAndAccountIds
, andlistByNetworkDomainsAndDomainIds
to theNetworkDao
interface.engine/schema/src/main/java/com/cloud/network/dao/NetworkDaoImpl.java
: AddedNetworkDomainSearch
to theNetworkDaoImpl
class and initialized it in theinit
method. Implemented the new methods for network domain searches. [1] [2] [3]Improvements to VM hostname uniqueness check:
server/src/main/java/com/cloud/vm/UserVmManager.java
: Introduced a new configuration keyVmDistinctHostNameScope
to manage the scope of hostname uniqueness checks.server/src/main/java/com/cloud/vm/UserVmManagerImpl.java
: Updated the logic for checking hostname uniqueness to use the new network domain search methods and theVmDistinctHostNameScope
configuration. [1] [2]Mock implementation updates:
server/src/test/java/com/cloud/vpc/dao/MockNetworkDaoImpl.java
: Added mock implementations for the new network domain search methods.Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?