Description of problem: When the user provisions a new VM the CPU limit and reservation must be set otherwise an exception is thrown. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1.Add a SCVMM provider 2.Go to the Infrastructure / VMs view 3.Select Lifecycle/Provision VMs 4.Complete the provisioning workflow but keep all default values in the Hardware tab, including the empty CPU limits and reservations. Actual results: An error will be returned by SCVMM and written to the scvmm.log file indicating that blank values were supplied for CPU limit and reservations. Expected results: If the user decides not to set CPU limits and reservations we should not try to set them. Additional info:
https://github.com/ManageIQ/manageiq/pull/2777
New commit detected on manageiq/master: https://github.com/ManageIQ/manageiq/commit/3935d58669c43b7fa46a0e94a7376f7a17e778be commit 3935d58669c43b7fa46a0e94a7376f7a17e778be Author: Bronagh Sorota <bsorota> AuthorDate: Tue Apr 28 12:23:40 2015 -0400 Commit: Bronagh Sorota <bsorota> CommitDate: Tue Apr 28 12:38:39 2015 -0400 SCVMM - Handles unset CPU limits and reservations for newly provisioned VMs https://bugzilla.redhat.com/show_bug.cgi?id=1216157 vmdb/app/models/miq_provision_microsoft/cloning.rb | 13 ++- vmdb/spec/models/miq_provision_microsoft_spec.rb | 101 ++++++++++++++------- 2 files changed, 78 insertions(+), 36 deletions(-)
Verified in 5.4.0.0.26. After provisioning without limits/reservations set, no relevant error in scvmm.log, provisioning went normally. The only errors in scvmm.log are like "Virtual Guest Services is not installed on the guest operating system" which I believe are not relevant in this case.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-1100.html