Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1253939 - vdsm create ovirtmgmt bridge with DEFROUTE=no
vdsm create ovirtmgmt bridge with DEFROUTE=no
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-hosted-engine-setup (Show other bugs)
3.6.0
All Linux
unspecified Severity urgent
: ovirt-3.6.0-rc3
: 3.6.0
Assigned To: Simone Tiraboschi
Artyom
: Regression, Triaged
: 1254556 (view as bug list)
Depends On:
Blocks: 1201355
  Show dependency treegraph
 
Reported: 2015-08-15 17:00 EDT by Artyom
Modified: 2016-03-09 14:14 EST (History)
16 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Previously, VDSM used a heuristic to configure the default route property based on the bridge name. This was removed in Red Hat Enterprise Virtualization 3.6 as the name was not mandatory. However, this caused the default bridge property not to be configured for a hosted engine. Now, VDSM explicitly sets the default bridge property.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-03-09 14:14:08 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: Integration
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
logs (54.24 KB, application/x-gzip)
2015-08-15 17:00 EDT, Artyom
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 45733 master MERGED network: always passing defaultRoute attribute Never
oVirt gerrit 45859 ovirt-hosted-engine-setup-1.3 MERGED network: always passing defaultRoute attribute Never
Red Hat Product Errata RHEA-2016:0375 normal SHIPPED_LIVE ovirt-hosted-engine-setup bug fix and enhancement update 2016-03-09 18:48:34 EST

  None (edit)
Description Artyom 2015-08-15 17:00:21 EDT
Created attachment 1063322 [details]
logs

Description of problem:
I ran hosted-engine --deploy on clean host(without ovirtmgmt bridge), in deployment time vdsm create ovirtmgmt bridge with  DEFROUTE=no, so I lost connection to storage and deployment fails.

Version-Release number of selected component (if applicable):
vdsm-4.17.0-1239.git6575e3f.el7.noarch
ovirt-hosted-engine-setup-1.3.0-0.0.master.20150729070044.git26149d7.el7.noarch

How reproducible:
Always

Steps to Reproduce:
1. Have clean host without ovirtmgmt bridge
2. run hosted-engine --deploy
3. continue deployment until
...
 INFO  ] Starting vdsmd
[ INFO  ] Waiting for VDSM hardware info
[ INFO  ] Configuring the management bridge
[ ERROR ] Failed to execute stage 'Misc configuration': Connection to storage server failed
[ INFO  ] Stage: Clean up
...

Actual results:
vdsm create bridge with DEFROUTE=no and in result deployment failed

Expected results:
vdsm must create bridge with DEFROUTE=yes

Additional info:
cat /etc/sysconfig/network-scripts/ifcfg-ovirtmgmt 
# Generated by VDSM version 4.17.0-1239.git6575e3f.el7
DEVICE=ovirtmgmt
TYPE=Bridge
DELAY=0
STP=off
ONBOOT=yes
BOOTPROTO=dhcp
DEFROUTE=no
NM_CONTROLLED=no
IPV6INIT=no
HOTPLUG=no

I can after that bridge created to change DEFROUTE to yes manually, but problem that after restart it return to NO and all hosted-engine services fails, because they can not connect to storage
Comment 2 Sandro Bonazzola 2015-08-20 07:09:01 EDT
Does the interface you used for creating the bridge have DEFROUTE=yes defined?
Comment 3 Artyom 2015-08-23 09:30:57 EDT
yes I checked it again on clear host
before hosted-engine --deploy:
cat /etc/sysconfig/network-scripts/ifcfg-enp1s0
# Generated by dracut initrd
NAME="enp1s0"
DEVICE="enp1s0"
ONBOOT=yes
NETBOOT=yes
UUID="dd8a3770-6182-4ee9-a410-bfed3461f930"
IPV6INIT=yes
BOOTPROTO=dhcp
TYPE=Ethernet
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
PEERDNS=yes
PEERROUTES=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes

after hosted-engine --deploy(fail after bridge creation)
cat /etc/sysconfig/network-scripts/ifcfg-ovirtmgmt 
# Generated by VDSM version 4.17.3-1.el7ev
DEVICE=ovirtmgmt
TYPE=Bridge
DELAY=0
STP=off
ONBOOT=yes
BOOTPROTO=dhcp
DEFROUTE=no
NM_CONTROLLED=no
IPV6INIT=no
HOTPLUG=no

cat /etc/sysconfig/network-scripts/ifcfg-enp1s0
# Generated by VDSM version 4.17.3-1.el7ev
DEVICE=enp1s0
HWADDR=00:1e:c9:30:64:ff
BRIDGE=ovirtmgmt
ONBOOT=yes
NM_CONTROLLED=no
IPV6INIT=no
Comment 4 Yaniv Lavi 2015-09-02 05:20:54 EDT
Why is this happening in VDSM?
Comment 5 Dan Kenigsberg 2015-09-03 03:52:35 EDT
Formerly, Vdsm assumed that a network named "ovirtmgmt" or "rhevm" is the management network, and applied a heuristic to set defaultRoute=True on it.

engine>=3.4 does not require this heuristics; it sends defaultRoute explicitly. Hence, we dropped the heuristics from Vdsm.

Alas, we forgot the hosted-engine use case.

When creating the management network, would you please send defaultRoute=True as Engine does?

regards,
Dan.
Comment 6 Sandro Bonazzola 2015-09-03 11:40:28 EDT
Simone, can you take care of this?
Comment 7 Simone Tiraboschi 2015-09-03 11:59:43 EDT
On hosted-engine-setup we let the user choose the interface where it will create the management bridge on.
Should I always set defaultRoute=True for it or is better to check if the selected interface was in use for the default route and set defaultRoute parameter according to that?
Comment 8 Dan Kenigsberg 2015-09-06 04:16:36 EDT
(In reply to Simone Tiraboschi from comment #7)
> On hosted-engine-setup we let the user choose the interface where it will
> create the management bridge on.
> Should I always set defaultRoute=True for it or is better to check if the
> selected interface was in use for the default route and set defaultRoute
> parameter according to that?

On non-he setups we don't support that. We force defaultroute on top of the management network (bug 1200963 wants to fix that).

I think that gving this flexibility on he setups is nice, but not necessarily urgent.
Comment 10 Artyom 2015-10-11 04:59:01 EDT
Verified on ovirt-hosted-engine-setup-1.3.0-1.el7ev.noarch
DEFROUTE=yes after bridge creation
Comment 11 Sandro Bonazzola 2015-12-14 10:39:47 EST
*** Bug 1254556 has been marked as a duplicate of this bug. ***
Comment 13 errata-xmlrpc 2016-03-09 14:14:08 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-0375.html

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