Bug 253561

Summary: virtinst - check if image file is in use by another domain
Product: Red Hat Enterprise Linux 5 Reporter: Bryn M. Reeves <bmr>
Component: python-virtinstAssignee: Cole Robinson <crobinso>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 5.1CC: dmair, jplans, tao, xen-maint
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHEA-2008-0371 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-21 16:45:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 246139, 246258, 296411, 372911    
Attachments:
Description Flags
patch from upstream hg none

Description Bryn M. Reeves 2007-08-20 16:22:54 UTC
Description of problem:
The current RHEL5 python-virtinst will check and warn if the user attempts an
installation to a device that is currently in use by another domain (including
inactive domains). The same check is not applied to regular files (loop or tap
devices).

This was fixed upstream by the following commit:
http://hg.et.redhat.com/virt/applications/virtinst--devel?cs=3e2bf458732a

Version-Release number of selected component (if applicable):
python-virtinst-0.103.0-2.el5

How reproducible:
100%

Steps to Reproduce:
1. Configure a domain using a regular file as its storage
2. De-activate the domain
3. Attempt to configure a domain using the same regular file as was used in step 1.
  
Actual results:
No warnings that the image is already in use by another domain.

Expected results:
A warning is output, as in the case for domains using block device backed storage.

Additional info:

Comment 1 Bryn M. Reeves 2007-08-20 16:22:56 UTC
Created attachment 161898 [details]
patch from upstream hg

Comment 4 RHEL Program Management 2007-10-16 03:46:41 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 10 Cole Robinson 2008-01-17 18:13:57 UTC
We are rebasing to virtinst-0.300.2, which fixes this bug:

$ brew latest-pkg dist-5E-qu-candidate python-virtinst
Build                                     Tag                   Built by
----------------------------------------  --------------------  ----------------
python-virtinst-0.300.2-1.el5             dist-5E-qu-candidate  berrange

Comment 12 Bryn M. Reeves 2008-01-28 13:51:31 UTC
Removing rhel_beta group - applies to GA & nothing confidential in public comments.

Comment 15 errata-xmlrpc 2008-05-21 16:45:00 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2008-0371.html