You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/06/19 00:08:24 UTC

[jira] [Commented] (CLOUDSTACK-6662) New XenServer host is not activated due to no agent connection

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

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

Commit 2ec7359b4eb501b0d9e80ed87af7a54938e9d505 in cloudstack's branch refs/heads/4.4-forward from [~anthonyxu]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=2ec7359 ]

CLOUDSTACK-6662
CLOUDSTACK-6844

 exit status delivery might get delayed

 Please enter the commit message for your changes. Lines starting


> New XenServer host is not activated due to no agent connection
> --------------------------------------------------------------
>
>                 Key: CLOUDSTACK-6662
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6662
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>    Affects Versions: 4.4.0
>            Reporter: Daan Hoogland
>            Assignee: Anthony Xu
>            Priority: Critical
>
> A new xenserver 6.0.2 or devcloud2 with xcp 4.1 or the newer one with xcp 4.4 won't become active after adding because of the ssh command erroneously failing a remote execution of 'mkdir -p /opt/cloud/bin /var/log/cloud'. The command executes succesfully but an exceptions is logged:
> 2014-05-12 15:52:50,395 DEBUG [c.c.u.s.SSHCmdHelper] (DirectAgent-1:ctx-704cd231) Executing cmd: mkdir -p /opt/cloud/bin /var/log/cloud
> 2014-05-12 15:52:51,409 DEBUG [c.c.u.s.SSHCmdHelper] (DirectAgent-1:ctx-704cd231) Ssh executed failed
> java.lang.NullPointerException
>         at com.cloud.utils.ssh.SSHCmdHelper.sshExecuteCmdOneShotWithExitCode(SSHCmdHelper.java:159)
>         at com.cloud.utils.ssh.SSHCmdHelper.sshExecuteCmdOneShot(SSHCmdHelper.java:170)
>         at com.cloud.utils.ssh.SSHCmdHelper.sshExecuteCmd(SSHCmdHelper.java:66)
>         at com.cloud.utils.ssh.SSHCmdHelper.sshExecuteCmd(SSHCmdHelper.java:91)
>         at com.cloud.hypervisor.xen.resource.CitrixResourceBase.setupServer(CitrixResourceBase.java:4845)
>         at com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:4674)
>         at com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:490)
>         at com.cloud.hypervisor.xen.resource.XcpOssResource.executeRequest(XcpOssResource.java:176)
>         at com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
>         at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
>         at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
>         at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
>         at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
>         at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:744)



--
This message was sent by Atlassian JIRA
(v6.2#6252)