Bug 1104672 - prepareVolume fails to activate volume
Summary: prepareVolume fails to activate volume
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: oVirt
Classification: Retired
Component: vdsm
Version: 3.5
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 3.5.0
Assignee: Federico Simoncelli
QA Contact: Aharon Canan
URL:
Whiteboard: storage
Depends On:
Blocks: 1036731 1153278
TreeView+ depends on / blocked
 
Reported: 2014-06-04 13:30 UTC by Jiri Moskovcak
Modified: 2016-02-10 18:19 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-06-05 10:49:08 UTC
oVirt Team: Storage
Embargoed:


Attachments (Terms of Use)
vdsm log (1.74 MB, text/plain)
2014-06-04 13:30 UTC, Jiri Moskovcak
no flags Details

Description Jiri Moskovcak 2014-06-04 13:30:13 UTC
Created attachment 902185 [details]
vdsm log

Description of problem:
When trying to activate volume using prepareVolume it fails with:  ImagePathError: Image path does not exist or cannot be accessed/created: ('/rhev/data-center/32dab0ff-9eaa-41c7-ae50-4e6ef6355512/831ef374-8947-47f2-938f-5ec938f4fcef/images/8f3f3871-6aab-4f26-811f-c8e1803414fd',)

Version-Release number of selected component (if applicable):
vdsm-4.14.6-0.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
<python_snippet>
from vdsm import vdscli

spUUID='32dab0ff-9eaa-41c7-ae50-4e6ef6355512'
sdUUID='831ef374-8947-47f2-938f-5ec938f4fcef'
lockspace_volume_UUID='81fbcbaf-2264-4fa8-831f-da5bf9b5281b'
lockspace_image_UUID='8f3f3871-6aab-4f26-811f-c8e1803414fd'

con = vdscli.connect()
response = con.prepareVolume(
           sdUUID,
           spUUID,
           lockspace_image_UUID,
           lockspace_volume_UUID
           )

print response
</python_snippet>


Actual results:
Volume not activated

Expected results:
Volume activated

Additional info:
The image did exist before vdsm restart. VDSM deactivated the volume because it doesn't know the volume and removed the image and is failing to activate it.

Comment 1 Jiri Moskovcak 2014-06-04 14:00:53 UTC
Steps to reproduce:
1. create a volume using createVolume() call from vdsm api
2. restart vdsm (which deactivates that volume)
3. try to call prepareVolume() to activate the volume created in step 1.

Comment 2 Federico Simoncelli 2014-06-04 17:22:58 UTC
We should just tackle this with bug 1092166.
prepareVolume is not in use since a while and trying to fix it is probably more risky than just expose prepareImage.

Comment 3 Jiri Moskovcak 2014-06-05 06:57:46 UTC
or we can merge http://gerrit.ovirt.org/27880 because even if the prepareVolume (or Image) works it still means that at some point vdsm deactivated the volume which might be racy

Comment 4 Federico Simoncelli 2014-06-05 10:49:08 UTC
Closing this as wontfix since prepareVolume is deprecated. We'll continue on bug 1092166. I already updated bug 1036731 to reflect the new dependency.


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