Bug 1287542

Summary: Additional hosts setup using hosted-engine deploy script shows the wrong default value for host_ID
Product: [oVirt] ovirt-hosted-engine-setup Reporter: SATHEESARAN <sasundar>
Component: GeneralAssignee: Sandro Bonazzola <sbonazzo>
Status: CLOSED WONTFIX QA Contact: Ilanit Stein <istein>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.3.0CC: bugs, didi, lveyde, rmartins, sbonazzo, stirabos
Target Milestone: ---Flags: sasundar: planning_ack?
sasundar: devel_ack?
sasundar: testing_ack?
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
RHEVM 3.6 Beta1 RHEV+RHGS ( Hyperconvergence )
Last Closed: 2015-12-02 12:49:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1277939    

Description SATHEESARAN 2015-12-02 10:16:37 UTC
Description of problem:
-----------------------
Configured hosted-engine to run on the RHEL 7.2 hypervisor.
Added one more node using additional host setup procedure of hosted-engine.
While adding the third additional host to the hosted-engine, the default value suggested for host ID was still 2

Version-Release number of selected component (if applicable):
-------------------------------------------------------------
RHEVM 3.6 beta1
ovirt-hosted-engine-ha-1.3.2.1-1.el7ev.noarch
ovirt-hosted-engine-setup-1.3.0-1.el7ev.noarch

How reproducible:
-----------------
always

Steps to Reproduce:
-------------------
1. Configure hosted engine to run on host1
2. add one more host to the cluster using additional host setup for hosted engine
3. After second host addition was successful, add one more node
4. This time check for default value of host ID

Actual results:
---------------
The default value of host ID remains to be 2

Expected results:
-----------------
The default value of host ID should be 3

Additional info:
-----------------
[ INFO  ] Installing on additional host
          Please specify the Host ID [Must be integer, default: 2]:

Comment 1 Simone Tiraboschi 2015-12-02 12:49:55 UTC
The default is 2 just because it's an additional host so it cannot be 1: it's up to user to choose.
We already check the entered value against the metadata volume but honestly I don't think it's worth to preemptively scan it to find an empty ID.
On the next release we'll have also the capability to deploy additional hosts from the engine and in that case the engine will choose for us.