incubator-cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tamas Monos (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-582) Cannot perform password reset for Windows instances on VMWare
Date Fri, 07 Dec 2012 10:33:20 GMT

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

Tamas Monos commented on CLOUDSTACK-582:
----------------------------------------

Here you go:

2012-12-06 12:55:57,002 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-4:null) submit
async job-141, details: AsyncJobVO {id:141, userId: 9, accountId: 9, sessionKey: null, instanceType:
VirtualMac
2012-12-06 12:55:57,012 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-124:job-141)
Executing com.cloud.api.commands.ResetVMPasswordCmd for job-141
2012-12-06 12:55:57,039 DEBUG [cloud.user.AccountManagerImpl] (Job-Executor-124:job-141) Access
to VM[User|i-9-56-VM] granted to Acct[9-Reseller] by DomainChecker
2012-12-06 12:55:57,049 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-124:job-141)
Service SecurityGroup is not supported in the network id=213
2012-12-06 12:55:57,073 DEBUG [agent.transport.Request] (Job-Executor-124:job-141) Seq 2-967779541:
Sending  { Cmd , MgmtId: 345049202797, via: 2, Ver: v1, Flags: 100101, [{"routing.SavePasswordCommand":{"
2012-12-06 12:55:57,073 DEBUG [agent.transport.Request] (Job-Executor-124:job-141) Seq 2-967779541:
Executing:  { Cmd , MgmtId: 345049202797, via: 2, Ver: v1, Flags: 100101, [{"routing.SavePasswordCommand"
2012-12-06 12:55:57,073 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-356:null) Seq
2-967779541: Executing request
2012-12-06 12:55:57,074 INFO  [vmware.resource.VmwareResource] (DirectAgent-356:esxw3.veber.co.uk)
Executing resource SavePasswordCommand. vmName: win, vmIp: 10.1.1.26, password: e********
2012-12-06 12:55:57,074 DEBUG [vmware.resource.VmwareResource] (DirectAgent-356:esxw3.veber.co.uk)
Use router's private IP for SSH control. IP : 192.168.1.212
2012-12-06 12:55:57,074 DEBUG [vmware.resource.VmwareResource] (DirectAgent-356:esxw3.veber.co.uk)
Run command on domain router 192.168.1.212, /root/savepassword.sh  -v 10.1.1.26 -p e********
2012-12-06 12:55:58,327 INFO  [vmware.resource.VmwareResource] (DirectAgent-356:esxw3.veber.co.uk)
savepassword command on domain router 192.168.1.212 completed
2012-12-06 12:55:58,335 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-356:null) Seq
2-967779541: Response Received: 
2012-12-06 12:55:58,335 DEBUG [agent.transport.Request] (DirectAgent-356:null) Seq 2-967779541:
Processing:  { Ans: , MgmtId: 345049202797, via: 2, Ver: v1, Flags: 100, [{"Answer":{"result":true,"wait":0}}
2012-12-06 12:55:58,335 DEBUG [agent.transport.Request] (Job-Executor-124:job-141) Seq 2-967779541:
Received:  { Ans: , MgmtId: 345049202797, via: 2, Ver: v1, Flags: 100, { Answer } }
2012-12-06 12:55:58,335 DEBUG [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-124:job-141)
Cleanup succeeded. Details null
2012-12-06 12:55:58,335 DEBUG [cloud.vm.VirtualMachineManagerImpl] (DirectAgent-356:null)
Cleanup succeeded. Details null
2012-12-06 12:55:58,335 DEBUG [agent.manager.AgentAttache] (DirectAgent-356:null) Seq 2-967779541:
No more commands found
2012-12-06 12:55:58,342 ERROR [cloud.vm.UserVmManagerImpl] (Job-Executor-124:job-141) Vm id=56
is not in Running state, failed to reboot
2012-12-06 12:55:58,343 DEBUG [cloud.vm.UserVmManagerImpl] (Job-Executor-124:job-141) Vm VM[User|i-9-56-VM]
is stopped, not rebooting it as a part of password reset
2012-12-06 12:55:58,355 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-124:job-141)
Complete async job-141, jobStatus: 1, resultCode: 0, result: com.cloud.api.response.UserVmResponse@578150ab
2012-12-06 12:55:58,361 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-124:job-141)
Done executing com.cloud.api.commands.ResetVMPasswordCmd for job-141
2012-12-06 12:56:02,041 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-21:null) Async
job-141 completed

                
> Cannot perform password reset for Windows instances on VMWare
> -------------------------------------------------------------
>
>                 Key: CLOUDSTACK-582
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-582
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Hypervisor Controller, Network Devices, VMware
>    Affects Versions: pre-4.0.0
>         Environment: CentOS6 2.6.32-279.14.1.el6.x86_64
> ESXi 5.1
>            Reporter: Bill Rich
>            Priority: Minor
>
> When I attempt password reset on a Windows instance on ESXi, the job fails because the
management server is attempting to connect to the routing vm on the link local ip address
which is not used for VMWare system VMs. Below are the relevant log entries from the management
log.
> 2012-12-04 12:35:37,651 DEBUG [agent.transport.Request] (Job-Executor-81:job-268) Seq
2-1745947325: Executing:  { Cmd , MgmtId: 161332719936, via: 2, Ver: v1, Flags: 100101, [{"routing.SavePasswordCommand":{"password":"nI9eufdes","vmIpAddress":"198.23.64.87","vmName":"78764853-99a4-40a4-b299-43748f0546b8","accessDetails":{"zone.network.type":"Basic","router.ip":"0.0.0.0","router.name":"r-6-VM"},"wait":0}}]
}
> 2012-12-04 12:35:37,651 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-306:null)
Seq 2-1745947325: Executing request
> 2012-12-04 12:35:37,652 INFO  [vmware.resource.VmwareResource] (DirectAgent-306:10.54.227.25)
Executing resource SavePasswordCommand. vmName: 78764853-99a4-40a4-b299-43748f0546b8, vmIp:
198.23.64.87, password: n********
> 2012-12-04 12:35:37,652 DEBUG [vmware.resource.VmwareResource] (DirectAgent-306:10.54.227.25)
Use router's private IP for SSH control. IP : 0.0.0.0
> 2012-12-04 12:35:37,652 DEBUG [vmware.resource.VmwareResource] (DirectAgent-306:10.54.227.25)
Run command on domain router 0.0.0.0, /root/savepassword.sh  -v 198.23.64.87 -p n********
> 2012-12-04 12:35:37,652 ERROR [vmware.resource.VmwareResource] (DirectAgent-306:10.54.227.25)
SavePasswordCommand failed due to Exception: java.io.IOException
> Message: There was a problem while connecting to 0.0.0.0:3922
> java.io.IOException: There was a problem while connecting to 0.0.0.0:3922
> 	at com.trilead.ssh2.Connection.connect(Connection.java:791)
> 	at com.cloud.hypervisor.vmware.resource.SshHelper.sshExecute(SshHelper.java:127)
> 	at com.cloud.hypervisor.vmware.resource.SshHelper.sshExecute(SshHelper.java:32)
> 	at com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource.java:1780)
> 	at com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:339)
> 	at com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:187)
> 	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)
> Caused by: java.net.ConnectException: Connection refused
> 	at java.net.PlainSocketImpl.socketConnect(Native Method)
> 	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)
> 	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:191)
> 	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)
> 	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
> 	at java.net.Socket.connect(Socket.java:546)
> 	at com.trilead.ssh2.transport.TransportManager.establishConnection(TransportManager.java:341)
> 	at com.trilead.ssh2.transport.TransportManager.initialize(TransportManager.java:449)
> 	at com.trilead.ssh2.Connection.connect(Connection.java:731)
> ...
> 2012-12-04 12:35:37,654 DEBUG [cloud.vm.UserVmManagerImpl] (Job-Executor-81:job-268)
Failed to reset password for the virutal machine; no need to reboot the vm
> 2012-12-04 12:35:37,657 ERROR [cloud.api.ApiDispatcher] (Job-Executor-81:job-268) Exception
while executing ResetVMPasswordCmd:
> com.cloud.utils.exception.CloudRuntimeException: Failed to reset password for the virtual
machine
> 	at com.cloud.vm.UserVmManagerImpl.resetVMPassword(UserVmManagerImpl.java:420)
> 	at com.cloud.event.ActionEventCallback.intercept(ActionEventCallback.java:32)
> 	at com.cloud.api.commands.ResetVMPasswordCmd.execute(ResetVMPasswordCmd.java:110)
> 	at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:235)
> 	at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:427)
> 	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.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> 	at java.lang.Thread.run(Thread.java:679)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message