Bug 1299233

Summary: NPE when importing image as template from glance
Product: [oVirt] ovirt-engine Reporter: Fred Rolland <frolland>
Component: BLL.StorageAssignee: Fred Rolland <frolland>
Status: CLOSED CURRENTRELEASE QA Contact: Elad <ebenahar>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.0.0CC: amureini, bugs, tnisan
Target Milestone: ovirt-4.0.0-alphaFlags: rule-engine: ovirt-4.0.0+
rule-engine: exception+
rule-engine: planning_ack+
rule-engine: devel_ack+
acanan: testing_ack+
Target Release: 4.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt 4.0.0 alpha1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-05 07:48:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Fred Rolland 2016-01-17 16:15:37 UTC
Description of problem:
Importing an image from Glance as a template fails.
The task is not finishing.

Version-Release number of selected component (if applicable):


How reproducible:
Import an image from Glance as a template.

Steps to Reproduce:
1. Login to web as admin
2. Go to Storage tab
3. Select Glance domain
4. In the "Images" sub tab select an image and click "Import"
5. Select "Import as Template" checkbox
6. Click "OK" button

Actual results:
The template is not created, and the task is not finishing.

Expected results:
The template is created, and the task is completed.

Additional info:

Comment 1 Fred Rolland 2016-01-17 16:18:28 UTC
The log error :

2016-01-17 17:55:10,685 ERROR [org.ovirt.engine.core.bll.CommandsFactory] (org.ovirt.thread.pool-7-thread-50) [] An exception has occured while trying to create a command object for command 'AddVmTemplate': WELD-000049: Unable to invoke protected final void org.ovirt.engine.core.bll.CommandBase.postConstruct() on org.ovirt.engine.core.bll.AddVmTemplateCommand@3bde29c3

Comment 2 Fred Rolland 2016-01-18 10:44:07 UTC
The bug is not 3.6 branch.

Comment 3 Fred Rolland 2016-01-18 11:50:11 UTC
The bug does not reproduce in 3.6. Fix only needed in master.

Comment 4 Elad 2016-04-07 11:47:06 UTC
Image import as a template from a Glance repository succeeds (template is created successfully). 

Verified using:
ovirt-engine-4.0.0-0.0.master.20160406161747.gita4ecba2.el7.centos.noarch
vdsm-4.17.999-892.git435139d.el7.centos.noarch


2016-04-06 11:50:37,394 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (org.ovirt.thread.pool-8-thread-29) [46dedc3f] Correlation ID: 3df75d4
d, Job ID: 5a9419d8-d94a-43ae-b09f-1239260b456d, Call Stack: null, Custom Event ID: -1, Message: User admin@internal successfully imported image GlanceDisk-8a240e1 as template temp1 to domain nfs2.

Comment 5 Sandro Bonazzola 2016-07-05 07:48:24 UTC
oVirt 4.0.0 has been released, closing current release.