Hide Forgot
Created attachment 1144638 [details] engine.log Description of problem: Imported an image as a template from Glance and got the following event log: User admin@internal successfully imported image GlanceDisk-8a240e1 as template <UNKNOWN> to domain nfs2. We get <UNKNOWN> instead of the template name (which is specified in the import prompt). Version-Release number of selected component (if applicable): ovirt-engine-4.0.0-0.0.master.20160406161747.gita4ecba2.el7.centos.noarch ovirt-engine-webadmin-portal-4.0.0-0.0.master.20160406161747.gita4ecba2.el7.centos.noarch How reproducible: Always Steps to Reproduce: 1. Import an image from Glance as a template, specify a name for the template Actual results: The template name is <UNKNOWN> Expected results: Template's name should be reported correctly in the event log Additional info: engine.log 2016-04-06 11:50:18,483 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (org.ovirt.thread.pool-8-thread-24) [227a5825] Correlation ID: fbe3e6, Job ID: ef78f2df-4d77-4713-b13f-d55c8e4e1dd5, Call Stack: null, Custom Event ID: -1, Message: User admin@internal successfully imported image GlanceDisk-8a240e1 as templa te <UNKNOWN> to domain nfs2.
Idan, weren't you looking at a similar BZ already?
Yes, please see Elad's comment (4) in BZ 1310642.
Elad, this seems to work properly. I've attached a screenshot of the correct event log. And from the logs: 2016-05-02 12:13:46,010 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (org.ovirt.thread.pool-8-thread-13) [692e6829] Correlation ID: 2a132649, Job ID: 50807b8a-d6a4-4909-a5d9-963e6 2d6a83a, Call Stack: null, Custom Event ID: -1, Message: User admin@internal-authz importing image new_disk_alias as template new_template_name to domain lun0. ... 2016-05-02 12:14:21,431 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (org.ovirt.thread.pool-8-thread-21) [39055929] Correlation ID: 2a132649, Job ID: 50807b8a-d6a4-4909-a5d9-963e62d6a83a, Call Stack: null, Custom Event ID: -1, Message: User admin@internal-authz successfully imported image new_disk_alias as template new_template_name to domain lun0. If you find that I am wrong, please reopen.
Created attachment 1152896 [details] Screenshot from events pane
Idan, the bug is reproduced when importing a template without specifying a name. 2016-05-02 16:57:26,035 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (org.ovirt.thread.pool-8-thread-28) [4b5c0ac7] Correlation ID: effbc6c, Job ID: b4108317-f109-46dd-ad19-ed1f9a02 9296, Call Stack: null, Custom Event ID: -1, Message: User admin@internal successfully imported image GlanceDisk-8a240e1 as template <UNKNOWN> to domain nfs-sanity.
Well then that's a totally different story, since you asked to specify the name of the template: "Import an image from Glance as a template, specify a name for the template".(from the steps to reproduce). The default template's name should be shown in the "Template Name" checkbox.
Just to clarify, the template is created with a default name ("GlanceTemplate-8cf0dc9" for example), but it is logged (and shown in the events pane) as <UNKNOWN>.
oVirt 4.0 Alpha has been released, moving to oVirt 4.0 Beta target.
oVirt 4.0 beta has been released, moving to RC milestone.
Setting target release to 4.0.0 as it's included in today's 4.0.0.4 build
Tested both specifying and not specifying the name, events shows the name fo the template: importing image GlanceDisk-07f46b6 as template template_local_mixed to domain local_domain. image GlanceDisk-07f46b6 as template GlanceTemplate-c3c5861 to domain iscsi_0.