Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Created attachment 486476[details]
logs
Description of problem:
restarting vdsm while deleting snapshot will cause task to fail.
if image was already deleted in storage than trying to delete snapshot again will cause VM to get stuck in image locked.
Version-Release number of selected component (if applicable):
ic105
dsm-4.9-54.el6.x86_64
vdsm-debuginfo-4.9-51.el6.x86_64
vdsm-cli-4.9-54.el6.x86_64
vdsm-hook-vhostmd-4.9-53.el6.x86_64
qemu-kvm-0.12.1.2-2.146.el6.x86_64
qemu-img-0.12.1.2-2.146.el6.x86_64
gpxe-roms-qemu-0.9.7-6.4.el6.noarch
How reproducible:
100%
Steps to Reproduce:
1. create 3 snapshots
2. delete middle snapshot
3. wait 15-20 seconds - restart vdsmd
4. try to delete snapshot again
Actual results:
task will fail the first time. second time, the VM will get stuck on image locked.
Expected results:
we should implement roll-forward.
Bug for this was opened for backend - we also need the same from vdsm.
bug 689250 was opened for RHEL5 on same issue with different results.
Additional info: logs (the error from the weekend is in the attached log as well)
I left the VM over the weekend. eventually you will get error:
Thread-24::DEBUG::2011-03-20 08:44:27,756::task::491::TaskManager.Task::(_debug) Task 2cfd1ac0-2734-43e7-a575-25581ae96274: moving from state init -> state preparing
Thread-24::ERROR::2011-03-20 08:44:27,931::spm::120::Storage.SPM.Secure::(run) SPM: spm method call rejected: Not SPM!!! method: public_mergeSnapshots, called by: _run
Thread-24::ERROR::2011-03-20 08:44:27,931::task::854::TaskManager.Task::(_setError) Unexpected error
Traceback (most recent call last):
File "/usr/share/vdsm/storage/task.py", line 862, in _run
return fn(*args, **kargs)
File "/usr/share/vdsm/storage/spm.py", line 121, in run
raise se.SpmStatusError(self.name)
SpmStatusError: Not SPM: ('public_mergeSnapshots',)
verified - vdsm-4.9-58.el6 - vm no longer hangs in locked state, appropriate message is shown to user in rhevm, vdsmd service restarts smoothly and end successfully.