cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jayapal Reddy (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-5728) [Automation] ReplaceNetworkACLListCmd command failing with NPE
Date Wed, 08 Jan 2014 11:24:51 GMT

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

Jayapal Reddy commented on CLOUDSTACK-5728:
-------------------------------------------

This issue is not reproduced in kvm.

Here are the logs:

014-01-08 12:16:24,393 DEBUG [c.c.a.ApiServlet] (1261850651@qtp-860455612-9:ctx-5f9558d2 ctx-4c10ab71)
===END=== 0:0:0:0:0:0:0:1 -- GET  command=queryAsyncJobResult&jobId=642bf230-a78e-43cf-84f8-9b4892d05645&response=json&sessionkey=m0f5Grg1WJ6i8fugT10R5Ui3q7A%3D&_=1389163584314
2014-01-08 12:16:26,118 DEBUG [c.c.a.ApiServlet] (1261850651@qtp-860455612-9:ctx-d0aeced7)
===START=== 0:0:0:0:0:0:0:1 -- GET  command=replaceNetworkACLList&gatewayid=97ecfb5d-e042-495a-8057-8b853ec7249c&aclid=1ffabcfb-c3ae-4fb0-9b1b-b81fe1c6b511&response=json&sessionkey=m0f5Grg1WJ6i8fugT10R5Ui3q7A%3D&_=1389163586064
2014-01-08 12:16:26,211 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (1261850651@qtp-860455612-9:ctx-d0aeced7
ctx-a2dbd08e) submit async job-198, details: AsyncJobVO {id:198, userId: 2, accountId: 2,
instanceType: None, instanceId: null, cmd: org.apache.cloudstack.api.command.user.network.ReplaceNetworkACLListCmd,
cmdInfo: {"response":"json","aclid":"1ffabcfb-c3ae-4fb0-9b1b-b81fe1c6b511","sessionkey":"m0f5Grg1WJ6i8fugT10R5Ui3q7A\u003d","cmdEventType":"NETWORK.ACL.REPLACE","ctxUserId":"2","gatewayid":"97ecfb5d-e042-495a-8057-8b853ec7249c","httpmethod":"GET","_":"1389163586064","ctxAccountId":"2","ctxStartEventId":"320"},
cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid:
101318455136477, completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
2014-01-08 12:16:26,212 INFO  [o.a.c.f.j.i.AsyncJobMonitor] (Job-Executor-9:ctx-d7e47a7e)
Add job-198 into job monitoring
2014-01-08 12:16:26,212 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Executor-9:ctx-d7e47a7e)
Executing AsyncJobVO {id:198, userId: 2, accountId: 2, instanceType: None, instanceId: null,
cmd: org.apache.cloudstack.api.command.user.network.ReplaceNetworkACLListCmd, cmdInfo: {"response":"json","aclid":"1ffabcfb-c3ae-4fb0-9b1b-b81fe1c6b511","sessionkey":"m0f5Grg1WJ6i8fugT10R5Ui3q7A\u003d","cmdEventType":"NETWORK.ACL.REPLACE","ctxUserId":"2","gatewayid":"97ecfb5d-e042-495a-8057-8b853ec7249c","httpmethod":"GET","_":"1389163586064","ctxAccountId":"2","ctxStartEventId":"320"},
cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid:
101318455136477, completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
2014-01-08 12:16:26,212 DEBUG [c.c.a.ApiServlet] (1261850651@qtp-860455612-9:ctx-d0aeced7
ctx-a2dbd08e) ===END=== 0:0:0:0:0:0:0:1 -- GET  command=replaceNetworkACLList&gatewayid=97ecfb5d-e042-495a-8057-8b853ec7249c&aclid=1ffabcfb-c3ae-4fb0-9b1b-b81fe1c6b511&response=json&sessionkey=m0f5Grg1WJ6i8fugT10R5Ui3q7A%3D&_=1389163586064
2014-01-08 12:16:26,273 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (Job-Executor-9:ctx-d7e47a7e
ctx-a2dbd08e) Applying network acls in network Ntwk[210|Guest|5]
2014-01-08 12:16:26,281 DEBUG [c.c.n.NetworkModelImpl] (Job-Executor-9:ctx-d7e47a7e ctx-a2dbd08e)
Service SecurityGroup is not supported in the network id=210
2014-01-08 12:16:26,286 DEBUG [c.c.a.t.Request] (Job-Executor-9:ctx-d7e47a7e ctx-a2dbd08e)
Seq 2-278396951: Sending { Cmd , MgmtId: 101318455136477, via: 2(idc-kvm11), Ver: v1, Flags:
100001, [{"com.cloud.agent.api.routing.SetNetworkACLCommand":{"rules":[{"id":0,"vlanTag":"61","protocol":"tcp","portRange":[22,22],"revoked":false,"alreadyAdded":true,"cidrList":["10.0.0.0/0"],"trafficType":"Ingress","action":"ACCEPT","number":1},{"id":0,"vlanTag":"61","protocol":"tcp","portRange":[23,23],"revoked":false,"alreadyAdded":true,"cidrList":["10.0.0.0/0"],"trafficType":"Egress","action":"ACCEPT","number":2}],"nic":{"deviceId":2,"networkRateMbps":200,"defaultNic":false,"uuid":"a9a7053c-46c1-4dc9-b9a5-b54fbe4b4b07","ip":"10.147.61.3","netmask":"255.255.255.0","gateway":"10.147.61.1","mac":"06:69:b0:00:00:17","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://61","isolationUri":"vlan://61","isSecurityGroupEnabled":false},"accessDetails":{"router.guest.ip":"10.147.61.3","guest.vlan.tag":"61","zone.network.type":"Advanced","vpc.gateway.private":"Private","router.ip":"169.254.0.41","router.name":"r-10-VM"},"wait":0}}]
}
2014-01-08 12:16:26,819 DEBUG [c.c.a.t.Request] (AgentManager-Handler-10:null) Seq 2-278396951:
Processing:  { Ans: , MgmtId: 101318455136477, via: 2, Ver: v1, Flags: 0, [{"com.cloud.agent.api.routing.SetNetworkACLAnswer":{"results":[null,null],"result":true,"wait":0}}]
}
2014-01-08 12:16:26,820 DEBUG [c.c.a.t.Request] (Job-Executor-9:ctx-d7e47a7e ctx-a2dbd08e)
Seq 2-278396951: Received: { Ans: , MgmtId: 101318455136477, via: 2, Ver: v1, Flags: 0, {
SetNetworkACLAnswer } }
2014-01-08 12:16:26,821 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Executor-9:ctx-d7e47a7e
ctx-a2dbd08e) Complete async job-198, jobStatus: SUCCEEDED, resultCode: 0, result: org.apache.cloudstack.api.response.SuccessResponse/null/{"success":true}
2014-01-08 12:16:26,861 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Executor-9:ctx-d7e47a7e)
Done executing org.apache.cloudstack.api.command.user.network.ReplaceNetworkACLListCmd for
job-198
2014-01-08 12:16:26,902 INFO  [o.a.c.f.j.i.AsyncJobMonitor] (Job-Ex

> [Automation] ReplaceNetworkACLListCmd command failing with NPE
> --------------------------------------------------------------
>
>                 Key: CLOUDSTACK-5728
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5728
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Network Controller
>    Affects Versions: 4.3.0
>         Environment: KVM and vmware
> branch 4.3
>            Reporter: Rayees Namathponnan
>            Assignee: Jayapal Reddy
>            Priority: Blocker
>             Fix For: 4.3.0
>
>         Attachments: management-server.rar
>
>
> BVT test case test_privategw_acl.TestPrivateGwACL.test_privategw_acl failing with NPE,
this failure observed from Dec 27th on words 
> Test case performing below steps 
> # 1) Create VPC
> # 2) Create ACl
> # 3) Create ACl Item
> # 4) Create network with ACL
> # 6) update acl id
> Observed below error 
> 7577-47b5-bb33-db9f8c542de0","httpmethod":"GET","ctxAccountId":"2","ctxStartEventId":"1063","apiKey":"EHF5nlA7E3UW18UHPpnUOrB1KScPXUdMPFtCl8t7tNc2k_1n0ZkD0Tv-X8Lp9OXMy4uPGReYq3R9q2ddkIb-2g","signature":"vIdDK7TNp5mRqcgsEs+m3lGSdjc\u
> 003d"}, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result:
null, initMsid: 29066118877352, completeMsid: null, lastUpdated: null, lastPolled: null, created:
null}
> 2014-01-02 14:14:51,316 DEBUG [c.c.a.ApiServlet] (catalina-exec-18:ctx-607621af ctx-a91ea8f3
ctx-6baa9395) ===END===  10.223.240.194 -- GET  apiKey=EHF5nlA7E3UW18UHPpnUOrB1KScPXUdMPFtCl8t7tNc2k_1n0ZkD0Tv-X8Lp9OXMy4uPGReYq3R9q2ddkIb-
> 2g&aclid=5db946bd-d5a2-47bd-8dda-1653c21b2af5&command=replaceNetworkACLList&signature=vIdDK7TNp5mRqcgsEs%2Bm3lGSdjc%3D&gatewayid=a51a8831-7577-47b5-bb33-db9f8c542de0&response=json
> 2014-01-02 14:14:51,320 DEBUG [c.c.a.ApiServlet] (catalina-exec-17:ctx-a8650844) ===START===
 10.223.240.194 -- GET  signature=Im99pBFJIOBuch6mHvf4WilMbwU%3D&apiKey=EHF5nlA7E3UW18UHPpnUOrB1KScPXUdMPFtCl8t7tNc2k_1n0ZkD0Tv-X8Lp9OXMy4u
> PGReYq3R9q2ddkIb-2g&command=queryAsyncJobResult&response=json&jobid=e9391f75-b3ee-4255-8bc7-5439dd7ba68f
> 2014-01-02 14:14:51,341 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (Job-Executor-1:ctx-f84f626a
ctx-6baa9395) Applying network acls in network Ntwk[239|Guest|5]
> 2014-01-02 14:14:51,346 DEBUG [c.c.a.ApiServlet] (catalina-exec-17:ctx-a8650844 ctx-36cff002
ctx-0b21bcc7) ===END===  10.223.240.194 -- GET  signature=Im99pBFJIOBuch6mHvf4WilMbwU%3D&apiKey=EHF5nlA7E3UW18UHPpnUOrB1KScPXUdMPFtCl8t7tNc
> 2k_1n0ZkD0Tv-X8Lp9OXMy4uPGReYq3R9q2ddkIb-2g&command=queryAsyncJobResult&response=json&jobid=e9391f75-b3ee-4255-8bc7-5439dd7ba68f
> 2014-01-02 14:14:51,364 ERROR [c.c.a.ApiAsyncJobDispatcher] (Job-Executor-1:ctx-f84f626a)
Unexpected exception while executing org.apache.cloudstack.api.command.user.network.ReplaceNetworkACLListCmd
> java.lang.NullPointerException
>         at com.cloud.hypervisor.HypervisorGuruBase.toNicTO(HypervisorGuruBase.java:60)
>         at com.cloud.vm.VirtualMachineManagerImpl.toNicTO(VirtualMachineManagerImpl.java:3212)
>         at com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl.getNicTO(VpcVirtualNetworkApplianceManagerImpl.java:489)
>         at com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl.createNetworkACLsCommands(VpcVirtualNetworkApplianceManagerImpl.java:699)
>         at com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl.sendNetworkACLs(VpcVirtualNetworkApplianceManagerImpl.java:673)
>         at com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl$2.execute(VpcVirtualNetworkApplianceManagerImpl.java:665)
>         at com.cloud.network.router.VirtualNetworkApplianceManagerImpl.applyRules(VirtualNetworkApplianceManagerImpl.java:3738)
>         at com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl.applyNetworkACLs(VpcVirtualNetworkApplianceManagerImpl.java:662)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
>         at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
>         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
>         at $Proxy240.applyNetworkACLs(Unknown Source)
>         at com.cloud.network.element.VpcVirtualRouterElement.applyACLItemsToPrivateGw(VpcVirtualRouterElement.java:473)
>         at com.cloud.network.vpc.NetworkACLManagerImpl.applyACLToPrivateGw(NetworkACLManagerImpl.java:385)
>         at com.cloud.network.vpc.NetworkACLManagerImpl.applyACLToPrivateGw(NetworkACLManagerImpl.java:372)
>         at com.cloud.network.vpc.NetworkACLManagerImpl.replaceNetworkACLForPrivateGw(NetworkACLManagerImpl.java:175)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
>         at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
>         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
>         at $Proxy224.replaceNetworkACLForPrivateGw(Unknown Source)
>         at com.cloud.network.vpc.NetworkACLServiceImpl.replaceNetworkACLonPrivateGw(NetworkACLServiceImpl.java:257)
>         at org.apache.cloudstack.api.command.user.network.ReplaceNetworkACLListCmd.execute(ReplaceNetworkACLListCmd.java:109)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161)
>         at com.cloud.api.ApiAsyncJobDispatcher.runJobInContext(ApiAsyncJobDispatcher.java:109)
>         at com.cloud.api.ApiAsyncJobDispatcher$1.run(ApiAsyncJobDispatcher.java:66)
>         at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
>         at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
>         at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
>         at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:63)
>         at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:522)
>         at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
>         at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
>         at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
>         at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
>         at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> :



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message