Bug 1720110 - Unable to edit pool that is delete protected
Summary: Unable to edit pool that is delete protected
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Backend.Core
Version: 4.3.2.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.3.5
: 4.3.5.1
Assignee: bugs@ovirt.org
QA Contact: Polina
URL:
Whiteboard:
Depends On: 1659161
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-06-13 07:31 UTC by Steven Rosenberg
Modified: 2019-07-30 14:08 UTC (History)
12 users (show)

Fixed In Version: ovirt-engine-4.3.5.1
Clone Of: 1659161
Environment:
Last Closed: 2019-07-30 14:08:15 UTC
oVirt Team: Virt
Embargoed:
pm-rhel: ovirt-4.3+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 100799 0 'None' 'MERGED' 'engine: Block Delete Protected Template change' 2019-11-19 13:12:46 UTC

Comment 1 RHEL Program Management 2019-06-13 07:32:39 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 2 Polina 2019-06-18 10:57:35 UTC
Tested on ovirt-engine-4.3.5-0.1.el7.noarch.
Steps to Reproduce:

Step 1) Create new template Test1_T from existing VM with Delete Protection enabled.

Step 2) Create pool TestPool from Template Test1_T (base version) with Delete Protection enabled.  Configure Number of VMs=5. Note that Delete Protection setting for TestPool is inherited from the Template.  Leave it enabled.

Step 3) Create new template with Root Template Test1_T and Sub-Version Name 20181212-2. Note that the new template Sub-Version has Delete Protection Enabled.

Step 4) Edit TestPool.  Change the Template to Test1_T Subversion 20181212-2.  

Result: No ERROR.
Though the pool VMs are detached from the pool after this (Stateless is checked for them) and the pool could not be edited again. only Remove option is available for it.

Comment 3 Steven Rosenberg 2019-06-18 11:05:22 UTC
(In reply to Polina from comment #2)
> Tested on ovirt-engine-4.3.5-0.1.el7.noarch.
> Steps to Reproduce:
> 
> Step 1) Create new template Test1_T from existing VM with Delete Protection
> enabled.
> 
> Step 2) Create pool TestPool from Template Test1_T (base version) with
> Delete Protection enabled.  Configure Number of VMs=5. Note that Delete
> Protection setting for TestPool is inherited from the Template.  Leave it
> enabled.
> 
> Step 3) Create new template with Root Template Test1_T and Sub-Version Name
> 20181212-2. Note that the new template Sub-Version has Delete Protection
> Enabled.
> 
> Step 4) Edit TestPool.  Change the Template to Test1_T Subversion
> 20181212-2.  
> 
> Result: No ERROR.
> Though the pool VMs are detached from the pool after this (Stateless is
> checked for them) and the pool could not be edited again. only Remove option
> is available for it.
This issue was recently back ported. Please verify you are using the correct version.

Comment 4 Polina 2019-06-18 11:12:07 UTC
yes, thank you . I see that patch tagged ovirt-engine-4.3.5.1 . 
we only have 4.3.5-0.1 build . will be re-tested later

Comment 5 Polina 2019-06-18 11:12:18 UTC
yes, thank you . I see that patch tagged ovirt-engine-4.3.5.1 . 
we only have 4.3.5-0.1 build . will be re-tested later

Comment 6 Polina 2019-06-24 08:22:21 UTC
tested on ovirt-engine-4.3.5.1-0.1.el7.noarch

Editing the pool with a change of template to subversion returns now "Cannot change the VM Template when the VMs created are set to Delete Protected."

Comment 7 Sandro Bonazzola 2019-07-30 14:08:15 UTC
This bugzilla is included in oVirt 4.3.5 release, published on July 30th 2019.

Since the problem described in this bug report should be
resolved in oVirt 4.3.5 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.


Note You need to log in before you can comment on or make changes to this bug.