Bug 960169 - engine: support different status for disk copies on different domains
Summary: engine: support different status for disk copies on different domains
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: General
Version: ---
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: Tal Nisan
QA Contact: Elad
URL:
Whiteboard:
Depends On: ovirt_refactor_disk_class_hierarchy
Blocks: 879222 978975
TreeView+ depends on / blocked
 
Reported: 2013-05-06 15:33 UTC by Dafna Ron
Modified: 2022-03-07 08:27 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-07-02 08:08:14 UTC
oVirt Team: Storage
Embargoed:


Attachments (Terms of Use)
logs (312.30 KB, application/x-gzip)
2013-05-06 15:33 UTC, Dafna Ron
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-45021 0 None None None 2022-03-07 08:27:53 UTC

Description Dafna Ron 2013-05-06 15:33:09 UTC
Created attachment 744238 [details]
logs

Description of problem:

I have a template copied to 3 domains. 
I removed the template lv from only one of the domains using lvremove. 
when I tried to remove the copy of this image in UI from that domain only and vdsm returned "Image does not exist" engine change the template's image to illegal (even though there are 2 other domains with that image and it can still be used by the two other domains). 

Version-Release number of selected component (if applicable):

sf15

How reproducible:

100%

Steps to Reproduce:
1. create 3 domains
2. create a template and copy it to all of the domains
3. run lvremove on the template image only on one of the domains 
4. try to remove the image from the domain which you removed the lv from through the UI (template -> storage -> select the domain -> remove)
  
Actual results:

vdsm returns "Image does not exist" and the template's image becomes illegal even though the image exists on two other domains. 

Expected results:

we should not move the entire image to illegal, only that copy of the image for that specific domain. 

Additional info: logs

Comment 5 Maor 2014-01-02 16:04:38 UTC
This could be solved as part of BZ978975, if images will be mapped with new image id for each storage then it will be more simpler to set the image status per one image/storage.

Comment 7 Liron Aravot 2014-08-31 14:10:32 UTC
Currently the status of the image is part of the images table, which means that we'll have the same status for all the image copies on the different domains.
I'm changing this bug description to reflect that we need to support different image status on different domain and postponing to 3.6.

Allon, can you please mark this one as depends on the disks refactor bug (if we already have it opened?)

Comment 8 Allon Mureinik 2014-08-31 14:21:43 UTC
(In reply to Liron Aravot from comment #7)
> Allon, can you please mark this one as depends on the disks refactor bug (if
> we already have it opened?)
I cannot find one, but it definitely depends on it conceptually.
Tal - please open one and make this depend on it.

Comment 9 Red Hat Bugzilla Rules Engine 2015-11-30 18:58:53 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 10 Sandro Bonazzola 2016-05-02 09:52:21 UTC
Moving from 4.0 alpha to 4.0 beta since 4.0 alpha has been already released and bug is not ON_QA.

Comment 11 Yaniv Lavi 2016-05-23 13:15:26 UTC
oVirt 4.0 beta has been released, moving to RC milestone.

Comment 12 Yaniv Lavi 2016-05-23 13:20:39 UTC
oVirt 4.0 beta has been released, moving to RC milestone.

Comment 13 Tal Nisan 2018-07-02 08:08:14 UTC
Closing old bugs, please reopen if still needed, in any case patches are welcome.


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