Created attachment 1071332[details]
engine log
Description of problem:
Failed to update template name, when exists vms that was created from this template, update failed with internal error
Version-Release number of selected component (if applicable):
rhevm-3.6.0-0.13.master.el6.noarch
How reproducible:
Always
Steps to Reproduce:
1. Create template_1 from some vm
2. Create new vm from template_1
3. Try to change name of template_1
Actual results:
Update failed with internal error(see engine log for more details)
Expected results:
Update success
Additional info:
important to note that this happens only for template with watchdog enabled.
there are 2 issues:
1. update template dialog doesnt load the watchdog-action from db, so if user doesnt manually select action, null is sent to the update command.
2. update command doesnt fail nicely with can-do-action if watchdog action is null, but with NPE:
2015-09-16 11:42:11,808 INFO [org.ovirt.engine.core.bll.UpdateWatchdogCommand] (default task-49) [2ea85df1] Running command: UpdateWatchdogCommand internal: true. Entities affected : ID: 9b23104b-0a59-40bc-a1de-3733c41f76ae Type: VmTemplateAction group EDIT_VM_PROPERTIES with role type USER
2015-09-16 11:42:11,808 ERROR [org.ovirt.engine.core.bll.UpdateWatchdogCommand] (default task-49) [2ea85df1] Command 'org.ovirt.engine.core.bll.UpdateWatchdogCommand' failed: null
2015-09-16 11:42:11,808 ERROR [org.ovirt.engine.core.bll.UpdateWatchdogCommand] (default task-49) [2ea85df1] Exception: java.lang.NullPointerException
Verified on rhevm-3.6.0-0.18.el6.noarch
1) Create template(watchdog_template) from vm
2) Add watchdog to watchdog_template
3) Create new vm from watchdog_template
4) Edit name of watchdog_template
Action succeed without any errors.
Created attachment 1071332 [details] engine log Description of problem: Failed to update template name, when exists vms that was created from this template, update failed with internal error Version-Release number of selected component (if applicable): rhevm-3.6.0-0.13.master.el6.noarch How reproducible: Always Steps to Reproduce: 1. Create template_1 from some vm 2. Create new vm from template_1 3. Try to change name of template_1 Actual results: Update failed with internal error(see engine log for more details) Expected results: Update success Additional info: