Bug 820232

Summary: [RHEVM] [backend] [Setup Host Networks] variables not substituted in error message
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: acathrow, dyasny, ecohen, gklein, iheim, lpeer, masayag, Rhev-m-bugs, yeylon, ykaul
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: network
Fixed In Version: si8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-04 20:06:38 UTC 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
incorrect error message none

Description Martin Pavlik 2012-05-09 12:43:09 UTC
Created attachment 583264 [details]
incorrect error message

Description of problem:

Error message which appears after editing network interface on active host does not have correct substitutions


Message looks like this:

Error:

dell-r210ii-05:

    Cannot ${action} ${type}. Host parameters cannot be modified while Host is operational.
    Please switch Host to Maintenance mode first.


${action} ${type} should be replaced with proper content


Version-Release number of selected component (if applicable):
oVirt Enterprise Virtualization Engine Manager Version: 3.1.0_0001-9.el6ev 

How reproducible:
always

Steps to Reproduce:
Host should be active

1) Go to Hosts -> your host -> Network Interface -> Setup Host Network
2) click on the "pencil icon" on rhevm NIC (ie em1)
   a) change Boot Protocol from DHCP to static or vice versa
   b) click OK
3) click OK
4) Error message appears

   
Actual results:
Error message contains variables ${action} ${type}


Expected results:
${action} ${type} should be replaced with proper content


Additional info:
screenshost attached

Comment 1 Yaniv Kaul 2012-05-09 12:51:44 UTC
Setting Regression - we did not have such errors in 3.0.

Comment 3 Moti Asayag 2012-07-26 06:52:26 UTC
fixed by commit-id 305fd6ad851b7f9a5271f6efb2e41cf38b30e892

Comment 4 Martin Pavlik 2012-07-27 13:10:17 UTC
I tried to verify this bug, but now there is no error message at all, settings of rhevm interface just get changed from static to DHCP and vice versa, is that a bug or a feature?

Comment 5 Moti Asayag 2012-07-28 12:55:19 UTC
This is a feature as a result of Bug 826470: The setup networks is applicable for host's statuses: UP, Maintenance or Non-operational.

You can verify the error message by manipulating the host into other status than the mentioned above and run the setup-networks command for it (I think the easiest way is moving the host to NonResponsive by loosing connectivity to it or to Unassigned when activating it - but Unassinged leaves a short time frame to act).