-
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
List default network offerings when multiple physical networks for guest traffic type exists #10222
base: 4.19
Are you sure you want to change the base?
Conversation
…est traffic type exists
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.19 #10222 +/- ##
============================================
+ Coverage 15.12% 15.19% +0.06%
- Complexity 11268 11404 +136
============================================
Files 5408 5408
Lines 473954 477623 +3669
Branches 57810 59453 +1643
============================================
+ Hits 71709 72566 +857
- Misses 394231 396943 +2712
- Partials 8014 8114 +100
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clgtm, needs testing
@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 12140 |
@blueorangutan test keepEnv |
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
@Pearl1594 cloudstack/server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java Lines 7268 to 7271 in 1c626c8
it is not a bug I think. |
ACS does check the tags, but includes only the ones with the matching tags and not the default ones. I believe the default offerings of the specific network type should be displayed for all physical networks |
@Pearl1594 |
I didn't understand the question @weizhouapache . When creating a shared network, we select the physical network to be used. If there's more than 1 physical network fr guest traffic, we tag them.. based on the physical network chosen - when creating the network, the offerings are listed. So say, if we select the phy network that has a tag, an there exists no offerings matching the tag, nothing is returned. Because we do not include default offerings in the query |
@Pearl1594
some are for Isolated networks or L2 networks. IMHO, |
I understand that. Those created by ACS aren't listed by cloudstack when we list by tags |
right. I think it is expected. |
Right. That has been the historic behavior. But personally I find it less user friendly that those (default) offerings aren't listed for tagged phy networks and one needs to explicitly create network offerings if they add additional physical networks. |
indeed. |
maybe by taking action as the second gust network is created, asking if the default offerings should be copied? I do think that having a second guest network mean/implies you do not want to mix traffic/offerings, or is that daft? |
@weizhouapache I can add a check for guestType = Shared, before searching for offerings based on the tags - however, historically too tags were being used to filter out the offerings listed irrespective of the network type. Do we want this behavior to change cc @DaanHoogland ? |
[SF] Trillian test result (tid-12143)
|
@Pearl1594 Can you test the creation of shared networks with
|
@Pearl1594 @weizhouapache , I know I am a bit of a functional hork, but I really think no offerings should be shown if the tags do not match, for any type of network. For any physnet for which tags are being said we could implement some kind of |
Quality Gate failedFailed conditions See analysis details on SonarQube Cloud Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE |
@DaanHoogland I am not sure what copyDefaultOfferings() is supposed to do. CloudStack forces a tag for any additional physical (guest) network added. Which should not render the default (shared) offerings unusable for this newly added phy net. It does not list all shared network offerings that have no tags, just those that are provided by CloudStack by default, i.e., If a user creates a shared network offering with no tags, this will not be listed for the a tagged phy net. |
Actually there are only 5 default shared network offerings will be listed.
not a big deal I think. |
@weizhouapache I was able to deploy a VM on a shared network that was created on Physical network 2 (newly added phy net with tag: phy2) using the default offering "QuickCloudNoServices" |
ok, if it works, I'm not blocking it. Need psychopathic testing though! |
@Pearl1594 can you test other non-default network offerings for shared networks ? |
Hi, I would like to know if this fix will be applied in version 4.19.2 or if it is expected for a later version |
we do not have consensus yet. If you have multiple physical networks, I suggest you remove the tag of default physical network. |
@blueorangutan package |
@rajujith 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 12271 |
Description
This PR fixes: #9673
When there are multiple physical networks for guest traffic type, the default offerings aren't listed for the tagged physical network. Currently new offerings are needed to be created for tagged physical networks to be able to create (Shared) networks.
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?