cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wilder Rodrigues (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLOUDSTACK-6059) Restarting a VPC that has a Private Gateway fails due to a NPE, but message is not clear
Date Fri, 07 Feb 2014 14:23:19 GMT
Wilder Rodrigues created CLOUDSTACK-6059:
--------------------------------------------

             Summary: Restarting a VPC that has a Private Gateway fails due to a NPE, but
message is not clear
                 Key: CLOUDSTACK-6059
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6059
             Project: CloudStack
          Issue Type: Improvement
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Virtual Router
    Affects Versions: 4.2.1
         Environment: Cloudstack 4.2.1-SNAPSHOT, Linux
            Reporter: Wilder Rodrigues
            Priority: Minor


When trying to restart a VPC that has a Private Gateway configured, it fails with a message
"Failed to restart VPC". However, in the logs, we have observed that there is a NullPointerException
when calling createPrivateNicProfileForGateway(VpcVirtualNetworkApplianceManagerImpl.java:1295).

We know that's not possible to restart a VPC that has a Private Gateway, but we are opening
this issue just to have in mind that the method is currently returning "null" and the message
on the UI is not clear at all.

2014-02-07 10:53:22,639 DEBUG [db.Transaction.Transaction] (Job-Executor-75:job-224729 = [
bb0b666a-ef03-4712-bc62-f3e27c82282c ]) Rolling back the transaction: Time = 3 Name =  -AsyncJobManagerImp
l$1.run:494-Executors$RunnableAdapter.call:471-FutureTask$Sync.innerRun:334-FutureTask.run:166-ThreadPoolExecutor.runWorker:1110-ThreadPoolExecutor$Worker.run:603-Thread.run:679;
called by -Transac
tion.rollback:897-PrivateIpDaoImpl.allocateIpAddress:85-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:125-VpcVirtualNetworkApplianceManagerImpl.createPrivateNicProfileForGatew
ay:1294-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:125-VpcVirtualNetworkApplianceManagerImpl.createVpcRouterNetworks:1250-VpcVirtualNetworkApplianceManagerImpl.deployVpcRou
ter:329-VpcVirtualNetworkApplianceManagerImpl.findOrDeployVirtualRouterInVpc:227-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:125-VpcVirtualNetworkApplianceManagerImpl.deploy
VirtualRouterInVpc:176-VpcVirtualRouterElement.implementVpc:126-VpcManagerImpl.startVpc:992
2014-02-07 10:53:22,642 WARN  [network.vpc.VpcManagerImpl] (Job-Executor-75:job-224729 = [
bb0b666a-ef03-4712-bc62-f3e27c82282c ]) Failed to start vpc [VPC [237-SBP_VPC_AJENKINS1] due
to
java.lang.NullPointerException
        at com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl.createPrivateNicProfileForGateway(VpcVirtualNetworkApplianceManagerImpl.java:1295)
        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl.createVpcRouterNetworks(VpcVirtualNetworkApplianceManagerImpl.java:1250)
        at com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl.deployVpcRouter(VpcVirtualNetworkApplianceManagerImpl.java:329)
        at com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl.findOrDeployVirtualRouterInVpc(VpcVirtualNetworkApplianceManagerImpl.java:227)
        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl.deployVirtualRouterInVpc(VpcVirtualNetworkApplianceManagerImpl.java:176)
        at com.cloud.network.element.VpcVirtualRouterElement.implementVpc(VpcVirtualRouterElement.java:126)
        at com.cloud.network.vpc.VpcManagerImpl.startVpc(VpcManagerImpl.java:992)
        at com.cloud.network.vpc.VpcManagerImpl.startVpc(VpcManagerImpl.java:964)
        at com.cloud.network.vpc.VpcManagerImpl.restartVpc(VpcManagerImpl.java:1304)
        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at org.apache.cloudstack.api.command.user.vpc.RestartVPCCmd.execute(RestartVPCCmd.java:80)
        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)
2014-02-07 10:53:22,643 WARN  [network.vpc.VpcManagerImpl] (Job-Executor-75:job-224729 = [
bb0b666a-ef03-4712-bc62-f3e27c82282c ]) Failed to start vpc as a part of VPC [VPC [237-SBP_VPC_AJENKINS1]
restart process
2014-02-07 10:53:22,643 DEBUG [network.vpc.VpcManagerImpl] (Job-Executor-75:job-224729 = [
bb0b666a-ef03-4712-bc62-f3e27c82282c ]) Updating VPC [VPC [237-SBP_VPC_AJENKINS1] with restartRequired=tru
e
2014-02-07 10:53:22,664 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-75:job-224729
= [ bb0b666a-ef03-4712-bc62-f3e27c82282c ]) Complete async job-224729 = [ bb0b666a-ef03-4712-bc62-f3e27c8
2282c ], jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: Failed to restart
VPC



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

Mime
View raw message