Skip to content

kvm agent: get the right controll cidr - #7580

Merged
yadvr merged 7 commits into
apache:4.18from
shapeblue:control.cidr
Jul 7, 2023
Merged

yadvr merged 7 commits into
apache:4.18from
shapeblue:control.cidr

Conversation

@DaanHoogland

@DaanHoogland DaanHoogland commented Jun 1, 2023 •

Copy link
Copy Markdown
Contributor

Description

This PR ...

Fixes: #7574

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?

@codecov

codecov Bot commented Jun 1, 2023 •

Copy link
Copy Markdown

Codecov Report

Merging #7580 (8bc4f4f) into 4.18 (4138ca7) will increase coverage by 0.08%.
The diff coverage is 46.51%.

@@             Coverage Diff              @@
##               4.18    #7580      +/-   ##
============================================
+ Coverage     12.94%   13.02%   +0.08%     
- Complexity     8953     9028      +75     
============================================
  Files          2716     2719       +3     
  Lines        256137   256845     +708     
  Branches      39944    40050     +106     
============================================
+ Hits          33146    33457     +311     
- Misses       218831   219201     +370     
- Partials       4160     4187      +27     
Impacted Files Coverage Δ
...om/cloud/hypervisor/kvm/resource/IvsVifDriver.java 0.00% <0.00%> (ø)
...KubernetesClusterResourceModifierActionWorker.java 0.00% <ø> (ø)
...er/actionworkers/KubernetesClusterScaleWorker.java 0.00% <0.00%> (ø)
...bernetes/cluster/KubernetesClusterManagerImpl.java 4.41% <69.56%> (+4.41%) ⬆️
...cloud/hypervisor/kvm/resource/BridgeVifDriver.java 9.63% <100.00%> (+0.07%) ⬆️
...om/cloud/hypervisor/kvm/resource/OvsVifDriver.java 15.32% <100.00%> (+0.22%) ⬆️
...m/cloud/hypervisor/kvm/resource/VifDriverBase.java 60.00% <100.00%> (+6.15%) ⬆️

... and 41 files with indirect coverage changes

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

@DaanHoogland
DaanHoogland requested a review from wido June 1, 2023 14:17
@DaanHoogland DaanHoogland reopened this Jun 1, 2023

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

So far it looks good. I'm going on holiday for two weeks now, but this is a fix in the right direction

@DaanHoogland

Copy link
Copy Markdown
Contributor Author

So far it looks good. I'm going on holiday for two weeks now, but this is a fix in the right direction

any colleague that could test this, @wido ?

@DaanHoogland

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a [LL] 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 [LL]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6085

@DaanHoogland

Copy link
Copy Markdown
Contributor Author

@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-6695)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 40177 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7580-t6695-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_hostha_enable_ha_when_host_in_maintenance Error 303.81 test_hostha_kvm.py

@DaanHoogland
DaanHoogland marked this pull request as ready for review June 8, 2023 09:51
@weizhouapache weizhouapache added this to the 4.18.1.0 milestone Jun 20, 2023
@DaanHoogland

Copy link
Copy Markdown
Contributor Author

ping @wido can you test?

@DaanHoogland DaanHoogland linked an issue Jun 22, 2023 that may be closed by this pull request
@wido

wido commented Jun 22, 2023

Copy link
Copy Markdown
Contributor

ping @wido can you test?

Yes, I will. Just got back from holiday.

@wido

wido commented Jun 23, 2023

Copy link
Copy Markdown
Contributor

So far this looks good to me!

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

I think we are almost there!

@weizhouapache weizhouapache changed the title get the right controll cidr kvm agent: get the right controll cidr Jun 26, 2023
@weizhouapache weizhouapache added the Severity:Critical Critical bug label Jun 26, 2023
@Rubueno

Rubueno commented Jun 29, 2023

Copy link
Copy Markdown
Contributor

@wido can you verify if this also fixes the problem mentioned in #6715? To verify if it is fixed now: bootstrap the management server with /16, then change to /20 and start a system vm.

@wido

wido commented Jun 30, 2023

Copy link
Copy Markdown
Contributor

@wido can you verify if this also fixes the problem mentioned in #6715? To verify if it is fixed now: bootstrap the management server with /16, then change to /20 and start a system vm.

No, it doesn't. This PR is to fix the subnet assigned to the cloud0 bridge on the KVM agent.

What you mention is something I observed as well and didn't put much effort into that.

@DaanHoogland

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@DaanHoogland

Copy link
Copy Markdown
Contributor Author

@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-6977)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 41497 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7580-t6977-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_01_migrate_VM_and_root_volume Error 83.80 test_vm_life_cycle.py
test_02_migrate_VM_with_two_data_disks Error 51.25 test_vm_life_cycle.py

@DaanHoogland
DaanHoogland requested a review from wido July 5, 2023 07:25

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

This looks good to me!

@DaanHoogland

Copy link
Copy Markdown
Contributor Author

@weizhouapache can you have a look?

@yadvr
yadvr merged commit 2752c49 into apache:4.18 Jul 7, 2023
@yadvr
yadvr deleted the control.cidr branch July 7, 2023 17:28
@DaanHoogland

Copy link
Copy Markdown
Contributor Author

@wido can you verify if this also fixes the problem mentioned in #6715? To verify if it is fixed now: bootstrap the management server with /16, then change to /20 and start a system vm.

No, it doesn't. This PR is to fix the subnet assigned to the cloud0 bridge on the KVM agent.

What you mention is something I observed as well and didn't put much effort into that.

@wido, @Rubueno , can you have a look at #7746 ? I intend to solve that issue there.

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.

kvm: Agent does not honor control.cidr anymore

6 participants