Bug 1395583 - When trying to edit network that is used by multiple VMs or templates error message macros are not filled
Summary: When trying to edit network that is used by multiple VMs or templates error m...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Network
Version: 4.0.5.5
Hardware: x86_64
OS: Linux
medium
low vote
Target Milestone: ovirt-4.1.1
: ---
Assignee: Leon Goldberg
QA Contact: Michael Burman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-16 09:28 UTC by Michael Burman
Modified: 2017-04-21 09:34 UTC (History)
3 users (show)

Fixed In Version: ovirt-engine-4.1.1.3
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-21 09:34:53 UTC
oVirt Team: Network
rule-engine: ovirt-4.1+
ylavi: blocker-


Attachments (Terms of Use)
engine log (635.57 KB, application/x-gzip)
2016-11-16 09:28 UTC, Michael Burman
no flags Details
screenshots (138.87 KB, application/x-gzip)
2016-11-16 09:30 UTC, Michael Burman
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 72368 0 master MERGED webadmin: fixing ACTION_TYPE_FAILED_NETWORK_IN_MANY_USES macro 2017-02-15 15:43:42 UTC
oVirt gerrit 72384 0 ovirt-engine-4.1 MERGED webadmin: fixing ACTION_TYPE_FAILED_NETWORK_IN_MANY_USES macro 2017-02-16 07:50:23 UTC

Description Michael Burman 2016-11-16 09:28:18 UTC
Created attachment 1221081 [details]
engine log

Description of problem:
(${ACTION_TYPE_FAILED_NETWORK_IN_ONE_USE_LIST_COUNTER}): ${ACTION_TYPE_FAILED_NETWORK_IN_ONE_USE_LIST} when trying to edit network that is used by multiple VMs or templates. 

When we trying to edit a network(change name, change to non-VM) while those networks are used by a VMs or templates(attached to the vNICs) we got the next errors:

Error while executing action: Cannot edit Network. This logical network is used by templates: (${ACTION_TYPE_FAILED_NETWORK_IN_ONE_USE_LIST_COUNTER}): ${ACTION_TYPE_FAILED_NETWORK_IN_ONE_USE_LIST}
- Please detach templates using this logical network and try again.


Error while executing action: Cannot edit Network. This logical network is used by virtual machines: (${ACTION_TYPE_FAILED_NETWORK_IN_ONE_USE_LIST_COUNTER}): ${ACTION_TYPE_FAILED_NETWORK_IN_ONE_USE_LIST}
- Please detach virtual machines using this logical network and try again

engine.log- 

2016-11-16 11:18:02,294 WARN  [org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand] (default task-10) [4f20085d] Validation of action 'UpdateNetwork' failed for user admin@internal-authz. Reasons: VAR__TYPE__NETWORK,VAR__ACTION__UPDATE,ACTION_TYPE_FAILED_NETWORK_IN_MANY_USES,$ACTION_TYPE_FAILED_NETWORK_IN_MANY_USES_LIST         rhel6.7_template,
        test_template_bug,$ACTION_TYPE_FAILED_NETWORK_IN_MANY_USES_LIST_COUNTER 2,VAR__ENTITIES__VM_TEMPLATES
2016-11-16 11:21:05,338 WARN  [org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand] (default task-14) [7f20c3e1] Validation of action 'UpdateNetwork' failed for user admin@internal-authz. Reasons: VAR__TYPE__NETWORK,VAR__ACTION__UPDATE,ACTION_TYPE_FAILED_NETWORK_IN_MANY_USES,$ACTION_TYPE_FAILED_NETWORK_IN_MANY_USES_LIST         vm2_sr-iov,
        vm3_sr-iov,$ACTION_TYPE_FAILED_NETWORK_IN_MANY_USES_LIST_COUNTER 2,VAR__ENTITIES__VMS

- This a regression from 3.6.z 

Error while executing action: Cannot edit Network. This logical network is used by virtual machines: (6): Neutron_new2,
Neutron_VM3,
ManageIQ_VM,
v4,
v1,


Error while executing action: Cannot edit Network. This logical network is used by templates: (2): testt,
sr-temp
- Please detach templates using this logical network and try again.

Version-Release number of selected component (if applicable):
 4.0.5.5-0.1.el7ev

How reproducible:
100%

Steps to Reproduce:
1. Create network and add it to 2 VMs or templates
2. Edit the network, try to change the name or try to change to non-vm network

Actual results:
The VMs names or templates is - (${ACTION_TYPE_FAILED_NETWORK_IN_ONE_USE_LIST_COUNTER}): ${ACTION_TYPE_FAILED_NETWORK_IN_ONE_USE_LIST}

Expected results:
Should replaced with actual names

Comment 1 Michael Burman 2016-11-16 09:30:23 UTC
Created attachment 1221082 [details]
screenshots

Comment 2 Red Hat Bugzilla Rules Engine 2016-11-23 09:22:43 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 3 Michael Burman 2017-02-19 10:26:51 UTC
Same on  4.1.1.2-0.1.el7

Error while executing action: Cannot edit Network. This logical network is used by virtual machines: (${ACTION_TYPE_FAILED_NETWORK_IN_ONE_USE_LIST_COUNTER}): ${ACTION_TYPE_FAILED_NETWORK_IN_ONE_USE_LIST}
- Please detach virtual machines using this logical network and try again.

Error while executing action: Cannot edit Network. This logical network is used by templates: (${ACTION_TYPE_FAILED_NETWORK_IN_ONE_USE_LIST_COUNTER}): ${ACTION_TYPE_FAILED_NETWORK_IN_ONE_USE_LIST}
- Please detach templates using this logical network and try again.

Comment 4 Leon Goldberg 2017-02-20 14:24:31 UTC
This wasn't supposed to be set to ON_QA yet; the fix isn't included in 4.1.1.2 (will probably appear in 4.1.1.3).

Comment 5 Michael Burman 2017-03-06 07:57:33 UTC
Verified on - 4.1.1.3-0.1.el7


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