GitHub user anshul1886 opened a pull request:
https://github.com/apache/cloudstack/pull/1280
CLOUDSTACK-9199: Fixed deployVirtualMachine API does not throw an error
when cpunumber is specified for static compute offering
https://issues.apache.org/jira/browse/CLOUDSTACK-9199
To test:
-------------
Deploy VM by providing cpuNumber, cpuSpeed or memory for static/ non
dynamic service offering
Deployment should fail.
API example:
------------------
http://10.220.135.6/client/api?command=deployVirtualMachine&name=olotwo&response=&zoneid=ab6e4154-62a3-42a8-9627-3cbdc66bcbb6&templateid=3aaaace6-91b4-11e5-b6fc-e26c2aa1d1d0&hypervisor=XenServer&serviceofferingid=39643075-4b45-489d-afac-88f09d536bdd&details[0].cpuNumber=1&details[0].cpuSpeed=1000&details[0].memory=1000&securitygroupids=60844698-91b4-11e5-b6fc-e26c2aa1d1d0&_=1448277187743
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/anshul1886/cloudstack-1 CLOUDSTACK-9199
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cloudstack/pull/1280.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1280
----
commit 149f6c05147a07abe845b53ed4d9bc159b68b0ff
Author: Anshul Gangwar <[email protected]>
Date: 2015-12-23T06:42:44Z
CLOUDSTACK-9199: Fixed deployVirtualMachine API does not throw an error
when cpunumber is specified for static compute offering
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---