Bug 1064530 - vdsm cannot start - iproute2: device ovirtmgmt already exists; can't create bridge with the same name
Summary: vdsm cannot start - iproute2: device ovirtmgmt already exists; can't create ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: vdsm
Version: 3.4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: 3.4.1
Assignee: Antoni Segura Puimedon
QA Contact: Meni Yakove
URL:
Whiteboard: network
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-12 19:25 UTC by Douglas Schilling Landgraf
Modified: 2014-05-08 13:38 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-05-08 13:38:36 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)
logs (12.67 KB, application/x-gzip)
2014-02-13 02:55 UTC, Douglas Schilling Landgraf
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 25063 0 None None None Never
oVirt gerrit 26373 0 None MERGED unified pers: fix restoration when moving from ifcfg pers Never

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.


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