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

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

Github user borisstoyanov commented on the issue:

    https://github.com/apache/cloudstack/pull/1924
  
    I was able to verify it manually got the following results: 
    
    ```
    (local) SBCM5> delete snapshot id=eccb50a7-5443-44ee-b846-bce0cb623e3c
    Async job a23e2e09-7ab3-4111-8ec0-61c1cba5b7ab failed
    Error 431, Snapshot with id: 2 is already destroyed
    {
      "accountid": "f404058c-e98a-11e6-a479-06fb72010718",
      "cmd": 
"org.apache.cloudstack.api.command.user.snapshot.DeleteSnapshotCmd",
      "created": "2017-02-03T07:11:15+0000",
      "jobid": "a23e2e09-7ab3-4111-8ec0-61c1cba5b7ab",
      "jobinstanceid": "eccb50a7-5443-44ee-b846-bce0cb623e3c",
      "jobinstancetype": "Snapshot",
      "jobprocstatus": 0,
      "jobresult": {
        "errorcode": 431,
        "errortext": "Snapshot with id: 2 is already destroyed"
      },
      "jobresultcode": 530,
      "jobresulttype": "object",
      "jobstatus": 2,
      "userid": "f40412ac-e98a-11e6-a479-06fb72010718"
    }
    ```
    
    LGTM on the code changes, just waiting for the smoketests.


> Executing deleteSnapshot api with already deleted snapshot does not throw any 
> exception or failure message
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-9766
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9766
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>            Reporter: Nitesh Sarda
>
> If we try to delete the snapshot which is already deleted, then no proper 
> error appears in the log and it just try to delete the snapshot which is 
> already deleted.
> Steps to reproduce :
> -------
> 1-create a snapshot
> 2-delete the snapshot
> 3-try to delete snapshot which is deleted in step 2
> Expected Result
> -------------
> result should show proper error message



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to