Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C8879200AC6 for ; Fri, 6 May 2016 17:48:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C74151608F8; Fri, 6 May 2016 15:48:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1A40D160A0C for ; Fri, 6 May 2016 17:48:13 +0200 (CEST) Received: (qmail 44216 invoked by uid 500); 6 May 2016 15:48:13 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 44176 invoked by uid 500); 6 May 2016 15:48:13 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 44132 invoked by uid 99); 6 May 2016 15:48:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 May 2016 15:48:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 149632C1F61 for ; Fri, 6 May 2016 15:48:13 +0000 (UTC) Date: Fri, 6 May 2016 15:48:13 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-9199) deployVirtualMachine API does not throw an error when cpunumber is specified for static compute offering MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 06 May 2016 15:48:15 -0000 [ https://issues.apache.org/jira/browse/CLOUDSTACK-9199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15274245#comment-15274245 ] ASF GitHub Bot commented on CLOUDSTACK-9199: -------------------------------------------- Github user swill commented on the pull request: https://github.com/apache/cloudstack/pull/1280#issuecomment-217480884 @anshul1886 can you answer @rhtyd's question so we can get his code review and get this moving forward. Thanks... > deployVirtualMachine API does not throw an error when cpunumber is specified for static compute offering > -------------------------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-9199 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9199 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Reporter: Anshul Gangwar > Assignee: Anshul Gangwar > > When a dynamic compute offering is chosen, deployVirtualMachine API requires details[0].cpuSpeed, details[0].cpuNumber and details[0]memory parameters to deploy a VM. > But when a static compute offering is chosen and these parameters are provided, then the API should throw an error as there is conflict. > ACTUAL BEHAVIOR : > VM is getting deployed with static compute offering's parameters > 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 -- This message was sent by Atlassian JIRA (v6.3.4#6332)