<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 8, 2016 at 2:22 PM, Nir Soffer <span dir="ltr">&lt;<a href="mailto:nsoffer@redhat.com" target="_blank">nsoffer@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Sun, May 8, 2016 at 12:56 PM, Maor Lipchuk &lt;<a href="mailto:mlipchuk@redhat.com">mlipchuk@redhat.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I&#39;ve been trying to remove a single snapshot and consistently fail with the<br>
&gt; following error (see [1]).<br>
&gt;<br>
&gt; Those are my steps:<br>
&gt; 1. Create a VM + Disk<br>
&gt; 2. Create a snapshot<br>
&gt; 3. Remove the snapshot<br>
&gt;<br>
&gt; My VDSM is the latest (commit d7796fb8bdd5b424ecad54dc36cb58cd477b3224)<br>
&gt;<br>
&gt; Is there a bug open on it? or even better, fixing patches?<br>
&gt;<br>
&gt; [1]<br>
&gt; 5b61867b-6dd4-4224-be4a-859904e3298b::DEBUG::2016-05-08<br>
&gt; 12:34:22,296::fileVolume::573::Storage.Volume::(rename) Renaming<br>
&gt; /rhev/data-center/mnt/10.35.16.43:_export_data9/e562ec63-b734-4554-b8<br>
&gt; 2c-7fc8314c352f/images/c26b2f00-563f-4965-8bcd-e7ca8ead1625/903f5a13-f7e4-4222-bb02-303019756bb9.lease<br>
&gt; to<br>
&gt; /rhev/data-center/mnt/10.35.16.43:_export_data9/e562ec63-b734-4554-b82c-7fc8314c352f<br>
&gt; /images/c26b2f00-563f-4965-8bcd-e7ca8ead1625/_remove_me_LGQXBkpd_903f5a13-f7e4-4222-bb02-303019756bb9.lease<br>
&gt; 5b61867b-6dd4-4224-be4a-859904e3298b::ERROR::2016-05-08<br>
&gt; 12:34:22,298::image::1338::Storage.Image::(merge) can&#39;t set attribute<br>
&gt; Traceback (most recent call last):<br>
&gt;   File &quot;/usr/share/vdsm/storage/image.py&quot;, line 1321, in merge<br>
&gt;     [vols[vName] for vName in chain])<br>
&gt;   File &quot;/usr/share/vdsm/storage/image.py&quot;, line 1146, in _baseRawVolumeMerge<br>
&gt;     srcVol.rename(tmpUUID)<br>
&gt;   File &quot;/usr/share/vdsm/storage/fileVolume.py&quot;, line 580, in rename<br>
&gt;     self._manifest.volumePath = volPath<br>
&gt; AttributeError: can&#39;t set attribute<br>
<br>
</div></div>I think this is a bug introduced during the sdm refactorings, and I<br>
also reproduced it once<br>
but did not have time to investigate it yet.<br>
<br>
If the code expect the replace a volume path during runtime, we should<br>
have a setter:<br>
<br>
@property<br>
def volumePath(self):<br>
    return self._volumePath<br>
<br>
@volumePath.setter<br>
def volumePath(self, value):<br>
    self._volumePath = value<br>
<br>
You can try add this to the manifest class and see if it fixes this issue.<br></blockquote><div><br></div><div><br></div><div>Which class is it? Where is it located?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
Nir<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
&gt; 5b61867b-6dd4-4224-be4a-859904e3298b::DEBUG::2016-05-08<br>
&gt; 12:34:22,299::resourceManager::628::Storage.ResourceManager::(releaseResource)<br>
&gt; Trying to release resource &#39;e562ec63-b734-4554-b82c-7fc<br>
&gt; 8314c352f_imageNS.c26b2f00-563f-4965-8bcd-e7ca8ead1625&#39;<br>
&gt; 5b61867b-6dd4-4224-be4a-859904e3298b::DEBUG::2016-05-08<br>
&gt; 12:34:22,299::resourceManager::647::Storage.ResourceManager::(releaseResource)<br>
&gt; Released resource &#39;e562ec63-b734-4554-b82c-7fc8314c352f<br>
&gt; _imageNS.c26b2f00-563f-4965-8bcd-e7ca8ead1625&#39; (0 active users)<br>
&gt; 5b61867b-6dd4-4224-be4a-859904e3298b::DEBUG::2016-05-08<br>
&gt; 12:34:22,299::resourceManager::653::Storage.ResourceManager::(releaseResource)<br>
&gt; Resource &#39;e562ec63-b734-4554-b82c-7fc8314c352f_imageNS.<br>
&gt; c26b2f00-563f-4965-8bcd-e7ca8ead1625&#39; is free, finding out if anyone is<br>
&gt; waiting for it.<br>
&gt; 5b61867b-6dd4-4224-be4a-859904e3298b::DEBUG::2016-05-08<br>
&gt; 12:34:22,299::resourceManager::628::Storage.ResourceManager::(releaseResource)<br>
&gt; Trying to release resource &#39;e562ec63-b734-4554-b82c-7fc<br>
&gt; 8314c352f_volumeNS.903f5a13-f7e4-4222-bb02-303019756bb9&#39;<br>
&gt; 5b61867b-6dd4-4224-be4a-859904e3298b::DEBUG::2016-05-08<br>
&gt; 12:34:22,299::resourceManager::647::Storage.ResourceManager::(releaseResource)<br>
&gt; Released resource &#39;e562ec63-b734-4554-b82c-7fc8314c352f<br>
&gt; _volumeNS.903f5a13-f7e4-4222-bb02-303019756bb9&#39; (0 active users)<br>
&gt; 5b61867b-6dd4-4224-be4a-859904e3298b::DEBUG::2016-05-08<br>
&gt; 12:34:22,299::resourceManager::653::Storage.ResourceManager::(releaseResource)<br>
&gt; Resource &#39;e562ec63-b734-4554-b82c-7fc8314c352f_volumeNS<br>
&gt; .903f5a13-f7e4-4222-bb02-303019756bb9&#39; is free, finding out if anyone is<br>
&gt; waiting for it.<br>
&gt; 5b61867b-6dd4-4224-be4a-859904e3298b::DEBUG::2016-05-08<br>
&gt; 12:34:22,299::resourceManager::661::Storage.ResourceManager::(releaseResource)<br>
&gt; No one is waiting for resource &#39;e562ec63-b734-4554-b82c<br>
&gt; -7fc8314c352f_volumeNS.903f5a13-f7e4-4222-bb02-303019756bb9&#39;, Clearing<br>
&gt; records.<br>
&gt; 5b61867b-6dd4-4224-be4a-859904e3298b::DEBUG::2016-05-08<br>
&gt; 12:34:22,299::resourceManager::628::Storage.ResourceManager::(releaseResource)<br>
&gt; Trying to release resource &#39;e562ec63-b734-4554-b82c-7fc<br>
&gt; 8314c352f_volumeNS.e6d9874a-8225-44e1-9440-0a3cfd4ea7fc&#39;<br>
&gt; 5b61867b-6dd4-4224-be4a-859904e3298b::DEBUG::2016-05-08<br>
&gt; 12:34:22,299::resourceManager::647::Storage.ResourceManager::(releaseResource)<br>
&gt; Released resource &#39;e562ec63-b734-4554-b82c-7fc8314c352f<br>
&gt; _volumeNS.e6d9874a-8225-44e1-9440-0a3cfd4ea7fc&#39; (0 active users)<br>
&gt; 5b61867b-6dd4-4224-be4a-859904e3298b::DEBUG::2016-05-08<br>
&gt; 12:34:22,300::resourceManager::653::Storage.ResourceManager::(releaseResource)<br>
&gt; Resource &#39;e562ec63-b734-4554-b82c-7fc8314c352f_volumeNS<br>
&gt; .e6d9874a-8225-44e1-9440-0a3cfd4ea7fc&#39; is free, finding out if anyone is<br>
&gt; waiting for it.<br>
&gt; 5b61867b-6dd4-4224-be4a-859904e3298b::DEBUG::2016-05-08<br>
&gt; 12:34:22,300::resourceManager::661::Storage.ResourceManager::(releaseResource)<br>
&gt; No one is waiting for resource &#39;e562ec63-b734-4554-b82c<br>
&gt; -7fc8314c352f_volumeNS.e6d9874a-8225-44e1-9440-0a3cfd4ea7fc&#39;, Clearing<br>
&gt; records.<br>
&gt; 5b61867b-6dd4-4224-be4a-859904e3298b::DEBUG::2016-05-08<br>
&gt; 12:34:22,300::resourceManager::661::Storage.ResourceManager::(releaseResource)<br>
&gt; No one is waiting for resource &#39;e562ec63-b734-4554-b82c<br>
&gt; -7fc8314c352f_imageNS.c26b2f00-563f-4965-8bcd-e7ca8ead1625&#39;, Clearing<br>
&gt; records.<br>
&gt; 5b61867b-6dd4-4224-be4a-859904e3298b::ERROR::2016-05-08<br>
&gt; 12:34:22,300::task::868::Storage.TaskManager.Task::(_setError)<br>
&gt; Task=`5b61867b-6dd4-4224-be4a-859904e3298b`::Unexpected error<br>
&gt; Traceback (most recent call last):<br>
&gt;   File &quot;/usr/share/vdsm/storage/task.py&quot;, line 875, in _run<br>
&gt;     return fn(*args, **kargs)<br>
&gt;   File &quot;/usr/share/vdsm/storage/task.py&quot;, line 334, in run<br>
&gt;     return self.cmd(*self.argslist, **self.argsdict)<br>
&gt;   File &quot;/usr/lib/python2.7/site-packages/vdsm/storage/securable.py&quot;, line<br>
&gt; 78, in wrapper<br>
&gt;     return method(self, *args, **kwargs)<br>
&gt;   File &quot;/usr/share/vdsm/storage/sp.py&quot;, line 1862, in mergeSnapshots<br>
&gt;     sdUUID, vmUUID, imgUUID, ancestor, successor, postZero)<br>
&gt;   File &quot;/usr/share/vdsm/storage/image.py&quot;, line 1339, in merge<br>
&gt; :    raise se.SourceImageActionError(imgUUID, sdUUID, str(e))<br>
&gt; SourceImageActionError: Error during source image manipulation:<br>
&gt; &quot;image=c26b2f00-563f-4965-8bcd-e7ca8ead1625, source<br>
&gt; domain=e562ec63-b734-4554-b82c-7fc8314c352f: can&#39;t set attribute&quot;<br>
&gt; 5b61867b-6dd4-4224-be4a-859904e3298b::DEBUG::2016-05-08<br>
&gt; 12:34:22,300::task::887::Storage.TaskManager.Task::(_run)<br>
&gt; Task=`5b61867b-6dd4-4224-be4a-859904e3298b`::Task._run:<br>
&gt; 5b61867b-6dd4-4224-be4a-859904e3298b () {} failed - stopping task<br>
&gt; 5b61867b-6dd4-4224-be4a-859904e3298b::DEBUG::2016-05-08<br>
&gt; 12:34:22,300::task::1248::Storage.TaskManager.Task::(stop)<br>
&gt; Task=`5b61867b-6dd4-4224-be4a-859904e3298b`::stopping in state running<br>
&gt; (force False)<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Regards,<br>
&gt; Maor<br>
&gt;<br>
&gt;<br>
</div></div><div class="HOEnZb"><div class="h5">&gt; _______________________________________________<br>
&gt; vdsm-devel mailing list<br>
&gt; <a href="mailto:vdsm-devel@lists.fedorahosted.org">vdsm-devel@lists.fedorahosted.org</a><br>
&gt; <a href="https://lists.fedorahosted.org/admin/lists/vdsm-devel@lists.fedorahosted.org" rel="noreferrer" target="_blank">https://lists.fedorahosted.org/admin/lists/vdsm-devel@lists.fedorahosted.org</a><br>
&gt;<br>
</div></div></blockquote></div><br></div></div>