Bug 1299233 - NPE when importing image as template from glance
Summary: NPE when importing image as template from glance
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.0.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: ovirt-4.0.0-alpha
: 4.0.0
Assignee: Fred Rolland
QA Contact: Elad
Depends On:
TreeView+ depends on / blocked
Reported: 2016-01-17 16:15 UTC by Fred Rolland
Modified: 2016-07-05 07:48 UTC (History)
3 users (show)

Fixed In Version: ovirt 4.0.0 alpha1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2016-07-05 07:48:24 UTC
oVirt Team: Virt
rule-engine: ovirt-4.0.0+
rule-engine: exception+
rule-engine: planning_ack+
rule-engine: devel_ack+
acanan: testing_ack+

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
oVirt gerrit 51938 0 master MERGED engine: Fix NPE in Glance import image as template 2016-01-18 12:19:19 UTC

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:

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.

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