You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "shweta agarwal (JIRA)" <ji...@apache.org> on 2013/10/24 13:39:02 UTC

[jira] [Resolved] (CLOUDSTACK-4935) Adding same network to VM multiple times resulting in failure, No new NIC is generated each time

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-4935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

shweta agarwal resolved CLOUDSTACK-4935.
----------------------------------------

    Resolution: Invalid

adding same network to VM is not supported . Test case need to be updated

> Adding same network to VM multiple times resulting in failure, No new NIC is generated each time
> ------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-4935
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4935
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Automation, Network Controller
>    Affects Versions: 4.2.0
>            Reporter: Gaurav Aradhye
>            Assignee: shweta agarwal
>             Fix For: 4.3.0
>
>
> Deploy a VM.
> Add isolated/shared network to the VM.
> Add same network again.
> According to the test plan at https://cwiki.apache.org/confluence/display/CLOUDSTACK/Add+Remove+networks+to+VM+Test+cases (Test ID : 8), new NIC should be get added to the VM for each time the network is added.
> But the operation fails saying NIC for the network already exist on the VM.
> Log:
> 2013-10-23 10:36:44,292 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-60:job-2330 = [ 6e70f262-96b5-4417-b889-edab6b1d71e8 ]) Unexpected exception while
>  executing org.apache.cloudstack.api.command.user.vm.AddNicToVMCmd
> com.cloud.utils.exception.CloudRuntimeException: A NIC already exists for VM:i-2-655-VM in network: b9de55d1-ef98-4243-a21c-f155099a11cf
>         at com.cloud.vm.UserVmManagerImpl.addNicToVirtualMachine(UserVmManagerImpl.java:921)
>         at org.apache.cloudstack.api.command.user.vm.AddNicToVMCmd.execute(AddNicToVMCmd.java:109)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
>         at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
>         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:1146)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:679)
> 2013-10-23 10:36:44,294 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-60:job-2330 = [ 6e70f262-96b5-4417-b889-edab6b1d71e8 ]) Complete async job-2330 =
> [ 6e70f262-96b5-4417-b889-edab6b1d71e8 ], jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: A NIC already exists for VM:i-2-655-VM in network:
> b9de55d1-ef98-4243-a21c-f155099a11cf



--
This message was sent by Atlassian JIRA
(v6.1#6144)