cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-9113) Vm stats can not be updated if one vm has inconsistent state between KVM and db
Date Sat, 12 Dec 2015 13:04:46 GMT

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

ASF subversion and git services commented on CLOUDSTACK-9113:
-------------------------------------------------------------

Commit 65bf2edfa196601d68e82f09012a393ee73499a2 in cloudstack's branch refs/heads/master from
[~remibergsma]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=65bf2ed ]

Merge pull request #1182 from ustcweizhou/CLOUDSTACK-9113-getVmStats

[4.6] CLOUDSTACK-9113: skip vm with inconsistent state when getVmStats/getVmDiskStatson KVM,
if there is a vm has inconsistent state between hypervisor and db, the getVmStat will terminate
and return null, all vm stats will not be updated.
we should skip the vm which has inconsistent state, and continue on others.

* pr/1182:
  CLOUDSTACK-9113: skip vm with inconsistent state when getVmStats/getVmDiskStats

Signed-off-by: Remi Bergsma <github@remi.nl>


> Vm stats can not be updated if one vm has inconsistent state between KVM and db
> -------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-9113
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9113
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>            Reporter: Wei Zhou
>            Assignee: Wei Zhou
>
> on KVM, if there is a vm has inconsistent state between hypervisor and db, the getVmStat
will terminate and return nothing, all vm stats will not be updated.
> 2015-12-07 11:24:25,711 DEBUG [cloud.agent.Agent] (agentRequest-Handler-3:null) Processing
command: com.cloud.agent.api.GetVmStatsCommand
> 2015-12-07 11:24:25,711 DEBUG [kvm.resource.LibvirtConnection] (agentRequest-Handler-3:null)
Looking for libvirtd connection at: qemu:///system
> 2015-12-07 11:24:25,729 DEBUG [kvm.resource.LibvirtConnection] (agentRequest-Handler-3:null)
Looking for libvirtd connection at: qemu:///system
> 2015-12-07 11:24:25,746 DEBUG [kvm.resource.LibvirtConnection] (agentRequest-Handler-3:null)
Looking for libvirtd connection at: qemu:///system
> 2015-12-07 11:24:25,748 DEBUG [kvm.resource.LibvirtConnection] (agentRequest-Handler-3:null)
Can not find KVM connection for Instance: i-2-7563-VM, continuing.
> 2015-12-07 11:24:25,748 DEBUG [kvm.resource.LibvirtConnection] (agentRequest-Handler-3:null)
Looking for libvirtd connection at: lxc:///
> 2015-12-07 11:24:25,750 DEBUG [kvm.resource.LibvirtConnection] (agentRequest-Handler-3:null)
Can not find LXC connection for Instance: i-2-7563-VM, continuing.
> 2015-12-07 11:24:25,750 WARN  [kvm.resource.LibvirtConnection] (agentRequest-Handler-3:null)
Can not find a connection for Instance i-2-7563-VM. Assuming the default connection.
> 2015-12-07 11:24:25,750 DEBUG [kvm.resource.LibvirtConnection] (agentRequest-Handler-3:null)
Looking for libvirtd connection at: qemu:///system
> 2015-12-07 11:24:25,752 DEBUG [resource.wrapper.LibvirtGetVmStatsCommandWrapper] (agentRequest-Handler-3:null)
Can't get vm stats: org.libvirt.LibvirtException: Domain not found: no domain with matching
name 'i-2-7563-VM'
> 2015-12-07 11:24:25,819 DEBUG [cloud.agent.Agent] (agentRequest-Handler-5:null) Processing
command: com.cloud.agent.api.GetHostStatsCommand
> 2015-12-07 11:24:26,037 DEBUG [cloud.agent.Agent] (agentRequest-Handler-1:null) Processing
command: com.cloud.agent.api.GetStorageStatsCommand
> we should skip the vm which has inconsistent state, and continue on others.
> how to reproduce:
> (1) start a vm
> (2) 'virsh destroy' the vm
> (3) check the agent.log (notice the vm.stats.intervel in global configuruation)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message