Bug 840795

Summary: [ RHEVM] [backend] [Cluster Networking] variables ${action} ${type} in error message are not substituted when trying to detach network used by Template from cluster
Product: Red Hat Enterprise Virtualization Manager Reporter: Martin Pavlik <mpavlik>
Component: ovirt-engineAssignee: Alona Kaplan <alkaplan>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Pavlik <mpavlik>
Severity: medium Docs Contact:
Priority: low    
Version: 3.1.0CC: alkaplan, dyasny, gklein, iheim, lpeer, Rhev-m-bugs, sgrinber, yeylon, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: network
Fixed In Version: si14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Network RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screenshot 1 none

Description Martin Pavlik 2012-07-17 08:51:23 UTC
Created attachment 598589 [details]
screenshot 1

Description of problem:
variables  ${action} ${type} in error message are not substituted when trying to detach network used by Template from cluster (see screenshot)

Version-Release number of selected component (if applicable):
oVirt Engine Version: '3.1.0-6.el6ev'

How reproducible:
100%

Steps to Reproduce:
1. Attach logical network to template
2. Clusters -> your cluster -> Logical Networks -> network attached to the template -> Assign/Unassign Networks
3. Uncheck Assign on network attached to the template -> click OK

  
Actual results:
error message with UNsubstituted variables ${action} ${type} appears

Expected results:
error message with properly substituted variables ${action} ${type} appears

Additional info:

Text of error message:
Error while executing action: Cannot ${action} ${type}. The Network is in use by a Template.
Network definition cannot be detached unless all references to it are cleared.


engine.log
2012-07-17 10:39:20,640 WARN  [org.ovirt.engine.core.bll.DetachNetworkToVdsGroupCommand] (ajp-/0.0.0.0:8009-10) CanDoAction of action DetachNetworkToVdsGroup failed. Reasons:NETWORK_CANNOT_REMOVE_NETWORK_IN_USE_BY_TEMPLATE

Comment 1 Alona Kaplan 2012-08-02 07:56:32 UTC
fixed in commit e357e5fc37877ee739b1f0feca2d968e4ffe135e