Bug 1438407

Summary: In Hosted Engine setup when the lun is not empty and you choose Force this param not added to answer file
Product: [oVirt] ovirt-hosted-engine-setup Reporter: Kobi Hakimi <khakimi>
Component: GeneralAssignee: Simone Tiraboschi <stirabos>
Status: CLOSED WONTFIX QA Contact: Nikolai Sednev <nsednev>
Severity: medium Docs Contact:
Priority: low    
Version: 2.1.0CC: bugs, didi, tnisan, ylavi
Target Milestone: ---Flags: sbonazzo: ovirt-4.3-
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-25 07:34:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kobi Hakimi 2017-04-03 11:23:46 UTC
Description of problem:
In Hosted Engine setup when the lun is not empty and you choose Force this param not added to answer file

Version-Release number of selected component (if applicable):
Red Hat Virtualization Manager Version: 4.1.1.2-0.1.el7


How reproducible:
100%

Steps to Reproduce:
1. Deploy manually the hosted-engine on not empty lun with generate-answer
   like:
   hosted-engine --deploy --generate-answer=/etc/ansible-ovirt/answer
2. Choose the correct lun and when you get the following condition:
          The selected device is already used.
          To create a vg on this device, you must use Force.
          WARNING: This will destroy existing data on the device.
          (Force, Abort)[Abort]?
3. Type "Force" and continue.
4. In the end of deploy open the generated answer file.

Actual results:
The Force parameter not exist in the answer file

Expected results:
To see this parameter:
OVEHOSTED_ENGINE/forceCreateVG=bool:True
in the answer file.

IMHO the answer file should reflect the setup as the user type during the 
setup process 

Additional info:

Comment 1 Yaniv Lavi 2017-04-12 11:15:01 UTC
*** Bug 1438412 has been marked as a duplicate of this bug. ***

Comment 2 Yaniv Lavi 2018-06-25 07:34:11 UTC
Closing old bugs.
Please reopen if still relevant.
Patches are welcomed.

Comment 3 Yedidyah Bar David 2018-06-25 07:48:59 UTC
We should probably fix this and similar bugs by using otopi-generated answer files also in hosted-engine-setup, like bug 1518697. Not sure this will be so easy, because we use the answer files for different things, not only for unattended re-runs of manual first-host setups. So not sure we'll ever do this.