[ https://issues.apache.org/jira/browse/CLOUDSTACK-9113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16097682#comment-16097682 ]
ASF subversion and git services commented on CLOUDSTACK-9113: ------------------------------------------------------------- Commit c03923c7e75b70b3c7b33fb2e28cd1bed8ac5c7d in cloudstack's branch refs/heads/master from Wei Zhou [ https://gitbox.apache.org/repos/asf?p=cloudstack.git;h=c03923c ] CLOUDSTACK-9113: skip vm with inconsistent state when getVmNetworkStats > 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 > Fix For: 4.7.0 > > > 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.4.14#64029)