Conversation
|
@blueorangutan package |
|
@nvazquez a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #12487 +/- ##
============================================
+ Coverage 17.84% 17.92% +0.08%
- Complexity 15980 16164 +184
============================================
Files 5929 5939 +10
Lines 531084 533262 +2178
Branches 64914 65252 +338
============================================
+ Hits 94783 95610 +827
- Misses 425686 426908 +1222
- Partials 10615 10744 +129
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:
|
|
Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 16471 |
|
@blueorangutan package |
|
@nvazquez a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✖️ el8 ✖️ el9 ✔️ debian ✖️ suse15. SL-JID 16473 |
|
@blueorangutan package |
|
@nvazquez a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✖️ debian ✔️ suse15. SL-JID 16475 |
|
@blueorangutan test keepEnv |
|
@nvazquez a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-15239)
|
|
@blueorangutan package |
|
@nvazquez a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
|
@blueorangutan package |
|
@nvazquez a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 16930 |
|
@blueorangutan test |
|
@nvazquez a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian Build Failed (tid-15519) |
|
[SF] Trillian Build Failed (tid-15520) |
|
[SF] Trillian test result (tid-15521)
|
|
@blueorangutan package |
|
@nvazquez a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 16948 |
|
@blueorangutan package |
|
@nvazquez a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 16950 |
|
@blueorangutan test |
|
@nvazquez a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
api/src/main/java/org/apache/cloudstack/api/command/admin/vpc/CreateVPCOfferingCmd.java
Show resolved
Hide resolved
| Long ntwkId = null; | ||
|
|
||
| if (ip.getAssociatedWithNetworkId() != null) { | ||
| if (ip.getVpcId() == null && ip.getAssociatedWithNetworkId() != null) { |
There was a problem hiding this comment.
with this change, networkId becomes mandatory for vpcs , right ?
for existing vpc (created in older versions), will this cause an issue ? as the IP might be already associated to a network (vpc tier).
for example, in VPC
- IP is associated to a VPC tier (in a old version), now create portwarding rule without networkId (currently it is not needed)
- IP is associated to a VPC tier (in a old version), now create portwarding rule with another networkId (vpc tier). this is not supported in the past
There was a problem hiding this comment.
@nvazquez
I asked this question as it might be possible that users might update the vpc by changing the conserve_mode of in the vpc_offerings table, or change the vpc_offering_id in the vpc table.
they are not normal use cases. currently no API to update offering of a vpc.
| if (ip.getAssociatedWithNetworkId() != null) { | ||
| if (ip.getVpcId() == null && ip.getAssociatedWithNetworkId() != null) { | ||
| ntwkId = ip.getAssociatedWithNetworkId(); | ||
| } else { |
There was a problem hiding this comment.
| } else { | |
| } else if (ip.getAssociatedWithNetworkId() == null) { | |
| ntwkId = networkId; | |
| } else if (networkId == null) { | |
| ntwkId = ip.getAssociatedWithNetworkId(); | |
| } else { | |
| // TODO: check if ip.getAssociatedWithNetworkId() and networkId are the same ? is it needed ? | |
| } |
api/src/main/java/org/apache/cloudstack/api/response/VpcOfferingResponse.java
Show resolved
Hide resolved
server/src/main/java/com/cloud/network/firewall/FirewallManagerImpl.java
Show resolved
Hide resolved
| _accountMgr.checkAccess(caller.getCallingAccount(), null, true, ipAddr); | ||
|
|
||
| final Long networkId = ipAddr.getAssociatedWithNetworkId(); | ||
| final Long networkId = ipAddr.getVpcId() == null ? ipAddr.getAssociatedWithNetworkId() : networkIdParam; |
There was a problem hiding this comment.
if the ip is associated with a vpc tier, should we allow a different networkId ?
| self.fail( | ||
| "Expected cross-tier Port Forwarding rule to succeed with " | ||
| "conserveMode=True, but got exception: %s" % e | ||
| ) |
There was a problem hiding this comment.
try to add a lb rule too ?
|
|
||
| @attr(tags=["advanced", "advancedns", "smoke"], required_hardware="true") | ||
| def test_01_vpc_conserve_mode_cross_tier_rules_allowed(self): | ||
| """With conserveMode=True, LB rule on VPC Tier 1 and Port Forwarding rule on VPC Tier 2 can |
There was a problem hiding this comment.
any chance to update one of the existing smoke tests to test the same behaviour (which should expect an exception as the default vpc offering does not support conserve mode) ?
# ls test/integration/smoke/test_*vpc*
test/integration/smoke/test_domain_vpc_offerings.py test/integration/smoke/test_vpc_redundant.py test/integration/smoke/test_vpc_vpn.py
test/integration/smoke/test_vpc_ipv6.py test/integration/smoke/test_vpc_router_nics.py
# test/integration/smoke/test_*acl*
test/integration/smoke/test_global_acls.py test/integration/smoke/test_privategw_acl_ovs_gre.py
test/integration/smoke/test_network_acl.py test/integration/smoke/test_privategw_acl.py
|
@nvazquez |
|
[SF] Trillian test result (tid-15531)
|
Description
This PR extends the conserve mode for VPCs tiers added on the previous PRs: #8309, #10744 by allowing:
This PR also introduces the following changes:
Fixes: #8317
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?