[
https://issues.apache.org/jira/browse/CLOUDSTACK-7828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14194352#comment-14194352
]
ASF subversion and git services commented on CLOUDSTACK-7828:
-------------------------------------------------------------
Commit 1c01da3e08a80ce0c47ad4aac739d48833c2492c in cloudstack's branch
refs/heads/master from Santhosh Edukulla
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=1c01da3 ]
CLOUDSTACK-7828.Avoid marking IPs already in Allocated as Allocated again. Use
row lock to ensure that prev state is either Allocating or Free. This will
inturn avoid logging duplicate events
> Usage job failed because one "NETIPASSIGN" JOB was registered with
> usage_event table twice
> -------------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-7828
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7828
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Reporter: Santhosh Kumar Edukulla
> Assignee: Santhosh Kumar Edukulla
>
> Usage job failed because one "NETIPASSIGN" JOB was registered with
> usage_event table twice.
> For the following two jobs in event table of cloud DB,
> —
> 566758 5c3f66de-1a4f-4554-a4a1-97498fcf86b8 NET.IPASSIGN
> Created Successfully created entity for allocating Ip. Ip Id: 647
> 227 166 142 2014-10-01 16:15:51 INFO 0 NULL 0
> 566759 ee32112e-ea31-4bab-adef-59f48497aa4f NET.IPASSIGN
> Scheduled associating ip to network id: 409 in zone 1 227 166
> 142 2014-10-01 16:15:51 INFO 566758 NULL 0
> 566761 62369c41-1302-4e43-8f67-df39337fc59d NET.IPASSIGN
> Created Successfully created entity for allocating Ip. Ip Id: 649
> 227 166 142 2014-10-01 16:15:51 INFO 0 NULL 0
> 566762 0608c451-cacb-4528-984f-372ad22ae697 NET.IPASSIGN
> Scheduled associating ip to network id: 409 in zone 1 227 166
> 142 2014-10-01 16:15:51 INFO 566761 NULL 0
> 566763 f74ba0f3-bb01-4b34-ad14-e98cb0f797b6 NET.IPASSIGN
> Started associating Ip. Ip Id: 647 227 166 142
> 2014-10-01 16:15:51 INFO 566758 NULL 0
> 566764 c98c307b-9ab2-4038-81be-d19d992b00b8 NET.IPASSIGN
> Started associating Ip. Ip Id: 649 227 166 142
> 2014-10-01 16:15:51 INFO 566761 NULL 0
> 566765 e8d12014-c635-48fc-b6fb-eb6e1325ec44 NET.IPASSIGN
> Completed Successfully completed associating Ip. Ip Id: 649 227
> 166 142 2014-10-01 16:15:51 INFO 566761 NULL 0
> 566766 056de820-6554-42fb-adf2-6525ca8d1a70 NET.IPASSIGN
> Completed Successfully completed associating Ip. Ip Id: 647 227
> 166 142 2014-10-01 16:15:51 INFO 566758 NULL 0
> —
> we have usage event recorded twice in usage_event table of cloud DB,
> —
> 301775 NET.IPASSIGN 166 2014-10-01 16:15:51 1 647
> 210.140.170.135 NULL 0 0 VirtualNetwork 0 NULL
> 301776 NET.IPASSIGN 166 2014-10-01 16:15:51 1 647
> 210.140.170.135 NULL 0 0 VirtualNetwork 0 NULL
> 301777 NET.IPASSIGN 166 2014-10-01 16:15:51 1 649
> 210.140.170.137 NULL 0 0 VirtualNetwork 0 NULL
> 301778 NET.IPASSIGN 166 2014-10-01 16:15:51 1 649
> 210.140.170.137 NULL 0 0 VirtualNetwork 0 NULL
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)