Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1584016

Summary: Ansible fails if ovirtmgmt exists but isn't the bridge used
Product: [oVirt] ovirt-hosted-engine-setup Reporter: Benjamin Merot <benjamin.merot>
Component: GeneralAssignee: Ido Rosenzwig <irosenzw>
Status: CLOSED NOTABUG QA Contact: Meni Yakove <myakove>
Severity: low Docs Contact:
Priority: medium    
Version: 2.2.20CC: benjamin.merot, bugs, irosenzw, ylavi
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-10 11:52:16 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 Benjamin Merot 2018-05-30 07:36:47 UTC
The Ansible playbook has two parameters related to bridge NIC.
One is bridgeIf and the other is bridgeName which by default is set to ovirtmgmt.

If you specify for those two parameters something else, say "br0.1234", but a "ovirtmgmt" interface exists then in "bootstrap_local_vm.yml" Ansible will fail at the step "Create hosted engine local vm".

Comment 1 Ido Rosenzwig 2018-06-05 07:05:35 UTC
What error are you getting?
please attach logs from /var/log/ovirt-hosted-engine-setup

Comment 2 Benjamin Merot 2018-06-06 08:05:43 UTC
It's oVirt release 4.2.3.
You can see the hardcoded variable here: https://github.com/oVirt/ovirt-hosted-engine-setup/blob/master/src/ansible/bootstrap_local_vm.yml#L72
Using GitHub as it's easier to find the line than in Gerrit.
With seen that tasks following under that block can fail if the host being setup doesn't have a bridge named ovirtmgmt.

Comment 3 Ido Rosenzwig 2018-06-10 11:52:16 UTC
This is by design.

When deploying Hosted-engine, VDSM configure the ovirtmgmt bridge for an interface 
the user chose.

The ovirtmgmt bridge can be present before the deployment in case a deployment has
failed for some reason and the user deploying Hosted-engine again. 
In this case, the system uses the pre-configured ovirtmgmt bridge.

bridgeName by design MUST be ovirtmgmt and shouldn't be changed.
bridgeIf is the interface ovirtmgmt configured on. If ovirtmgmt is already configured 
its value should be the same interface (that was chosen in the previous deployment).

Closing as NOTABUG.
If you have a specific issue, please open a new bug and attach relevant logs.

Comment 4 Benjamin Merot 2018-06-11 07:39:45 UTC
Shouldn't Ansible fail earlier in the run and not accept another value than "ovirtmgmt" from an answer file then?

Comment 5 Ido Rosenzwig 2018-06-25 13:43:02 UTC
yes we should. opened a bug about it: https://bugzilla.redhat.com/show_bug.cgi?id=1594823