Skip to content
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

fix the can VM fit on Host check, added Unit tests for the SimHost #306

Open
wants to merge 32 commits into
base: master
Choose a base branch
from

Conversation

vlogic
Copy link
Member

@vlogic vlogic commented Feb 17, 2025

Summary

When a VM is placed on a host we need to make sure not only the capacity is checked but we also check that the current running VMs plus the new VM can fit.

Implementation Notes ⚒️

  • Sum all memory of the running VMs
  • Check capacity - sum_of_all_vms > new_vm
  • Added unit tests for the SimHost class.

External Dependencies 🍀

  • None

Breaking API Changes ⚠️

  • None

Simply specify none (N/A) if not applicable.

Copy link

codecov bot commented Feb 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.00%. Comparing base (20d8587) to head (5723ab8).
Report is 2 commits behind head on master.

Additional details and impacted files
@@      Coverage Diff      @@
##   master   #306   +/-   ##
=============================
=============================

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants