Bug 1584016 - Ansible fails if ovirtmgmt exists but isn't the bridge used
Summary: Ansible fails if ovirtmgmt exists but isn't the bridge used
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: ovirt-hosted-engine-setup
Classification: oVirt
Component: General
Version: 2.2.20
Hardware: x86_64
OS: Linux
medium
low
Target Milestone: ---
: ---
Assignee: Ido Rosenzwig
QA Contact: Meni Yakove
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-30 07:36 UTC by Benjamin Merot
Modified: 2018-06-29 14:26 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-06-10 11:52:16 UTC
oVirt Team: Integration
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1578418 0 medium CLOSED Checks on bond mode are not effective 2021-02-22 00:41:40 UTC

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


Note You need to log in before you can comment on or make changes to this bug.