cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastien Goasguen <run...@gmail.com>
Subject Re: Fail to add host in GRE based zone
Date Fri, 15 Feb 2013 21:15:53 GMT
I setup xen 4.1 oss, on ubnutu 12.04 and xcp-xapi…via apt-get

default packages..

the gre will only work with XS ?

On Feb 15, 2013, at 10:11 PM, Chiradeep Vittal <Chiradeep.Vittal@citrix.com> wrote:

> You should try Xen 6.0 at least.
> 
> On 2/15/13 12:54 PM, "Sebastien Goasguen" <runseb@gmail.com> wrote:
> 
>> Hi,
>> 
>> I am trying to setup a few xen hosts, (xcp-xapi), NFS as primary and
>> secondary storage.
>> I truned on sdn.ovs.controller to be able to do an advanced zone with gre
>> mesh.
>> 
>> When adding the hosts I get an error:
>> 
>> 2013-02-15 21:46:08,142 WARN  [xen.resource.CitrixResourceBase]
>> (DirectAgent-1:null) We cannot locate
>> /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../ovsgre
>> 2013-02-15 21:46:08,143 WARN  [xen.resource.CitrixResourceBase]
>> (DirectAgent-1:null) We cannot locate
>> /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../../n
>> etwork/domr//ipassoc.sh
>> 2013-02-15 21:46:08,144 DEBUG [xen.resource.CitrixResourceBase]
>> (DirectAgent-1:null) Copying
>> /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/./vmopsSnapsh
>> ot to /usr/lib/xcp/plugins on 10.0.0.102 with permission 0755
>> 2013-02-15 21:46:09,013 DEBUG [xen.resource.CitrixResourceBase]
>> (DirectAgent-1:null) Copying
>> /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../cloud-setu
>> p-bonding.sh to /usr/lib/xcp/bin on 10.0.0.102 with permission 0755
>> 2013-02-15 21:46:09,038 DEBUG [xen.resource.CitrixResourceBase]
>> (DirectAgent-1:null) Copying
>> /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../../n
>> etwork/domr//call_firewall.sh to /usr/lib/xcp/bin on 10.0.0.102 with
>> permission 0755
>> 2013-02-15 21:46:09,063 WARN  [xen.resource.CitrixResourceBase]
>> (DirectAgent-1:null) We cannot locate
>> /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../../n
>> etwork/domr//getDomRVersion.sh
>> 2013-02-15 21:46:09,063 DEBUG [xen.resource.CitrixResourceBase]
>> (DirectAgent-1:null) Copying
>> /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../cloud-clea
>> n-vlan.sh to /usr/lib/xcp/bin on 10.0.0.102 with permission 0755
>> 2013-02-15 21:46:09,087 DEBUG [xen.resource.CitrixResourceBase]
>> (DirectAgent-1:null) Copying
>> /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../ping
>> test.sh to /usr/lib/xcp/bin on 10.0.0.102 with permission 0755
>> 2013-02-15 21:46:09,112 DEBUG [xen.resource.CitrixResourceBase]
>> (DirectAgent-1:null) Copying
>> /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../network_in
>> fo.sh to /usr/lib/xcp/bin on 10.0.0.102 with permission 0755
>> 2013-02-15 21:46:09,135 DEBUG [xen.resource.CitrixResourceBase]
>> (DirectAgent-1:null) Copying
>> /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../setup_iscs
>> i.sh to /usr/lib/xcp/bin on 10.0.0.102 with permission 0755
>> 2013-02-15 21:46:09,159 WARN  [xen.resource.CitrixResourceBase]
>> (DirectAgent-1:null) We cannot locate
>> /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../../n
>> etwork/domr//getRouterStatus.sh
>> 2013-02-15 21:46:09,160 DEBUG [xen.resource.CitrixResourceBase]
>> (DirectAgent-1:null) Copying
>> /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../../.
>> ./vms/systemvm.iso to /usr/share/xcp/packages/iso/ on 10.0.0.102 with
>> permission 0644
>> 2013-02-15 21:46:09,426 DEBUG [xen.resource.CitrixResourceBase]
>> (DirectAgent-1:null) Copying
>> /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../setupxense
>> rver.sh to /usr/lib/xcp/bin on 10.0.0.102 with permission 0755
>> 2013-02-15 21:46:09,450 WARN  [xen.resource.CitrixResourceBase]
>> (DirectAgent-1:null) We cannot locate
>> /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../../n
>> etwork/domr//networkUsage.sh
>> 2013-02-15 21:46:09,450 WARN  [xen.resource.CitrixResourceBase]
>> (DirectAgent-1:null) We cannot locate
>> /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../../n
>> etwork/domr//l2tp_vpn.sh
>> 2013-02-15 21:46:09,451 DEBUG [xen.resource.CitrixResourceBase]
>> (DirectAgent-1:null) Copying
>> /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../../n
>> etwork/domr//bumpUpPriority.sh to /usr/lib/xcp/bin on 10.0.0.102 with
>> permission 0755
>> 2013-02-15 21:46:09,474 DEBUG [xen.resource.CitrixResourceBase]
>> (DirectAgent-1:null) Copying
>> /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/./create_priv
>> atetemplate_from_snapshot.sh to /usr/lib/xcp/bin on 10.0.0.102 with
>> permission 0755
>> 2013-02-15 21:46:09,500 DEBUG [xen.resource.CitrixResourceBase]
>> (DirectAgent-1:null) Copying
>> /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../launch_hb.
>> sh to /usr/lib/xcp/bin on 10.0.0.102 with permission 0755
>> 2013-02-15 21:46:09,525 DEBUG [xen.resource.CitrixResourceBase]
>> (DirectAgent-1:null) Copying
>> /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/./copy_vhd_to
>> _secondarystorage.sh to /usr/lib/xcp/bin on 10.0.0.102 with permission
>> 0755
>> 2013-02-15 21:46:09,550 DEBUG [xen.resource.CitrixResourceBase]
>> (DirectAgent-1:null) Copying
>> /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../xenheartbe
>> at.sh to /usr/lib/xcp/bin on 10.0.0.102 with permission 0755
>> 2013-02-15 21:46:09,575 DEBUG [xen.resource.CitrixResourceBase]
>> (DirectAgent-1:null) Copying
>> /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../setup_hear
>> tbeat_file.sh to /usr/lib/xcp/bin on 10.0.0.102 with permission 0755
>> 2013-02-15 21:46:09,601 DEBUG [xen.resource.CitrixResourceBase]
>> (DirectAgent-1:null) Copying
>> /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../../n
>> etwork/domr//dhcp_entry.sh to /usr/lib/xcp/bin on 10.0.0.102 with
>> permission 0755
>> 2013-02-15 21:46:09,626 DEBUG [xen.resource.CitrixResourceBase]
>> (DirectAgent-1:null) Copying
>> /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../../n
>> etwork/domr//router_proxy.sh to /usr/lib/xcp/bin on 10.0.0.102 with
>> permission 0755
>> 2013-02-15 21:46:09,650 DEBUG [xen.resource.CitrixResourceBase]
>> (DirectAgent-1:null) Copying
>> /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/./vmopspremiu
>> m to /usr/lib/xcp/plugins on 10.0.0.102 with permission 0755
>> 2013-02-15 21:46:09,676 DEBUG [xen.resource.CitrixResourceBase]
>> (DirectAgent-1:null) Copying
>> /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../syst
>> emvm/id_rsa.cloud to /root/.ssh on 10.0.0.102 with permission 0600
>> 2013-02-15 21:46:09,699 WARN  [agent.manager.DirectAgentAttache]
>> (DirectAgent-1:null) Seq 2-1160380417: Exception Caught while executing
>> command
>> com.cloud.utils.exception.CloudRuntimeException: Unable to setup the
>> server correctly
>>      at
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.setupServer(CitrixRes
>> ourceBase.java:4738)
>>      at
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourc
>> eBase.java:4530)
>>      at
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citrix
>> ResourceBase.java:485)
>>      at
>> com.cloud.hypervisor.xen.resource.XcpOssResource.executeRequest(XcpOssReso
>> urce.java:136)
>>      at
>> com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.jav
>> a:191)
>>      at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>>      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>>      at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acces
>> s$101(ScheduledThreadPoolExecutor.java:165)
>>      at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(S
>> cheduledThreadPoolExecutor.java:266)
>>      at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
>> 1146)
>>      at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java
>> :615)
>>      at java.lang.Thread.run(Thread.java:679)
>> Caused by: java.io.IOException: Error during SCP transfer.
>>      at com.trilead.ssh2.SCPClient.put(SCPClient.java:592)
>>      at com.trilead.ssh2.SCPClient.put(SCPClient.java:547)
>>      at com.trilead.ssh2.SCPClient.put(SCPClient.java:434)
>>      at
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.setupServer(CitrixRes
>> ourceBase.java:4732)
>>      ... 12 more
>> Caused by: java.io.IOException: Remote scp terminated with error (scp:
>> /root/.ssh: No such file or directory).
>>      at com.trilead.ssh2.SCPClient.readResponse(SCPClient.java:59)
>>      at com.trilead.ssh2.SCPClient.sendFiles(SCPClient.java:166)
>>      at com.trilead.ssh2.SCPClient.put(SCPClient.java:588)
>>      ... 15 more
>> 2013-02-15 21:46:09,704 DEBUG [agent.manager.DirectAgentAttache]
>> (DirectAgent-1:null) Seq 2-1160380417: Response Received:
>> 2013-02-15 21:46:09,705 DEBUG [agent.transport.Request]
>> (DirectAgent-1:null) Seq 2-1160380417: Processing:  { Ans: , MgmtId:
>> 70835005640620, via: 2, Ver: v1, Flags: 110,
>> [{"Answer":{"result":false,"details":"com.cloud.utils.exception.CloudRunti
>> meException: Unable to setup the server correctly","wait":0}}] }
>> 2013-02-15 21:46:09,705 DEBUG [agent.transport.Request]
>> (AgentTaskPool-2:null) Seq 2-1160380417: Received:  { Ans: , MgmtId:
>> 70835005640620, via: 2, Ver: v1, Flags: 110, { Answer } }
>> 2013-02-15 21:46:09,706 DEBUG [agent.manager.AgentAttache]
>> (DirectAgent-1:null) Seq 2-1160380417: No more commands found
>> 2013-02-15 21:46:09,706 ERROR [agent.manager.AgentManagerImpl]
>> (AgentTaskPool-2:null) Monitor
>> XcpServerDiscoverer$$EnhancerByCGLIB$$fac902a0 says there is an error in
>> the connect process for 2 due to com.cloud.agent.api.Answer cannot be
>> cast to com.cloud.agent.api.SetupAnswer
>> java.lang.ClassCastException: com.cloud.agent.api.Answer cannot be cast
>> to com.cloud.agent.api.SetupAnswer
>>      at
>> com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.processConnect(Xcp
>> ServerDiscoverer.java:634)
>>      at
>> com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentM
>> anagerImpl.java:605)
>>      at
>> com.cloud.agent.manager.AgentManagerImpl.handleDirectConnectAgent(AgentMan
>> agerImpl.java:1500)
>>      at
>> com.cloud.resource.ResourceManagerImpl.createHostAndAgent(ResourceManagerI
>> mpl.java:1631)
>>      at
>> com.cloud.resource.ResourceManagerImpl.createHostAndAgent(ResourceManagerI
>> mpl.java:1668)
>>      at
>> com.cloud.agent.manager.AgentManagerImpl$SimulateStartTask.run(AgentManage
>> rImpl.java:1195)
>>      at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
>> 1146)
>>      at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java
>> :615)
>>      at java.lang.Thread.run(Thread.java:679)
>> 2013-02-15 21:46:09,707 INFO  [agent.manager.AgentManagerImpl]
>> (AgentTaskPool-2:null) Host 2 is disconnecting with event
>> AgentDisconnected
>> 2013-02-15 21:46:09,710 DEBUG [agent.manager.AgentManagerImpl]
>> (AgentTaskPool-2:null) The next status of agent 2is Alert, current status
>> is Connecting
>> 2013-02-15 21:46:09,710 DEBUG [agent.manager.AgentManagerImpl]
>> (AgentTaskPool-2:null) Deregistering link for 2 with state Alert
>> 2013-02-15 21:46:09,711 DEBUG [agent.manager.AgentManagerImpl]
>> (AgentTaskPool-2:null) Remove Agent : 2
>> 2013-02-15 21:46:09,711 DEBUG [agent.manager.DirectAgentAttache]
>> (AgentTaskPool-2:null) Processing disconnect 2
>> 2013-02-15 21:46:09,711 DEBUG [agent.manager.AgentManagerImpl]
>> (AgentTaskPool-2:null) Sending Disconnect to listener:
>> com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer$$EnhancerByCGLIB$$
>> fac902a0
>> 2013-02-15 21:46:09,711 DEBUG [agent.manager.AgentManagerImpl]
>> (AgentTaskPool-2:null) Sending Disconnect to listener:
>> com.cloud.vm.ClusteredVirtualMachineManagerImpl$$EnhancerByCGLIB$$6a6a0ac5
>> 2013-02-15 21:46:09,711 DEBUG [agent.manager.AgentManagerImpl]
>> (AgentTaskPool-2:null) Sending Disconnect to listener:
>> com.cloud.network.security.SecurityGroupListener
>> 2013-02-15 21:46:09,711 DEBUG [agent.manager.AgentManagerImpl]
>> (AgentTaskPool-2:null) Sending Disconnect to listener:
>> com.cloud.storage.listener.StoragePoolMonitor
>> 2013-02-15 21:46:09,711 DEBUG [agent.manager.AgentManagerImpl]
>> (AgentTaskPool-2:null) Sending Disconnect to listener:
>> com.cloud.storage.secondary.SecondaryStorageListener
>> 2013-02-15 21:46:09,711 DEBUG [agent.manager.AgentManagerImpl]
>> (AgentTaskPool-2:null) Sending Disconnect to listener:
>> com.cloud.network.NetworkManagerImpl$$EnhancerByCGLIB$$8f261be1
>> 2013-02-15 21:46:09,711 DEBUG [agent.manager.AgentManagerImpl]
>> (AgentTaskPool-2:null) Sending Disconnect to listener:
>> com.cloud.agent.manager.AgentMonitor$$EnhancerByCGLIB$$ffbb6e41
>> 2013-02-15 21:46:09,712 DEBUG [agent.manager.AgentManagerImpl]
>> (AgentTaskPool-2:null) Sending Disconnect to listener:
>> com.cloud.storage.download.DownloadListener
>> 2013-02-15 21:46:09,712 DEBUG [agent.manager.AgentManagerImpl]
>> (AgentTaskPool-2:null) Sending Disconnect to listener:
>> com.cloud.storage.upload.UploadListener
>> 2013-02-15 21:46:09,712 DEBUG [agent.manager.AgentManagerImpl]
>> (AgentTaskPool-2:null) Sending Disconnect to listener:
>> com.cloud.storage.LocalStoragePoolListener$$EnhancerByCGLIB$$91b7ba75
>> 2013-02-15 21:46:09,712 DEBUG [agent.manager.AgentManagerImpl]
>> (AgentTaskPool-2:null) Sending Disconnect to listener:
>> com.cloud.capacity.StorageCapacityListener
>> 2013-02-15 21:46:09,712 DEBUG [agent.manager.AgentManagerImpl]
>> (AgentTaskPool-2:null) Sending Disconnect to listener:
>> com.cloud.capacity.ComputeCapacityListener
>> 2013-02-15 21:46:09,712 DEBUG [agent.manager.AgentManagerImpl]
>> (AgentTaskPool-2:null) Sending Disconnect to listener:
>> com.cloud.consoleproxy.ConsoleProxyListener
>> 2013-02-15 21:46:09,715 DEBUG [agent.manager.AgentManagerImpl]
>> (AgentTaskPool-2:null) Sending Disconnect to listener:
>> com.cloud.network.SshKeysDistriMonitor
>> 2013-02-15 21:46:09,715 DEBUG [agent.manager.AgentManagerImpl]
>> (AgentTaskPool-2:null) Sending Disconnect to listener:
>> com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl$$EnhancerBy
>> CGLIB$$9bafff69
>> 2013-02-15 21:46:09,715 DEBUG [agent.manager.AgentManagerImpl]
>> (AgentTaskPool-2:null) Sending Disconnect to listener:
>> com.cloud.network.NetworkUsageManagerImpl$DirectNetworkStatsListener
>> 2013-02-15 21:46:09,715 DEBUG [cloud.network.NetworkUsageManagerImpl]
>> (AgentTaskPool-2:null) Disconnected called on 2 with status Alert
>> 2013-02-15 21:46:09,716 DEBUG [cloud.host.Status] (AgentTaskPool-2:null)
>> Transition:[Resource state = Enabled, Agent event = AgentDisconnected,
>> Host id = 2, name = arzur2-Macmini]
>> 2013-02-15 21:46:09,766 DEBUG [cloud.host.Status] (AgentTaskPool-2:null)
>> Agent status update: [id = 2; name = arzur2-Macmini; old status =
>> Connecting; event = AgentDisconnected; new status = Alert; old update
>> count = 3; new update count = 4]
>> 2013-02-15 21:46:09,767 DEBUG [agent.manager.ClusteredAgentManagerImpl]
>> (AgentTaskPool-2:null) Notifying other nodes of to disconnect
>> 2013-02-15 21:46:09,770 WARN  [cloud.resource.ResourceManagerImpl]
>> (AgentTaskPool-2:null) Unable to connect due to
>> com.cloud.utils.exception.CloudRuntimeException: Unable to connect 2
>>      at
>> com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentM
>> anagerImpl.java:624)
>>      at
>> com.cloud.agent.manager.AgentManagerImpl.handleDirectConnectAgent(AgentMan
>> agerImpl.java:1500)
>>      at
>> com.cloud.resource.ResourceManagerImpl.createHostAndAgent(ResourceManagerI
>> mpl.java:1631)
>>      at
>> com.cloud.resource.ResourceManagerImpl.createHostAndAgent(ResourceManagerI
>> mpl.java:1668)
>>      at
>> com.cloud.agent.manager.AgentManagerImpl$SimulateStartTask.run(AgentManage
>> rImpl.java:1195)
>>      at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
>> 1146)
>>      at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java
>> :615)
>>      at java.lang.Thread.run(Thread.java:679)
>> Caused by: java.lang.ClassCastException: com.cloud.agent.api.Answer
>> cannot be cast to com.cloud.agent.api.SetupAnswer
>>      at
>> com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.processConnect(Xcp
>> ServerDiscoverer.java:634)
>>      at
>> com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentM
>> anagerImpl.java:605)
>>      ... 7 more
>> 
>> Help much appreciated,
>> 
>> -sebastien
> 


Mime
View raw message