You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2013/05/20 15:17:15 UTC

[jira] [Commented] (CLOUDSTACK-2379) [Automation] destroy VM fails with NPE

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

ASF subversion and git services commented on CLOUDSTACK-2379:
-------------------------------------------------------------

Commit f5c8e386e5881c1d7aad1f85922752621bb96c1a in branch refs/heads/master from Devdeep Singh <de...@gmail.com>
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=f5c8e38 ]

CLOUDSTACK-2379: Fix for issue destroy vm causing NPE. Made the following changes.
1. Made a fix to make sure a null object is added to the exception.
2. Also fixed the marvin test cases for the feature. Account cleanup will remove the vms deployed for the account. There is no need to explicitly delete the vms for the account.
3. Fixed the assertion checks for the vm created for an account. If there are multiple vms for an account, the test script needs to compare the ids with the correct instance.

                
> [Automation] destroy VM fails with NPE
> --------------------------------------
>
>                 Key: CLOUDSTACK-2379
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2379
>             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
>            Reporter: Prasanna Santhanam
>            Assignee: Devdeep Singh
>            Priority: Critical
>             Fix For: 4.2.0
>
>
> When running the checkin tests for userdata the following NPE was observed during destroyVM
> 2013-05-08 14:18:46,071 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-44:job-41) Unexpected exception while executing org.apache.cloudstack.api.command.user.vm.DestroyVMCmd
> java.lang.NullPointerException
> 	at com.cloud.utils.AnnotationHelper.getTableName(AnnotationHelper.java:32)
> 	at com.cloud.utils.exception.CloudRuntimeException.addProxyObject(CloudRuntimeException.java:59)
> 	at com.cloud.vm.UserVmManagerImpl.destroyVm(UserVmManagerImpl.java:3109)
> 	at com.cloud.vm.UserVmManagerImpl.destroyVm(UserVmManagerImpl.java:1735)
> 	at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> 	at org.apache.cloudstack.api.command.user.vm.DestroyVMCmd.execute(DestroyVMCmd.java:100)
> 	at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
> 	at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
> 	at java.lang.Thread.run(Thread.java:680)
> Run log:
> ~/workspace/cloudstack/incubator-cloudstack(branch:master) ยป mvn -Pdeveloper,marvin.test -pl :cloud-marvin integration-test -Dmarvin.config=setup/dev/advanced.cfg                                                              tsp@cloud-2
> [INFO] Scanning for projects...
> [INFO]                                                                         
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Apache CloudStack marvin 4.2.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- gmaven-plugin:1.5:execute (setproperty) @ cloud-marvin ---
> [INFO] 
> [INFO] --- exec-maven-plugin:1.2.1:exec (generate-sources) @ cloud-marvin ---
> [INFO] 
> [INFO] --- maven-remote-resources-plugin:1.3:process (default) @ cloud-marvin ---
> [INFO] 
> [INFO] --- maven-site-plugin:3.1:attach-descriptor (attach-descriptor) @ cloud-marvin ---
> [INFO] 
> [INFO] --- exec-maven-plugin:1.2.1:exec (integration-test) @ cloud-marvin ---
> test DeployVM in anti-affinity groups ... ok
> Test userdata as GET, size > 2k ... ok
> Test userdata as POST, size > 2k ... ok
> ERROR
> Test to create disk offering ... ok
> Test to update existing disk offering ... ok
> Test to delete disk offering ... ok
> Test guest vlan range dedication ... ok
> Test to update a physical network and extend its vlan ... ok
> Test public IP range dedication ... ok
> Test for create region ... ok
> Test advanced zone virtual router ... ok
> Test Deploy Virtual Machine ... ok
> ======================================================================
> ERROR: test suite for <class 'integration.smoke.test_deploy_vm_with_userdata.TestDeployVmWithUserData'>
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/Library/Python/2.7/site-packages/nose/suite.py", line 227, in run
>     self.tearDown()
>   File "/Library/Python/2.7/site-packages/nose/suite.py", line 350, in tearDown
>     self.teardownContext(ancestor)
>   File "/Library/Python/2.7/site-packages/nose/suite.py", line 366, in teardownContext
>     try_run(context, names)
>   File "/Library/Python/2.7/site-packages/nose/util.py", line 469, in try_run
>     return func()
>   File "/Users/tsp/workspace/cloudstack/incubator-cloudstack/test/integration/smoke/test_deploy_vm_with_userdata.py", line 146, in tearDownClass
>     raise Exception("Warning: Exception during cleanup : %s" % e)
> Exception: Warning: Exception during cleanup : Execute cmd: asyncquery failed, due to: {errorcode : 530, errortext : u'Command failed due to Internal Server Error'}
> -------------------- >> begin captured logging << --------------------
> requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): localhost
> requests.packages.urllib3.connectionpool: DEBUG: "GET /client/api?signature=uYYlM0Tl%2FedzbdQakRB3zVDGiqE%3D&apiKey=vR5WoENj7MqW-yT-8Y0v5OvRiNmAj41JH_E0mKc1mt_xDV39fJkS5kW41w3zNVYLJIsNH5jVpOXHhXkXp7_hLA&command=deleteAccount&id=9db85ca2-f46a-4deb-8b73-6b6e16a34a3d&response=json HTTP/1.1" 200 78
> requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): localhost
> requests.packages.urllib3.connectionpool: DEBUG: "GET /client/api?signature=GD8TlBbT2dmhPgnZIlz5Z8bQ384%3D&apiKey=vR5WoENj7MqW-yT-8Y0v5OvRiNmAj41JH_E0mKc1mt_xDV39fJkS5kW41w3zNVYLJIsNH5jVpOXHhXkXp7_hLA&command=queryAsyncJobResult&response=json&jobid=cc8880ce-0461-4ff7-a21e-86c791f369e4 HTTP/1.1" 200 343
> requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): localhost
> requests.packages.urllib3.connectionpool: DEBUG: "GET /client/api?signature=GD8TlBbT2dmhPgnZIlz5Z8bQ384%3D&apiKey=vR5WoENj7MqW-yT-8Y0v5OvRiNmAj41JH_E0mKc1mt_xDV39fJkS5kW41w3zNVYLJIsNH5jVpOXHhXkXp7_hLA&command=queryAsyncJobResult&response=json&jobid=cc8880ce-0461-4ff7-a21e-86c791f369e4 HTTP/1.1" 200 397
> requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): localhost
> requests.packages.urllib3.connectionpool: DEBUG: "GET /client/api?signature=lBy0mJTDJGB83PtPZXxvLtMSjGQ%3D&apiKey=vR5WoENj7MqW-yT-8Y0v5OvRiNmAj41JH_E0mKc1mt_xDV39fJkS5kW41w3zNVYLJIsNH5jVpOXHhXkXp7_hLA&command=destroyVirtualMachine&id=67e4562a-9aab-47e8-82f8-e76ff25d6c0e&response=json HTTP/1.1" 200 86
> requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): localhost
> requests.packages.urllib3.connectionpool: DEBUG: "GET /client/api?signature=BQ2ZBpCBUJfDZIrvtXr6%2FK16VlI%3D&apiKey=vR5WoENj7MqW-yT-8Y0v5OvRiNmAj41JH_E0mKc1mt_xDV39fJkS5kW41w3zNVYLJIsNH5jVpOXHhXkXp7_hLA&command=queryAsyncJobResult&response=json&jobid=55143f7d-5ff2-4cc2-9bff-7b6ab3e36a78 HTTP/1.1" 200 423
> requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): localhost
> requests.packages.urllib3.connectionpool: DEBUG: "GET /client/api?signature=BQ2ZBpCBUJfDZIrvtXr6%2FK16VlI%3D&apiKey=vR5WoENj7MqW-yT-8Y0v5OvRiNmAj41JH_E0mKc1mt_xDV39fJkS5kW41w3zNVYLJIsNH5jVpOXHhXkXp7_hLA&command=queryAsyncJobResult&response=json&jobid=55143f7d-5ff2-4cc2-9bff-7b6ab3e36a78 HTTP/1.1" 200 448
> --------------------- >> end captured logging << ---------------------
> ----------------------------------------------------------------------
> Ran 12 tests in 97.796s
> FAILED (errors=1)
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1:46.160s
> [INFO] Finished at: Wed May 08 14:23:38 GMT+05:30 2013
> [INFO] Final Memory: 23M/81M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (integration-test) on project cloud-marvin: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

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