cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mice Xia (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CLOUDSTACK-2061) Hitting java NPE in addNicToVirtualMachine api when trying to add a shared network to a VM
Date Thu, 18 Apr 2013 07:03:15 GMT

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

Mice Xia resolved CLOUDSTACK-2061.
----------------------------------

    Resolution: Fixed

test with esxi 5.0 environment
                
> Hitting java NPE in addNicToVirtualMachine api when trying to add a shared network to
a VM
> ------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-2061
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2061
>             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: Build: 
> CloudStack-non-OSS-MASTER-219-rhel6.3.tar.gz
>            Reporter: shweta agarwal
>            Assignee: Mice Xia
>             Fix For: 4.2.0
>
>
> Create a VM with isolated network
> Create a shared network
> Call  addNicToVirtualMachine with the VM created in step 1 and network id created in
step 2 
> Bug:
> Hitting java NPE 
> MS log:
> 2013-04-17 12:42:57,448 DEBUG [cloud.api.ApiServlet] (catalina-exec-25:null) ===START===
 10.146.0.131 -- GET  command=addNicToVirtualMachine&virtualmachineid=83377d03-db69-4298-83aa-ca00d2842ad2&networkid=4d47b3ad-dbd3-446e-a00d-b054fe263d4c&sessionkey=vZgNeQaRWcArZzfV3E%2FqFLlhaJU%3D&_=1366193306156
> 2013-04-17 12:42:57,568 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-25:null)
submit async job-21, details: AsyncJobVO {id:21, userId: 2, accountId: 2, sessionKey: null,
instanceType: null, instanceId: null, cmd: org.apache.cloudstack.api.command.user.vm.AddNicToVMCmd,
cmdOriginator: null, cmdInfo: {"sessionkey":"vZgNeQaRWcArZzfV3E/qFLlhaJU\u003d","virtualmachineid":"83377d03-db69-4298-83aa-ca00d2842ad2","ctxUserId":"2","_":"1366193306156","ctxAccountId":"2","networkid":"4d47b3ad-dbd3-446e-a00d-b054fe263d4c","ctxStartEventId":"76"},
cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, processStatus: 0, resultCode:
0, result: null, initMsid: 6909931290812, completeMsid: null, lastUpdated: null, lastPolled:
null, created: null}
> 2013-04-17 12:42:57,572 DEBUG [cloud.api.ApiServlet] (catalina-exec-25:null) ===END===
 10.146.0.131 -- GET  command=addNicToVirtualMachine&virtualmachineid=83377d03-db69-4298-83aa-ca00d2842ad2&networkid=4d47b3ad-dbd3-446e-a00d-b054fe263d4c&sessionkey=vZgNeQaRWcArZzfV3E%2FqFLlhaJU%3D&_=1366193306156
> 2013-04-17 12:42:57,577 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-10:job-21)
Executing org.apache.cloudstack.api.command.user.vm.AddNicToVMCmd for job-21
> 2013-04-17 12:42:57,605 DEBUG [cloud.vm.UserVmManagerImpl] (Job-Executor-10:job-21) VM[User|b]
already in Ntwk[206|Guest|7] going to add another NIC
> 2013-04-17 12:42:57,606 DEBUG [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-10:job-21)
Adding vm VM[User|b] to network Ntwk[206|Guest|7]; requested nic profile NicProfile[0-0-null-null-null
> 2013-04-17 12:42:57,643 DEBUG [cloud.network.NetworkModelImpl] (Job-Executor-10:job-21)
Service SecurityGroup is not supported in the network id=206
> 2013-04-17 12:42:57,651 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-10:job-21)
Allocating nic for vm VM[User|b] in network Ntwk[206|Guest|7] with requested profile NicProfile[0-0-null-null-null
> 2013-04-17 12:42:57,700 DEBUG [cloud.network.NetworkModelImpl] (Job-Executor-10:job-21)
Service SecurityGroup is not supported in the network id=206
> 2013-04-17 12:42:57,704 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-10:job-21)
Nic is allocated successfully for vm VM[User|b] in network Ntwk[206|Guest|7]
> 2013-04-17 12:42:57,725 DEBUG [cloud.network.NetworkModelImpl] (Job-Executor-10:job-21)
Service SecurityGroup is not supported in the network id=206
> 2013-04-17 12:42:57,731 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-10:job-21)
Changing active number of nics for network id=206 on 1
> 2013-04-17 12:42:57,737 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-10:job-21)
Asking JuniperSRX to prepare for Nic[25-5-null-10.147.51.124]
> 2013-04-17 12:42:57,744 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-10:job-21)
Asking Netscaler to prepare for Nic[25-5-null-10.147.51.124]
> 2013-04-17 12:42:57,751 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-10:job-21)
Asking F5BigIP to prepare for Nic[25-5-null-10.147.51.124]
> 2013-04-17 12:42:57,758 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-10:job-21)
Asking CiscoNexus1000vVSM to prepare for Nic[25-5-null-10.147.51.124]
> 2013-04-17 12:42:57,758 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-10:job-21)
Asking CiscoVNMC to prepare for Nic[25-5-null-10.147.51.124]
> 2013-04-17 12:42:57,767 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-10:job-21)
Asking NiciraNvp to prepare for Nic[25-5-null-10.147.51.124]
> 2013-04-17 12:42:57,767 DEBUG [network.element.NiciraNvpElement] (Job-Executor-10:job-21)
Checking if NiciraNvpElement can handle service Connectivity on network 3
> 2013-04-17 12:42:57,774 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-10:job-21)
Asking MidoNetElement to prepare for Nic[25-5-null-10.147.51.124]
> 2013-04-17 12:42:57,774 DEBUG [network.element.MidoNetElement] (Job-Executor-10:job-21)
prepare called with network: Ntwk[206|Guest|7] nic: NicProfile[25-5-null-10.147.51.124-vlan://51
vm: VM[User|b]
> 2013-04-17 12:42:57,783 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-10:job-21)
Asking BigSwitchVnsElement to prepare for Nic[25-5-null-10.147.51.124]
> 2013-04-17 12:42:57,783 DEBUG [network.element.BigSwitchVnsElement] (Job-Executor-10:job-21)
Checking if BigSwitchVnsElement can handle service Connectivity on network 3
> 2013-04-17 12:42:57,790 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-10:job-21)
Asking VirtualRouter to prepare for Nic[25-5-null-10.147.51.124]
> 2013-04-17 12:42:57,809 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (Job-Executor-10:job-21)
Lock is acquired for network id 206 as a part of router startup in Dest[Zone(Id)-Pod(Id)-Cluster(Id)-Host(Id)-Storage(Volume(Id|Type-->Pool(Id))]
: Dest[Zone(1)-Pod(null)-Cluster(null)-Host(1)-Storage()]
> 2013-04-17 12:42:57,816 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (Job-Executor-10:job-21)
Lock is released for network id 206 as a part of router startup in Dest[Zone(Id)-Pod(Id)-Cluster(Id)-Host(Id)-Storage(Volume(Id|Type-->Pool(Id))]
: Dest[Zone(1)-Pod(null)-Cluster(null)-Host(1)-Storage()]
> 2013-04-17 12:42:57,830 DEBUG [cloud.network.NetworkModelImpl] (Job-Executor-10:job-21)
Service SecurityGroup is not supported in the network id=206
> 2013-04-17 12:42:57,830 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-10:job-21)
Unexpected exception while executing org.apache.cloudstack.api.command.user.vm.AddNicToVMCmd
> java.lang.NullPointerException
>         at com.cloud.network.element.VirtualRouterElement.getRouters(VirtualRouterElement.java:879)
>         at com.cloud.network.element.VirtualRouterElement.addDhcpEntry(VirtualRouterElement.java:826)
>         at com.cloud.network.NetworkManagerImpl.prepareElement(NetworkManagerImpl.java:1591)
>         at com.cloud.network.NetworkManagerImpl.prepareNic(NetworkManagerImpl.java:1702)
>         at com.cloud.network.NetworkManagerImpl.createNicForVm(NetworkManagerImpl.java:3636)
>         at com.cloud.vm.VirtualMachineManagerImpl.addVmToNetwork(VirtualMachineManagerImpl.java:2522)
>         at com.cloud.vm.UserVmManagerImpl.addNicToVirtualMachine(UserVmManagerImpl.java:860)
>         at org.apache.cloudstack.api.command.user.vm.AddNicToVMCmd.execute(AddNicToVMCmd.java:109)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:164)
>         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:1146)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:679)
> 2013-04-17 12:42:57,832 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-10:job-21)
Complete async job-21, jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text:
null
> Expected Result:
> shared network should be added to VM

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