Description of problem:
Attempting to remove a disk that has a snapshot that no longer exists will fail and report an NPE;
2017-12-05 08:01:50,748 ERROR [org.ovirt.engine.core.bll.RemoveImageCommand] (org.ovirt.thread.pool-6-thread-50) [3cc86586] Exception: java.lang.NullPointerException
at org.ovirt.engine.core.bll.ImagesHandler.prepareSnapshotConfigWithAlternateImage(ImagesHandler.java:835) [bll.jar:]
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a VM.
2. Add a disk.
3. Create a snapshot.
4. Delete the snapshots table entry.
5. 'Remove permanently' from the GUI.
I tried the scenario described in comment 0, and now the snapshot that was deleted from the db is removed automatically from the GUI (after a few seconds), is this the expected behavior?
(In reply to Natalie Gavrielov from comment #3)
> I tried the scenario described in comment 0, and now the snapshot that was
> deleted from the db is removed automatically from the GUI (after a few
> seconds), is this the expected behavior?
If a snapshot is removed from the DB I'd indeed expect it to be removed from the UI.
The verification here is to attempt to remove a disk that references that snapshot and see it doesn't crash horribly.
Now disk can be removed from the GUI, no NPE.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.