summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJordan Rinke <jordan@openstack.org>2011-01-27 17:56:54 +0000
committerTarmac <>2011-01-27 17:56:54 +0000
commit05f49c2942d53e648f07300754fdd4338c0964cf (patch)
tree50820c58750f431460d5ac44755dae4a1d05d5da
parente70e9cdd4fe91d61cb5292699ff1ce20842bbc17 (diff)
parent498171d2212f51185e9479da1222f0753acab779 (diff)
Changed cpu limit to a static value of 100000 (100%) instead of using the vcpu value of 1. There is no weight/limit variable now so I see no other solution than the static max limit.
-rw-r--r--Authors1
-rw-r--r--nova/virt/hyperv.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/Authors b/Authors
index 638d13def..7ed24f7ba 100644
--- a/Authors
+++ b/Authors
@@ -24,6 +24,7 @@ Joe Heck <heckj@mac.com>
Joel Moore <joelbm24@gmail.com>
John Dewey <john@dewey.ws>
Jonathan Bryce <jbryce@jbryce.com>
+Jordan Rinke <jordan@openstack.org>
Josh Durgin <joshd@hq.newdream.net>
Josh Kearney <josh.kearney@rackspace.com>
Joshua McKenty <jmckenty@gmail.com>
diff --git a/nova/virt/hyperv.py b/nova/virt/hyperv.py
index 5afa3221d..29d18dac5 100644
--- a/nova/virt/hyperv.py
+++ b/nova/virt/hyperv.py
@@ -191,7 +191,7 @@ class HyperVConnection(object):
vcpus = long(instance['vcpus'])
procsetting.VirtualQuantity = vcpus
procsetting.Reservation = vcpus
- procsetting.Limit = vcpus
+ procsetting.Limit = 100000 # static assignment to 100%
(job, ret_val) = vs_man_svc.ModifyVirtualSystemResources(
vm.path_(), [procsetting.GetText_(1)])