Bug 1172287

Summary: hosted engine deploy on vlan Cannot acquire bridge address
Product: [Retired] oVirt Reporter: rstory
Component: ovirt-hosted-engine-setupAssignee: Simone Tiraboschi <stirabos>
Status: CLOSED CURRENTRELEASE QA Contact: meital avital <mavital>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.5CC: ecohen, gklein, iheim, lsurette, rbalakri, sbonazzo, yeylon
Target Milestone: ---   
Target Release: 3.5.1   
Hardware: Unspecified   
OS: Linux   
Whiteboard: integration
Fixed In Version: ovirt-3.5.1_rc1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1172545 (view as bug list) Environment:
Last Closed: 2015-01-21 16:04:50 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: 1172545, 1192937    

Description rstory 2014-12-09 19:13:54 UTC
Description of problem:
I've got a hosted engine up and running on a freshly installed 
3.5 host (CentOS 6.6), and I'm tyying to add a second host. The 
install fails trying to configure the ovirtmgmt bridge:

[ INFO  ] Updating hosted-engine configuration
[ INFO  ] Stage: Transaction commit
[ INFO  ] Stage: Closing up
[ ERROR ] Failed to execute stage 'Closing up': Cannot acquire bridge address

Version-Release number of selected component (if applicable):


How reproducible:
every time


Steps to Reproduce:
1. set up hosted-engine on 1st host using vlan
2. try to deploy on second host with vlan suing name of the form ethN.V
3.

Actual results:
setup cannot aquire bridge address

Expected results:
setup succeeds

Additional info:
See ovirt-users message thread started around On Wed, 5 Nov 2014 19:57:07 -0500 with subject "3.5 hosted engine: 2nd host Cannot acquire bridge address"

complete logs from the second host at 
  http://futz.org/users/tmp/ovirt7/

On Tue, 09 Dec 2014 10:32:39 +0100 Sandro wrote:
Looking at setup logs, you have: OVEHOSTED_NETWORK/bridgeIf=str:'eth1.79'

and when it try to get the ip address for the interface:

2014-11-05 19:35:03 DEBUG otopi.plugins.ovirt_hosted_engine_setup.engine.add_host plugin.execute:861 execute-output: ('/sbin/ip', 'addr', 'show',
'eth1.79') stdout:
4: eth1.79@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
    link/ether 00:26:9e:0b:31:e5 brd ff:ff:ff:ff:ff:ff
    inet 10.69.79.32/24 brd 10.69.79.255 scope global eth1.79
    inet6 fe80::226:9eff:fe0b:31e5/64 scope link
       valid_lft forever preferred_lft forever

2014-11-05 19:35:03 DEBUG otopi.plugins.ovirt_hosted_engine_setup.engine.add_host plugin.execute:866 execute-output: ('/sbin/ip', 'addr', 'show',
'eth1.79') stderr:


2014-11-05 19:35:03 DEBUG otopi.context context._executeMethod:152 method exception
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/otopi/context.py", line 142, in _executeMethod
    method['method']()
  File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/engine/add_host.py", line 485, in _closeup
    address=self._getIPAddress(),
  File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/engine/add_host.py", line 199, in _getIPAddress
    raise RuntimeError(_('Cannot acquire bridge address'))
RuntimeError: Cannot acquire bridge address


which seems to fail matching REGEXP:

    _ADDRESS_RE = re.compile(
        flags=re.VERBOSE,
        pattern=r"""
            \s+
            inet
            \s
            (?P<address>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})
            .+
            \s+
            (?P<interface>\w+)
            $
    """
    )

I guess the match is failing due to the '.' in 'eth1.79'

Comment 1 Sandro Bonazzola 2015-01-15 14:35:59 UTC
This is an automated message: 
This bug should be fixed in oVirt 3.5.1 RC1, moving to QA

Comment 2 Sandro Bonazzola 2015-01-21 16:04:50 UTC
oVirt 3.5.1 has been released. If problems still persist, please make note of it in this bug report.