<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>36562</bug_id>
          
          <creation_ts>2019-04-08 14:17:35 +0300</creation_ts>
          <short_desc>Проблемы с bonding: LACP</short_desc>
          <delta_ts>2019-04-10 13:01:25 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>etcnet</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lenar Shakirov">snejok</reporter>
          <assigned_to name="Mikhail Efremov">sem</assigned_to>
          <cc>boyarsh</cc>
    
    <cc>cas</cc>
    
    <cc>ldv</cc>
    
    <cc>maksimov</cc>
    
    <cc>mrdrew</cc>
    
    <cc>rider</cc>
    
    <cc>sbolshakov</cc>
    
    <cc>sem</cc>
    
    <cc>shaba</cc>
    
    <cc>sobbi996</cc>
    
    <cc>sotor</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>180599</commentid>
    <comment_count>0</comment_count>
    <who name="Lenar Shakirov">snejok</who>
    <bug_when>2019-04-08 14:17:35 +0300</bug_when>
    <thetext>regular-wmaker-latest-x86_64.iso от 03-Apr-2019

etcnet-0.9.18-alt3

Если настроить BOND=4 по инструкции https://www.altlinux.org/Etcnet#%D0%9D%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B0_bonding ,
то при перезагрузке получаем:

# grep Mode /proc/net/bonding/bond0
Bonding Mode: load balancing (round-robin)

Помогает:
systemctl restart network
или
/etc/init.d/network restart

Руками воспроизводится так:

# ip link add bond0 type bond mode 4
RTNETLINK answers: File exists

Причина, отсутствие этой опции:
options bonding max_bonds=0

Workaround:
apt-get install systemd-networkd

В котором:
# cat /lib/modprobe.d/systemd.conf
#  SPDX-License-Identifier: LGPL-2.1+
....
#
# When bonding module is loaded, it creates bond0 by default due to max_bonds
# option default value 1. This interferes with the network configuration
# management / networkd, as it is not possible to detect whether this bond0 was
# intentionally configured by the user, or should be managed by
# networkd/NM/etc. Therefore disable bond0 creation.

options bonding max_bonds=0

# Do the same for dummy0.

options dummy numdummies=0


Видимо стоит добавить аналогичное в etcnet?
Или я что-то делаю не так?

Столкнулся на СПТ 7 после обновления:
# rpm -qp --lastchange altrepos/c7.1/branch/noarch/RPMS.classic/etcnet-0.9.10-alt18.M70C.1.noarch.rpm
* Ср янв 23 2019 Andrey Cherepanov &lt;cas@altlinux.org&gt; 0.9.10-alt18.M70C.1
- Backport fix #32288 to c7 branch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>180716</commentid>
    <comment_count>1</comment_count>
    <who name="mrdrew@altlinux.org">mrdrew</who>
    <bug_when>2019-04-10 13:01:25 +0300</bug_when>
    <thetext>В СПТ 7 проблема такая будет, так как в create-bond нужно добавить загрузку модуля ядра с нужной опцией &quot;modprobe bonding max_bonds=0&quot;, как это уже сделано в сизифе и p8.
Так как бага висит на сизифе, то закрываю.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>