Skip to content

server: fix cannot get systemvm ips in dedicated ranges - #7144

Merged
weizhouapache merged 5 commits into
apache:4.18from
weizhouapache:4.18-issue-6698
Aug 25, 2023
Merged

weizhouapache merged 5 commits into
apache:4.18from
weizhouapache:4.18-issue-6698

Conversation

@weizhouapache

Copy link
Copy Markdown
Member

Description

This PR fixes #6698

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)

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?

@weizhouapache

Copy link
Copy Markdown
Member Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@weizhouapache a 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: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5440

@codecov

codecov Bot commented Jan 30, 2023

Copy link
Copy Markdown

Codecov Report

Merging #7144 (43cd1c4) into main (83c2bfa) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##               main    #7144      +/-   ##
============================================
- Coverage     11.79%   11.79%   -0.01%     
+ Complexity     7692     7689       -3     
============================================
  Files          2511     2511              
  Lines        246578   246582       +4     
  Branches      38446    38449       +3     
============================================
- Hits          29090    29076      -14     
- Misses       213703   213721      +18     
  Partials       3785     3785              
Impacted Files Coverage Δ
...src/main/java/com/cloud/api/ApiResponseHelper.java 3.87% <0.00%> (ø)
.../cloud/configuration/ConfigurationManagerImpl.java 12.47% <0.00%> (-0.05%) ⬇️
...n/java/com/cloud/network/IpAddressManagerImpl.java 2.04% <0.00%> (-0.10%) ⬇️
...dstack/network/contrail/model/ModelObjectBase.java 28.84% <0.00%> (-19.24%) ⬇️
...cloudstack/network/contrail/model/ModelObject.java 29.16% <0.00%> (-4.17%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@weizhouapache

Copy link
Copy Markdown
Member Author

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@weizhouapache a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-6031)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 41789 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7144-t6031-kvm-centos7.zip
Smoke tests completed. 103 look OK, 4 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_01_nic Error 154.56 test_nic.py
test_01_deployVMInSharedNetwork Failure 0.11 test_network.py
test_02_verifyRouterIpAfterNetworkRestart Failure 1.07 test_network.py
test_03_destroySharedNetwork Failure 1.07 test_network.py
test_dedicatePublicIpRange Failure 0.28 test_public_ip_range.py
test_updating_nics_on_two_shared_networks Error 0.27 test_gateway_on_shared_networks.py

@boring-cyborg boring-cyborg Bot added component:integration-test Python Warning... Python code Ahead! labels Jan 31, 2023
@weizhouapache

Copy link
Copy Markdown
Member Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@sonarqubecloud

Copy link
Copy Markdown

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

2.0% 2.0% Coverage
0.0% 0.0% Duplication

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5452

@weizhouapache

Copy link
Copy Markdown
Member Author

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@weizhouapache a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@weizhouapache
weizhouapache marked this pull request as ready for review January 31, 2023 15:35
@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-6052)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 43631 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7144-t6052-kvm-centos7.zip
Smoke tests completed. 107 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

@yadvr
yadvr requested a review from DaanHoogland February 1, 2023 14:36

@yadvr yadvr 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, didn't test it. This may need manual testing. I'm not sure if the changes in marvin tests are enough?

@github-actions

Copy link
Copy Markdown

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

@weizhouapache

Copy link
Copy Markdown
Member Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@weizhouapache a [SF] 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]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6639

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

clgtm, small remarks

@@ -821,128 +815,99 @@ public PublicIp fetchNewPublicIp(final long dcId, final Long podId, final List<L
public List<IPAddressVO> listAvailablePublicIps(final long dcId, final Long podId, final List<Long> vlanDbIds, final Account owner, final VlanType vlanUse, final Long guestNetworkId,

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.

this method is more than a hundred lines. I think we must modularize it a bit more.

Comment on lines +803 to +806
if (assign) {
addr = assignAndAllocateIpAddressEntry(owner, vlanUse, guestNetworkId, sourceNat, allocate,
isSystem,vpcId, displayIp, addrs);
}

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.

can be extracted

@weizhouapache

Copy link
Copy Markdown
Member Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@weizhouapache a [SF] 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]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6793

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

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

Test Result Time (s) Test File
test_03_create_redundant_VPC_1tier_2VMs_2IPs_2PF_ACL_reboot_routers Failure 426.62 test_vpc_redundant.py
test_05_rvpc_multi_tiers Failure 664.60 test_vpc_redundant.py
test_05_rvpc_multi_tiers Error 664.62 test_vpc_redundant.py

@blueorangutan

Copy link
Copy Markdown

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

Test Result Time (s) Test File

@yadvr

yadvr commented Aug 22, 2023

Copy link
Copy Markdown
Member

@weizhouapache @DaanHoogland can this be merged, or need furthet testing/review?

@weizhouapache

Copy link
Copy Markdown
Member Author

@weizhouapache @DaanHoogland can this be merged, or need furthet testing/review?

@rohityadavcloud
yes, this needs reproducing and testing (ongoing...)

@DaanHoogland

Copy link
Copy Markdown
Contributor

verified: after setting system.vm.public.reservation.mode.strictness to true and use.system.public.ips to false on 4.18.0 SVMs won't come up. After upgrading to this PR they do. 👍

@weizhouapache

Copy link
Copy Markdown
Member Author

Thanks @DaanHoogland for verification
merging

@weizhouapache
weizhouapache merged commit 8dc5fdd into apache:4.18 Aug 25, 2023
@DaanHoogland
DaanHoogland deleted the 4.18-issue-6698 branch August 25, 2023 11:47
Sign up for free to 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.

Dedication of public IP ranges broken after upgrade to 4.17.0.1

5 participants