Skip to content

Fix vm network throttling rate - #10109

Closed
iishitahere wants to merge 2 commits into
apache:mainfrom
iishitahere:fix-vm-network-throttling-rate
Closed

iishitahere wants to merge 2 commits into
apache:mainfrom
iishitahere:fix-vm-network-throttling-rate

Conversation

@iishitahere

Copy link
Copy Markdown

This PR addresses the issue with the vm.network.throttling.rate configuration in the cloud.configuration table. The change includes the addition of a default value for the vm.network.throttling.rate parameter, which defines the default data transfer rate in megabits per second allowed in user VM's default network.

Added a new configuration entry:
Name: vm.network.throttling.rate
Value: 200 (Default data transfer rate)
Description: Default data transfer rate in megabits per second allowed in user VM's default network.
This PR also removes the previous guest.ip.network and guest.netmask configuration entries, as per the requirements.

Changes made:

Inserted a new entry into the cloud.configuration table for the vm.network.throttling.rate.
Deleted old configuration entries guest.ip.network and guest.netmask.
Updated necessary code references.
Note: A new branch has been created (fix-vm-network-throttling-rate) to reflect these changes.

_vSwitchType = vSwitchType;
}

// Getter to ensure traffic shaping consistency across all NICs

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.

Where and how is your variable used, at all?

@iishitahere iishitahere Jan 1, 2025 •

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where and how is your variable used, at all?

Hi @rohityadavcloud ,

I hope you’re doing well. I wanted to inform you that I will be working on my PR again, as I’ve encountered some issues related to the changes made. Specifically, I am addressing the problem with the vm.network.throttling.rate configuration in the cloud.configuration table.

Best regards,
Ishita

@codecov

codecov Bot commented Dec 31, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 4.02%. Comparing base (54bc150) to head (befe864).
Report is 31 commits behind head on main.

❗ There is a different number of reports uploaded between BASE (54bc150) and HEAD (befe864). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (54bc150) HEAD (befe864)
unittests 1 0
Additional details and impacted files
@@              Coverage Diff              @@
##               main   #10109       +/-   ##
=============================================
- Coverage     16.06%    4.02%   -12.05%     
=============================================
  Files          5642      394     -5248     
  Lines        493856    32361   -461495     
  Branches      59860     5713    -54147     
=============================================
- Hits          79324     1301    -78023     
+ Misses       405749    30912   -374837     
+ Partials       8783      148     -8635     
Flag Coverage Δ
uitests 4.02% <ø> (ø)
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sureshanaparti

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 13620

@DaanHoogland
DaanHoogland force-pushed the fix-vm-network-throttling-rate branch from befe864 to cec1464 Compare June 9, 2025 13:29
@DaanHoogland
DaanHoogland marked this pull request as draft June 9, 2025 13:29
@DaanHoogland

DaanHoogland commented Dec 12, 2025 •

Copy link
Copy Markdown
Contributor

@iishitahere , closing this one as is old. please update and reopen if you think it is still relevant.

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.

5 participants