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

Jayapal Reddy commented on CLOUDSTACK-3014:
-------------------------------------------

Problem:
-----------
Start instance failed in vmware environment with below error.
Failed to authentication SSH user root on host 10.147.40.164 where 
10.147.40.164 is the router.

Root Cause Analysis:
--------------------
SSH to router from the MS is failed because of the mismatch in public/private 
key mismatch.
As part of the cloudstck steup router private key and MS/host public key should 
have correct 
key pair.

chek the authorized_keys  is iso by mounting and .ssh/id_rsa.pub in MS (for 
VMware)/host (xen,kvm).
IF both are not same, QA used the old setup to test the iso this cause the 
issue.

This issue is setup issue in QA setup.

Proposed solution:
-------------------------
1. You should place the iso in MS
2. clear the host tags.
3. Force reconnect or restart the MS so that iso, all the files from the MS are 
pushed to host.
4. Destroy the system vms are recrated.


QA Verification steps:
-------------------
ssh to VR from the MS/host should success.
VM create should also success.

Authomation test case is not required for this



> unable to start instance because ssh to router is failing
> ---------------------------------------------------------
>
>                 Key: CLOUDSTACK-3014
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3014
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Management Server
>    Affects Versions: 4.2.0
>         Environment: esx 5.1 , master build
>            Reporter: Srikanteswararao Talluri
>            Assignee: Jayapal Reddy
>            Priority: Blocker
>              Labels: DEV_REVIEWED
>             Fix For: 4.2.0
>
>         Attachments: management-server.log.zip
>
>
> 1. deploy an advanced zone with vmware esx 5.1 
> 2. try to deploy a VM
> Following exception is encountered:
>  Failed to authentication SSH user root on host 10.147.40.164
> 2013-06-15 01:36:13,977 ERROR [vmware.resource.VmwareResource] 
> (DirectAgent-18:10.147.40.30) Unable to execute NetworkUsage command on DomR 
> (10.147.40.164), domR may not be ready yet. failure due to Exception: 
> java.lang.Exception
> Message: Failed to authentication SSH user root on host 10.147.40.164
> java.lang.Exception: Failed to authentication SSH user root on host 
> 10.147.40.164
>       at com.cloud.utils.ssh.SshHelper.sshExecute(SshHelper.java:144)
>       at com.cloud.utils.ssh.SshHelper.sshExecute(SshHelper.java:37)
>       at 
> com.cloud.hypervisor.vmware.resource.VmwareResource.networkUsage(VmwareResource.java:5451)
>       at 
> com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource.java:2301)
>       at 
> com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:480)
>       at 
> com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
>       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.access$101(ScheduledThreadPoolExecutor.java:165)
>       at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
>       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)
> 2013-06-15 01:36:13,980 DEBUG [vmware.resource.VmwareResource] 
> (DirectAgent-18:10.147.40.30) Executing resource GetDomRVersionCmd: 
> {"accessDetails":{"router.ip":"10.147.40.164","router.name":"r-8-VM"},"wait":0}
> 2013-06-15 01:36:13,980 DEBUG [vmware.resource.VmwareResource] 
> (DirectAgent-18:10.147.40.30) Run command on domR 10.147.40.164, 
> /opt/cloud/bin/get_template_version.sh 
> 2013-06-15 01:36:13,981 DEBUG [vmware.resource.VmwareResource] 
> (DirectAgent-18:10.147.40.30) Use router's private IP for SSH control. IP : 
> 10.147.40.164
> 2013-06-15 01:36:14,081 DEBUG [cloud.api.ApiServlet] (catalina-exec-12:null) 
> ===START===  10.101.255.119 -- GET  
> command=queryAsyncJobResult&jobId=43dde7f6-fb5d-4ead-8691-5071feb44dfd&response=json&sessionkey=tN07%2BJ4GVSCHGNV%2FPjdO3V%2Bs3Tg%3D&_=1371220848020
> 2013-06-15 01:36:14,163 DEBUG [cloud.api.ApiServlet] (catalina-exec-12:null) 
> ===END===  10.101.255.119 -- GET  
> command=queryAsyncJobResult&jobId=43dde7f6-fb5d-4ead-8691-5071feb44dfd&response=json&sessionkey=tN07%2BJ4GVSCHGNV%2FPjdO3V%2Bs3Tg%3D&_=1371220848020
> 2013-06-15 01:36:14,231 ERROR [utils.ssh.SshHelper] 
> (DirectAgent-18:10.147.40.30) Failed to authentication SSH user root on host 
> 10.147.40.164
> 2013-06-15 01:36:14,235 ERROR [vmware.resource.VmwareResource] 
> (DirectAgent-18:10.147.40.30) GetDomRVersionCmd failed due to Exception: 
> java.lang.Exception
> Message: Failed to authentication SSH user root on host 10.147.40.164
> java.lang.Exception: Failed to authentication SSH user root on host 
> 10.147.40.164
>       at com.cloud.utils.ssh.SshHelper.sshExecute(SshHelper.java:144)
>       at com.cloud.utils.ssh.SshHelper.sshExecute(SshHelper.java:37)
>       at 
> com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource.java:2143)
>       at 
> com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:488)
>       at 
> com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
>       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.access$101(ScheduledThreadPoolExecutor.java:165)
>       at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
>       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)
> 2013-06-15 01:36:14,237 DEBUG [agent.manager.DirectAgentAttache] 
> (DirectAgent-18:null) Seq 1-965476380: Cancelling because one of the answers 
> is false and it is stop on error.
> 2013-06-15 01:36:14,238 DEBUG [agent.manager.DirectAgentAttache] 
> (DirectAgent-18:null) Seq 1-965476380: Response Received: 



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

Reply via email to