<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I can see in the log that VDSM tried to obtain information about
    bond1 and (bridge) "Internet", both of which did not exist (yet?) in
    a procedure which reports the information back to oVirt. But this
    just means that no information about them was reported, it shows no
    real error.<br>
    <br>
    There was no network configuration to be stored (persisted), this is
    why the directories "/var/run/vdsm/netconf/nets" and
    "/var/run/vdsm/netconf/bonds/" are not there.<br>
    <br>
    If you use a static address/gateway, does the creation of the bond
    and the network succeed in "Setup host networks"? If it does not I
    suggest that you attach the whole logs.<br>
    <br>
    <div class="moz-cite-prefix">On 27.1.2015 15:59, Jorick Astrego
      wrote:<br>
    </div>
    <blockquote cite="mid:54C7A7D7.9040604@netbulae.eu" type="cite">
      <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
      <br>
      <div class="moz-cite-prefix">On 01/27/2015 01:56 PM, Koen Vanoppen
        wrote:<br>
      </div>
      <blockquote
cite="mid:CACfY+MZ4zSzYnqbf3aM5wnHiNVMrm2bwsj9YwAQAeWO53ppdDw@mail.gmail.com"
        type="cite">
        <div dir="ltr">
          <div>
            <div>
              <div>Hello everybody,<br>
                <br>
              </div>
              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...<br>
            </div>
            Do I file a bug report for this or is this already a known
            issue?<br>
            <br>
          </div>
          Kind regards,<br>
          <br>
          Koen<br>
        </div>
        <br>
      </blockquote>
      <br>
      After a host restart the bonds are indead gone, except for bond
      and I get this output:<br>
      <br>
      <br>
      <blockquote>MainThread::DEBUG::2015-01-27
        15:44:18,343::api::623::root::(setupNetworks) Validating
        configuration<br>
        MainThread::DEBUG::2015-01-27
        15:44:18,355::api::635::setupNetworks::(setupNetworks)
        Applying...<br>
        MainThread::DEBUG::2015-01-27
        15:44:18,355::netconfpersistence::134::root::(_getConfigs)
        Non-existing config set.<br>
        MainThread::DEBUG::2015-01-27
        15:44:18,356::netconfpersistence::134::root::(_getConfigs)
        Non-existing config set.<br>
        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)<br>
        MainThread::DEBUG::2015-01-27
        15:44:18,358::utils::759::root::(execCmd) SUCCESS: &lt;err&gt; =
        ''; &lt;rc&gt; = 0<br>
        MainThread::<a moz-do-not-send="true"
          class="moz-txt-link-freetext" href="INFO::2015-01-27">INFO::2015-01-27</a>
        15:44:18,366::netinfo::555::root::(_getNetInfo) Obtaining info
        for net bond1.<br>
        Traceback (most recent call last):<br>
          File "/usr/lib/python2.7/site-packages/vdsm/netinfo.py", line
        552, in _getNetInfo<br>
            'mtu': str(getMtu(iface))})<br>
          File "/usr/lib/python2.7/site-packages/vdsm/netinfo.py", line
        182, in getMtu<br>
            mtu = open('/sys/class/net/%s/mtu' %
        iface).readline().rstrip()<br>
        IOError: [Errno 2] No such file or directory:
        u'/sys/class/net/bond1/mtu'<br>
        MainThread::<a moz-do-not-send="true"
          class="moz-txt-link-freetext" href="INFO::2015-01-27">INFO::2015-01-27</a>
        15:44:18,366::netinfo::555::root::(_getNetInfo) Obtaining info
        for net Internet.<br>
        Traceback (most recent call last):<br>
          File "/usr/lib/python2.7/site-packages/vdsm/netinfo.py", line
        536, in _getNetInfo<br>
            data.update({'ports': ports(iface), 'stp':
        bridge_stp_state(iface),<br>
          File "/usr/lib/python2.7/site-packages/vdsm/netinfo.py", line
        178, in ports<br>
            return os.listdir('/sys/class/net/' + bridge + '/brif')<br>
        OSError: [Errno 2] No such file or directory:
        '/sys/class/net/Internet/brif'<br>
        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)<br>
        MainThread::DEBUG::2015-01-27
        15:44:18,375::utils::759::root::(execCmd) SUCCESS: &lt;err&gt; =
        ''; &lt;rc&gt; = 0<br>
        MainThread::<a moz-do-not-send="true"
          class="moz-txt-link-freetext" href="INFO::2015-01-27">INFO::2015-01-27</a>
        15:44:18,384::netconfpersistence::158::root::(_clearDisk)
        Clearing /var/run/vdsm/netconf/nets/ and
        /var/run/vdsm/netconf/bonds/<br>
        MainThread::DEBUG::2015-01-27
        15:44:18,384::netconfpersistence::166::root::(_clearDisk) No
        existent config to clear.<br>
        MainThread::<a moz-do-not-send="true"
          class="moz-txt-link-freetext" href="INFO::2015-01-27">INFO::2015-01-27</a>
        15:44:18,384::netconfpersistence::182::root::(save) Saved new
        config RunningConfig({}, {}) to /var/run/vdsm/netconf/nets/ and
        /var/run/vdsm/netconf/bonds/<br>
        MainThread::DEBUG::2015-01-27
        15:44:18,386::netconfpersistence::134::root::(_getConfigs)
        Non-existing config set.<br>
        MainThread::DEBUG::2015-01-27
        15:44:18,386::netconfpersistence::134::root::(_getConfigs)
        Non-existing config set.<br>
        MainThread::DEBUG::2015-01-27
        15:44:18,470::utils::739::root::(execCmd) /usr/sbin/ifdown
        Internet (cwd None)<br>
        MainThread::DEBUG::2015-01-27
        15:45:46,165::netconfpersistence::134::root::(_getConfigs)
        Non-existing config set.<br>
        MainThread::DEBUG::2015-01-27
        15:45:46,165::netconfpersistence::134::root::(_getConfigs)
        Non-existing config set.<br>
        <br>
      </blockquote>
      This is what  I get  later after I try "Setup host networks"
      again:<br>
      <br>
      <blockquote>MainThread::<a moz-do-not-send="true"
          class="moz-txt-link-freetext" href="INFO::2015-01-27">INFO::2015-01-27</a>
        15:53:16,739::netconfpersistence::182::root::(save) Saved new
        config RunningConfig({}, {}) to /var/run/vdsm/netconf/nets/ and
        /var/run/vdsm/netconf/bonds/<br>
        MainThread::DEBUG::2015-01-27
        15:53:16,740::netconfpersistence::134::root::(_getConfigs)
        Non-existing config set.<br>
        MainThread::DEBUG::2015-01-27
        15:53:16,740::netconfpersistence::134::root::(_getConfigs)
        Non-existing config set.<br>
        MainThread::DEBUG::2015-01-27
        15:53:16,743::utils::739::root::(execCmd) /usr/sbin/ifdown
        Internet (cwd None)<br>
        MainThread::DEBUG::2015-01-27
        15:54:46,772::netconfpersistence::134::root::(_getConfigs)
        Non-existing config set.<br>
        MainThread::DEBUG::2015-01-27
        15:54:46,772::netconfpersistence::134::root::(_getConfigs)
        Non-existing config set.<br>
        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.<br>
        MainThread::DEBUG::2015-01-27
        15:54:46,772::libvirtconnection::150::root::(get) trying to
        connect libvirt<br>
        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)<br>
        MainThread::DEBUG::2015-01-27
        15:54:46,790::utils::759::root::(execCmd) SUCCESS: &lt;err&gt; =
        ''; &lt;rc&gt; = 0<br>
        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)<br>
        MainThread::DEBUG::2015-01-27
        15:54:46,793::utils::759::root::(execCmd) SUCCESS: &lt;err&gt; =
        ''; &lt;rc&gt; = 0<br>
        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}<br>
        MainThread::DEBUG::2015-01-27
        15:54:46,803::api::623::root::(setupNetworks) Validating
        configuration<br>
        MainThread::DEBUG::2015-01-27
        15:54:46,807::api::635::setupNetworks::(setupNetworks)
        Applying...<br>
        MainThread::DEBUG::2015-01-27
        15:54:46,808::netconfpersistence::134::root::(_getConfigs)
        Non-existing config set.<br>
        MainThread::DEBUG::2015-01-27
        15:54:46,808::netconfpersistence::134::root::(_getConfigs)
        Non-existing config set.<br>
        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)<br>
        MainThread::DEBUG::2015-01-27
        15:54:46,810::utils::759::root::(execCmd) SUCCESS: &lt;err&gt; =
        ''; &lt;rc&gt; = 0<br>
        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)<br>
        MainThread::DEBUG::2015-01-27
        15:54:46,822::utils::759::root::(execCmd) SUCCESS: &lt;err&gt; =
        ''; &lt;rc&gt; = 0<br>
        MainThread::<a moz-do-not-send="true"
          class="moz-txt-link-freetext" href="INFO::2015-01-27">INFO::2015-01-27</a>
        15:54:46,831::netconfpersistence::158::root::(_clearDisk)
        Clearing /var/run/vdsm/netconf/nets/ and
        /var/run/vdsm/netconf/bonds/<br>
        MainThread::DEBUG::2015-01-27
        15:54:46,831::netconfpersistence::166::root::(_clearDisk) No
        existent config to clear.<br>
        MainThread::<a moz-do-not-send="true"
          class="moz-txt-link-freetext" href="INFO::2015-01-27">INFO::2015-01-27</a>
        15:54:46,831::netconfpersistence::182::root::(save) Saved new
        config RunningConfig({}, {}) to /var/run/vdsm/netconf/nets/ and
        /var/run/vdsm/netconf/bonds/<br>
        MainThread::DEBUG::2015-01-27
        15:54:46,832::netconfpersistence::134::root::(_getConfigs)
        Non-existing config set.<br>
        MainThread::DEBUG::2015-01-27
        15:54:46,832::netconfpersistence::134::root::(_getConfigs)
        Non-existing config set.<br>
        MainThread::DEBUG::2015-01-27
        15:54:46,835::utils::739::root::(execCmd) /usr/sbin/ifdown
        Internet (cwd None)<br>
        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<br>
        sourceRoute::<a moz-do-not-send="true"
          class="moz-txt-link-freetext" href="INFO::2015-01-27">INFO::2015-01-27</a>
        15:56:05,414::sourceroutethread::60::root::(process_IN_CLOSE_WRITE_filePath)

        interface bond0 is not a libvirt interface<br>
        sourceRoute::WARNING::2015-01-27
        15:56:05,414::utils::129::root::(rmFile) File:
        /var/run/vdsm/trackedInterfaces/bond0 already removed<br>
        <br>
      </blockquote>
      And there is no "/var/run/vdsm/netconf/nets" or
      "/var/run/vdsm/netconf/bonds/"<br>
      <br>
      <blockquote>ls -lart /var/run/vdsm/<br>
        total 0<br>
        drwxr-xr-x.  2 vdsm kvm    40 Jan 27 15:43 trackedInterfaces<br>
        srwxr-xr-x.  1 vdsm kvm     0 Jan 27 15:44 svdsm.sock<br>
        drwxr-xr-x.  4 vdsm kvm   100 Jan 27 15:44 .<br>
        drwxr-xr-x. 34 root root 1140 Jan 27 15:44 ..<br>
        drwxr-xr-x.  2 vdsm kvm    40 Jan 27 15:52 sourceRoutes<br>
        <br>
        <br>
         ls -lart /var/run/vdsm/trackedInterfaces/<br>
        total 0<br>
        drwxr-xr-x. 2 vdsm kvm  40 Jan 27 15:43 .<br>
        drwxr-xr-x. 4 vdsm kvm 100 Jan 27 15:44 ..<br>
        <br>
        <br>
      </blockquote>
      <br>
      <br>
      <br>
      <br>
      <br>
      <span style="color:#604c78;"><font color="000000"><span
            style="mso-fareast-language:en-gb;" lang="NL">Met
            vriendelijke groet, With kind regards,<br>
            <br>
          </span>Jorick Astrego</font></span><b style="color:#604c78"><br>
        <br>
        Netbulae Virtualization Experts </b><br>
      <hr style="border:none;border-top:1px solid #ccc;">
      <table style="width: 522px">
        <tbody>
          <tr>
            <td style="width: 130px;font-size: 10px">Tel: 053 20 30 270</td>
            <td style="width: 130px;font-size: 10px"><a class="moz-txt-link-abbreviated" href="mailto:info@netbulae.eu">info@netbulae.eu</a></td>
            <td style="width: 130px;font-size: 10px">Staalsteden 4-3A</td>
            <td style="width: 130px;font-size: 10px">KvK 08198180</td>
          </tr>
          <tr>
            <td style="width: 130px;font-size: 10px">Fax: 053 20 30 271</td>
            <td style="width: 130px;font-size: 10px"><a class="moz-txt-link-abbreviated" href="http://www.netbulae.eu">www.netbulae.eu</a></td>
            <td style="width: 130px;font-size: 10px">7547 TA Enschede</td>
            <td style="width: 130px;font-size: 10px">BTW NL821234584B01</td>
          </tr>
        </tbody>
      </table>
      <br>
      <hr style="border:none;border-top:1px solid #ccc;"><br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@ovirt.org">Users@ovirt.org</a>
<a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>