cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kishan Kavala (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (CLOUDSTACK-3971) NPE while creating private gateway
Date Wed, 31 Jul 2013 10:37:49 GMT

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

Kishan Kavala reassigned CLOUDSTACK-3971:
-----------------------------------------

    Assignee: Kishan Kavala
    
> NPE while creating private gateway
> ----------------------------------
>
>                 Key: CLOUDSTACK-3971
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3971
>             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: xenserver6.1
>            Reporter: Srikanteswararao Talluri
>            Assignee: Kishan Kavala
>            Priority: Blocker
>             Fix For: 4.2.0
>
>
> ROOT/test/integration/smoke/test_privategw_acl.py is failing.
> Here is what the test does:
>         # 1) Create VPC 
>         self.createVPC()
>         # 2) Create ACl
>         self.createACL()
>         # 3) Create ACl Item
>         self.createACLItem()
>         # 4) Create network with ACL
>         self.createNetwork()
>         # 5) create private gw
>         self.createPvtGw()
>         # 6) update acl id
>         self.replaceacl()
> 2013-07-31 20:07:47,912 WARN  [network.router.VpcVirtualNetworkApplianceManagerImpl]
(Job-Executor-102:job-945 = [ 011ebaa6-7934-41b1-91e2-aab769ebeabd ]) Failed to create private
gateway com.cloud.network.vpc.PrivateGatewayProfile@4e4bc9bf on router VM[DomainRouter|r-235-QA]
due to 
> java.lang.NullPointerException
> 	at com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl.createPrivateNicProfileForGateway(VpcVirtualNetworkApplianceManagerImpl.java:1294)
> 	at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> 	at com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl.setupPrivateGateway(VpcVirtualNetworkApplianceManagerImpl.java:967)
> 	at com.cloud.network.element.VpcVirtualRouterElement.createPrivateGateway(VpcVirtualRouterElement.java:344)
> 	at com.cloud.network.vpc.VpcManagerImpl.applyVpcPrivateGateway(VpcManagerImpl.java:1423)
> 	at org.apache.cloudstack.api.command.admin.vpc.CreatePrivateGatewayCmd.execute(CreatePrivateGatewayCmd.java:158)
> 	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:1110)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> 	at java.lang.Thread.run(Thread.java:679)
> 2013-07-31 20:07:47,917 DEBUG [network.router.VpcVirtualNetworkApplianceManagerImpl]
(Job-Executor-102:job-945 = [ 011ebaa6-7934-41b1-91e2-aab769ebeabd ]) Removing gateway com.cloud.network.vpc.PrivateGatewayProfile@4e4bc9bf
from router VM[DomainRouter|r-235-QA] as a part of cleanup
> 2013-07-31 20:07:47,921 DEBUG [network.router.VpcVirtualNetworkApplianceManagerImpl]
(Job-Executor-102:job-945 = [ 011ebaa6-7934-41b1-91e2-aab769ebeabd ]) Router doesn't have
nic for gateway com.cloud.network.vpc.PrivateGatewayProfile@4e4bc9bf so no need to removed
it
> 2013-07-31 20:07:47,921 DEBUG [network.router.VpcVirtualNetworkApplianceManagerImpl]
(Job-Executor-102:job-945 = [ 011ebaa6-7934-41b1-91e2-aab769ebeabd ]) Removed the gateway
com.cloud.network.vpc.PrivateGatewayProfile@4e4bc9bf from router VM[DomainRouter|r-235-QA]
as a part of cleanup
> 2013-07-31 20:07:47,921 DEBUG [network.vpc.VpcManagerImpl] (Job-Executor-102:job-945
= [ 011ebaa6-7934-41b1-91e2-aab769ebeabd ]) Private gateway com.cloud.network.vpc.PrivateGatewayProfile@4e4bc9bf
was applied succesfully on the backend
> 2013-07-31 20:07:47,930 DEBUG [network.vpc.VpcManagerImpl] (Job-Executor-102:job-945
= [ 011ebaa6-7934-41b1-91e2-aab769ebeabd ]) Marke gateway com.cloud.network.vpc.PrivateGatewayProfile@4e4bc9bf
with state Ready
> 2013-07-31 20:07:47,934 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-205:null)
Seq 1-1203439375: Executing request
> 2013-07-31 20:07:47,960 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-102:job-945
= [ 011ebaa6-7934-41b1-91e2-aab769ebeabd ]) Complete async job-945 = [ 011ebaa6-7934-41b1-91e2-aab769ebeabd
], jobStatus: 1, resultCode: 0, result: org.apache.cloudstack.api.response.PrivateGatewayResponse@575fb90d
> 2013-07-31 20:07:47,979 DEBUG [cloud.async.SyncQueueManagerImpl] (Job-Executor-102:job-945
= [ 011ebaa6-7934-41b1-91e2-aab769ebeabd ]) Sync queue (165) is currently empty
> 2013-07-31 20:07:47,980 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-102:job-945
= [ 011ebaa6-7934-41b1-91e2-aab769ebeabd ]) Done executing org.apache.cloudstack.api.command.admin.vpc.CreatePrivateGatewayCmd
for job-945 = [ 011ebaa6-7934-41b1-91e2-aab769ebeabd ]
> 2013-07-31 20:07:47,980 WARN  [cloud.async.AsyncJobManagerImpl] (Job-Executor-102:job-945
= [ 011ebaa6-7934-41b1-91e2-aab769ebeabd ]) Unable to unregister active job [ 945 ] = [ 011ebaa6-7934-41b1-91e2-aab769ebeabd
] from JMX monitoring
> 2013-07-31 20:07:48,205 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-205:null)
Vm cpu utilization 0.00390625
> 2013-07-31 20:07:48,205 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-205:null)
Vm cpu utilization 0.0035937499999999997
> 2013-07-31 20:07:48,205 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-205:null)
Vm cpu utilization 1.53171875
> 2013-07-31 20:07:48,206 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-205:null)
Vm cpu utilization 0.00390625
> 2013-07-31 20:07:48,396 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-205:null)
Seq 1-1203439375: Response Received: 
> 2013-07-31 20:07:48,396 DEBUG [agent.transport.Request] (StatsCollector-1:null) Seq 1-1203439375:
Received:  { Ans: , MgmtId: 7566222426160, via: 1, Ver: v1, Flags: 10, { GetVmStatsAnswer
} }
> 2013-07-31 20:07:48,437 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-178:null)
Seq 2-1769146226: Executing request
> 2013-07-31 20:07:49,005 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-178:null)
Vm cpu utilization 0.0037500000000000003
> 2013-07-31 20:07:49,005 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-178:null)
Vm cpu utilization 0.0035937499999999997
> 2013-07-31 20:07:49,005 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-178:null)
Vm cpu utilization 0.0035937499999999997
> 2013-07-31 20:07:49,005 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-178:null)
Vm cpu utilization 0.0035937499999999997
> 2013-07-31 20:07:49,005 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-178:null)
Vm cpu utilization 1.88078125
> 2013-07-31 20:07:49,006 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-178:null)
Vm cpu utilization 0.00390625
> 2013-07-31 20:07:49,006 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-178:null)
Vm cpu utilization 0.0035937499999999997
> 2013-07-31 20:07:49,357 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-178:null)
Seq 2-1769146226: Response Received: 
> 2013-07-31 20:07:49,357 DEBUG [agent.transport.Request] (StatsCollector-1:null) Seq 2-1769146226:
Received:  { Ans: , MgmtId: 7566222426160, via: 2, Ver: v1, Flags: 10, { GetVmStatsAnswer
} }
> 2013-07-31 20:07:50,226 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-12:null)
SeqA 6-1712: Processing Seq 6-1712:  { Cmd , MgmtId: -1, via: 6, Ver: v1, Flags: 11, [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":4,"_loadInfo":"{\n
 \"connections\": []\n}","wait":0}}] }
> 2013-07-31 20:07:50,235 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-12:null)
SeqA 6-1712: Sending Seq 6-1712:  { Ans: , MgmtId: 7566222426160, via: 6, Ver: v1, Flags:
100010, [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
> 2013-07-31 20:07:50,685 DEBUG [storage.download.DownloadListener] (Timer-33:null) Scheduling
timeout at 30000 ms, TEMPLATE: 218 at host 10
> 2013-07-31 20:07:50,870 DEBUG [storage.download.DownloadListener] (Timer-34:null) Scheduling
timeout at 30000 ms, TEMPLATE: 218 at host 10
> 2013-07-31 20:07:51,555 DEBUG [cloud.api.ApiServlet] (catalina-exec-10:null) ===START===
 10.147.38.149 -- GET  signature=SThTZHMJmBPxFEQJS4s%2F5OR0zEI%3D&apiKey=LoJ3n_zUQYCQep3GAOgxNqbg8QeTUcmLZXxQEdImBRHTi0VmVjOJz29Dc6yNl3hs84eXgELDH6DmsmI4Hwsg3Q&command=queryAsyncJobResult&response=json&jobid=0a096fb6-17fb-4e22-8e33-aa35f4554709
> 2013-07-31 20:07:51,590 DEBUG [cloud.api.ApiServlet] (catalina-exec-10:null) ===END===
 10.147.38.149 -- GET  signature=SThTZHMJmBPxFEQJS4s%2F5OR0zEI%3D&apiKey=LoJ3n_zUQYCQep3GAOgxNqbg8QeTUcmLZXxQEdImBRHTi0VmVjOJz29Dc6yNl3hs84eXgELDH6DmsmI4Hwsg3Q&command=queryAsyncJobResult&response=json&jobid=0a096fb6-17fb-4e22-8e33-aa35f4554709
> 2013-07-31 20:07:51,632 DEBUG [cloud.api.ApiServlet] (catalina-exec-13:null) ===START===
 10.252.192.22 -- GET  signature=SodqC%2Fk%2BhY1nVIQpa9Q53Jca2aw%3D&apiKey=LoJ3n_zUQYCQep3GAOgxNqbg8QeTUcmLZXxQEdImBRHTi0VmVjOJz29Dc6yNl3hs84eXgELDH6DmsmI4Hwsg3Q&command=queryAsyncJobResult&response=json&jobid=c7dba20d-4cd1-40ca-83fa-27b36c6dea2b
> 2013-07-31 20:07:51,666 DEBUG [cloud.api.ApiServlet] (catalina-exec-13:null) ===END===
 10.252.192.22 -- GET  signature=SodqC%2Fk%2BhY1nVIQpa9Q53Jca2aw%3D&apiKey=LoJ3n_zUQYCQep3GAOgxNqbg8QeTUcmLZXxQEdImBRHTi0VmVjOJz29Dc6yNl3hs84eXgELDH6DmsmI4Hwsg3Q&command=queryAsyncJobResult&response=json&jobid=c7dba20d-4cd1-40ca-83fa-27b36c6dea2b
> 2013-07-31 20:07:52,719 DEBUG [cloud.api.ApiServlet] (catalina-exec-7:null) ===START===
 10.147.38.149 -- GET  apiKey=LoJ3n_zUQYCQep3GAOgxNqbg8QeTUcmLZXxQEdImBRHTi0VmVjOJz29Dc6yNl3hs84eXgELDH6DmsmI4Hwsg3Q&templatefilter=self&response=json&command=listTemplates&signature=YjIFenglXtlOOC3pIIvakmSFNhc%3D&zoneid=c1e34362-67d6-4ebd-b34b-339ee8a23614&id=df2a9f8b-6265-4b05-bd45-4605a93c238c
> 2013-07-31 20:07:52,756 DEBUG [cloud.api.ApiServlet] (catalina-exec-7:null) ===END===
 10.147.38.149 -- GET  apiKey=LoJ3n_zUQYCQep3GAOgxNqbg8QeTUcmLZXxQEdImBRHTi0VmVjOJz29Dc6yNl3hs84eXgELDH6DmsmI4Hwsg3Q&templatefilter=self&response=json&command=listTemplates&signature=YjIFenglXtlOOC3pIIvakmSFNhc%3D&zoneid=c1e34362-67d6-4ebd-b34b-339ee8a23614&id=df2a9f8b-6265-4b05-bd45-4605a93c238c
> 2013-07-31 20:07:52,871 DEBUG [cloud.api.ApiServlet] (catalina-exec-4:null) ===START===
 10.147.38.149 -- GET  signature=LiB0kTpSfQzUjck2Lp5%2Bp1myq4w%3D&apiKey=LoJ3n_zUQYCQep3GAOgxNqbg8QeTUcmLZXxQEdImBRHTi0VmVjOJz29Dc6yNl3hs84eXgELDH6DmsmI4Hwsg3Q&command=queryAsyncJobResult&response=json&jobid=011ebaa6-7934-41b1-91e2-aab769ebeabd
> 2013-07-31 20:07:52,891 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-4:null)
Async job-945 = [ 011ebaa6-7934-41b1-91e2-aab769ebeabd ] completed
> 2013-07-31 20:07:52,899 DEBUG [cloud.api.ApiServlet] (catalina-exec-4:null) ===END===
 10.147.38.149 -- GET  signature=LiB0kTpSfQzUjck2Lp5%2Bp1myq4w%3D&apiKey=LoJ3n_zUQYCQep3GAOgxNqbg8QeTUcmLZXxQEdImBRHTi0VmVjOJz29Dc6yNl3hs84eXgELDH6DmsmI4Hwsg3Q&command=queryAsyncJobResult&response=json&jobid=011ebaa6-7934-41b1-91e2-aab769ebeabd
> 2013-07-31 20:07:52,905 DEBUG [cloud.api.ApiServlet] (catalina-exec-14:null) ===START===
 10.147.38.149 -- GET  apiKey=LoJ3n_zUQYCQep3GAOgxNqbg8QeTUcmLZXxQEdImBRHTi0VmVjOJz29Dc6yNl3hs84eXgELDH6DmsmI4Hwsg3Q&aclid=16037404-8266-45cc-b852-459ae74b8efb&command=replaceNetworkACLList&signature=ymBR3II9csc%2FyoHFIFD7RxcdVoM%3D&gatewayid=a2b57173-e160-47ef-8150-ea95e0576395&response=json
> 2013-07-31 20:07:52,938 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-97:job-946
= [ 4cb10646-23d6-419a-8687-6e4f5e220f12 ]) Executing org.apache.cloudstack.api.command.user.network.ReplaceNetworkACLListCmd
for job-946 = [ 4cb10646-23d6-419a-8687-6e4f5e220f12 ]
> 2013-07-31 20:07:52,941 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-14:null)
submit async job-946 = [ 4cb10646-23d6-419a-8687-6e4f5e220f12 ], details: AsyncJobVO {id:946,
userId: 2, accountId: 2, sessionKey: null, instanceType: None, instanceId: null, cmd: org.apache.cloudstack.api.command.user.network.ReplaceNetworkACLListCmd,
cmdOriginator: null, cmdInfo: {"response":"json","aclid":"16037404-8266-45cc-b852-459ae74b8efb","cmdEventType":"NETWORK.ACL.REPLACE","ctxUserId":"2","gatewayid":"a2b57173-e160-47ef-8150-ea95e0576395","httpmethod":"GET","ctxAccountId":"2","ctxStartEventId":"4009","apiKey":"LoJ3n_zUQYCQep3GAOgxNqbg8QeTUcmLZXxQEdImBRHTi0VmVjOJz29Dc6yNl3hs84eXgELDH6DmsmI4Hwsg3Q","signature":"ymBR3II9csc/yoHFIFD7RxcdVoM\u003d"},
cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, processStatus: 0, resultCode:
0, result: null, initMsid: 7566222426160, completeMsid: null, lastUpdated: null, lastPolled:
null, created: null}
> 2013-07-31 20:07:52,946 DEBUG [cloud.api.ApiServlet] (catalina-exec-14:null) ===END===
 10.147.38.149 -- GET  apiKey=LoJ3n_zUQYCQep3GAOgxNqbg8QeTUcmLZXxQEdImBRHTi0VmVjOJz29Dc6yNl3hs84eXgELDH6DmsmI4Hwsg3Q&aclid=16037404-8266-45cc-b852-459ae74b8efb&command=replaceNetworkACLList&signature=ymBR3II9csc%2FyoHFIFD7RxcdVoM%3D&gatewayid=a2b57173-e160-47ef-8150-ea95e0576395&response=json
> 2013-07-31 20:07:52,954 DEBUG [cloud.api.ApiServlet] (catalina-exec-19:null) ===START===
 10.147.38.149 -- GET  signature=iyuaunf8dqib3r14ifWRONJ0CIs%3D&apiKey=LoJ3n_zUQYCQep3GAOgxNqbg8QeTUcmLZXxQEdImBRHTi0VmVjOJz29Dc6yNl3hs84eXgELDH6DmsmI4Hwsg3Q&command=queryAsyncJobResult&response=json&jobid=4cb10646-23d6-419a-8687-6e4f5e220f12
> 2013-07-31 20:07:53,008 DEBUG [cloud.api.ApiServlet] (catalina-exec-19:null) ===END===
 10.147.38.149 -- GET  signature=iyuaunf8dqib3r14ifWRONJ0CIs%3D&apiKey=LoJ3n_zUQYCQep3GAOgxNqbg8QeTUcmLZXxQEdImBRHTi0VmVjOJz29Dc6yNl3hs84eXgELDH6DmsmI4Hwsg3Q&command=queryAsyncJobResult&response=json&jobid=4cb10646-23d6-419a-8687-6e4f5e220f12
> 2013-07-31 20:07:53,016 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (Job-Executor-97:job-946
= [ 4cb10646-23d6-419a-8687-6e4f5e220f12 ]) Applying network acls in network Ntwk[219|Guest|5]
> 2013-07-31 20:07:53,036 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-97:job-946
= [ 4cb10646-23d6-419a-8687-6e4f5e220f12 ]) Unexpected exception while executing org.apache.cloudstack.api.command.user.network.ReplaceNetworkACLListCmd
> java.lang.NullPointerException
> 	at com.cloud.hypervisor.HypervisorGuruBase.toNicTO(HypervisorGuruBase.java:59)
> 	at com.cloud.vm.VirtualMachineManagerImpl.toNicTO(VirtualMachineManagerImpl.java:2978)
> 	at com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl.getNicTO(VpcVirtualNetworkApplianceManagerImpl.java:547)
> 	at com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl.createNetworkACLsCommands(VpcVirtualNetworkApplianceManagerImpl.java:757)
> 	at com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl.sendNetworkACLs(VpcVirtualNetworkApplianceManagerImpl.java:731)
> 	at com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl$2.execute(VpcVirtualNetworkApplianceManagerImpl.java:722)
> 	at com.cloud.network.router.VirtualNetworkApplianceManagerImpl.applyRules(VirtualNetworkApplianceManagerImpl.java:3799)
> 	at com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl.applyNetworkACLs(VpcVirtualNetworkApplianceManagerImpl.java:719)
> 	at com.cloud.network.element.VpcVirtualRouterElement.applyACLItemsToPrivateGw(VpcVirtualRouterElement.java:463)
> 	at com.cloud.network.vpc.NetworkACLManagerImpl.applyACLToPrivateGw(NetworkACLManagerImpl.java:373)
> 	at com.cloud.network.vpc.NetworkACLManagerImpl.applyACLToPrivateGw(NetworkACLManagerImpl.java:360)
> 	at com.cloud.network.vpc.NetworkACLManagerImpl.replaceNetworkACLForPrivateGw(NetworkACLManagerImpl.java:169)
> 	at com.cloud.network.vpc.NetworkACLServiceImpl.replaceNetworkACLonPrivateGw(NetworkACLServiceImpl.java:195)
> 	at org.apache.cloudstack.api.command.user.network.ReplaceNetworkACLListCmd.execute(ReplaceNetworkACLListCmd.java:107)
> 	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:1110)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> 	at java.lang.Thread.run(Thread.java:679)
> 2013-07-31 20:07:53,042 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-97:job-946
= [ 4cb10646-23d6-419a-8687-6e4f5e220f12 ]) Complete async job-946 = [ 4cb10646-23d6-419a-8687-6e4f5e220f12
], jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: null

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