Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1532870

Summary: Meaningless validation message for suspended VM hibernation disks remove attempt
Product: [oVirt] ovirt-engine Reporter: Elad <ebenahar>
Component: BLL.StorageAssignee: Tal Nisan <tnisan>
Status: CLOSED CURRENTRELEASE QA Contact: Elad <ebenahar>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.2.1CC: bugs, tnisan
Target Milestone: ovirt-4.2.1Flags: rule-engine: ovirt-4.2+
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-12 11:57:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
engine.log none

Description Elad 2018-01-09 23:11:30 UTC
Created attachment 1379270 [details]
engine.log

Description of problem:
Suspended VM hibernation disks removal fails with the following:

2018-01-10 01:04:36,863+02 WARN  [org.ovirt.engine.core.bll.storage.disk.RemoveDiskCommand] (default task-17) [8f68473e-f35b-42a1-b7b6-4002fb75bdd7] Validation of action 'RemoveDisk' failed for user admin@internal-authz. Reasons: VAR__ACTION__REMOVE,VAR__TYPE__DISK

Version-Release number of selected component (if applicable):
rhvm-4.2.1-0.2.el7.noarch

How reproducible:
Always

Steps to Reproduce:
1. Suspend a VM
2. Try to remove its hibernation_metadata or hibernation_memory newly created disks

Actual results:
Hibernation disks removal fails with the mentioned warning

Expected results:
Hibernation disks removal should succeed or blocked

Additional info:
engine.log

Comment 1 Elad 2018-01-21 16:03:09 UTC
Suspended VM's hibernation disks removal attempt is blocked with a proper message

2018-01-21 18:01:53,699+02 WARN  [org.ovirt.engine.core.bll.storage.disk.RemoveDiskCommand] (default task-28) [699d45b0-7aa5-438a-97cd-a0414264fc7c] Validation of action 'RemoveDisk' failed for user admin@internal-authz. Reasons: VAR__ACTION__REMOVE,VAR__TYPE__DISK,ACTION_TYPE_FAILED_CANNOT_REMOVE_HIBERNATION_DISK


Used:
rhvm-4.2.1.2-0.1.el7.noarch

Comment 2 Sandro Bonazzola 2018-02-12 11:57:51 UTC
This bugzilla is included in oVirt 4.2.1 release, published on Feb 12th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.1 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.