Page MenuHomeVyOS Platform

Add bonding interface fails
Closed, ResolvedPublicBUG

Description

Add bonding interface fails

vyos@r14# set interfaces bonding bond0 member interface eth2
[edit]
vyos@r14# commit
[ interfaces bonding bond0 ]
VyOS had an issue completing a command.


Report time:      2026-07-17 06:23:09
Image version:    VyOS 2026.07.17-0034-rolling
Release train:    rolling

Built by:         autobuild@vyos.net
Built on:         Fri 17 Jul 2026 00:34 UTC
Build UUID:       6d917058-de0f-4173-a4eb-fd54f3a02c22
Build commit ID:  d4b8934eadc436

Architecture:     x86_64
Boot via:         installed image
System type:      KVM guest

Hardware vendor:  QEMU
Hardware model:   Standard PC (Q35 + ICH9, 2009)
Hardware S/N:     
Hardware UUID:    ec976809-bb5a-4769-8630-72652c43c101

PermissionError: [Errno 1] Operation not permitted

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/interfaces_bonding.py", line 325, in <module>
    apply(c)
  File "/usr/libexec/vyos/conf_mode/interfaces_bonding.py", line 305, in apply
    b.update(bond)
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/bond.py", line 507, in update
    self.add_port(interface)
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/bond.py", line 313, in add_port
    ret = self.set_interface('bond_add_port', f'+{interface}')
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/control.py", line 209, in set_interface
    return self._set_sysfs(self.config, name, value)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/control.py", line 192, in _set_sysfs
    committed = self._write_sysfs(
                ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/control.py", line 158, in _write_sysfs
    write_file(filename, str(value))
  File "/usr/lib/python3/dist-packages/vyos/utils/file.py", line 81, in write_file
    raise e
  File "/usr/lib/python3/dist-packages/vyos/utils/file.py", line 70, in write_file
    with open(fname, 'w' if not append else 'a') as f:
PermissionError: [Errno 1] Operation not permitted

noteworthy:
cmd 'ethtool --json --show-pause eth2'
returned (out):
[ ]
returned (err):
netlink error: Operation not supported
cmd 'ethtool --json --show-pause eth2'
returned (out):
[ ]
returned (err):
netlink error: Operation not supported
cmd 'ethtool --json --show-pause eth2'
returned (out):
[ ]
returned (err):
netlink error: Operation not supported
cmd 'ip link show dev bond0'
returned (out):

returned (err):
Device "bond0" does not exist.
cmd 'ip link show dev bond0'
returned (out):

returned (err):
Device "bond0" does not exist.

[[interfaces bonding bond0]] failed
Commit failed
[edit]
vyos@r14#

Additional info, some smoketests fail:

DEBUG - ERROR: 4/94 tests failed:
DEBUG - * /usr/libexec/vyos/tests/smoke/cli/test_config_dependency.py
DEBUG - * /usr/libexec/vyos/tests/smoke/cli/test_firewall.py
DEBUG - * /usr/libexec/vyos/tests/smoke/cli/test_service_stunnel.py
DEBUG - * /usr/libexec/vyos/tests/smoke/cli/test_vrf.py
DEBUG - vyos@vyos:~$ echo EXITCODE:$?
DEBUG - echo EXITCODE:$?
ERROR - Smoketest failed :/

The type  for some reason is missing for bond/vrf

DEBUG -   File "/usr/lib/python3/dist-packages/vyos/utils/process.py", line 251, in cmdl
DEBUG -     raise OSError(code, feedback)
DEBUG - PermissionError: [Errno 1] failed to run command: ip link add dev bond0
DEBUG - returned:
DEBUG - exit code: 1
DEBUG -
DEBUG - noteworthy:
DEBUG - cmd 'ip link show dev bond0'
DEBUG - returned (out):
DEBUG -
DEBUG - returned (err):
DEBUG - Device "bond0" does not exist.
DEBUG - cmd 'ip link show dev bond0'
DEBUG - returned (out):
DEBUG -
DEBUG - returned (err):
DEBUG - Device "bond0" does not exist.
DEBUG - cmd 'ip link add dev bond0'
DEBUG - returned (out):
DEBUG -
DEBUG - returned (err):
DEBUG - Not enough information: "type" argument is required

One of the causes could be refactoring https://github.com/vyos/vyos-1x/commit/1956ab51a39bbf74abd91139803462d27f7a837f
Needs to investigate it.

Details

Version
VyOS 2026.07.17-0034-rolling
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Revisions and Commits

Event Timeline

Viacheslav triaged this task as High priority.
Restricted Repository Identity closed this task as Resolved by committing Restricted Diffusion Commit.Jul 20 2026, 12:05 PM
Restricted Repository Identity added a commit: Restricted Diffusion Commit.