Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0D73F11077 for ; Mon, 8 Sep 2014 21:32:29 +0000 (UTC) Received: (qmail 94769 invoked by uid 500); 8 Sep 2014 21:32:28 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 94735 invoked by uid 500); 8 Sep 2014 21:32:28 -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 94725 invoked by uid 500); 8 Sep 2014 21:32:28 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 94722 invoked by uid 99); 8 Sep 2014 21:32:28 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Sep 2014 21:32:28 +0000 Date: Mon, 8 Sep 2014 21:32:28 +0000 (UTC) From: "Nitin Mehta (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CLOUDSTACK-7513) listServiceOfferings API when called with VM's id also returns offerings to which it cant be upgraded MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Nitin Mehta created CLOUDSTACK-7513: --------------------------------------- Summary: listServiceOfferings API when called with VM's id also returns offerings to which it cant be upgraded Key: CLOUDSTACK-7513 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7513 Project: CloudStack Issue Type: Bug Security Level: Public (Anyone can view this level - this is the default.) Components: Management Server Affects Versions: 4.5.0 Reporter: Nitin Mehta Assignee: Nitin Mehta Priority: Critical Fix For: 4.5.0 When making the listServiceOfferings api call such as follows: http://localhost:8080/client/api?command=listServiceOfferings&VirtualMachineId=41813941-c7de-4fd3-bd0e-1977bc395f22&response=json&sessionkey=kRxUwlrhNDg6CBX408XeHc40mDg%3D&_=1401878291930 Since the VM id is passed, only compatible offerings for this particular VMs should be listed. Please find the response in the attachment. Trying to change the compute offering to 'Tiny Instance' results into error shown in attached screenshot. EXPECTED BEHAVIOR: If a certain compute offering is lesser in configuration that VM's current compute offering and the VM is in running state it should not be listed in the listServiceOfferings API response when called with VM id in the first place. -- This message was sent by Atlassian JIRA (v6.3.4#6332)