cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Min Chen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-7162) queryAsyncJobResult api does not return jobinstanceid
Date Tue, 22 Jul 2014 16:46:39 GMT

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

Min Chen commented on CLOUDSTACK-7162:
--------------------------------------

This issue only happens when you invoke queryAsyncJobResult API when the job is completed.
The reason for this is that in our async job framework, in completion, we wiped out previous
instance_type and instance_id columns from async_job table to de-associate job from instance
information. To solve this issue, we just need to skip that wipe action. 

> queryAsyncJobResult api does not return jobinstanceid
> -----------------------------------------------------
>
>                 Key: CLOUDSTACK-7162
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7162
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: API
>    Affects Versions: 4.2.0
>            Reporter: Min Chen
>            Assignee: Min Chen
>            Priority: Critical
>             Fix For: 4.5.0
>
>
> As per the API doc, queryAsyncJobResult should return jobinstanceid, but we never saw
it returning jobinstanceid in any of the async query result.
> ex: when we call deploy vm
> http://<CCP-IP>:8080/client/api?command=deployVirtualMachine&zoneId=9d2971ac-e5d8-48ed-9433-6c841aaa2abe&templateId=5fdb8139-9dec-4104-b963-1169ee8a606c&hypervisor=XenServer&serviceOfferingId=f5599b66-1488-42d5-a68f-31b62b397aea&diskOfferingId=54a8e6c0-f68f-40db-a379-3f5052f10643&networkIds=daaed11e-a7b6-4375-8da1-80208f97dc32&response=json&sessionkey=h8sGm6EFEMifsm7w3FG6WDeSVWI%3D&_=1391080640434
> we get:
> { "deployvirtualmachineresponse" :
> {"id":"1967161f-903f-46d9-bb52-f8896bd5951f","jobid":"94fb216d-e28a-4a92-b59e-5b19df0fc042"}
> }
> But when we query async job result, we expect it to return jobinstanceid, which should
be same as id above.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message