cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Parth Jagirdar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-1903) API:MS: deleteAlerts API responds with error even though required parameters are specified
Date Wed, 24 Apr 2013 17:17:16 GMT

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

Parth Jagirdar commented on CLOUDSTACK-1903:
--------------------------------------------

Here...


2013-04-24 10:15:01,253 INFO  [cloud.api.ApiServer] (catalina-exec-24:null) (userId=2 accountId=2
sessionId=6BEFA1412A5FA56C929DB1C2AFA2C84A) 1                                            
                                              0.217.252.127 -- GET command=deleteAlerts&response=json&sessionkey=qmvcCvIkhKUbRQPkvIpHgseQTq8%3D&date=2013-04-22&_=1366823714009
431 either id                                                                            
              s, type or olderthan must be specified
2013-04-24 10:15:01,325 INFO  [cloud.api.ApiServer] (catalina-exec-13:null) (userId=2 accountId=2
sessionId=6BEFA1412A5FA56C929DB1C2AFA2C84A) 1                                            
                                              0.217.252.127 -- GET command=listAlerts&response=json&sessionkey=qmvcCvIkhKUbRQPkvIpHgseQTq8%3D&listAll=true&page=1&pagesize=20&_=1366823714070
                                                                                         
 200 { "listalertsresponse" : { "count":5 ,"alert" : [  {"id":"45c28439-e4df-4cc1-9864-8817979cd12f","type":7,"description":"Host
disconnected,                                                                            
               name: s-1-VM (id:3), availability zone: Basic, pod: Basic-Pod","sent":"2013-04-22T10:58:45-0700"},
{"id":"1701e055-a301-4d1a-9394-9d7aa9e7b665                                              
                                            ","type":7,"description":"Host disconnected, name:
s-1-VM (id:3), availability zone: Basic, pod: Basic-Pod","sent":"2013-04-22T10:58:44-0700"},
                                                                                         
 {"id":"7788ee7c-2137-44d6-99fd-532f8b21616f","type":13,"description":"No usage server process
running","sent":"2013-04-19T15:24:56-0700"}, {"i                                         
                                                 d":"41fcc95d-57f1-4648-9bf2-59d9e9ead59e","type":14,"description":"Management
server node 10.223.132.160 is up","sent":"2013-04-19T14:24:58-070                        
                                                                  0"}, {"id":"3199ce69-e3fb-4d7e-8c12-e3de72cefc7f","type":14,"description":"Management
network CIDR is not configured originally. Set it default                                
                                                           to 10.223.132.0/24","sent":"2013-04-19T14:24:56-0700"}
] } }


Still observing.
                
> API:MS: deleteAlerts API responds with error even though required parameters are specified
> ------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-1903
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1903
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: API, Management Server
>    Affects Versions: 4.2.0
>         Environment: Master # 171
>            Reporter: Parth Jagirdar
>            Assignee: Sanjay Tripathi
>         Attachments: Screen Shot 2013-04-02 at 9.37.44 PM.png
>
>
> Error 431 is retuned by deleteEvents even though required parameters (Atleast one) ID
or Category Or Older than date.
> Refer to FS for more details.
> https://cwiki.apache.org/CLOUDSTACK/ability-to-delete-or-archive-events-and-alerts.html#AbilitytodeleteorarchiveEventsandAlerts-%257B%257DDeleteorArchiveAlerts%257B%257D
> From FS:
> In the above mentioned APIs, id, type and olderthan are optional parameters but while
calling the APIs atleast one of them is required.
> Refer to screen attached.
> Following is apilog.log::
> 2013-04-02 21:36:46,291 INFO  [cloud.api.ApiServer] (catalina-exec-5:null) (userId=2
accountId=2 sessionId=0C73E2C61CD035A6DE0166028B4197EC) 10.216.51.174 -- GET command=listAlerts&response=json&sessionkey=EAGzdD1SnlPsoDLFQ9p8sN8Mk3U%3D&listAll=true&page=1&pagesize=20&_=1364963809516
200 { "listalertsresponse" : { "count":1 ,"alert" : [  {"id":"71fbf30d-74c0-4047-a22e-4049025f4012","type":13,"description":"No
usage server process running","sent":"2013-04-02T21:31:51-0700"} ] } }
> 2013-04-02 21:37:00,674 INFO  [cloud.api.ApiServer] (catalina-exec-17:null) (userId=2
accountId=2 sessionId=0C73E2C61CD035A6DE0166028B4197EC) 10.216.51.174 -- GET command=deleteAlerts&response=json&sessionkey=EAGzdD1SnlPsoDLFQ9p8sN8Mk3U%3D&date=2013-04-10&_=1364963823793
431 either ids, type or olderthan must be specified
> 2013-04-02 21:37:00,909 INFO  [cloud.api.ApiServer] (catalina-exec-1:null) (userId=2
accountId=2 sessionId=0C73E2C61CD035A6DE0166028B4197EC) 10.216.51.174 -- GET command=listAlerts&response=json&sessionkey=EAGzdD1SnlPsoDLFQ9p8sN8Mk3U%3D&listAll=true&page=1&pagesize=20&_=1364963824042
200 { "listalertsresponse" : { "count":1 ,"alert" : [  {"id":"71fbf30d-74c0-4047-a22e-4049025f4012","type":13,"description":"No
usage server process running","sent":"2013-04-02T21:31:51-0700"} ] } }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message