You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Nitin Mehta (JIRA)" <ji...@apache.org> on 2014/01/05 22:34:51 UTC
[jira] [Comment Edited] (CLOUDSTACK-4881) Both Running and stopped
vm can be scaled up using old API changeServiceForVirtualMachine that too
above host capacity
[ https://issues.apache.org/jira/browse/CLOUDSTACK-4881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13862662#comment-13862662 ]
Nitin Mehta edited comment on CLOUDSTACK-4881 at 1/5/14 9:34 PM:
-----------------------------------------------------------------
Marcus - To your question - "Who decided it was right to only allow editing the offering while the VM was off?" -
Let me just tell you what the behavior is.
changeServiceForVirtualMachine - should change the service offering of a stopped vm and has been in CS since 3.0.x or before. Recently there was a bug introduced where it was allowing to change the service offering of a running vm as well. That was never intended and breaks compatibility and tests and has been fixed with this bug. This api will be deprecated in 5.0
scaleVirtualMachine - introduced in 4.2, this should allow changing the service offering of a running as well as stopped vm. You can use this api to edit the offering whenever you want.
If you were using changeServiceForVirtualMachine for changing the offering of a running and stopped vm, I would say please change that and start using scaleVirtualMachine instead because changeServiceForVirtualMachine has been since ages only supporting editing the offering for a stopped vm only.
was (Author: nitinme):
Marcus - To your question - "Who decided it was right to only allow editing the offering while the VM was off?" -
Let me just tell you what the behavior is.
changeServiceForVirtualMachine - should change the service offering of a stopped vm and has been in CS since 3.0.x or before. Recently there was a bug introduced where it was allowing to change the service offering of a running vm as well. That was never intended and breaks compatibility and tests and has been fixed with this bug. This api will be deprecated in 5.0
scaleVirtualMachine - introduced in 4.2, this should allow changing the service offering of a running as well as stopped vm. You can use this api to edit the offering whenever you want.
If you were using changeServiceForVirtualMachine for changing the offering of a running and stopped vm, I would say please change that and start using scaleVirtualMachine instead because changeServiceForVirtualMachine has been since ages only supporting editing the offering for a stopped vm only.
> Both Running and stopped vm can be scaled up using old API changeServiceForVirtualMachine that too above host capacity
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-4881
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4881
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the default.)
> Components: Automation
> Affects Versions: 4.3.0
> Reporter: Gaurav Aradhye
> Assignee: Nitin Mehta
> Priority: Blocker
> Fix For: 4.3.0
>
>
> changeServiceForVirtualMachine API can be used to scale up a running vm also (It should be effective against only stopped vm)
> More over, using this API, VM can be scaled up above host capacity (both CPU and RAM) without any over-provisioning of resources.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)