cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sowmya Krishnan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLOUDSTACK-3948) NPE while trying to create Autoscale VM profile as user
Date Tue, 30 Jul 2013 11:33:50 GMT
Sowmya Krishnan created CLOUDSTACK-3948:
-------------------------------------------

             Summary: NPE while trying to create Autoscale VM profile as user
                 Key: CLOUDSTACK-3948
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3948
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Management Server
    Affects Versions: 4.2.0
         Environment: 4.2, XS, NS as LB provider
            Reporter: Sowmya Krishnan
            Priority: Blocker
             Fix For: 4.2.0


Steps:
====

As a normal user, Create an isolated guest network with LB being offered by Netscaler
Deploy a VM in that network
Acquire an IP
Create autoscale configuration with the IP

Result:

Fails while create autoscale VM profile.
The same succeeds as admin. (Fails both inside and outside a VPC)

NPE:

2013-07-30 16:56:51,566 DEBUG [cloud.api.ApiServlet] (catalina-exec-1:null) ===START===  10.151.138.80
-- GET  command=createAutoScaleVmProfile&response=json&sessionkey=u7C80BN7ZSPSmSzc5F6mPlnv%2FtA%3D&zoneid=a7bd0a00-d793-4a6e-920c-dadd89bb520b&serviceofferingid=4bbe11c0-d45a-4967-8340-e0e0a37d340c&templateid=8c5b062d-cde9-416e-8059-6f3873ddd482&destroyvmgraceperiod=30&counterparam%5B0%5D.name=snmpcommunity&counterparam%5B0%5D.value=public&counterparam%5B1%5D.name=snmpport&counterparam%5B1%5D.value=161&_=1375183441455
2013-07-30 16:56:51,578 DEBUG [cloud.user.AccountManagerImpl] (catalina-exec-1:null) Access
to Acct[23-account2] granted to Acct[23-account2] by DomainChecker_EnhancerByCloudStack_d007a7cf
2013-07-30 16:56:51,581 DEBUG [cloud.user.AccountManagerImpl] (catalina-exec-1:null) Access
to Acct[23-account2] granted to Acct[23-account2] by DomainChecker_EnhancerByCloudStack_d007a7cf
2013-07-30 16:56:51,583 DEBUG [cloud.api.ApiDispatcher] (catalina-exec-1:null) InfrastructureEntity
name is:com.cloud.offering.ServiceOffering
2013-07-30 16:56:51,584 DEBUG [cloud.api.ApiDispatcher] (catalina-exec-1:null) ControlledEntity
name is:com.cloud.template.VirtualMachineTemplate
2013-07-30 16:56:51,588 DEBUG [cloud.user.AccountManagerImpl] (catalina-exec-1:null) Access
to Acct[23-account2] granted to Acct[23-account2] by DomainChecker_EnhancerByCloudStack_d007a7cf
2013-07-30 16:56:51,590 DEBUG [cloud.user.AccountManagerImpl] (catalina-exec-1:null) Access
to Acct[23-account2] granted to Acct[23-account2] by DomainChecker_EnhancerByCloudStack_d007a7cf
2013-07-30 16:56:51,593 DEBUG [cloud.user.AccountManagerImpl] (catalina-exec-1:null) Access
to Tmpl[203-VHD-203-2-12155117-e8d3-370a-b88f-b94605fa22a2 granted to Acct[23-account2] by
DomainChecker_EnhancerByCloudStack_d007a7cf
2013-07-30 16:56:51,600 ERROR [cloud.api.ApiServer] (catalina-exec-1:null) unhandled exception
executing api command: createAutoScaleVmProfile
java.lang.NullPointerException
        at com.cloud.network.as.AutoScaleManagerImpl.checkValidityAndPersist(AutoScaleManagerImpl.java:279)
        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at com.cloud.network.as.AutoScaleManagerImpl.createAutoScaleVmProfile(AutoScaleManagerImpl.java:345)
        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at org.apache.cloudstack.api.command.user.autoscale.CreateAutoScaleVmProfileCmd.create(CreateAutoScaleVmProfileCmd.java:229)
        at com.cloud.api.ApiDispatcher.dispatchCreateCmd(ApiDispatcher.java:104)
        at com.cloud.api.ApiServer.queueCommand(ApiServer.java:460)
        at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
        at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
        at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
        at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2268)
        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-30 16:56:51,607 DEBUG [cloud.api.ApiServlet] (catalina-exec-1:null) ===END===  10.151.138.80
-- GET  command=createAutoScaleVmProfile&response=json&sessionkey=u7C80BN7ZSPSmSzc5F6mPlnv%2FtA%3D&zoneid=a7bd0a00-d793-4a6e-920c-dadd89bb520b&serviceofferingid=4bbe11c0-d45a-4967-8340-e0e0a37d340c&templateid=8c5b062d-cde9-416e-8059-6f3873ddd482&destroyvmgraceperiod=30&counterparam%5B0%5D.name=snmpcommunity&counterparam%5B0%5D.value=public&counterparam%5B1%5D.name=snmpport&counterparam%5B1%5D.value=161&_=1375183441455



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