Bug 1064530

Summary: vdsm cannot start - iproute2: device ovirtmgmt already exists; can't create bridge with the same name
Product: [Retired] oVirt Reporter: Douglas Schilling Landgraf <dougsland>
Component: vdsmAssignee: Antoni Segura Puimedon <asegurap>
Status: CLOSED CURRENTRELEASE QA Contact: Meni Yakove <myakove>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.4CC: acathrow, bazulay, danken, dougsland, gklein, iheim, mgoldboi, s.kieske, yeylon
Target Milestone: ---   
Target Release: 3.4.1   
Hardware: All   
OS: Linux   
Whiteboard: network
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-08 13:38:36 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:
Attachments:
Description Flags
logs none

Description Douglas Schilling Landgraf 2014-02-12 19:25:43 UTC
Description of problem:

Install a host and upgrades to iproute2, create the networks, put in maint. and reboot. VDSM cannot start.

How reproducible:

- Deploy Host (EL family)
- put in maintenance
- on host changed vdsm.conf to:
[addresses]
management_port = 54321

[vars]
ssl = true
net_configurator = iproute2
net_persistence = unified

- put host up
- Added the network (net25)
  -> Networks -> New -> Name: net25 [X] Enable VLAN tagging: 20

- On host added dummy interface:
  # ip link add name dummy_interface type dummy

- Put host in maintenance/up to reload the new nic

- Hosts tab -> Network interfaces -> setup hosts networks 
  Added the network net25 to dummy0
  [X] Save network configuration

- put in maintenance
- reboot the host

Host is back with the interfaces: dummy0 and net25 however vdsm doesn't start:

Output from vdsm start command:
# service vdsmd start
initctl: Job is already running: libvirtd
vdsm: Running mkdirs
vdsm: Running configure_coredump
vdsm: Running run_init_hooks
vdsm: Running gencerts
vdsm: Running check_is_configured
libvirt is already configured for vdsm
sanlock service is already configured
vdsm: Running validate_configuration
SUCCESS: ssl configured to true. No conflicts
vdsm: Running prepare_transient_repository
vdsm: Running syslog_available
vdsm: Running nwfilter
vdsm: Running dummybr
vdsm: Running load_needed_modules
vdsm: Running tune_system
vdsm: Running test_space
vdsm: Running test_lo
vdsm: Running restore_nets
Traceback (most recent call last):
  File "/usr/share/vdsm/vdsm-restore-net-config", line 78, in <module>
    restore()
  File "/usr/share/vdsm/vdsm-restore-net-config", line 65, in restore
    unified_restoration()
  File "/usr/share/vdsm/vdsm-restore-net-config", line 60, in unified_restoration
    setupNetworks(nets, bonds, connectivityCheck=False, _inRollback=True)
  File "/usr/share/vdsm/configNetwork.py", line 648, in setupNetworks
    implicitBonding=True, **d)
  File "/usr/share/vdsm/configNetwork.py", line 203, in wrapped
    ret = func(**attrs)
  File "/usr/share/vdsm/configNetwork.py", line 285, in addNetwork
    netEnt.configure(**options)
  File "/usr/share/vdsm/netmodels.py", line 159, in configure
    self.configurator.configureBridge(self, **opts)
  File "/usr/share/vdsm/netconf/iproute2.py", line 63, in configureBridge
    self.configApplier.addBridge(bridge)
  File "/usr/share/vdsm/netconf/iproute2.py", line 240, in addBridge
    raise ConfigNetworkError(ERR_FAILED_IFUP, err)
neterrors.ConfigNetworkError: (29, ["device ovirtmgmt already exists; can't create bridge with the same name"])
vdsm: stopped during execute restore_nets task (task returned with error code 1).
vdsm start                                                 [FAILED]


# ls /etc/sysconfig/network-scripts/
ifcfg-dummy0     ifcfg-net25      ifdown-eth   ifdown-post    ifdown-tunnel  ifup-eth   ifup-plip   ifup-routes    init.ipv6-global
ifcfg-dummy0.25  ifcfg-ovirtmgmt  ifdown-ippp  ifdown-ppp     ifup           ifup-ippp  ifup-plusb  ifup-sit       net.hotplug
ifcfg-eth0       ifdown           ifdown-ipv6  ifdown-routes  ifup-aliases   ifup-ipv6  ifup-post   ifup-tunnel    network-functions
ifcfg-lo         ifdown-bnep      ifdown-isdn  ifdown-sit     ifup-bnep      ifup-isdn  ifup-ppp    ifup-wireless  network-functions-ipv6

Comment 1 Antoni Segura Puimedon 2014-02-12 19:33:09 UTC
It seems that the upgrade script didn't get rid of the old ifcfg files owned by vdsm.

Comment 2 Douglas Schilling Landgraf 2014-02-12 20:40:42 UTC
# rpm -qa | grep -i vdsm
vdsm-python-zombiereaper-4.14.2-0.el6.noarch
vdsm-python-4.14.2-0.el6.x86_64
vdsm-4.14.2-0.el6.x86_64
vdsm-xmlrpc-4.14.2-0.el6.noarch

Comment 3 Dan Kenigsberg 2014-02-12 23:24:38 UTC
Do you have /var/log/vdsm/upgrade.log to share?

Comment 4 Douglas Schilling Landgraf 2014-02-13 02:55:32 UTC
Created attachment 862614 [details]
logs

Comment 5 Sandro Bonazzola 2014-05-08 13:38:36 UTC
This is an automated message

oVirt 3.4.1 has been released:
 * should fix your issue
 * should be available at your local mirror within two days.

If problems still persist, please make note of it in this bug report.