Bug 837868 - ovirt node: standardize the bridge creation
Summary: ovirt node: standardize the bridge creation
Status: CLOSED DUPLICATE of bug 837443
Alias: None
Product: oVirt
Classification: Retired
Component: vdsm
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Dan Kenigsberg
QA Contact: Haim
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-05 16:13 UTC by Douglas Schilling Landgraf
Modified: 2016-04-27 03:23 UTC (History)
14 users (show)

(edit)
Clone Of:
(edit)
Last Closed: 2012-07-09 20:49:14 UTC


Attachments (Terms of Use)

Description Douglas Schilling Landgraf 2012-07-05 16:13:27 UTC
Description of problem:

   The autoinstall of oVirt Node creates the bridge in the system and in libvirt 
database. However, a manual installation the bridge is only created in the system, not in libvirt database. 

We could also think to remove the creation of the bridge since vdsm just remove it to create the ovirt bridge (ovirtmgmt).

How to reproduce:

Manual Install steps:
=========================

   - Execute a manual install
   - Using TUI setup the network
   - Press 'F2' in the TUI for shell
   - Type 'ifconfig' and you will see a bridge, example: 'brem1'
   - Using virsh check that there is no bridge listed in libvirt database
     # virsh --readonly net-list

Autoinstall
============================

   - Boot the oVirt Node ISO and press TAB and add the following parameters:
     storage_init=/dev/sda BOOTIF=em1 adminpw=RHhwCLrQXB8zE

    Note: admin password is 'redhat'

   - Press 'F2' in the TUI for shell
   - Type 'ifconfig' and you will see a bridge, example: 'brem1'
   - Using virsh check that there is no bridge listed in libvirt database
 
     # virsh --readonly net-list
     Name            State         Autostart
     -----------------------------------------
     vdsm-brem1      active        yes

Comment 1 Mike Burns 2012-07-05 17:16:38 UTC
After additional thought on this, it's not an ovirt-node issue.  ovirt-node does not, at any point, create a libvirt network.  

The only difference between the Manual TUI install and an autoinstall is a reboot between when the network is configured and when the vdsm-reg configuration runs.  

I ran 2 additional tests:

1.  TUI install, reboot, configure network, reboot

virsh --readonly net-list shows vdsm-breth0

2.  TUI install, reboot, configure network, systemctl restart vdsmd.service

virsh --readonly net-list shows vdsm-breth0

It appears that this libvirt network creation is done in vdsm and not in ovirt-node.


Given the above, this becomes a vdsm bug to either create the network when vdsm-reg runs, or handle a bridge that doesn't have a corresponding libvirt network.  


As for not creating bridges in ovirt-node at all, there are other use cases for ovirt-node that are not vdsm/ovirt-engine specific.  Those use cases generally do require that the bridge is created and a major change like that could cause significant problems for other consumers.

Comment 2 Douglas Schilling Landgraf 2012-07-09 20:49:14 UTC

*** This bug has been marked as a duplicate of bug 837443 ***


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