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".
What error are you getting? please attach logs from /var/log/ovirt-hosted-engine-setup
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.
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.
Shouldn't Ansible fail earlier in the run and not accept another value than "ovirtmgmt" from an answer file then?
yes we should. opened a bug about it: https://bugzilla.redhat.com/show_bug.cgi?id=1594823