Re: 建立ubuntu VM失败

2014-11-03 Thread ZS Che
我也留意到这条信息了。我用的是ubuntu10.04的iso安装的。计算方案采用的是本地存储,不知道有没有影响。

On Mon, Nov 3, 2014 at 6:10 PM, linux...@gmail.com linux...@gmail.com
wrote:

 errorInfo: [INVALID_SOURCE, Unable to access a required file in
 the specified repository:
 file:///tmp/cdrom-repo-HHGBxm/install.386/xen/vmlinuz., ]
  otherConfig: {}

 估计是你的虚机模版有问题

 2014-11-03 13:44 GMT+08:00 ZS Che chezscl...@gmail.com:
  hi 请教大家一个问题。
  我在建立ubuntu 10.04VM的时候出现了错误。然而,我建立win7的VM就一切正常。
  我使用CloudStack 4.2.0,Xenserver 6.0.2,高级网络资源域。
  请大家帮帮我。谢谢!
 
  management-server.log是这样说的:
 
  2014-11-03 13:10:59,805 DEBUG [xen.resource.CitrixResourceBase]
  (DirectAgent-13:null) 1. The VM i-2-21-VM is in Starting state.
  2014-11-03 13:10:59,886 DEBUG [xen.resource.XenServer56FP1Resource]
  (DirectAgent-13:null) Created VM 78250db7-f649-417d-d98c-91e8f38e8132 for
  i-2-21-VM
  2014-11-03 13:10:59,975 DEBUG [xen.resource.CitrixResourceBase]
  (DirectAgent-13:null) VBD b9de7fca-6050-0e70-4e84-b22c9113daf7 created
 for
  com.cloud.agent.api.to.DiskTO@40f5012a
  2014-11-03 13:11:01,384 DEBUG [xen.resource.CitrixResourceBase]
  (DirectAgent-13:null) VBD 6b1e3091-2b92-3a03-6b89-7465c2be0879 created
 for
  com.cloud.agent.api.to.DiskTO@ff398ca
  2014-11-03 13:11:01,384 DEBUG [xen.resource.CitrixResourceBase]
  (DirectAgent-13:null) Creating VIF for i-2-21-VM on nic
  [Nic:Guest-10.1.1.202-vlan://128]
  2014-11-03 13:11:01,392 DEBUG [xen.resource.CitrixResourceBase]
  (DirectAgent-13:null) Looking for network named cmfg2Guest
  2014-11-03 13:11:01,444 DEBUG [xen.resource.CitrixResourceBase]
  (DirectAgent-13:null) Found a network called cmfg2Guest on
  host=192.168.10.6;  Network=5bf85297-7cc1-ee8e-438a-0ed68e60af6f;
  pif=42785767-e961-e92e-c30c-e76e92ab5196
  2014-11-03 13:11:01,483 DEBUG [xen.resource.CitrixResourceBase]
  (DirectAgent-13:null) Found a network called
  VLAN-5bf85297-7cc1-ee8e-438a-0ed68e60af6f-128 on host=192.168.10.6;
  Network=106a627f-15a0-eb91-26b9-06abfc56e397;
  pif=6b876027-8e80-c048-a3ea-2ab543a4c76f
  2014-11-03 13:11:01,521 DEBUG [xen.resource.CitrixResourceBase]
  (DirectAgent-13:null) Created a vif e923754c-86d7-483d-94f3-9acee7491d7d
 on
  0
  2014-11-03 13:11:02,185 DEBUG [cloud.api.ApiServlet]
  (catalina-exec-20:null) ===START===  192.168.0.22 -- GET
 
 command=queryAsyncJobResultjobId=78a88c08-7970-47b1-8155-808664738e48response=jsonsessionkey=GVsuVRBe1d3KDv4MD%2F27ACfmeOg%3D_=1414991534838
  2014-11-03 13:11:02,298 DEBUG [cloud.api.ApiServlet]
  (catalina-exec-20:null) ===END===  192.168.0.22 -- GET
 
 command=queryAsyncJobResultjobId=78a88c08-7970-47b1-8155-808664738e48response=jsonsessionkey=GVsuVRBe1d3KDv4MD%2F27ACfmeOg%3D_=1414991534838
  2014-11-03 13:11:02,488 DEBUG [agent.manager.DirectAgentAttache]
  (DirectAgent-282:null) Seq 2-2070740996: Executing request
  2014-11-03 13:11:02,927 DEBUG [agent.manager.DirectAgentAttache]
  (DirectAgent-282:null) Seq 2-2070740996: Response Received:
  2014-11-03 13:11:02,927 DEBUG [agent.transport.Request]
  (DirectAgent-282:null) Seq 2-2070740996: Processing:  { Ans: , MgmtId:
  207458817951964, via: 2, Ver: v1, Flags: 10,
  [{com.cloud.agent.api.Answer:{result:true,wait:0}}] }
  2014-11-03 13:11:03,166 DEBUG
  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Zone
 1
  is ready to launch secondary storage VM
  2014-11-03 13:11:03,246 DEBUG
 [cloud.consoleproxy.ConsoleProxyManagerImpl]
  (consoleproxy-1:null) Zone 1 is ready to launch console proxy
  2014-11-03 13:11:04,567 DEBUG
  [network.router.VirtualNetworkApplianceManagerImpl]
  (RouterStatusMonitor-1:null) Found 1 routers to update status.
  2014-11-03 13:11:04,569 DEBUG
  [network.router.VirtualNetworkApplianceManagerImpl]
  (RouterStatusMonitor-1:null) Found 0 networks to update RvR status.
  2014-11-03 13:11:04,586 WARN  [xen.resource.CitrixResourceBase]
  (DirectAgent-13:null) Task failed! Task record: uuid:
  d4d659eb-d46c-d6f2-4a3e-e4a2eecb6c87
 nameLabel: Async.VM.start_on
   nameDescription:
 allowedOperations: []
 currentOperations: {}
   created: Mon Nov 03 13:13:30 CST 2014
  finished: Mon Nov 03 13:13:33 CST 2014
status: failure
residentOn: com.xensource.xenapi.Host@25cdee55
  progress: 1.0
  type: none/
result:
 errorInfo: [INVALID_SOURCE, Unable to access a required file
 in
  the specified repository:
  file:///tmp/cdrom-repo-HHGBxm/install.386/xen/vmlinuz., ]
   otherConfig: {}
 subtaskOf: com.xensource.xenapi.Task@aaf13f6f
  subtasks: []
 
  2014-11-03 13:11:04,590 DEBUG
  [network.router.VirtualNetworkApplianceManagerImpl]
  (RouterStatusMonitor-1:null) Found 1 routers to update status.
  2014-11-03 13:11:04,592 DEBUG
  [network.router.VirtualNetworkApplianceManagerImpl]
  (RouterStatusMonitor-1:null) Found 0 networks to update RvR status.
  2014-11-03 13:11:04,596 WARN  [xen.resource.CitrixResourceBase

建立ubuntu VM失败

2014-11-02 Thread ZS Che
hi 请教大家一个问题。
我在建立ubuntu 10.04VM的时候出现了错误。然而,我建立win7的VM就一切正常。
我使用CloudStack 4.2.0,Xenserver 6.0.2,高级网络资源域。
请大家帮帮我。谢谢!

management-server.log是这样说的:

2014-11-03 13:10:59,805 DEBUG [xen.resource.CitrixResourceBase]
(DirectAgent-13:null) 1. The VM i-2-21-VM is in Starting state.
2014-11-03 13:10:59,886 DEBUG [xen.resource.XenServer56FP1Resource]
(DirectAgent-13:null) Created VM 78250db7-f649-417d-d98c-91e8f38e8132 for
i-2-21-VM
2014-11-03 13:10:59,975 DEBUG [xen.resource.CitrixResourceBase]
(DirectAgent-13:null) VBD b9de7fca-6050-0e70-4e84-b22c9113daf7 created for
com.cloud.agent.api.to.DiskTO@40f5012a
2014-11-03 13:11:01,384 DEBUG [xen.resource.CitrixResourceBase]
(DirectAgent-13:null) VBD 6b1e3091-2b92-3a03-6b89-7465c2be0879 created for
com.cloud.agent.api.to.DiskTO@ff398ca
2014-11-03 13:11:01,384 DEBUG [xen.resource.CitrixResourceBase]
(DirectAgent-13:null) Creating VIF for i-2-21-VM on nic
[Nic:Guest-10.1.1.202-vlan://128]
2014-11-03 13:11:01,392 DEBUG [xen.resource.CitrixResourceBase]
(DirectAgent-13:null) Looking for network named cmfg2Guest
2014-11-03 13:11:01,444 DEBUG [xen.resource.CitrixResourceBase]
(DirectAgent-13:null) Found a network called cmfg2Guest on
host=192.168.10.6;  Network=5bf85297-7cc1-ee8e-438a-0ed68e60af6f;
pif=42785767-e961-e92e-c30c-e76e92ab5196
2014-11-03 13:11:01,483 DEBUG [xen.resource.CitrixResourceBase]
(DirectAgent-13:null) Found a network called
VLAN-5bf85297-7cc1-ee8e-438a-0ed68e60af6f-128 on host=192.168.10.6;
Network=106a627f-15a0-eb91-26b9-06abfc56e397;
pif=6b876027-8e80-c048-a3ea-2ab543a4c76f
2014-11-03 13:11:01,521 DEBUG [xen.resource.CitrixResourceBase]
(DirectAgent-13:null) Created a vif e923754c-86d7-483d-94f3-9acee7491d7d on
0
2014-11-03 13:11:02,185 DEBUG [cloud.api.ApiServlet]
(catalina-exec-20:null) ===START===  192.168.0.22 -- GET
command=queryAsyncJobResultjobId=78a88c08-7970-47b1-8155-808664738e48response=jsonsessionkey=GVsuVRBe1d3KDv4MD%2F27ACfmeOg%3D_=1414991534838
2014-11-03 13:11:02,298 DEBUG [cloud.api.ApiServlet]
(catalina-exec-20:null) ===END===  192.168.0.22 -- GET
command=queryAsyncJobResultjobId=78a88c08-7970-47b1-8155-808664738e48response=jsonsessionkey=GVsuVRBe1d3KDv4MD%2F27ACfmeOg%3D_=1414991534838
2014-11-03 13:11:02,488 DEBUG [agent.manager.DirectAgentAttache]
(DirectAgent-282:null) Seq 2-2070740996: Executing request
2014-11-03 13:11:02,927 DEBUG [agent.manager.DirectAgentAttache]
(DirectAgent-282:null) Seq 2-2070740996: Response Received:
2014-11-03 13:11:02,927 DEBUG [agent.transport.Request]
(DirectAgent-282:null) Seq 2-2070740996: Processing:  { Ans: , MgmtId:
207458817951964, via: 2, Ver: v1, Flags: 10,
[{com.cloud.agent.api.Answer:{result:true,wait:0}}] }
2014-11-03 13:11:03,166 DEBUG
[storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Zone 1
is ready to launch secondary storage VM
2014-11-03 13:11:03,246 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl]
(consoleproxy-1:null) Zone 1 is ready to launch console proxy
2014-11-03 13:11:04,567 DEBUG
[network.router.VirtualNetworkApplianceManagerImpl]
(RouterStatusMonitor-1:null) Found 1 routers to update status.
2014-11-03 13:11:04,569 DEBUG
[network.router.VirtualNetworkApplianceManagerImpl]
(RouterStatusMonitor-1:null) Found 0 networks to update RvR status.
2014-11-03 13:11:04,586 WARN  [xen.resource.CitrixResourceBase]
(DirectAgent-13:null) Task failed! Task record: uuid:
d4d659eb-d46c-d6f2-4a3e-e4a2eecb6c87
   nameLabel: Async.VM.start_on
 nameDescription:
   allowedOperations: []
   currentOperations: {}
 created: Mon Nov 03 13:13:30 CST 2014
finished: Mon Nov 03 13:13:33 CST 2014
  status: failure
  residentOn: com.xensource.xenapi.Host@25cdee55
progress: 1.0
type: none/
  result:
   errorInfo: [INVALID_SOURCE, Unable to access a required file in
the specified repository:
file:///tmp/cdrom-repo-HHGBxm/install.386/xen/vmlinuz., ]
 otherConfig: {}
   subtaskOf: com.xensource.xenapi.Task@aaf13f6f
subtasks: []

2014-11-03 13:11:04,590 DEBUG
[network.router.VirtualNetworkApplianceManagerImpl]
(RouterStatusMonitor-1:null) Found 1 routers to update status.
2014-11-03 13:11:04,592 DEBUG
[network.router.VirtualNetworkApplianceManagerImpl]
(RouterStatusMonitor-1:null) Found 0 networks to update RvR status.
2014-11-03 13:11:04,596 WARN  [xen.resource.CitrixResourceBase]
(DirectAgent-13:null) Unable to start VM(i-2-21-VM) on
host(dbffcf40-5a66-406b-bf04-292b9c0757fa) due to Task failed! Task
record: uuid: d4d659eb-d46c-d6f2-4a3e-e4a2eecb6c87
   nameLabel: Async.VM.start_on
 nameDescription:
   allowedOperations: []
   currentOperations: {}
 created: Mon Nov 03 13:13:30 CST 2014
finished: Mon Nov 03 13:13:33 CST 2014
  status: failure
  residentOn: com.xensource.xenapi.Host@25cdee55
progress: 1.0
type: none/
  result:
   

Re: 添加Host失败,Xenserver6.0.2,CloudStack4.2.0

2014-08-07 Thread ZS Che
您好,我今天解决了我的问题。
由于cloudstack中network label 和xenserver中不一致,所以一致添加host失败。
调整成一样之后就好了。
谢谢您之前的帮助。


On Tue, Aug 5, 2014 at 10:52 AM, linux...@gmail.com linux...@gmail.com
wrote:

 xenserver  不需要agent
 建议你参考官方的xenserver的配置文档,检查下你的配置
 应该有地方配置有问题

 2014-08-05 10:36 GMT+08:00 ZS Che chezscl...@gmail.com:
  我刚才测试了一下。可以从管理节点ssh到计算节点,同时计算节点也能ssh到管理节点。
 
  我在CloudStack
 
 UI上添加Host的时候,虽然页面里面报AgentDisconnected的错误,但是基础架构里面却多了一个Host,但是它的状态是Alert。日志内容已经在上一次的回复中贴出来了。
 
  请问这是为什么呢?Xenserver应该不需要Agent吧?谢谢。
 
 
  On Mon, Aug 4, 2014 at 4:25 PM, linux...@gmail.com linux...@gmail.com
  wrote:
 
  测试下通过管理节点能否ssh登陆计算节点
 
  如果不通,是你的网络配置有问题
 
  2014-08-01 19:51 GMT+08:00 ZS Che chezscl...@gmail.com:
  
 
 十分感谢您的回复。我今天上午发现是我的hostname出现了问题。一个带域名,一个没有带域名,导致无法添加。交换机方面之前就采用trunk模式,vlan也都通过了。
  
   但是,这个问题解决之后仍然无法添加Host,web页面显示
   Cannot transit agent status with event AgentDisconnected for host 6,
   management server id is 207458817951964, Unable to transition to a new
   state from Creating via AgentDisconnected
  
  
   log文件如下:
   
   2014-08-01 19:31:32,080 INFO  [xen.resource.CitrixResourceBase]
   (DirectAgent-238:null) Host 192.168.1.5
   OpaqueRef:e289ee27-9ec3-83f4-551e-ff8b64386b52: Host 192.168.1.5 is
  already
   setup.
   2014-08-01 19:31:32,544 DEBUG [agent.manager.DirectAgentAttache]
   (DirectAgent-238:null) Seq 6-105775105: Response Received:
   2014-08-01 19:31:32,544 DEBUG [agent.transport.Request]
   (DirectAgent-238:null) Seq 6-105775105: Processing:  { Ans: , MgmtId:
   207458817951964, via: 6, Ver: v1, Flags: 110,
  
 
 [{com.cloud.agent.api.SetupAnswer:{_reconnect:false,result:true,wait:0}}]
   }
   2014-08-01 19:31:32,549 DEBUG [agent.manager.AgentAttache]
   (DirectAgent-238:null) Seq 6-105775105: No more commands found
   2014-08-01 19:31:32,549 DEBUG [agent.transport.Request]
   (AgentTaskPool-10:null) Seq 6-105775105: Received:  { Ans: , MgmtId:
   207458817951964, via: 6, Ver: v1, Flags: 110, { SetupAnswer } }
   2014-08-01 19:31:32,580 DEBUG [agent.manager.AgentManagerImpl]
   (AgentTaskPool-10:null) Sending Connect to listener:
   DeploymentPlanningManagerImpl_EnhancerByCloudStack_fc446a4a
   2014-08-01 19:31:32,581 DEBUG [agent.manager.AgentManagerImpl]
   (AgentTaskPool-10:null) Sending Connect to listener:
   NetworkManagerImpl_EnhancerByCloudStack_dd57bdd
   2014-08-01 19:31:32,583 DEBUG [cloud.network.NetworkManagerImpl]
   (AgentTaskPool-10:null) Host's hypervisorType is: XenServer
   2014-08-01 19:31:32,594 DEBUG [cloud.network.NetworkManagerImpl]
   (AgentTaskPool-10:null) Sending CheckNetworkCommand to check the
 Network
  is
   setup correctly on Agent
   2014-08-01 19:31:32,598 DEBUG [agent.transport.Request]
   (AgentTaskPool-10:null) Seq 6-105775106: Sending  { Cmd , MgmtId:
   207458817951964, via: 6, Ver: v1, Flags: 100111,
  
 
 [{com.cloud.agent.api.CheckNetworkCommand:{networkInfoList:[{physicalNetworkId:205,privateNetworkName:cmfg2
   manage},{physicalNetworkId:206,publicNetworkName:cmfg2
   public,guestNetworkName:cmfg2 guest}],wait:0}}] }
   2014-08-01 19:31:32,598 DEBUG [agent.transport.Request]
   (AgentTaskPool-10:null) Seq 6-105775106: Executing:  { Cmd , MgmtId:
   207458817951964, via: 6, Ver: v1, Flags: 100111,
  
 
 [{com.cloud.agent.api.CheckNetworkCommand:{networkInfoList:[{physicalNetworkId:205,privateNetworkName:cmfg2
   manage},{physicalNetworkId:206,publicNetworkName:cmfg2
   public,guestNetworkName:cmfg2 guest}],wait:0}}] }
   2014-08-01 19:31:32,598 DEBUG [agent.manager.DirectAgentAttache]
   (DirectAgent-321:null) Seq 6-105775106: Executing request
   2014-08-01 19:31:32,599 DEBUG [xen.resource.CitrixResourceBase]
   (DirectAgent-321:null) Checking if network name setup is done on the
   resource
   2014-08-01 19:31:32,603 DEBUG [xen.resource.CitrixResourceBase]
   (DirectAgent-321:null) Looking for network setup by name cmfg2 manage
   2014-08-01 19:31:32,694 ERROR [xen.resource.CitrixResourceBase]
   (DirectAgent-321:null) For Physical Network id:205, Private Network is
  not
   configured on the backend by name cmfg2 manage
   2014-08-01 19:31:32,694 DEBUG [agent.manager.DirectAgentAttache]
   (DirectAgent-321:null) Seq 6-105775106: Response Received:
   2014-08-01 19:31:32,695 DEBUG [agent.transport.Request]
   (DirectAgent-321:null) Seq 6-105775106: Processing:  { Ans: , MgmtId:
   207458817951964, via: 6, Ver: v1, Flags: 110,
  
 
 [{com.cloud.agent.api.CheckNetworkAnswer:{_reconnect:false,result:false,details:For
   Physical Network id:205, Private Network is not configured on the
 backend
   by name cmfg2 manage,wait:0}}] }
   2014-08-01 19:31:32,695 DEBUG [agent.manager.AgentAttache]
   (DirectAgent-321:null) Seq 6-105775106: No more commands found
   2014-08-01 19:31:32,695 DEBUG [agent.transport.Request]
   (AgentTaskPool-10:null) Seq 6-105775106: Received:  { Ans: , MgmtId:
   207458817951964, via: 6, Ver: v1, Flags: 110, { CheckNetworkAnswer } }
   2014-08-01 19:31:32,695 DEBUG [agent.manager.AgentManagerImpl

Re: 添加Host失败,Xenserver6.0.2,CloudStack4.2.0

2014-08-05 Thread ZS Che
好的,谢谢您的帮助。


On Tue, Aug 5, 2014 at 10:52 AM, linux...@gmail.com linux...@gmail.com
wrote:

 xenserver  不需要agent
 建议你参考官方的xenserver的配置文档,检查下你的配置
 应该有地方配置有问题

 2014-08-05 10:36 GMT+08:00 ZS Che chezscl...@gmail.com:
  我刚才测试了一下。可以从管理节点ssh到计算节点,同时计算节点也能ssh到管理节点。
 
  我在CloudStack
 
 UI上添加Host的时候,虽然页面里面报AgentDisconnected的错误,但是基础架构里面却多了一个Host,但是它的状态是Alert。日志内容已经在上一次的回复中贴出来了。
 
  请问这是为什么呢?Xenserver应该不需要Agent吧?谢谢。
 
 
  On Mon, Aug 4, 2014 at 4:25 PM, linux...@gmail.com linux...@gmail.com
  wrote:
 
  测试下通过管理节点能否ssh登陆计算节点
 
  如果不通,是你的网络配置有问题
 
  2014-08-01 19:51 GMT+08:00 ZS Che chezscl...@gmail.com:
  
 
 十分感谢您的回复。我今天上午发现是我的hostname出现了问题。一个带域名,一个没有带域名,导致无法添加。交换机方面之前就采用trunk模式,vlan也都通过了。
  
   但是,这个问题解决之后仍然无法添加Host,web页面显示
   Cannot transit agent status with event AgentDisconnected for host 6,
   management server id is 207458817951964, Unable to transition to a new
   state from Creating via AgentDisconnected
  
  
   log文件如下:
   
   2014-08-01 19:31:32,080 INFO  [xen.resource.CitrixResourceBase]
   (DirectAgent-238:null) Host 192.168.1.5
   OpaqueRef:e289ee27-9ec3-83f4-551e-ff8b64386b52: Host 192.168.1.5 is
  already
   setup.
   2014-08-01 19:31:32,544 DEBUG [agent.manager.DirectAgentAttache]
   (DirectAgent-238:null) Seq 6-105775105: Response Received:
   2014-08-01 19:31:32,544 DEBUG [agent.transport.Request]
   (DirectAgent-238:null) Seq 6-105775105: Processing:  { Ans: , MgmtId:
   207458817951964, via: 6, Ver: v1, Flags: 110,
  
 
 [{com.cloud.agent.api.SetupAnswer:{_reconnect:false,result:true,wait:0}}]
   }
   2014-08-01 19:31:32,549 DEBUG [agent.manager.AgentAttache]
   (DirectAgent-238:null) Seq 6-105775105: No more commands found
   2014-08-01 19:31:32,549 DEBUG [agent.transport.Request]
   (AgentTaskPool-10:null) Seq 6-105775105: Received:  { Ans: , MgmtId:
   207458817951964, via: 6, Ver: v1, Flags: 110, { SetupAnswer } }
   2014-08-01 19:31:32,580 DEBUG [agent.manager.AgentManagerImpl]
   (AgentTaskPool-10:null) Sending Connect to listener:
   DeploymentPlanningManagerImpl_EnhancerByCloudStack_fc446a4a
   2014-08-01 19:31:32,581 DEBUG [agent.manager.AgentManagerImpl]
   (AgentTaskPool-10:null) Sending Connect to listener:
   NetworkManagerImpl_EnhancerByCloudStack_dd57bdd
   2014-08-01 19:31:32,583 DEBUG [cloud.network.NetworkManagerImpl]
   (AgentTaskPool-10:null) Host's hypervisorType is: XenServer
   2014-08-01 19:31:32,594 DEBUG [cloud.network.NetworkManagerImpl]
   (AgentTaskPool-10:null) Sending CheckNetworkCommand to check the
 Network
  is
   setup correctly on Agent
   2014-08-01 19:31:32,598 DEBUG [agent.transport.Request]
   (AgentTaskPool-10:null) Seq 6-105775106: Sending  { Cmd , MgmtId:
   207458817951964, via: 6, Ver: v1, Flags: 100111,
  
 
 [{com.cloud.agent.api.CheckNetworkCommand:{networkInfoList:[{physicalNetworkId:205,privateNetworkName:cmfg2
   manage},{physicalNetworkId:206,publicNetworkName:cmfg2
   public,guestNetworkName:cmfg2 guest}],wait:0}}] }
   2014-08-01 19:31:32,598 DEBUG [agent.transport.Request]
   (AgentTaskPool-10:null) Seq 6-105775106: Executing:  { Cmd , MgmtId:
   207458817951964, via: 6, Ver: v1, Flags: 100111,
  
 
 [{com.cloud.agent.api.CheckNetworkCommand:{networkInfoList:[{physicalNetworkId:205,privateNetworkName:cmfg2
   manage},{physicalNetworkId:206,publicNetworkName:cmfg2
   public,guestNetworkName:cmfg2 guest}],wait:0}}] }
   2014-08-01 19:31:32,598 DEBUG [agent.manager.DirectAgentAttache]
   (DirectAgent-321:null) Seq 6-105775106: Executing request
   2014-08-01 19:31:32,599 DEBUG [xen.resource.CitrixResourceBase]
   (DirectAgent-321:null) Checking if network name setup is done on the
   resource
   2014-08-01 19:31:32,603 DEBUG [xen.resource.CitrixResourceBase]
   (DirectAgent-321:null) Looking for network setup by name cmfg2 manage
   2014-08-01 19:31:32,694 ERROR [xen.resource.CitrixResourceBase]
   (DirectAgent-321:null) For Physical Network id:205, Private Network is
  not
   configured on the backend by name cmfg2 manage
   2014-08-01 19:31:32,694 DEBUG [agent.manager.DirectAgentAttache]
   (DirectAgent-321:null) Seq 6-105775106: Response Received:
   2014-08-01 19:31:32,695 DEBUG [agent.transport.Request]
   (DirectAgent-321:null) Seq 6-105775106: Processing:  { Ans: , MgmtId:
   207458817951964, via: 6, Ver: v1, Flags: 110,
  
 
 [{com.cloud.agent.api.CheckNetworkAnswer:{_reconnect:false,result:false,details:For
   Physical Network id:205, Private Network is not configured on the
 backend
   by name cmfg2 manage,wait:0}}] }
   2014-08-01 19:31:32,695 DEBUG [agent.manager.AgentAttache]
   (DirectAgent-321:null) Seq 6-105775106: No more commands found
   2014-08-01 19:31:32,695 DEBUG [agent.transport.Request]
   (AgentTaskPool-10:null) Seq 6-105775106: Received:  { Ans: , MgmtId:
   207458817951964, via: 6, Ver: v1, Flags: 110, { CheckNetworkAnswer } }
   2014-08-01 19:31:32,695 DEBUG [agent.manager.AgentManagerImpl]
   (AgentTaskPool-10:null) Details from executing class

Re: 添加Host失败,Xenserver6.0.2,CloudStack4.2.0

2014-08-04 Thread ZS Che
我刚才测试了一下。可以从管理节点ssh到计算节点,同时计算节点也能ssh到管理节点。

我在CloudStack
UI上添加Host的时候,虽然页面里面报AgentDisconnected的错误,但是基础架构里面却多了一个Host,但是它的状态是Alert。日志内容已经在上一次的回复中贴出来了。

请问这是为什么呢?Xenserver应该不需要Agent吧?谢谢。


On Mon, Aug 4, 2014 at 4:25 PM, linux...@gmail.com linux...@gmail.com
wrote:

 测试下通过管理节点能否ssh登陆计算节点

 如果不通,是你的网络配置有问题

 2014-08-01 19:51 GMT+08:00 ZS Che chezscl...@gmail.com:
 
 十分感谢您的回复。我今天上午发现是我的hostname出现了问题。一个带域名,一个没有带域名,导致无法添加。交换机方面之前就采用trunk模式,vlan也都通过了。
 
  但是,这个问题解决之后仍然无法添加Host,web页面显示
  Cannot transit agent status with event AgentDisconnected for host 6,
  management server id is 207458817951964, Unable to transition to a new
  state from Creating via AgentDisconnected
 
 
  log文件如下:
  
  2014-08-01 19:31:32,080 INFO  [xen.resource.CitrixResourceBase]
  (DirectAgent-238:null) Host 192.168.1.5
  OpaqueRef:e289ee27-9ec3-83f4-551e-ff8b64386b52: Host 192.168.1.5 is
 already
  setup.
  2014-08-01 19:31:32,544 DEBUG [agent.manager.DirectAgentAttache]
  (DirectAgent-238:null) Seq 6-105775105: Response Received:
  2014-08-01 19:31:32,544 DEBUG [agent.transport.Request]
  (DirectAgent-238:null) Seq 6-105775105: Processing:  { Ans: , MgmtId:
  207458817951964, via: 6, Ver: v1, Flags: 110,
 
 [{com.cloud.agent.api.SetupAnswer:{_reconnect:false,result:true,wait:0}}]
  }
  2014-08-01 19:31:32,549 DEBUG [agent.manager.AgentAttache]
  (DirectAgent-238:null) Seq 6-105775105: No more commands found
  2014-08-01 19:31:32,549 DEBUG [agent.transport.Request]
  (AgentTaskPool-10:null) Seq 6-105775105: Received:  { Ans: , MgmtId:
  207458817951964, via: 6, Ver: v1, Flags: 110, { SetupAnswer } }
  2014-08-01 19:31:32,580 DEBUG [agent.manager.AgentManagerImpl]
  (AgentTaskPool-10:null) Sending Connect to listener:
  DeploymentPlanningManagerImpl_EnhancerByCloudStack_fc446a4a
  2014-08-01 19:31:32,581 DEBUG [agent.manager.AgentManagerImpl]
  (AgentTaskPool-10:null) Sending Connect to listener:
  NetworkManagerImpl_EnhancerByCloudStack_dd57bdd
  2014-08-01 19:31:32,583 DEBUG [cloud.network.NetworkManagerImpl]
  (AgentTaskPool-10:null) Host's hypervisorType is: XenServer
  2014-08-01 19:31:32,594 DEBUG [cloud.network.NetworkManagerImpl]
  (AgentTaskPool-10:null) Sending CheckNetworkCommand to check the Network
 is
  setup correctly on Agent
  2014-08-01 19:31:32,598 DEBUG [agent.transport.Request]
  (AgentTaskPool-10:null) Seq 6-105775106: Sending  { Cmd , MgmtId:
  207458817951964, via: 6, Ver: v1, Flags: 100111,
 
 [{com.cloud.agent.api.CheckNetworkCommand:{networkInfoList:[{physicalNetworkId:205,privateNetworkName:cmfg2
  manage},{physicalNetworkId:206,publicNetworkName:cmfg2
  public,guestNetworkName:cmfg2 guest}],wait:0}}] }
  2014-08-01 19:31:32,598 DEBUG [agent.transport.Request]
  (AgentTaskPool-10:null) Seq 6-105775106: Executing:  { Cmd , MgmtId:
  207458817951964, via: 6, Ver: v1, Flags: 100111,
 
 [{com.cloud.agent.api.CheckNetworkCommand:{networkInfoList:[{physicalNetworkId:205,privateNetworkName:cmfg2
  manage},{physicalNetworkId:206,publicNetworkName:cmfg2
  public,guestNetworkName:cmfg2 guest}],wait:0}}] }
  2014-08-01 19:31:32,598 DEBUG [agent.manager.DirectAgentAttache]
  (DirectAgent-321:null) Seq 6-105775106: Executing request
  2014-08-01 19:31:32,599 DEBUG [xen.resource.CitrixResourceBase]
  (DirectAgent-321:null) Checking if network name setup is done on the
  resource
  2014-08-01 19:31:32,603 DEBUG [xen.resource.CitrixResourceBase]
  (DirectAgent-321:null) Looking for network setup by name cmfg2 manage
  2014-08-01 19:31:32,694 ERROR [xen.resource.CitrixResourceBase]
  (DirectAgent-321:null) For Physical Network id:205, Private Network is
 not
  configured on the backend by name cmfg2 manage
  2014-08-01 19:31:32,694 DEBUG [agent.manager.DirectAgentAttache]
  (DirectAgent-321:null) Seq 6-105775106: Response Received:
  2014-08-01 19:31:32,695 DEBUG [agent.transport.Request]
  (DirectAgent-321:null) Seq 6-105775106: Processing:  { Ans: , MgmtId:
  207458817951964, via: 6, Ver: v1, Flags: 110,
 
 [{com.cloud.agent.api.CheckNetworkAnswer:{_reconnect:false,result:false,details:For
  Physical Network id:205, Private Network is not configured on the backend
  by name cmfg2 manage,wait:0}}] }
  2014-08-01 19:31:32,695 DEBUG [agent.manager.AgentAttache]
  (DirectAgent-321:null) Seq 6-105775106: No more commands found
  2014-08-01 19:31:32,695 DEBUG [agent.transport.Request]
  (AgentTaskPool-10:null) Seq 6-105775106: Received:  { Ans: , MgmtId:
  207458817951964, via: 6, Ver: v1, Flags: 110, { CheckNetworkAnswer } }
  2014-08-01 19:31:32,695 DEBUG [agent.manager.AgentManagerImpl]
  (AgentTaskPool-10:null) Details from executing class
  com.cloud.agent.api.CheckNetworkCommand: For Physical Network id:205,
  Private Network is not configured on the backend by name cmfg2 manage
  2014-08-01 19:31:32,695 WARN  [cloud.network.NetworkManagerImpl]
  (AgentTaskPool-10:null) Unable to setup agent 6 due to For Physical
 Network
  id:205, Private Network is not configured on the backend by name

Re: 添加Host失败,Xenserver6.0.2,CloudStack4.2.0

2014-08-01 Thread ZS Che
 status update: [id = 6; name = xen5; old status = Connecting; event =
AgentDisconnected; new status = Alert; old update count = 3; new update
count = 4]
2014-08-01 19:31:32,797 DEBUG [agent.manager.ClusteredAgentManagerImpl]
(AgentTaskPool-10:null) Notifying other nodes of to disconnect
2014-08-01 19:31:32,798 WARN  [cloud.resource.ResourceManagerImpl]
(AgentTaskPool-10:null) Unable to connect due to
com.cloud.exception.ConnectionException: Incorrect Network setup on agent,
Reinitialize agent after network names are setup, details : For Physical
Network id:205, Private Network is not configured on the backend by name
cmfg2 manage
at
com.cloud.network.NetworkManagerImpl.processConnect(NetworkManagerImpl.java:4324)
at
com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:587)
at
com.cloud.agent.manager.AgentManagerImpl.handleDirectConnectAgent(AgentManagerImpl.java:1479)
at
com.cloud.resource.ResourceManagerImpl.createHostAndAgent(ResourceManagerImpl.java:1762)
at
com.cloud.resource.ResourceManagerImpl.createHostAndAgent(ResourceManagerImpl.java:1924)
at
com.cloud.agent.manager.AgentManagerImpl$SimulateStartTask.run(AgentManagerImpl.java:1130)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
2014-08-01 19:31:32,799 DEBUG [cloud.host.Status] (AgentTaskPool-10:null)
Transition:[Resource state = Enabled, Agent event = AgentDisconnected, Host
id = 6, name = xen5]
2014-08-01 19:31:32,855 DEBUG [cloud.host.Status] (AgentTaskPool-10:null)
Agent status update: [id = 6; name = xen5; old status = Alert; event =
AgentDisconnected; new status = Alert; old update count = 4; new update
count = 5]


##
这个计算节点原来被添加到CloudStack中过,因为从基本资源域改成高级资源域,现在重新装了一遍Xenserver,管理节点也重新装了一遍。然后这次添加的时候就出现了问题。请问这是为什么呢?谢谢!


On Fri, Aug 1, 2014 at 5:10 PM, linux...@gmail.com linux...@gmail.com
wrote:

 计算节点 第二块网卡不要配置IP地址

 上联的交换机端口设置为trunk模式,设置192.168.0.0/24所在的vlan为默认vlan,允许所有vlan通过

 应该就可以了



 2014-07-31 21:14 GMT+08:00 ZS Che chezscl...@gmail.com:
  请教各位大牛一个比较基本的问题。
  我在高级资源域中,添加Xenserver类型的Host时失败,management-server.log中的信息如下:
 
  #
  2014-07-31 19:34:13,492 INFO  [cloud.resource.ResourceManagerImpl]
  (catalina-exec-10:null) Trying to add a new host at http://192.168.1.5
 in
  data center 1
  2014-07-31 19:34:13,496 DEBUG [xen.resource.XenServerConnectionPool]
  (catalina-exec-10:null) Failed to slave local login to 192.168.1.5 due to
  org.apache.xmlrpc.XmlRpcException: Failed to read server's response:
  Connection refused
  2014-07-31 19:34:13,497 DEBUG [xen.resource.XenServerConnectionPool]
  (catalina-exec-10:null) localLogout has problem Failed to read server's
  response: Connection refused
  2014-07-31 19:34:13,497 DEBUG [xen.discoverer.XcpServerDiscoverer]
  (catalina-exec-10:null) other exceptions: java.lang.RuntimeException: can
  not get master ip
  java.lang.RuntimeException: can not get master ip
  at
 
 com.cloud.hypervisor.xen.resource.XenServerConnectionPool.getMasterIp(XenServerConnectionPool.java:347)
  at
 
 com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.find(XcpServerDiscoverer.java:183)
  at
 
 com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:741)
  at
 
 com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:590)
  at
 
 org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
  at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
  at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
  at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
  at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
  at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  at
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  at
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  at
 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
  at
 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
  at
 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
  at
 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  at
  org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
  at
 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  at
 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298

添加Host失败,Xenserver6.0.2,CloudStack4.2.0

2014-07-31 Thread ZS Che
请教各位大牛一个比较基本的问题。
我在高级资源域中,添加Xenserver类型的Host时失败,management-server.log中的信息如下:

#
2014-07-31 19:34:13,492 INFO  [cloud.resource.ResourceManagerImpl]
(catalina-exec-10:null) Trying to add a new host at http://192.168.1.5 in
data center 1
2014-07-31 19:34:13,496 DEBUG [xen.resource.XenServerConnectionPool]
(catalina-exec-10:null) Failed to slave local login to 192.168.1.5 due to
org.apache.xmlrpc.XmlRpcException: Failed to read server's response:
Connection refused
2014-07-31 19:34:13,497 DEBUG [xen.resource.XenServerConnectionPool]
(catalina-exec-10:null) localLogout has problem Failed to read server's
response: Connection refused
2014-07-31 19:34:13,497 DEBUG [xen.discoverer.XcpServerDiscoverer]
(catalina-exec-10:null) other exceptions: java.lang.RuntimeException: can
not get master ip
java.lang.RuntimeException: can not get master ip
at
com.cloud.hypervisor.xen.resource.XenServerConnectionPool.getMasterIp(XenServerConnectionPool.java:347)
at
com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.find(XcpServerDiscoverer.java:183)
at
com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:741)
at
com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:590)
at
org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
at
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
2014-07-31 19:34:13,497 WARN  [cloud.resource.ResourceManagerImpl]
(catalina-exec-10:null) Unable to find the server resources at
http://192.168.1.5
2014-07-31 19:34:13,497 INFO  [utils.exception.CSExceptionErrorCode]
(catalina-exec-10:null) Could not find exception:
com.cloud.exception.DiscoveryException in error code list for exceptions
2014-07-31 19:34:13,498 WARN  [admin.host.AddHostCmd]
(catalina-exec-10:null) Exception:
com.cloud.exception.DiscoveryException: Unable to add the host
at
com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:798)
at
com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:590)
at
org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at