Page MenuHomeVyOS Platform

delete pseudo-ethernet failed
Closed, ResolvedPublicBUG

Description

vyos@vyos# delete interfaces pseudo-ethernet
[edit]
vyos@vyos# commit
[ interfaces pseudo-ethernet peth0 ]
VyOS had an issue completing a command.

We are sorry that you encountered a problem while using VyOS.
There are a few things you can do to help us (and yourself):

When reporting problems, please include as much information as possible:

  • do not obfuscate any data (feel free to contact us privately if your business policy requires it)
  • and include all the information presented below

Report Time: 2020-06-12 13:39:06
Image Version: VyOS 1.3-rolling-202005100117
Release Train: equuleus

Built by: [email protected]
Built on: Sun 10 May 2020 01:17 UTC
Build UUID: aa1e03bc-7360-40b3-a58c-cdae46958353
Build Commit ID: 2cb6f390d7bdaa

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

Hardware vendor: innotek GmbH
Hardware model: VirtualBox
Hardware S/N: 0
Hardware UUID: 7d466e91-ab73-4ad5-a87e-29dfcd8f5c02

Traceback (most recent call last):

File "/usr/libexec/vyos/conf_mode/interfaces-pseudo-ethernet.py", line 266, in <module>
  apply(c)
File "/usr/libexec/vyos/conf_mode/interfaces-pseudo-ethernet.py", line 155, in apply
  MACVLANIf(peth['intf']).remove()
File "/usr/lib/python3/dist-packages/vyos/ifconfig/vlan.py", line 76, in remove
  self._novlan_remove()
File "/usr/lib/python3/dist-packages/vyos/ifconfig/interface.py", line 248, in remove
  self.flush_addrs()
File "/usr/lib/python3/dist-packages/vyos/ifconfig/interface.py", line 721, in flush_addrs
  self._cmd(f'ip addr flush dev "{self.ifname}"')
File "/usr/lib/python3/dist-packages/vyos/ifconfig/control.py", line 48, in _cmd
  return cmd(command, self.debug)
File "/usr/lib/python3/dist-packages/vyos/util.py", line 155, in cmd
  raise OSError(code, feedback)

PermissionError: [Errno 1] failed to run command: ip addr flush dev ""
returned:
exit code: 1

noteworthy:
cmd 'ip addr flush dev ""'
returned (out):

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

delete [ interfaces pseudo-ethernet peth0 ] failed
Commit failed
[edit]
vyos@vyos#

Details

Difficulty level
Easy (less than an hour)
Version
VyOS 1.3-rolling-202005100117
Why the issue appeared?
Design mistake
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

c-po changed Difficulty level from Normal (likely a few hours) to Easy (less than an hour).
c-po changed Why the issue appeared? from Will be filled on close to Design mistake.
c-po changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.

Added a basic test so this issue does not re-appear on ISO build https://github.com/vyos/vyos-smoketest/commit/b38a42d9d4ab302b44d48844fae49bb0a0817d04

erkin set Issue type to Bug (incorrect behavior).Aug 30 2021, 5:32 AM
erkin removed a subscriber: Active contributors.