Bug 1085712 - [engine-backend] [external-provider] NullPointerException for AddVmTemplate during importing an image from glance as a template
Summary: [engine-backend] [external-provider] NullPointerException for AddVmTemplate d...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.4.0
Hardware: x86_64
OS: Unspecified
unspecified
high
Target Milestone: ---
: 3.4.0
Assignee: Oved Ourfali
QA Contact: Elad
URL:
Whiteboard: storage
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-09 07:59 UTC by Elad
Modified: 2016-02-10 19:59 UTC (History)
8 users (show)

Fixed In Version: org.ovirt.engine-root-3.4.0-14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
oVirt Team: Storage
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Logs from engine and host + screenshot (3.14 MB, application/x-gzip)
2014-04-09 07:59 UTC, Elad
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 26601 0 master MERGED core: set current user in import glance image as template Never
oVirt gerrit 26629 0 ovirt-engine-3.4 MERGED core: set current user in import glance image as template Never

Description Elad 2014-04-09 07:59:13 UTC
Created attachment 884414 [details]
Logs from engine and host + screenshot

Description of problem:
I tried to import several images in parallel from a glance repository. 3 of those import operations failed with a NullPointerException.

Version-Release number of selected component (if applicable):
AV5
rhevm-3.4.0-0.12.beta2.el6ev.noarch
vdsm-4.14.2-0.2.el6ev.x86_64

How reproducible:
Not always

Steps to Reproduce:
On a RHEV-3.4 setup which has a glance repository integrated by default (called 'ovirt-imgae-repository') 
1. Import 6 images from the repository in parallel (mark all the images and click on 'import'). Import the images as templates (check the 'Import as template' check-box


Actual results:
3 of the import operations failed with a NullPointerException:

2014-04-08 19:46:52,139 INFO  [org.ovirt.engine.core.bll.AddVmTemplateCommand] (org.ovirt.thread.pool-4-thread-17) [3bfebf7] Running command: AddVmTemplateCommand internal: true. Entities affected :  ID: 009d5dc0-517f-4c87-a300-f10a6c1e1871 Type: StoragePool
2014-04-08 19:46:52,152 INFO  [org.ovirt.engine.core.utils.transaction.TransactionSupport] (org.ovirt.thread.pool-4-thread-17) [3bfebf7] transaction rolled back
2014-04-08 19:46:52,153 ERROR [org.ovirt.engine.core.bll.AddVmTemplateCommand] (org.ovirt.thread.pool-4-thread-17) [3bfebf7] Command org.ovirt.engine.core.bll.AddVmTemplateCommand throw exception: java.lang.NullPointerException


Expected results:
Import from glance should succeed

Additional info:
Logs from engine and host + screenshot

Comment 1 Elad 2014-04-09 09:09:10 UTC
After the failure, the images remain LOCKED, as reported here:
https://bugzilla.redhat.com/show_bug.cgi?id=1074311

Comment 2 Elad 2014-05-01 07:03:49 UTC
Tried to import the same images from ovirt-glance in parallel, it succeeded.

Verified using AV7

Comment 3 Itamar Heim 2014-06-12 14:11:42 UTC
Closing as part of 3.4.0


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