Page MenuHomeVyOS Platform

delete pseudo-ethernet failed (another error type)
Closed, ResolvedPublicBUG

Description

phei@Unicom-PPPoE:~$ conf
[edit]
phei@Unicom-PPPoE# set interfaces pseudo-ethernet peth0
[edit]
phei@Unicom-PPPoE# set interfaces pseudo-ethernet peth0 source-interface eth2
[edit]
phei@Unicom-PPPoE# commit
[edit]
phei@Unicom-PPPoE# save
Saving configuration to '/config/config.boot'...
Done
[edit]
phei@Unicom-PPPoE# delete interfaces pseudo-ethernet
[edit]
phei@Unicom-PPPoE# 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-17 22:17:56
Image Version: VyOS 1.3-rolling-202006150117
Release Train: equuleus

Built by: [email protected]
Built on: Mon 15 Jun 2020 01:17 UTC
Build UUID: ab90d6b2-8f3c-4d8e-8022-50606d6ffa9b
Build Commit ID: 1dfa9a3c7cce72

Architecture: x86_64
Boot via: installed image
System type: bare metal

Hardware vendor: Supermicro
Hardware model: X8DTL
Hardware S/N: A616Y0312102132
Hardware UUID: 49434d53-0200-9066-2500-66902500e79d

Traceback (most recent call last):

File "/usr/libexec/vyos/conf_mode/interfaces-pseudo-ethernet.py", line 256, in <module>
  apply(c)
File "/usr/libexec/vyos/conf_mode/interfaces-pseudo-ethernet.py", line 137, 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 252, in remove
  self.flush_addrs()
File "/usr/lib/python3/dist-packages/vyos/ifconfig/interface.py", line 737, in flush_addrs
  self.dhcp.v6.delete()
File "/usr/lib/python3/dist-packages/vyos/ifconfig/dhcp.py", line 126, in delete
  self._cmd('systemctl stop dhcp6c@{ifname}.service'.format(**self.options))
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 178, in cmd
  raise OSError(code, feedback)

PermissionError: [Errno 1] failed to run command: systemctl stop [email protected]
returned:
exit code: 1

noteworthy:
cmd 'sudo systemctl stop [email protected]'
returned (out):

returned (err):
Failed to stop [email protected]: Unit name [email protected] is missing the instance name.
See system logs and 'systemctl status [email protected]' for details.

delete [ interfaces pseudo-ethernet peth0 ] failed
Commit failed
[edit]
phei@Unicom-PPPoE#

Details

Difficulty level
Unknown (require assessment)
Version
VyOS 1.3-rolling-202006150117
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

Viacheslav claimed this task.
Viacheslav added a subscriber: Viacheslav.

Fixed.

set interfaces pseudo-ethernet peth0
set interfaces pseudo-ethernet peth0 source-interface eth1

vyos@r1-roll# commit
[edit]
vyos@r1-roll# delete interfaces pseudo-ethernet 
[edit]
vyos@r1-roll# commit
[edit]
vyos@r1-roll# run show ver

Version:          VyOS 1.3-rolling-202007220117
erkin set Issue type to Bug (incorrect behavior).Aug 30 2021, 5:18 AM
erkin removed a subscriber: Active contributors.