mihle opened a new issue #3584: Unexpected Error when creating VM Snapshot on Stopped VM URL: https://github.com/apache/cloudstack/issues/3584 <!-- Verify first that your issue/request is not already reported on GitHub. Also test if the latest release and master branch are affected too. Always add information AFTER of these HTML comments, but no need to delete the comments. --> ##### ISSUE TYPE <!-- Pick one below and delete the rest --> * Bug Report ##### COMPONENT NAME <!-- Categorize the issue, e.g. API, VR, VPN, UI, etc. --> ~~~ UI ~~~ ##### CLOUDSTACK VERSION <!-- New line separated list of affected versions, commit ID for issues on master branch. --> ~~~ 4.11.2 (from Shape Blue Repo) ~~~ ##### CONFIGURATION <!-- Information about the configuration if relevant, e.g. basic network, advanced networking, etc. N/A otherwise --> ##### OS / ENVIRONMENT <!-- Information about the environment if relevant, N/A otherwise --> Xenserver 7.1 ##### SUMMARY <!-- Explain the problem/feature briefly --> Cannot create VM Snapshot on stopped VM. Once the VM starts, the VM snapshot works. This is occurring with Xen Hypervisor. Unexpected error in the UI caused by an NPE from this line: VMSnapshotManagerImpl.orchestrateCreateVMSnapshot _jobMgr.marshallResultObject(new Long(snapshot.getId()))); <==NPE From the Logs: 2019-09-05 17:58:01,652 ERROR [c.c.a.ApiAsyncJobDispatcher] (API-Job-Executor-79:ctx-e46e6eeb job-2563) (logid:e230b770) Unexpected exception while executing org.apache.cloudstack.api.command.user.vmsnapshot.CreateVMSnapshotCmd java.lang.RuntimeException: Unexpected exception at com.cloud.vm.snapshot.VMSnapshotManagerImpl.createVMSnapshot(VMSnapshotManagerImpl.java:482) ... Caused by: java.lang.NullPointerException at com.cloud.vm.snapshot.VMSnapshotManagerImpl.orchestrateCreateVMSnapshot(VMSnapshotManagerImpl.java:1199) at sun.reflect.GeneratedMethodAccessor772.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ##### STEPS TO REPRODUCE <!-- For bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate. For new features, show how the feature would be used. --> <!-- Paste example playbooks or commands between quotes below --> ~~~ Create default centos VM. Stop VM. Create VM Snapshot yields an Unexpected Error. Starting the VM, you are able to create a VM Snapshot. ~~~ <!-- You can also paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!-- What did you expect to happen when running the steps above? --> ~~~ VM Snapshot will be created. ~~~ ##### ACTUAL RESULTS <!-- What actually happened? --> Unexpected Error in the UI. <!-- Paste verbatim command output between quotes below --> ~~~ ~~~
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
