Bug 785804

Summary: [webadmin] - Wrong message, when attempting to add an alredy configured Host's IP[TEXT]
Product: [Retired] oVirt Reporter: zvi <zfridler>
Component: ovirt-engine-webadminAssignee: Daniel Erez <derez>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: acathrow, ecohen, iheim, yeylon
Target Milestone: ---   
Target Release: 3.1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-09 07:56:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Same_Host none

Description zvi 2012-01-30 16:41:00 UTC
Created attachment 558404 [details]
Same_Host

Description of problem:
When adding an Host with an IPADDR that is alreday configured in the cluster. a wrong message is shown. 

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:
Error: Cannot add Host, Host unique id is ambiguous with hosts: navy-vds3_qa_lab_tlv_redhat_com.

Expected results:

Error: Cannot add Host, Host unique id is ambiguous with hosts: navy-vds3.qa.lab.tlv.redhat.com.


Additional info:
80-5) RunSSHCommand returns true
2012-01-30 18:20:51,448 WARN  [org.ovirt.engine.core.bll.AddVdsCommand] (http--0.0.0.0-8080-5) CanDoAction of action AddVds failed. Reasons:VDS_REGISTER_UNIQUE_ID_AMBIGUOUS,$HostNameList navy-vds3.qa.lab.tlv.redhat.com,VAR__ACTION__ADD,VAR__TYPE__HOST

Comment 1 Einav Cohen 2012-02-05 10:34:12 UTC
In case the CanDoAction key that we receive from the backend is:
"$ParamName ParamValue" 
e.g.: 
"$HostNameList navy-vds3.qa.lab.tlv.redhat.com"
the frontend shouldn't convert "." to "_".

Comment 2 Daniel Erez 2012-02-06 10:22:36 UTC
commit f470c5882f57c06ef526eecc39f948247f890400

Comment 4 Itamar Heim 2012-08-09 07:56:24 UTC
closing ON_QA bugs as oVirt 3.1 was released:
http://www.ovirt.org/get-ovirt/