Hi Sven, it does looks like a DB issue.
Can u please attach the full VDSM and engine logs to investigate it.
If you want to unlock your disk do the following:
log into the DB : psql -d rhevm -U postgres
and perform the following
SELECT vm_name frim vms where vm_guid = (SELECT vm_guid FROM
vm_images_view where imagestatus = 2);
See if you get the VM which the disk is locked on it.
If so do:
SELECT image_guid from vm_images_view where imagestatus=2;
# Get the guid returned and then
Update images SET imagestatus=1 where image_guid = {The guid which
returned in the last query}
Regards,
Maor
On 05/29/2013 04:43 PM, Sven Knohsalla wrote:
Hi Maor,
thanks for your response.
It seems ,from my site of view , to be a DB issue, as the command..
[root@deovn-i02 ~]# vdsClient -s 0 getAllTasksStatuses
{'status': {'message': 'OK', 'code': 0},
'allTasksStatus': {}}
..shows no waiting tasks, and I would have found log entries in the engine.log
therefore,
right? (Just looked at the log file)
What I already did when the issue did come up:
Restarted vdsmd on SPM to force new SPM election, but the new SPM didn't receive the
task either.
(to understand if this comes from vdsmd or not)
Cheer,
Sven.
Sven Knohsalla | System Administration | Netbiscuits
Office +49 631 68036 433 | Fax +49 631 68036 111 |E-Mail s.knohsalla(a)netbiscuits.com |
Skype: netbiscuits.admin
Netbiscuits GmbH | Europaallee 10 | 67657 | GERMANY
-----Ursprüngliche Nachricht-----
Von: Maor Lipchuk [mailto:mlipchuk@redhat.com]
Gesendet: Mittwoch, 29. Mai 2013 15:32
An: Sven Knohsalla
Cc: users(a)ovirt.org
Betreff: Re: [Users] oVirt3.0 - locked image when creating VM from template
Hi Sven,
It looks like a bug.
It sounds like that disk can be unlocked from the DB.
Just to make sure, can u log into your SPM host and run:
vdsClient -s 0 getAllTasksStatuses, see if there are not tasks running?
Regards,
Maor
On 05/29/2013 03:27 PM, Sven Knohsalla wrote:
> Hi,
>
>
>
> I ran in this strange issue in oVirt 3.0:
> A VM creation from a certain template doesn't seem to work / show any
> progress.
>
> The image gets locked, event view shows start of VM creation, but
> nothing changes.
>
> Usual deploying time is under 10 minutes
>
>
>
> Engine log output:
> 2013-05-29 14:04:25,351 ERROR [org.ovirt.engine.core.bll.SPMAsyncTask]
> (http--0.0.0.0-8443-3) BaseAsyncTask::AddOrUpdateTaskInDB:
> Adding/Updating task ba297305
>
> -af24-4533-a238-01f5762b62f4 to DataBase threw an exception.:
> org.apache.commons.lang.SerializationException:
> org.codehaus.jackson.map.JsonMappingException: or
>
> g.ovirt.engine.core.compat.Guid cannot be cast to [Ljava.lang.Object;
> (through reference chain:
> org.ovirt.engine.core.common.action.CreateCloneOfTemplateParame
>
> ters["diskImageBase"]->org.ovirt.engine.core.common.businessentities.D
> iskImage["childrenId"])
>
> at
> org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer.wr
> iteJsonAsString(JsonObjectSerializer.java:69)
> [utils-3.0.0-0001.jar:]
>
> at
> org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer.se
> rialize(JsonObjectSerializer.java:51)
> [utils-3.0.0-0001.jar:]
>
> at
> org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl$AsyncTaskParameterS
> ource.serializeParameters(AsyncTaskDAODbFacadeImpl.java:74)
> [engine-dal.jar:]
>
> at
> org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl$AsyncTaskParameterS
> ource.<init>(AsyncTaskDAODbFacadeImpl.java:67)
> [engine-dal.jar:]
>
> at
> org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.getTaskParameterSou
> rce(AsyncTaskDAODbFacadeImpl.java:99)
> [engine-dal.jar:]
>
> at
> org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.save(AsyncTaskDAODb
> FacadeImpl.java:104)
> [engine-dal.jar:]
>
> at
> org.ovirt.engine.core.bll.SPMAsyncTask.AddOrUpdateTaskInDB(SPMAsyncTas
> k.java:105)
> [engine-bll.jar:]
>
> at
> org.ovirt.engine.core.bll.SPMAsyncTask.<init>(SPMAsyncTask.java:22)
> [engine-bll.jar:]
>
> at
> org.ovirt.engine.core.bll.EntityAsyncTask.<init>(EntityAsyncTask.java:
> 46) [engine-bll.jar:]
>
> at
> org.ovirt.engine.core.bll.AsyncTaskFactory.Construct(AsyncTaskFactory.
> java:53)
> [engine-bll.jar:]
>
> at
> org.ovirt.engine.core.bll.AsyncTaskManager.CreateTask(AsyncTaskManager
> .java:448)
> [engine-bll.jar:]
>
> at
> org.ovirt.engine.core.bll.CreateCloneOfTemplateCommand.ConcreteCreateT
> ask(CreateCloneOfTemplateCommand.java:99)
> [engine-bll.jar:]
>
> at
> org.ovirt.engine.core.bll.CommandBase.CreateTask(CommandBase.java:847)
> [engine-bll.jar:]
>
> at
> org.ovirt.engine.core.bll.CreateCloneOfTemplateCommand.CreateSnapshotI
> nIrsServer(CreateCloneOfTemplateCommand.java:78)
> [engine-bll.jar:]
>
> at
> org.ovirt.engine.core.bll.CreateSnapshotCommand.executeCommand(CreateS
> napshotCommand.java:61)
> [engine-bll.jar:]
>
> at
> org.ovirt.engine.core.bll.CreateSnapshotFromTemplateCommand.executeCom
> mand(CreateSnapshotFromTemplateCommand.java:82)
> [engine-bll.jar:]
>
> at
> org.ovirt.engine.core.bll.CommandBase.ExecuteWithoutTransaction(Comman
> dBase.java:621)
> [engine-bll.jar:]
>
> at
> org.ovirt.engine.core.bll.CommandBase.executeActionInTransactionScope(
> CommandBase.java:713)
> [engine-bll.jar:]
>
> at
> org.ovirt.engine.core.bll.CommandBase.runInTransaction(CommandBase.jav
> a:982)
> [engine-bll.jar:]
>
> at
> org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInRe
> quired(TransactionSupport.java:144)
> [utils-3.0.0-0001.jar:]
>
> at
> org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInSc
> ope(TransactionSupport.java:109)
> [utils-3.0.0-0001.jar:]
>
> at
> org.ovirt.engine.core.bll.CommandBase.Execute(CommandBase.java:726)
> [engine-bll.jar:]
>
> at
> org.ovirt.engine.core.bll.CommandBase.ExecuteAction(CommandBase.java:2
> 10) [engine-bll.jar:]
>
> at
> org.ovirt.engine.core.bll.Backend.runActionImpl(Backend.java:262)
> [engine-bll.jar:]
>
> at
> org.ovirt.engine.core.bll.Backend.runInternalAction(Backend.java:240)
> [engine-bll.jar:]
>
> at sun.reflect.GeneratedMethodAccessor161.invoke(Unknown
> Source) [:1.6.0_24]
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
> orImpl.java:43)
> [:1.6.0_24]
>
> at java.lang.reflect.Method.invoke(Method.java:616)
> [:1.6.0_24]
>
> at
> org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$Man
> agedReferenceMethodInterceptor.processInvocation(ManagedReferenceMetho
> dInterceptorFactory.java:72)
> [jboss-as-ee-7.1.0.Beta1b.jar:]
>
>
>
>
> This just happened once, new VM creations with templates are working.
>
> The only problem is ,the affecting template is locked now and I don't
> know how to free the diskimage (vdsmd of SPM responsible here or just
> a DB entry?)
>
>
>
> Thanks in advance!
>
>
>
> Best, Sven.
>
>
>
> Sven Knohsalla |System Administration
>
>
>
> Office +49 631 68036 433 | Fax +49 631 68036 111
> |E-Mails.knohsalla(a)netbiscuits.com| Skype: netbiscuits.admin
>
> Netbiscuits GmbH | Europaallee 10 | 67657 | GERMANY
>
>
>
>
https://my.netbiscuits.com/image/image_gallery?uuid=3a1a9d19-c305-4032
> -8cef-00b03c3d4c79&groupId=10211&t=1361534926402
> <
http://www.netbiscuits.com/>
>
>
>
>
>
https://my.netbiscuits.com/image/image_gallery?uuid=3031deca-7e56-4417
> -9822-3d6d72f71ef0&groupId=10211&t=1347280983812
> <
https://www.netbiscuits.com/news>
>
https://my.netbiscuits.com/image/image_gallery?uuid=1d1a5e29-ceda-4ab1
> -9353-67a1e838364d&groupId=10211&t=1347281040591
> <
https://twitter.com/netbiscuits>
>
https://my.netbiscuits.com/image/image_gallery?uuid=c99bf866-be25-4236
> -a0ee-dca68ec828a5&groupId=10211&t=1347280983848
> <
http://www.linkedin.com/company/netbiscuits>
>
https://my.netbiscuits.com/image/image_gallery?uuid=d62ba951-14dc-450d
> -b5f1-be33884225e3&groupId=10211&t=1347280983872
> <
http://www.xing.com/companies/netbiscuitsgmbh>
>
https://my.netbiscuits.com/image/image_gallery?uuid=7b28f500-f415-40bb
> -851f-0cd55beeaf45&groupId=10211&t=1347280983791
> <
https://www.facebook.com/Netbiscuits>
>
https://my.netbiscuits.com/image/image_gallery?uuid=cc8764d0-a5ac-4623
> -bb63-da3ca7c97f94&groupId=10211&t=1347280983836
> <
https://plus.google.com/u/0/112410769451962733032>
>
https://my.netbiscuits.com/image/image_gallery?uuid=a15e871c-a11b-419c
> -acca-da5a0ebd5856&groupId=10211&t=1347281040599
> <
http://www.youtube.com/user/netbiscuits>
>
> *Register Court:*Local Court Kaiserslautern | *Commercial Register
> ID:* HR B 3604 *Management Board*: Guido Moggert, Michael Neidhöfer,
> Christian Reitz, Martin Süß
>
>
>
> This message and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. It may also be privileged or otherwise protected by
> work product immunity or other legal rules. Please notify the sender
> immediately by e-mail if you have received this e-mail by mistake and
> delete this e-mail from your system. If you are not the intended
> recipient you are notified that disclosing, copying, distributing or
> taking any action in reliance on the contents of this information is
> strictly prohibited.
>
> Warning: Although Netbiscuits has taken reasonable precautions to
> ensure no viruses are present in this email, the company cannot accept
> responsibility for any loss or damage arising from the use of this
> email or attachments.
>
>
>
> Beschreibung: Beschreibung:
>
http://www.netbiscuits.com/image/image_gallery?uuid=0ba7711a-a277-4ea0
> -acb0-17fe13c3089d&groupId=10211&t=1348560850164Please
> consider the environment before printing
>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users(a)ovirt.org
>
http://lists.ovirt.org/mailman/listinfo/users
>