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

Mice Xia commented on CLOUDSTACK-2546:
--------------------------------------

hmm, the reason that i added this check:
1) it's not a must-to-have requirement (imho), for most of cases, one nic per 
network for a VM is enough, but i can not speak for all customers, please 
correct me if this usecase exists
2) it simplifies the implementation, legacy codes in several places assume 'one 
nic per network', e.g. 
   a) in DeployVMCmd, getIpToNetworkMap() returns a Map with networkId as key, 
which means multiple nics for one network is not supported
   b) for LB/PF/Static NAT, there's no way to specify which guest NIC to map 
with, and the implementation choose guest NIC 'randomly' if there are more than 
one.
                
> [Automation] Failed to add second NIC to vm in KVM environment 
> ---------------------------------------------------------------
>
>                 Key: CLOUDSTACK-2546
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2546
>             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
>         Environment: KVM
> Build : Latest master build 
>            Reporter: Rayees Namathponnan
>            Priority: Blocker
>             Fix For: 4.2.0
>
>
> Automation test case /test/integration/smoke/test_nic.py failed 
> Steps to reproduce 
> 1) Create and account, service offering 
> 2) Create Network offering (isolated) and Create network
> 3) Create VM with the network
> 4) After VM is up, add another network to VM
> Expected result
> Second nic should be added 
> Actual result 
> Failed to add second nic 
> 2013-05-16 10:49:07,804 ERROR [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-68:job-292) Unexpected exception while executing 
> org.apache.cloudstack.api.command.user.vm.AddNicToVMCmd
> com.cloud.utils.exception.CloudRuntimeException: A NIC already exists for 
> VM:i-36-74-VM in network: 632e241e-4071-445b-a2a8-d83606ae8030
>         at 
> com.cloud.vm.UserVmManagerImpl.addNicToVirtualMachine(UserVmManagerImpl.java:844)
>         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-05-16 10:49:07,809 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-68:job-292) Complete async job-292, jobStatus: 2, resultCode: 
> 530, result: Error Code: 530 Error text: A NIC already exists for 
> VM:i-36-74-VM in network: 632e241e-4071-445b-a2a8-d83606ae8030
> 2013-05-16 10:49:09,334 DEBUG [storage.secondary.SecondaryStorageManagerImpl] 
> (secstorage-1:null) Zone 1 is ready 

--
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

Reply via email to