cloudstack-users-cn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <xief...@sina.com>
Subject cloudstack的HA问题
Date Mon, 23 Dec 2013 10:32:06 GMT
在一个集群中有两个主机kvm-A和kvm-B,现在我想实现如下目标:如果主机kvm-A异常断电了,那么运行在kvm-A的虚拟机(如VM-1)能够自动运行到kvm-B上
    目前我只知道,要选择启用“提供高可用性”性能,但是即使选择了高可用性之后,当我将主机kvm-A断电时,等一段时间从Cloudstack上面看,原来在kvm-A上面的虚拟机VM-1确实显示所属的主机改成了kvm-B,但是一直starting,不能成功启动(部分日志见下)。我的主存储用的是CLVM的卷组VG,通过kvm-A和kvm-B连接到iscsi存储,不知道这种存储有关系没有。Cloudstack版本4.0.2.
下面是部分日志:[root@management-secondary ~]# tailf /var/log/cloud/management/management-server.log2013-12-19
16:00:57,950 DEBUG [cloud.api.ApiServlet] (catalina-exec-12:null) ===START===  192.168.0.188
-- GET  command=listVirtualMachines&id=8adae8c1-0fd6-4197-bf3c-507e89ae2bdf&response=json&sessionkey=myc5Y8EAIryvb%2FulTEVUXvVSCl0%3D&_=13874400617522013-12-19
16:00:57,957 DEBUG [cloud.vm.UserVmManagerImpl] (catalina-exec-12:null) THE WHERE CLAUSE IS:user_vm.id
= ? 2013-12-19 16:00:57,976 DEBUG [cloud.api.ApiServlet] (catalina-exec-12:null) ===END===
 192.168.0.188 -- GET  command=listVirtualMachines&id=8adae8c1-0fd6-4197-bf3c-507e89ae2bdf&response=json&sessionkey=myc5Y8EAIryvb%2FulTEVUXvVSCl0%3D&_=13874400617522013-12-19
16:00:58,103 DEBUG [cloud.api.ApiServlet] (catalina-exec-14:null) ===START===  192.168.0.188
-- GET  command=listOsTypes&response=json&sessionkey=myc5Y8EAIryvb%2FulTEVUXvVSCl0%3D&_=13874400618512013-12-19
16:00:58,104 DEBUG [cloud.api.ApiServlet] (catalina-exec-15:null) ===START===  192.168.0.188
-- GET  command=listTags&response=json&sessionkey=myc5Y8EAIryvb%2FulTEVUXvVSCl0%3D&resourceId=8adae8c1-0fd6-4197-bf3c-507e89ae2bdf&resourceType=UserVm&listAll=true&_=13874400618782013-12-19
16:00:58,111 DEBUG [cloud.api.ApiServlet] (catalina-exec-15:null) ===END===  192.168.0.188
-- GET  command=listTags&response=json&sessionkey=myc5Y8EAIryvb%2FulTEVUXvVSCl0%3D&resourceId=8adae8c1-0fd6-4197-bf3c-507e89ae2bdf&resourceType=UserVm&listAll=true&_=13874400618782013-12-19
16:00:58,388 DEBUG [cloud.api.ApiServlet] (catalina-exec-14:null) ===END===  192.168.0.188
-- GET  command=listOsTypes&response=json&sessionkey=myc5Y8EAIryvb%2FulTEVUXvVSCl0%3D&_=13874400618512013-12-19
16:00:58,931 DEBUG [cloud.api.ApiServlet] (catalina-exec-16:null) ===START===  192.168.0.188
-- GET  command=listVirtualMachines&details=nics&id=8adae8c1-0fd6-4197-bf3c-507e89ae2bdf&response=json&sessionkey=myc5Y8EAIryvb%2FulTEVUXvVSCl0%3D&_=13874400627732013-12-19
16:00:58,939 DEBUG [cloud.vm.UserVmManagerImpl] (catalina-exec-16:null) THE WHERE CLAUSE IS:user_vm.id
= ? 2013-12-19 16:00:58,996 DEBUG [cloud.api.ApiServlet] (catalina-exec-16:null) ===END===
 192.168.0.188 -- GET  command=listVirtualMachines&details=nics&id=8adae8c1-0fd6-4197-bf3c-507e89ae2bdf&response=json&sessionkey=myc5Y8EAIryvb%2FulTEVUXvVSCl0%3D&_=13874400627732013-12-19
16:01:04,195 DEBUG [cloud.server.StatsCollector] (StatsCollector-2:null) VmStatsCollector
is running...2013-12-19 16:01:04,585 DEBUG [agent.transport.Request] (StatsCollector-2:null)
Seq 1-356712492: Received:  { Ans: , MgmtId: 161332898500, via: 1, Ver: v1, Flags: 10, { GetVmStatsAnswer
} }2013-12-19 16:01:04,713 DEBUG [cloud.server.StatsCollector] (StatsCollector-2:null) HostStatsCollector
is running...2013-12-19 16:01:05,329 DEBUG [agent.transport.Request] (StatsCollector-2:null)
Seq 1-356712493: Received:  { Ans: , MgmtId: 161332898500, via: 1, Ver: v1, Flags: 10, { GetHostStatsAnswer
} }2013-12-19 16:01:12,539 DEBUG [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null)
Zone 1 is ready to launch secondary storage VM2013-12-19 16:01:12,621 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl]
(consoleproxy-1:null) Zone 1 is ready to launch console proxy2013-12-19 16:01:12,906 DEBUG
[network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null) Found 0 routers.
2013-12-19 16:01:16,109 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-1:null)
Ping from 42013-12-19 16:01:16,204 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-2:null)
Ping from 52013-12-19 16:01:22,483 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-3:null)
Ping from 12013-12-19 16:01:22,683 DEBUG [cloud.api.ApiServlet] (catalina-exec-17:null) ===START===
 192.168.0.234 -- GET  command=listVirtualMachines&page=1&pagesize=20&listAll=true&response=json&sessionkey=e9cSDyMMvN0kVfW4KbAMmkx3Ong%3D&_=13874401057782013-12-19
16:01:22,689 DEBUG [cloud.vm.UserVmManagerImpl] (catalina-exec-17:null) THE WHERE CLAUSE IS:2013-12-19
16:01:22,745 DEBUG [cloud.api.ApiServlet] (catalina-exec-17:null) ===END===  192.168.0.234
-- GET  command=listVirtualMachines&page=1&pagesize=20&listAll=true&response=json&sessionkey=e9cSDyMMvN0kVfW4KbAMmkx3Ong%3D&_=13874401057782013-12-19
16:01:42,540 DEBUG [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Zone
1 is ready to launch secondary storage VM2013-12-19 16:01:42,621 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl]
(consoleproxy-1:null) Zone 1 is ready to launch console proxy2013-12-19 16:01:42,906 DEBUG
[network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null) Found 0 routers.
2013-12-19 16:02:04,585 DEBUG [cloud.server.StatsCollector] (StatsCollector-2:null) VmStatsCollector
is running...2013-12-19 16:02:04,992 DEBUG [agent.transport.Request] (StatsCollector-2:null)
Seq 1-356712494: Received:  { Ans: , MgmtId: 161332898500, via: 1, Ver: v1, Flags: 10, { GetVmStatsAnswer
} }2013-12-19 16:02:05,329 DEBUG [cloud.server.StatsCollector] (StatsCollector-2:null) HostStatsCollector
is running...2013-12-19 16:02:05,933 DEBUG [agent.transport.Request] (StatsCollector-2:null)
Seq 1-356712495: Received:  { Ans: , MgmtId: 161332898500, via: 1, Ver: v1, Flags: 10, { GetHostStatsAnswer
} }2013-12-19 16:02:12,540 DEBUG [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null)
Zone 1 is ready to launch secondary storage VM2013-12-19 16:02:12,620 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl]
(consoleproxy-1:null) Zone 1 is ready to launch console proxy2013-12-19 16:02:12,906 DEBUG
[network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null) Found 0 routers.
2013-12-19 16:02:16,110 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-8:null)
Ping from 42013-12-19 16:02:16,205 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-7:null)
Ping from 52013-12-19 16:02:22,443 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-9:null)
Ping from 12013-12-19 16:02:42,540 DEBUG [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null)
Zone 1 is ready to launch secondary storage VM2013-12-19 16:02:42,620 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl]
(consoleproxy-1:null) Zone 1 is ready to launch console proxy2013-12-19 16:02:42,906 DEBUG
[network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null) Found 0 routers.
2013-12-19 16:03:04,992 DEBUG [cloud.server.StatsCollector] (StatsCollector-2:null) VmStatsCollector
is running...2013-12-19 16:03:05,401 DEBUG [agent.transport.Request] (StatsCollector-2:null)
Seq 1-356712496: Received:  { Ans: , MgmtId: 161332898500, via: 1, Ver: v1, Flags: 10, { GetVmStatsAnswer
} }2013-12-19 16:03:05,933 DEBUG [cloud.server.StatsCollector] (StatsCollector-3:null) HostStatsCollector
is running...2013-12-19 16:03:06,590 DEBUG [agent.transport.Request] (StatsCollector-3:null)
Seq 1-356712497: Received:  { Ans: , MgmtId: 161332898500, via: 1, Ver: v1, Flags: 10, { GetHostStatsAnswer
} }2013-12-19 16:03:12,540 DEBUG [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null)
Zone 1 is ready to launch secondary storage VM2013-12-19 16:03:12,620 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl]
(consoleproxy-1:null) Zone 1 is ready to launch console proxy2013-12-19 16:03:12,816 DEBUG
[storage.snapshot.SnapshotSchedulerImpl] (SnapshotPollTask:null) Snapshot scheduler.poll is
being called at 2013-12-19 08:03:12 GMT2013-12-19 16:03:12,817 DEBUG [storage.snapshot.SnapshotSchedulerImpl]
(SnapshotPollTask:null) Got 0 snapshots to be executed at 2013-12-19 08:03:12 GMT2013-12-19
16:03:12,857 DEBUG [cloud.network.ExternalLoadBalancerUsageManagerImpl] (ExternalNetworkMonitor-1:null)
External load balancer devices stats collector is running...2013-12-19 16:03:12,903 DEBUG
[network.router.VirtualNetworkApplianceManagerImpl] (RouterMonitor-1:null) Found 0 running
routers. 2013-12-19 16:03:12,906 DEBUG [network.router.VirtualNetworkApplianceManagerImpl]
(RouterStatusMonitor-1:null) Found 0 routers. 2013-12-19 16:03:16,112 DEBUG [agent.manager.AgentManagerImpl]
(AgentManager-Handler-5:null) Ping from 42013-12-19 16:03:16,205 DEBUG [agent.manager.AgentManagerImpl]
(AgentManager-Handler-13:null) Ping from 52013-12-19 16:03:22,464 DEBUG [agent.manager.AgentManagerImpl]
(AgentManager-Handler-14:null) Ping from 12013-12-19 16:03:42,540 DEBUG [storage.secondary.SecondaryStorageManagerImpl]
(secstorage-1:null) Zone 1 is ready to launch secondary storage VM2013-12-19 16:03:42,620
DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Zone 1 is ready to
launch console proxy2013-12-19 16:03:42,807 DEBUG [cloud.alert.AlertManagerImpl] (CapacityChecker:null)
Running Capacity Checker ... 2013-12-19 16:03:42,807 DEBUG [cloud.alert.AlertManagerImpl]
(CapacityChecker:null) recalculating system capacity2013-12-19 16:03:42,807 DEBUG [cloud.alert.AlertManagerImpl]
(CapacityChecker:null) Executing cpu/ram capacity update2013-12-19 16:03:42,816 DEBUG [cloud.capacity.CapacityManagerImpl]
(CapacityChecker:null) Found 8 VMs on host 12013-12-19 16:03:42,817 DEBUG [cloud.capacity.CapacityManagerImpl]
(CapacityChecker:null) Found 0 VM, not running on host 12013-12-19 16:03:42,819 DEBUG [cloud.capacity.CapacityManagerImpl]
(CapacityChecker:null) No need to calibrate cpu capacity, host:1 usedCpu: 25500 reservedCpu:
02013-12-19 16:03:42,820 DEBUG [cloud.capacity.CapacityManagerImpl] (CapacityChecker:null)
No need to calibrate memory capacity, host:1 usedMem: 12213813248 reservedMem: 02013-12-19
16:03:42,822 DEBUG [cloud.capacity.CapacityManagerImpl] (CapacityChecker:null) Found 0 VMs
on host 32013-12-19 16:03:42,823 DEBUG [cloud.capacity.CapacityManagerImpl] (CapacityChecker:null)
Found 0 VM, not running on host 32013-12-19 16:03:42,824 DEBUG [cloud.capacity.CapacityManagerImpl]
(CapacityChecker:null) No need to calibrate cpu capacity, host:3 usedCpu: 0 reservedCpu: 02013-12-19
16:03:42,824 DEBUG [cloud.capacity.CapacityManagerImpl] (CapacityChecker:null) No need to
calibrate memory capacity, host:3 usedMem: 0 reservedMem: 02013-12-19 16:03:42,825 DEBUG [cloud.alert.AlertManagerImpl]
(CapacityChecker:null) Done executing cpu/ram capacity update2013-12-19 16:03:42,825 DEBUG
[cloud.alert.AlertManagerImpl] (CapacityChecker:null) Executing storage capacity update2013-12-19
16:03:42,830 DEBUG [cloud.storage.StorageManagerImpl] (CapacityChecker:null) Successfully
set Capacity - 536866717696 for capacity type - 3 , DataCenterId - 1, HostOrPoolId - 200,
PodId 12013-12-19 16:03:42,830 DEBUG [cloud.alert.AlertManagerImpl] (CapacityChecker:null)
Done executing storage capacity update2013-12-19 16:03:42,830 DEBUG [cloud.alert.AlertManagerImpl]
(CapacityChecker:null) Executing capacity updates for public ip and Vlans2013-12-19 16:03:42,830
DEBUG [cloud.alert.AlertManagerImpl] (CapacityChecker:null) Executing capacity updates for
public ip and Vlans2013-12-19 16:03:42,834 DEBUG [cloud.alert.AlertManagerImpl] (CapacityChecker:null)
Done capacity updates for public ip and Vlans2013-12-19 16:03:42,834 DEBUG [cloud.alert.AlertManagerImpl]
(CapacityChecker:null) Executing capacity updates for private ip2013-12-19 16:03:42,839 DEBUG
[cloud.alert.AlertManagerImpl] (CapacityChecker:null) Done executing capacity updates for
private ip2013-12-19 16:03:42,839 DEBUG [cloud.alert.AlertManagerImpl] (CapacityChecker:null)
Done recalculating system capacity2013-12-19 16:03:42,852 DEBUG [cloud.alert.AlertManagerImpl]
(CapacityChecker:null) Done running Capacity Checker ... 2013-12-19 16:03:42,906 DEBUG [network.router.VirtualNetworkApplianceManagerImpl]
(RouterStatusMonitor-1:null) Found 0 routers. 2013-12-19 16:04:05,401 DEBUG [cloud.server.StatsCollector]
(StatsCollector-3:null) VmStatsCollector is running...2013-12-19 16:04:05,808 DEBUG [agent.transport.Request]
(StatsCollector-3:null) Seq 1-356712498: Received:  { Ans: , MgmtId: 161332898500, via: 1,
Ver: v1, Flags: 10, { GetVmStatsAnswer } }2013-12-19 16:04:06,590 DEBUG [cloud.server.StatsCollector]
(StatsCollector-2:null) HostStatsCollector is running...2013-12-19 16:04:07,199 DEBUG [agent.transport.Request]
(StatsCollector-2:null) Seq 1-356712499: Received:  { Ans: , MgmtId: 161332898500, via: 1,
Ver: v1, Flags: 10, { GetHostStatsAnswer } }2013-12-19 16:04:12,539 DEBUG [storage.secondary.SecondaryStorageManagerImpl]
(secstorage-1:null) Zone 1 is ready to launch secondary storage VM2013-12-19 16:04:12,620
DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Zone 1 is ready to
launch console proxy2013-12-19 16:04:12,906 DEBUG [network.router.VirtualNetworkApplianceManagerImpl]
(RouterStatusMonitor-1:null) Found 0 routers. 2013-12-19 16:04:16,111 DEBUG [agent.manager.AgentManagerImpl]
(AgentManager-Handler-1:null) Ping from 42013-12-19 16:04:16,207 DEBUG [agent.manager.AgentManagerImpl]
(AgentManager-Handler-2:null) Ping from 52013-12-19 16:04:22,454 DEBUG [agent.manager.AgentManagerImpl]
(AgentManager-Handler-3:null) Ping from 12013-12-19 16:04:28,312 DEBUG [cloud.api.ApiServlet]
(catalina-exec-18:null) ===START===  192.168.0.234 -- GET  command=listZones&id=49e1d3bb-5e72-483b-abd4-58f46deeb38f&response=json&sessionkey=e9cSDyMMvN0kVfW4KbAMmkx3Ong%3D&_=13874402914142013-12-19
16:04:28,324 DEBUG [cloud.api.ApiServlet] (catalina-exec-18:null) ===END===  192.168.0.234
-- GET  command=listZones&id=49e1d3bb-5e72-483b-abd4-58f46deeb38f&response=json&sessionkey=e9cSDyMMvN0kVfW4KbAMmkx3Ong%3D&_=13874402914142013-12-19
16:04:28,383 DEBUG [cloud.api.ApiServlet] (catalina-exec-19:null) ===START===  192.168.0.234
-- GET  command=listNetworks&id=5de0f70a-90c6-44ce-9ad2-159ae33b11de&response=json&sessionkey=e9cSDyMMvN0kVfW4KbAMmkx3Ong%3D&_=13874402914452013-12-19
16:04:28,406 DEBUG [cloud.api.ApiServlet] (catalina-exec-19:null) ===END===  192.168.0.234
-- GET  command=listNetworks&id=5de0f70a-90c6-44ce-9ad2-159ae33b11de&response=json&sessionkey=e9cSDyMMvN0kVfW4KbAMmkx3Ong%3D&_=13874402914452013-12-19
16:04:28,440 DEBUG [cloud.api.ApiServlet] (catalina-exec-20:null) ===START===  192.168.0.234
-- GET  command=listVirtualMachines&id=8adae8c1-0fd6-4197-bf3c-507e89ae2bdf&response=json&sessionkey=e9cSDyMMvN0kVfW4KbAMmkx3Ong%3D&_=13874402915382013-12-19
16:04:28,443 DEBUG [cloud.vm.UserVmManagerImpl] (catalina-exec-20:null) THE WHERE CLAUSE IS:user_vm.id
= ? 2013-12-19 16:04:28,457 DEBUG [cloud.api.ApiServlet] (catalina-exec-20:null) ===END===
 192.168.0.234 -- GET  command=listVirtualMachines&id=8adae8c1-0fd6-4197-bf3c-507e89ae2bdf&response=json&sessionkey=e9cSDyMMvN0kVfW4KbAMmkx3Ong%3D&_=13874402915382013-12-19
16:04:28,535 DEBUG [cloud.api.ApiServlet] (catalina-exec-1:null) ===START===  192.168.0.234
-- GET  command=listOsTypes&response=json&sessionkey=e9cSDyMMvN0kVfW4KbAMmkx3Ong%3D&_=13874402916322013-12-19
16:04:28,614 DEBUG [cloud.api.ApiServlet] (catalina-exec-23:null) ===START===  192.168.0.234
-- GET  command=listTags&response=json&sessionkey=e9cSDyMMvN0kVfW4KbAMmkx3Ong%3D&resourceId=8adae8c1-0fd6-4197-bf3c-507e89ae2bdf&resourceType=UserVm&listAll=true&_=13874402916792013-12-19
16:04:28,619 DEBUG [cloud.api.ApiServlet] (catalina-exec-23:null) ===END===  192.168.0.234
-- GET  command=listTags&response=json&sessionkey=e9cSDyMMvN0kVfW4KbAMmkx3Ong%3D&resourceId=8adae8c1-0fd6-4197-bf3c-507e89ae2bdf&resourceType=UserVm&listAll=true&_=13874402916792013-12-19
16:04:28,853 DEBUG [cloud.api.ApiServlet] (catalina-exec-1:null) ===END===  192.168.0.234
-- GET  command=listOsTypes&response=json&sessionkey=e9cSDyMMvN0kVfW4KbAMmkx3Ong%3D&_=13874402916322013-12-19
16:04:42,539 DEBUG [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Zone
1 is ready to launch secondary storage VM2013-12-19 16:04:42,620 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl]
(consoleproxy-1:null) Zone 1 is ready to launch console proxy2013-12-19 16:04:42,906 DEBUG
[network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null) Found 0 routers.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message