[ovirt-users] Import Domain and snapshot issue ... please help !!!

Enrico Becchetti enrico.becchetti at pg.infn.it
Fri Feb 16 08:50:55 UTC 2018


After reboot engine virtual machine task disappear but virtual disk is 
still locked ,
any ideas to remove that lock ?
Thanks again.
Enrico

l 16/02/2018 09:45, Enrico Becchetti ha scritto:
>    Dear All,
> Are there tools to remove this task (in attach) ?
>
> taskcleaner.sh it's seems doens't work:
>
> [root at ovirt-new dbutils]# ./taskcleaner.sh -v -r
> select exists (select * from information_schema.tables where 
> table_schema = 'public' and table_name = 'command_entities');
>  t
> SELECT DeleteAllCommands();
>                  6
> [root at ovirt-new dbutils]# ./taskcleaner.sh -v -R
> select exists (select * from information_schema.tables where 
> table_schema = 'public' and table_name = 'command_entities');
>  t
>  This will remove all async_tasks table content!!!
> Caution, this operation should be used with care. Please contact 
> support prior to running this command
> Are you sure you want to proceed? [y/n]
> y
> TRUNCATE TABLE async_tasks cascade;
> TRUNCATE TABLE
>
> after that I see the same running tasks . Does It make sense ?
>
> Thanks
> Best Regards
> Enrico
>
>
> Il 14/02/2018 15:53, Enrico Becchetti ha scritto:
>> Dear All,
>> old snapsahots seem to be the problem. In fact domain DATA_FC running 
>> in 3.5 had some
>> lvm snapshot volume. Before deactivate DATA_FC  I didin't remove this 
>> snapshots so when
>> I attach this volume to new ovirt 4.2 and import all vm at the same 
>> time I also import
>> all snapshots but now How I can remove them ? Throught ovirt web 
>> interface the remove
>> tasks running are still hang. Are there any other methods ?
>> Thank to following this case.
>> Best Regads
>> Enrico
>>
>> Il 14/02/2018 14:34, Maor Lipchuk ha scritto:
>>> Seems like all the engine logs are full with the same error.
>>> From vdsm.log.16.xz I can see an error which might explain this failure:
>>>
>>> 2018-02-12 07:51:16,161+0100 INFO  (ioprocess communication (40573)) 
>>> [IOProcess] Starting ioprocess (__init__:447)
>>> 2018-02-12 07:51:16,201+0100 INFO  (jsonrpc/3) [vdsm.api] FINISH 
>>> mergeSnapshots return=None from=::ffff:10.0.0.46,57032, 
>>> flow_id=fd4041b3-2301-44b0-aa65-02bd089f6568, 
>>> task_id=1be430dc-eeb0-4dc9-92df-3f5b7943c6e0 (api:52)
>>> 2018-02-12 07:51:16,275+0100 INFO  (jsonrpc/3) 
>>> [jsonrpc.JsonRpcServer] RPC call Image.mergeSnapshots succeeded in 
>>> 0.13 seconds (__init__:573)
>>> 2018-02-12 07:51:16,276+0100 INFO  (tasks/1) 
>>> [storage.ThreadPool.WorkerThread] START task 
>>> 1be430dc-eeb0-4dc9-92df-3f5b7943c6e0 (cmd=<bound method Task.commit 
>>> of <vdsm.storage.task.Task instance at 0x7fa1a0785248>>, args=None) 
>>> (threadPool:208)
>>> 2018-02-12 07:51:16,543+0100 INFO  (tasks/1) [storage.Image] 
>>> sdUUID=47b7c9aa-ef53-48bc-bb55-4a1a0ba5c8d5 vmUUID= 
>>> imgUUID=ee9ab34c-47a8-4306-95d7-dd4318c69ef5 
>>> ancestor=9cdc96de-65b7-4187-8ec3-8190b78c1825 
>>> successor=8f595e80-1013-4c14-a2f5-252bce9526fdpostZero=False 
>>> discard=False (image:1240)
>>> 2018-02-12 07:51:16,669+0100 ERROR (tasks/1) 
>>> [storage.TaskManager.Task] 
>>> (Task='1be430dc-eeb0-4dc9-92df-3f5b7943c6e0') Unexpected error 
>>> (task:875)
>>> Traceback (most recent call last):
>>>   File "/usr/lib/python2.7/site-packages/vdsm/storage/task.py", line 
>>> 882, in _run
>>>     return fn(*args, **kargs)
>>>   File "/usr/lib/python2.7/site-packages/vdsm/storage/task.py", line 
>>> 336, in run
>>>     return self.cmd(*self.argslist, **self.argsdict)
>>>   File "/usr/lib/python2.7/site-packages/vdsm/storage/securable.py", 
>>> line 79, in wrapper
>>>     return method(self, *args, **kwargs)
>>>   File "/usr/lib/python2.7/site-packages/vdsm/storage/sp.py", line 
>>> 1853, in mergeSnapshots
>>>     discard)
>>>   File "/usr/lib/python2.7/site-packages/vdsm/storage/image.py", 
>>> line 1251, in merge
>>>     srcVol = vols[successor]
>>> KeyError: u'8f595e80-1013-4c14-a2f5-252bce9526fd'
>>>
>>> Ala, maybe you know if there is any known issue with mergeSnapshots?
>>> The usecase here are VMs from oVirt 3.5 which got registered to 
>>> oVirt 4.2.
>>>
>>> Regards,
>>> Maor
>>>
>>>
>>> On Wed, Feb 14, 2018 at 10:11 AM, Enrico Becchetti 
>>> <enrico.becchetti at pg.infn.it <mailto:enrico.becchetti at pg.infn.it>> 
>>> wrote:
>>>
>>>       Hi,
>>>     also you can download them throught these
>>>     links:
>>>
>>>     https://owncloud.pg.infn.it/index.php/s/QpsTyGxtRTPYRTD
>>>     <https://owncloud.pg.infn.it/index.php/s/QpsTyGxtRTPYRTD>
>>>     https://owncloud.pg.infn.it/index.php/s/ph8pLcABe0nadeb
>>>     <https://owncloud.pg.infn.it/index.php/s/ph8pLcABe0nadeb>
>>>
>>>     Thanks again !!!!
>>>
>>>     Best Regards
>>>     Enrico
>>>
>>>>     Il 13/02/2018 14:52, Maor Lipchuk ha scritto:
>>>>>
>>>>>
>>>>>     On Tue, Feb 13, 2018 at 3:51 PM, Maor Lipchuk
>>>>>     <mlipchuk at redhat.com <mailto:mlipchuk at redhat.com>> wrote:
>>>>>
>>>>>
>>>>>         On Tue, Feb 13, 2018 at 3:42 PM, Enrico Becchetti
>>>>>         <enrico.becchetti at pg.infn.it
>>>>>         <mailto:enrico.becchetti at pg.infn.it>> wrote:
>>>>>
>>>>>             see the attach files please ... thanks for your
>>>>>             attention !!!
>>>>>
>>>>>
>>>>>
>>>>>         Seems like the engine logs does not contain the entire
>>>>>         process, can you please share older logs since the import
>>>>>         operation?
>>>>>
>>>>>
>>>>>     And VDSM logs as well from your host
>>>>>
>>>>>             Best Regards
>>>>>             Enrico
>>>>>
>>>>>
>>>>>             Il 13/02/2018 14:09, Maor Lipchuk ha scritto:
>>>>>>
>>>>>>
>>>>>>             On Tue, Feb 13, 2018 at 1:48 PM, Enrico Becchetti
>>>>>>             <enrico.becchetti at pg.infn.it
>>>>>>             <mailto:enrico.becchetti at pg.infn.it>> wrote:
>>>>>>
>>>>>>                  Dear All,
>>>>>>                 I have been using ovirt for a long time with
>>>>>>                 three hypervisors and an external engine running
>>>>>>                 in a centos vm .
>>>>>>
>>>>>>                 This three hypervisors have HBAs and access to
>>>>>>                 fiber channel storage. Until recently I used
>>>>>>                 version 3.5, then I reinstalled everything from
>>>>>>                 scratch and now I have 4.2.
>>>>>>
>>>>>>                 Before formatting everything, I detach the
>>>>>>                 storage data domani (FC) with the virtual
>>>>>>                 machines and reimported it to the new 4.2 and all
>>>>>>                 went well. In
>>>>>>                 this domain there were virtual machines with and
>>>>>>                 without snapshots.
>>>>>>
>>>>>>                 Now I have two problems. The first is that if I
>>>>>>                 try to delete a snapshot the process is not end
>>>>>>                 successful and remains hanging and the second
>>>>>>                 problem is that
>>>>>>                 in one case I lost the virtual machine !!!
>>>>>>
>>>>>>
>>>>>>
>>>>>>             Not sure that I fully understand the scneario.'
>>>>>>             How was the virtual machine got lost if you only
>>>>>>             tried to delete a snapshot?
>>>>>>
>>>>>>
>>>>>>                 So I need your help to kill the three running
>>>>>>                 zombie tasks because with taskcleaner.sh I can't
>>>>>>                 do anything and then I need to know how I can
>>>>>>                 delete the old snapshots
>>>>>>                 made with the 3.5 without losing other data or
>>>>>>                 without having new processes that terminate
>>>>>>                 correctly.
>>>>>>
>>>>>>                 If you want some log files please let me know.
>>>>>>
>>>>>>
>>>>>>
>>>>>>             Hi Enrico,
>>>>>>
>>>>>>             Can you please attach the engine and VDSM logs
>>>>>>
>>>>>>
>>>>>>                 Thank you so much.
>>>>>>                 Best Regards
>>>>>>                 Enrico
>>>>>>
>>>>>>
>>>>>>
>>>>>>                 _______________________________________________
>>>>>>                 Users mailing list
>>>>>>                 Users at ovirt.org <mailto:Users at ovirt.org>
>>>>>>                 http://lists.ovirt.org/mailman/listinfo/users
>>>>>>                 <http://lists.ovirt.org/mailman/listinfo/users>
>>>>>>
>>>>>>
>>>>>
>>>>>             -- 
>>>>>             _______________________________________________________________________
>>>>>
>>>>>             Enrico Becchetti                    Servizio di Calcolo e Reti
>>>>>
>>>>>             Istituto Nazionale di Fisica Nucleare - Sezione di Perugia
>>>>>             Via Pascoli,c/o Dipartimento di Fisica  06123 Perugia (ITALY)
>>>>>             Phone:+39 075 5852777 <tel:+39%20075%20585%202777>              Mail: Enrico.Becchetti<at>pg.infn.it <http://pg.infn.it>
>>>>>             ______________________________________________________________________
>>>>>
>>>>>
>>>>>
>>>>
>>>>     -- 
>>>>     _______________________________________________________________________
>>>>
>>>>     Enrico Becchetti                    Servizio di Calcolo e Reti
>>>>
>>>>     Istituto Nazionale di Fisica Nucleare - Sezione di Perugia
>>>>     Via Pascoli,c/o Dipartimento di Fisica  06123 Perugia (ITALY)
>>>>     Phone:+39 075 5852777 <tel:+39%20075%20585%202777>              Mail: Enrico.Becchetti<at>pg.infn.it <http://pg.infn.it>
>>>>     ______________________________________________________________________
>>>
>>>
>>>     -- 
>>>     _______________________________________________________________________
>>>
>>>     Enrico Becchetti                    Servizio di Calcolo e Reti
>>>
>>>     Istituto Nazionale di Fisica Nucleare - Sezione di Perugia
>>>     Via Pascoli,c/o Dipartimento di Fisica  06123 Perugia (ITALY)
>>>     Phone:+39 075 5852777 <tel:+39%20075%20585%202777>              Mail: Enrico.Becchetti<at>pg.infn.it <http://pg.infn.it>
>>>     ______________________________________________________________________
>>>
>>>
>>
>> -- 
>> _______________________________________________________________________
>>
>> Enrico Becchetti                    Servizio di Calcolo e Reti
>>
>> Istituto Nazionale di Fisica Nucleare - Sezione di Perugia
>> Via Pascoli,c/o Dipartimento di Fisica  06123 Perugia (ITALY)
>> Phone:+39 075 5852777             Mail: Enrico.Becchetti<at>pg.infn.it
>> ______________________________________________________________________
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>
>
> -- 
> _______________________________________________________________________
>
> Enrico Becchetti                    Servizio di Calcolo e Reti
>
> Istituto Nazionale di Fisica Nucleare - Sezione di Perugia
> Via Pascoli,c/o Dipartimento di Fisica  06123 Perugia (ITALY)
> Phone:+39 075 5852777             Mail: Enrico.Becchetti<at>pg.infn.it
> ______________________________________________________________________
>
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users


-- 
_______________________________________________________________________

Enrico Becchetti                    Servizio di Calcolo e Reti

Istituto Nazionale di Fisica Nucleare - Sezione di Perugia
Via Pascoli,c/o Dipartimento di Fisica  06123 Perugia (ITALY)
Phone:+39 075 5852777             Mail: Enrico.Becchetti<at>pg.infn.it
______________________________________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20180216/2602a334/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2269 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.ovirt.org/pipermail/users/attachments/20180216/2602a334/attachment.p7s>


More information about the Users mailing list