Bug 891056 - PRD33 - [RFE] Normalized ovirtmgmt Initialization - provision mgmt network post bootstrap
Summary: PRD33 - [RFE] Normalized ovirtmgmt Initialization - provision mgmt network po...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.2.0
Hardware: x86_64
OS: Windows
medium
medium
Target Milestone: ---
: 3.3.0
Assignee: Moti Asayag
QA Contact: Martin Pavlik
URL: http://www.ovirt.org/Features/Normali...
Whiteboard: network
: 917724 (view as bug list)
Depends On: 967866
Blocks: 976691 1019470
TreeView+ depends on / blocked
 
Reported: 2013-01-01 12:47 UTC by Dan Kenigsberg
Modified: 2019-04-28 09:41 UTC (History)
15 users (show)

Fixed In Version: is5
Doc Type: Release Note
Doc Text:
The configuration of the management bridge on the host was moved from ovirt-host-deploy phase into the engine for the 3.3 cluster level. Once the host is installed, the engine will configure the management network according to its logical definition on the data center level. Previously, the ovirt-host-deploy created the management bridge using more primitive methods compared to the engine capabilities. This lead to higher chance of fail, failure to revert or having incorrect network settings. As a side effect and by trusting the engine to be able to recover from invalid network configuration, the host reboot is no longer required as the last step of the host installation.
Clone Of:
: 976691 (view as bug list)
Environment:
Last Closed: 2014-01-21 17:12:14 UTC
oVirt Team: Network
Target Upstream Version:
Embargoed:
sgrinber: Triaged+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 293443 0 None None None Never
Red Hat Product Errata RHSA-2014:0038 0 normal SHIPPED_LIVE Important: Red Hat Enterprise Virtualization Manager 3.3.0 update 2014-01-21 22:03:06 UTC
oVirt gerrit 14230 0 None None None Never

Description Dan Kenigsberg 2013-01-01 12:47:08 UTC
The management network, named ovirtmgmt, is created during host bootstrap. It consists of a bridge device, connected to the network device that was used to communicate with Engine (nic, bonding or vlan). It inherits its ip settings from the latter device. Creating the management network is the most fragile, error-prone step of bootstrap.

Currently it always creates a bridged network (even if the DC requires a non-bridged ovirtmgmt), it knows nothing about the defined MTU for ovirtmgmt, it uses ping to guess on top of which device to build (and thus requires Vdsm-to-Engine reverse connectivity), and is the sole remaining user of the addNetwork/vdsm-store-net-conf scripts.

Bootstrap would avoid creating a management network. Instead, after bootstrapping a host, Engine would send a getVdsCaps probe to the installed host, receiving a complete picture of the network configuration on the host. Among this picture is the device that holds the host's management IP address.

Most of the work lies in Engine, where the output of getVdsCaps should be parsed, and a setupNetworks command should be transmitted after a new host is added to the data center. A preliminary list of actions when adding a host is:

1. start host deployment with
        ODEPLOY/forceReboot = False
        VDSM/managementBridgeName undefined 
2. after otopi finishes, start to poll host with getVdsCaps. If timeout expires, fail host deployment.
3. define ovirtmgmt on host
   - if already defined, declare success.
   - acquire lastClientInterface and devise network definition for ovirtmgmt. 
   - send setupNetworks with the new network definition.
   - on success, send setSafeNetConfig. On failure show an event to the user. the host would be left unoperational, and may need manual network configuration. 
4. if the user requested post-installation reboot, fence the newly-added host.

http://lists.ovirt.org/pipermail/arch/2012-December/001101.html

Comment 1 Simon Grinberg 2013-03-14 10:22:26 UTC
*** Bug 917724 has been marked as a duplicate of this bug. ***

Comment 3 Alon Bar-Lev 2013-04-24 14:44:03 UTC
Hello,

I see this merge upstream.

I was not CCed on this, just to make sure... this patch should have deployed a host without creating the bridge, right?

How was it tested?

As far as mpavlik sees engine still passes the management bridge name to host-deploy.

Thanks,
Alon

Comment 4 Moti Asayag 2013-04-25 09:43:10 UTC
(In reply to comment #3)
> Hello,
> 
> I see this merge upstream.
> 
> I was not CCed on this, just to make sure... this patch should have deployed
> a host without creating the bridge, right?
> 

I missed a patch to the VdsDesploy which removes the need of this environment value.

> How was it tested?
> 

Since the entire logic was implemented as part of the host activation flow, it was tested via the activating the host and not by its installation.

> As far as mpavlik sees engine still passes the management bridge name to
> host-deploy.
> 

Posted a complementary patch for the host installation part:

http://gerrit.ovirt.org/14230

> Thanks,
> Alon

Comment 5 Alon Bar-Lev 2013-06-19 17:24:29 UTC
I still need to complete the packaging.

Comment 6 Alon Bar-Lev 2013-09-24 07:25:59 UTC
Trying to rephrase the doc text a bit...

Comment 7 Cheryn Tan 2013-09-24 08:08:13 UTC
:) Thanks!

Comment 9 errata-xmlrpc 2014-01-21 17:12:14 UTC
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.

http://rhn.redhat.com/errata/RHSA-2014-0038.html


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