[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-8847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14982085#comment-14982085
 ] 

ASF GitHub Bot commented on CLOUDSTACK-8847:
--------------------------------------------

Github user nitin-maharana commented on the pull request:

    https://github.com/apache/cloudstack/pull/823#issuecomment-152453158
  
    I tested this with this scenario.
    
    There are three service offerings.
    
    {
        "listserviceofferingsresponse": {
            "count": 3,
            "serviceoffering": [
                {
                    "id": "7482d1bb-9acb-4688-b448-d7bd7f70916a",
                    "name": "CO-z",
                    "displaytext": "CO-z",
                    "cpunumber": 1,
                    "cpuspeed": 64,
                    "memory": 64,
                    "created": "2014-05-08T17:02:54+0530",
                    "storagetype": "shared",
                    "offerha": false,
                    "limitcpuuse": false,
                    "isvolatile": false,
                    "tags": "z",
                    "issystem": false,
                    "defaultuse": false,
                    "iscustomized": false
                },
                {
                    "id": "d9ae1945-ff42-43d3-bddd-3ec54ea49bbf",
                    "name": "To_Error",
                    "displaytext": "To_Error",
                    "cpunumber": 4,
                    "cpuspeed": 4,
                    "memory": 256,
                    "created": "2014-05-26T12:14:25+0530",
                    "storagetype": "shared",
                    "offerha": false,
                    "limitcpuuse": false,
                    "isvolatile": false,
                    "tags": "anusha",
                    "issystem": false,
                    "defaultuse": false,
                    "iscustomized": false
                },
                {
                    "id": "a0ffbdf4-861c-4de2-a353-852a870281e5",
                    "name": "MultiTagOffering",
                    "displaytext": "MultiTagOffering",
                    "cpunumber": 1,
                    "cpuspeed": 64,
                    "memory": 64,
                    "created": "2014-05-28T16:10:55+0530",
                    "storagetype": "shared",
                    "offerha": false,
                    "limitcpuuse": false,
                    "isvolatile": false,
                    "tags": "anusha,z",
                    "issystem": false,
                    "defaultuse": false,
                    "iscustomized": false
                }
            ]
        }
    }
    
    Now, VM's current service offering name is "To_Error", which has tag named 
"anusha".
    When I upgrade the service offering to "CO-z". I get the below error. SS 
attached.
    
    
![ccp_incompatible_compute_offering](https://cloud.githubusercontent.com/assets/12583725/10840826/537c927e-7f09-11e5-9583-3f58546c42bd.png)
    
    But we can upgrade from "To_Error" to "MultiTagOffering". As 
"MultiTagOffering" contains tags "anusha" and some extra tags.


> ListServiceOfferings is returning incompatible tagged offerings when called 
> with VM id
> --------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-8847
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8847
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>            Reporter: Nitin Kumar Maharana
>
> When calling listServiceOfferings with VM id as parameter. It is returning 
> incompatible tagged offerings. It should only list all compatible tagged 
> offerings. The new service offering should contain all the tags of the 
> existing service offering. If that is the case It should list in the result.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to