[ovirt-users] Network config

Jorick Astrego j.astrego at netbulae.eu
Tue Jan 27 14:59:35 UTC 2015


On 01/27/2015 01:56 PM, Koen Vanoppen wrote:
> Hello everybody,
>
> Just wanted to know if anybody else has the problem, that when you
> restart your network configuration of a hypervisor, all the settings
> concerning the bonding are gone...
> Do I file a bug report for this or is this already a known issue?
>
> Kind regards,
>
> Koen
>

After a host restart the bonds are indead gone, except for bond and I
get this output:


    MainThread::DEBUG::2015-01-27
    15:44:18,343::api::623::root::(setupNetworks) Validating configuration
    MainThread::DEBUG::2015-01-27
    15:44:18,355::api::635::setupNetworks::(setupNetworks) Applying...
    MainThread::DEBUG::2015-01-27
    15:44:18,355::netconfpersistence::134::root::(_getConfigs)
    Non-existing config set.
    MainThread::DEBUG::2015-01-27
    15:44:18,356::netconfpersistence::134::root::(_getConfigs)
    Non-existing config set.
    MainThread::DEBUG::2015-01-27
    15:44:18,356::utils::739::root::(execCmd) /sbin/ip route show to
    0.0.0.0/0 table all (cwd None)
    MainThread::DEBUG::2015-01-27
    15:44:18,358::utils::759::root::(execCmd) SUCCESS: <err> = ''; <rc> = 0
    MainThread::INFO::2015-01-27
    15:44:18,366::netinfo::555::root::(_getNetInfo) Obtaining info for
    net bond1.
    Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/vdsm/netinfo.py", line 552,
    in _getNetInfo
        'mtu': str(getMtu(iface))})
      File "/usr/lib/python2.7/site-packages/vdsm/netinfo.py", line 182,
    in getMtu
        mtu = open('/sys/class/net/%s/mtu' % iface).readline().rstrip()
    IOError: [Errno 2] No such file or directory:
    u'/sys/class/net/bond1/mtu'
    MainThread::INFO::2015-01-27
    15:44:18,366::netinfo::555::root::(_getNetInfo) Obtaining info for
    net Internet.
    Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/vdsm/netinfo.py", line 536,
    in _getNetInfo
        data.update({'ports': ports(iface), 'stp': bridge_stp_state(iface),
      File "/usr/lib/python2.7/site-packages/vdsm/netinfo.py", line 178,
    in ports
        return os.listdir('/sys/class/net/' + bridge + '/brif')
    OSError: [Errno 2] No such file or directory:
    '/sys/class/net/Internet/brif'
    MainThread::DEBUG::2015-01-27
    15:44:18,373::utils::739::root::(execCmd) /sbin/ip route show to
    0.0.0.0/0 table all (cwd None)
    MainThread::DEBUG::2015-01-27
    15:44:18,375::utils::759::root::(execCmd) SUCCESS: <err> = ''; <rc> = 0
    MainThread::INFO::2015-01-27
    15:44:18,384::netconfpersistence::158::root::(_clearDisk) Clearing
    /var/run/vdsm/netconf/nets/ and /var/run/vdsm/netconf/bonds/
    MainThread::DEBUG::2015-01-27
    15:44:18,384::netconfpersistence::166::root::(_clearDisk) No
    existent config to clear.
    MainThread::INFO::2015-01-27
    15:44:18,384::netconfpersistence::182::root::(save) Saved new config
    RunningConfig({}, {}) to /var/run/vdsm/netconf/nets/ and
    /var/run/vdsm/netconf/bonds/
    MainThread::DEBUG::2015-01-27
    15:44:18,386::netconfpersistence::134::root::(_getConfigs)
    Non-existing config set.
    MainThread::DEBUG::2015-01-27
    15:44:18,386::netconfpersistence::134::root::(_getConfigs)
    Non-existing config set.
    MainThread::DEBUG::2015-01-27
    15:44:18,470::utils::739::root::(execCmd) /usr/sbin/ifdown Internet
    (cwd None)
    MainThread::DEBUG::2015-01-27
    15:45:46,165::netconfpersistence::134::root::(_getConfigs)
    Non-existing config set.
    MainThread::DEBUG::2015-01-27
    15:45:46,165::netconfpersistence::134::root::(_getConfigs)
    Non-existing config set.

This is what  I get  later after I try "Setup host networks" again:

    MainThread::INFO::2015-01-27
    15:53:16,739::netconfpersistence::182::root::(save) Saved new config
    RunningConfig({}, {}) to /var/run/vdsm/netconf/nets/ and
    /var/run/vdsm/netconf/bonds/
    MainThread::DEBUG::2015-01-27
    15:53:16,740::netconfpersistence::134::root::(_getConfigs)
    Non-existing config set.
    MainThread::DEBUG::2015-01-27
    15:53:16,740::netconfpersistence::134::root::(_getConfigs)
    Non-existing config set.
    MainThread::DEBUG::2015-01-27
    15:53:16,743::utils::739::root::(execCmd) /usr/sbin/ifdown Internet
    (cwd None)
    MainThread::DEBUG::2015-01-27
    15:54:46,772::netconfpersistence::134::root::(_getConfigs)
    Non-existing config set.
    MainThread::DEBUG::2015-01-27
    15:54:46,772::netconfpersistence::134::root::(_getConfigs)
    Non-existing config set.
    MainThread::DEBUG::2015-01-27
    15:54:46,772::vdsm-restore-net-config::55::root::(unified_restoration)
    Removing all networks ({}) and bonds ({}) in running config.
    MainThread::DEBUG::2015-01-27
    15:54:46,772::libvirtconnection::150::root::(get) trying to connect
    libvirt
    MainThread::DEBUG::2015-01-27
    15:54:46,787::utils::739::root::(execCmd) /sbin/ip route show to
    0.0.0.0/0 table all (cwd None)
    MainThread::DEBUG::2015-01-27
    15:54:46,790::utils::759::root::(execCmd) SUCCESS: <err> = ''; <rc> = 0
    MainThread::DEBUG::2015-01-27
    15:54:46,791::utils::739::root::(execCmd) /sbin/ip route show to
    0.0.0.0/0 table all (cwd None)
    MainThread::DEBUG::2015-01-27
    15:54:46,793::utils::759::root::(execCmd) SUCCESS: <err> = ''; <rc> = 0
    MainThread::DEBUG::2015-01-27
    15:54:46,803::api::619::setupNetworks::(setupNetworks) Setting up
    network according to configuration: networks:{}, bondings:{},
    options:{'_inRollback': True, 'connectivityCheck': False}
    MainThread::DEBUG::2015-01-27
    15:54:46,803::api::623::root::(setupNetworks) Validating configuration
    MainThread::DEBUG::2015-01-27
    15:54:46,807::api::635::setupNetworks::(setupNetworks) Applying...
    MainThread::DEBUG::2015-01-27
    15:54:46,808::netconfpersistence::134::root::(_getConfigs)
    Non-existing config set.
    MainThread::DEBUG::2015-01-27
    15:54:46,808::netconfpersistence::134::root::(_getConfigs)
    Non-existing config set.
    MainThread::DEBUG::2015-01-27
    15:54:46,808::utils::739::root::(execCmd) /sbin/ip route show to
    0.0.0.0/0 table all (cwd None)
    MainThread::DEBUG::2015-01-27
    15:54:46,810::utils::759::root::(execCmd) SUCCESS: <err> = ''; <rc> = 0
    MainThread::DEBUG::2015-01-27
    15:54:46,820::utils::739::root::(execCmd) /sbin/ip route show to
    0.0.0.0/0 table all (cwd None)
    MainThread::DEBUG::2015-01-27
    15:54:46,822::utils::759::root::(execCmd) SUCCESS: <err> = ''; <rc> = 0
    MainThread::INFO::2015-01-27
    15:54:46,831::netconfpersistence::158::root::(_clearDisk) Clearing
    /var/run/vdsm/netconf/nets/ and /var/run/vdsm/netconf/bonds/
    MainThread::DEBUG::2015-01-27
    15:54:46,831::netconfpersistence::166::root::(_clearDisk) No
    existent config to clear.
    MainThread::INFO::2015-01-27
    15:54:46,831::netconfpersistence::182::root::(save) Saved new config
    RunningConfig({}, {}) to /var/run/vdsm/netconf/nets/ and
    /var/run/vdsm/netconf/bonds/
    MainThread::DEBUG::2015-01-27
    15:54:46,832::netconfpersistence::134::root::(_getConfigs)
    Non-existing config set.
    MainThread::DEBUG::2015-01-27
    15:54:46,832::netconfpersistence::134::root::(_getConfigs)
    Non-existing config set.
    MainThread::DEBUG::2015-01-27
    15:54:46,835::utils::739::root::(execCmd) /usr/sbin/ifdown Internet
    (cwd None)
    sourceRoute::DEBUG::2015-01-27
    15:56:05,410::sourceroutethread::39::root::(process_IN_CLOSE_WRITE_filePath)
    Responding to DHCP response in /var/run/vdsm/sourceRoutes/1422370565
    sourceRoute::INFO::2015-01-27
    15:56:05,414::sourceroutethread::60::root::(process_IN_CLOSE_WRITE_filePath)
    interface bond0 is not a libvirt interface
    sourceRoute::WARNING::2015-01-27
    15:56:05,414::utils::129::root::(rmFile) File:
    /var/run/vdsm/trackedInterfaces/bond0 already removed

And there is no "/var/run/vdsm/netconf/nets" or
"/var/run/vdsm/netconf/bonds/"

    ls -lart /var/run/vdsm/
    total 0
    drwxr-xr-x.  2 vdsm kvm    40 Jan 27 15:43 trackedInterfaces
    srwxr-xr-x.  1 vdsm kvm     0 Jan 27 15:44 svdsm.sock
    drwxr-xr-x.  4 vdsm kvm   100 Jan 27 15:44 .
    drwxr-xr-x. 34 root root 1140 Jan 27 15:44 ..
    drwxr-xr-x.  2 vdsm kvm    40 Jan 27 15:52 sourceRoutes


     ls -lart /var/run/vdsm/trackedInterfaces/
    total 0
    drwxr-xr-x. 2 vdsm kvm  40 Jan 27 15:43 .
    drwxr-xr-x. 4 vdsm kvm 100 Jan 27 15:44 ..







Met vriendelijke groet, With kind regards,

Jorick Astrego

Netbulae Virtualization Experts 

----------------

	Tel: 053 20 30 270 	info at netbulae.eu 	Staalsteden 4-3A 	KvK 08198180
 	Fax: 053 20 30 271 	www.netbulae.eu 	7547 TA Enschede 	BTW NL821234584B01

----------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20150127/db23b77e/attachment-0001.html>


More information about the Users mailing list