[
https://issues.apache.org/jira/browse/CLOUDSTACK-5874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rohit Yadav closed CLOUDSTACK-5874.
-----------------------------------
Resolution: Cannot Reproduce
Created an account, logged in to create a log in event, deleted the account
after logging out. Listing the event by ID worked, deleting the even worked
with no errors. Reopen if there is some other steps you did?
(bluebox) > list events id=e39cfab4-c611-4791-9204-a8417276d941
{
"count": 1,
"event": [
{
"account": "admin5",
"created": "2015-03-23T15:12:49+0530",
"description": "user has logged in from IP Address 192.168.1.12",
"domain": "ROOT",
"domainid": "5a1e8c36-cef0-11e4-837c-00012e4fde1c",
"id": "e39cfab4-c611-4791-9204-a8417276d941",
"level": "INFO",
"state": "Completed",
"type": "USER.LOGIN",
"username": "admin5"
}
]
}
Now, account admin5 deleted.
(bluebox) > delete events ids=e39cfab4-c611-4791-9204-a8417276d941
{
"success": "true"
}
Checking list API to confirm deletion:
(bluebox) > list events id=e39cfab4-c611-4791-9204-a8417276d941
Error 431: Unable to execute API command listevents due to invalid value.
Invalid parameter id value=e39cfab4-c611-4791-9204-a8417276d941 due to
incorrect long value format, or entity does not exist or due to incorrect
parameter annotation for the field in api cmd class.
> Cannot delete events for deleted accounts
> -----------------------------------------
>
> Key: CLOUDSTACK-5874
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5874
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Management Server
> Affects Versions: 4.2.1
> Reporter: Francois Gaudreault
> Assignee: Rohit Yadav
> Priority: Minor
> Fix For: 4.6.0, 4.4.3, 4.5.1
>
>
> If there are events for a deleted account, you cannot remove them. I see this
> error in the logs : 530 Unable to delete Events, one or more parameters has
> invalid values
> To reproduce:
> - Create an account
> - Generate an event using this account
> - Delete the account
> - Try to delete the event. It will fail with 530 Unable to delete Events, one
> or more parameters has invalid values
> When you delete an account, it should either ask if you want to
> delete/archive events or just allow deleting the events regardless.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)