Bug 1532630

Summary: Prevent deactivation of a data domain with ISO disks that are attached to running VMs
Product: [oVirt] ovirt-engine Reporter: Tal Nisan <tnisan>
Component: BLL.StorageAssignee: Tal Nisan <tnisan>
Status: CLOSED CURRENTRELEASE QA Contact: Avihai <aefrat>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: futureCC: bugs, lveyde
Target Milestone: ovirt-4.2.1Flags: rule-engine: ovirt-4.2+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.2.1.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-22 10:02:05 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:
Bug Depends On: 1536826    
Bug Blocks:    

Description Tal Nisan 2018-01-09 13:21:05 UTC
Description of problem:
Since ISOs can now reside on data domains rather than only on a designated ISO domains, moving a storage domain to maintenance should be forbidden in case the domain contains ISO images that are connected to running VMs

Comment 1 Avihai 2018-02-19 12:56:05 UTC
verified on engine 4.2.2-0.1.

Snippet from engine log - should '$VmNames' be there?

2018-02-19 14:50:22,960+02 WARN  [org.ovirt.engine.core.bll.storage.domain.DeactivateStorageDomainWithOvfUpdateCommand] (default task-20) [76fc633c-9879-47b4-96bf-437553219fe1] Validation of action 'DeactivateSt
orageDomainWithOvfUpdate' failed for user admin@internal-authz. Reasons: VAR__TYPE__STORAGE__DOMAIN,VAR__ACTION__DEACTIVATE,ERROR_CANNOT_DEACTIVATE_STORAGE_DOMAIN_WITH_ISO_ATTACHED,$VmNames vm1

Comment 2 Sandro Bonazzola 2018-02-22 10:02:05 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.