[
https://issues.apache.org/jira/browse/CLOUDSTACK-3094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13697632#comment-13697632
]
manasaveloori commented on CLOUDSTACK-3094:
-------------------------------------------
After installing Vmware tools---the old issue of VMware tool is resolved.
But now after installation of tools , try to add the shared network to the same
VM----observed the following exception.
2013-07-02 16:19:34,730 DEBUG [cloud.async.AsyncJobManagerImpl]
(catalina-exec-8:null) submit async job-39, details: AsyncJobVO {id:39, userId:
2, accountId: 2, sessionKey: null, instanceType: None, instanceId: null, cmd:
org.apache.cloudstack.api.command.user.vm.AddNicToVMCmd, cmdOriginator: null,
cmdInfo:
{"response":"json","sessionkey":"yEGOunUoZq6BzudGiBDEWBmx+2g\u003d","virtualmachineid":"b8831fb4-5bba-45fb-94a6-84c2d8f7952a","ctxUserId":"2","httpmethod":"GET","_":"1372742721395","ctxAccountId":"2","networkid":"c1549a3f-c971-4112-adc1-022939bc1853","ctxStartEventId":"124"},
cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0,
processStatus: 0, resultCode: 0, result: null, initMsid: 6805241462820,
completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
2013-07-02 16:19:34,734 DEBUG [cloud.api.ApiServlet] (catalina-exec-8:null)
===END=== 10.252.192.69 -- GET
command=addNicToVirtualMachine&response=json&sessionkey=yEGOunUoZq6BzudGiBDEWBmx%2B2g%3D&virtualmachineid=b8831fb4-5bba-45fb-94a6-84c2d8f7952a&networkid=c1549a3f-c971-4112-adc1-022939bc1853&_=1372742721395
2013-07-02 16:19:34,736 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-12:job-39) Executing
org.apache.cloudstack.api.command.user.vm.AddNicToVMCmd for job-39
2013-07-02 16:19:34,772 ERROR [cloud.async.AsyncJobManagerImpl]
(Job-Executor-12:job-39) Unexpected exception while executing
org.apache.cloudstack.api.command.user.vm.AddNicToVMCmd
com.cloud.utils.exception.CloudRuntimeException: Ntwk[205|Guest|7] already has
a vm with host name: 'b8831fb4-5bba-45fb-94a6-84c2d8f7952a
at
com.cloud.vm.UserVmManagerImpl.addNicToVirtualMachine(UserVmManagerImpl.java:883)
at
org.apache.cloudstack.api.command.user.vm.AddNicToVMCmd.execute(AddNicToVMCmd.java:109)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
at
com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
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)
2013-07-02 16:19:34,773 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-12:job-39) Complete async job-39, jobStatus: 2, resultCode: 530,
result: Error Code: 530 Error text: Ntwk[205|Guest|7] already has a vm with
host name: 'b8831fb4-5bba-45fb-94a6-84c2d8f7952a
2013-07-02 16:19:35,022 DEBUG [cloud.server.StatsCollector]
(StatsCollector-1:null) HostStatsCollector is running...
2013-07-02 16:19:35,037 DEBUG [agent.manager.DirectAgentAttache]
(DirectAgent-408:null) Seq 1-328273542: Executing request
2013-07-02 16:19:35,103 DEBUG [agent.manager.DirectAgentAttache]
(DirectAgent-408:null) Seq 1-328273542: Response Received:
2013-07-02 16:19:35,103 DEBUG [agent.transport.Request] (StatsCollector-1:null)
Seq 1-328273542: Received: { Ans: , MgmtId: 6805241462820, via: 1, Ver: v1,
Flags: 10, { GetHostStatsAnswer } }
2013-07-02 16:19:35,591 DEBUG [agent.manager.AgentManagerImpl]
(AgentManager-Handler-6:null) SeqA 3-9020: Processing Seq 3-9020: { Cmd ,
MgmtId: -1, via: 3, Ver: v1, Flags: 11,
[{"ConsoleProxyLoadReportCommand":{"_proxyVmId":2,"_loadInfo":"{\n
\"connections\": []\n}","wait":0}}] }
2013-07-02 16:19:35,601 DEBUG [agent.manager.AgentManagerImpl]
(AgentManager-Handler-6:null) SeqA 3-9020: Sending Seq 3-9020: { Ans: ,
MgmtId: 6805241462820, via: 3, Ver: v1, Flags: 100010,
[{"AgentControlAnswer":{"result":true,"wait":0}}] }
2013-07-02 16:19:37,791 DEBUG [cloud.api.ApiServlet] (catalina-exec-7:null)
===START=== 10.252.192.69 -- GET
command=queryAsyncJobResult&jobId=bfb27d7e-0226-430b-98e9-15fd2ab698d1&response=json&sessionkey=yEGOunUoZq6BzudGiBDEWBmx%2B2g%3D&_=1372742725076
.
Attaching the MS logs.
Note:
Able to add shared n/w with following steps:
1. Create a VM with tier network/isolated network.
2. Install VMware tools.
3. Now add the network----it succeeds
> [Add network]Adding a shared network to already deployed VM is failing.
> -----------------------------------------------------------------------
>
> Key: CLOUDSTACK-3094
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3094
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Network Controller
> Affects Versions: 4.2.0
> Reporter: manasaveloori
> Assignee: Saksham Srivastava
> Priority: Critical
> Fix For: 4.2.0
>
> Attachments: management-server.zip, mysqldump1.dmp
>
>
> Steps:
> 1. Have a CS with advanced zone.
> 2. Create a VPC and a tier network.
> 3. Create a VM using the tier network.
> 4. Create a shared network.
> 5. Go to the VPC VM ->NICs->Add network. Select the shared network from
> the dropdown and add the network.
> Observation:
> Adding the shared network is failing with unexpected exception.
> 013-06-20 22:37:18,984 DEBUG [network.guru.DirectNetworkGuru]
> (Job-Executor-16:job-184) remove nic 80 secondary ip
> 2013-06-20 22:37:19,000 DEBUG [cloud.network.NetworkManagerImpl]
> (Job-Executor-16:job-184) Removed nic id=80
> 2013-06-20 22:37:19,002 DEBUG [cloud.network.NetworkManagerImpl]
> (Job-Executor-16:job-184) Revoving nic secondary ip entry ...
> 2013-06-20 22:37:19,003 ERROR [cloud.async.AsyncJobManagerImpl]
> (Job-Executor-16:job-184) Unexpected exception while executing
> org.apache.cloudstack.api.command.user.vm.AddNicToVMCmd
> com.cloud.utils.exception.CloudRuntimeException: Unable to add NIC to
> VM[User|979cbfa9-5e02-4f35-8ac9-fe8c25dac2ae]
> at
> com.cloud.vm.UserVmManagerImpl.addNicToVirtualMachine(UserVmManagerImpl.java:916)
> at
> org.apache.cloudstack.api.command.user.vm.AddNicToVMCmd.execute(AddNicToVMCmd.java:109)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
> at
> com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
> 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)
> 2013-06-20 22:37:19,004 DEBUG [cloud.async.AsyncJobManagerImpl]
> (Job-Executor-16:job-184) Complete async job-184, jobStatus: 2, resultCode:
> 530, result: Error Code: 530 Error text: Unable to add NIC to
> VM[User|979cbfa9-5e02-4f35-8ac9-fe8c25dac2ae]
> 2013-06-20 22:37:20,113 INFO [vmware.resource.VmwareResource]
> (DirectAgent-125:10.147.40.29) vm_data command on domain router 10.147.40.181
> completed
> 2013-06-20 22:37:20,115 DEBUG [agent.manager.DirectAgentAttache]
> (DirectAgent-125:null) Seq 1-563282274: Response Received:
> 2013-06-20 22:37:20,116 DEBUG [agent.transport.Request]
> (DirectAgent-125:null) Seq 1-563282274: Processing: { Ans: , MgmtId:
> 6805241462820, via: 1, Ver: v1, Flags: 110,
> [{"Answer":{"result":true,"wait":0}}] }
> UI is listing all the nics even though adding a nic is failing.(Ifconfig –a
> in the VM not showing the added shared network)
> We are able to add multiple shared networks while deploying the VM(instance
> creation), but same is not happening through “ Add network option”
> Attaching the MS logs and DB logs.
--
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