Page MenuHomeVyOS Platform

Interface pseudo-ethernet is broken
Closed, InvalidPublicBUG

Description

To reproduce - add pseudo-ethernet interface

set interfaces pseudo-ethernet peth1 source-interface eth1
set interfaces pseudo-ethernet peth1 address dhcp

Commit:

vyos@r1# commit
[ interfaces pseudo-ethernet peth1 ]
VyOS had an issue completing a command.

Report time:      2022-07-06 17:57:48
Image version:    VyOS 1.3-stable-202207060425
Release train:    equuleus

Built by:         [email protected]
Built on:         Wed 06 Jul 2022 04:25 UTC
Build UUID:       fef530a2-6e8e-4c39-9bb5-c233fe0bbd9f
Build commit ID:  fa81861cfd390a

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:    504a981d-6fb3-49ca-8a43-c28326992bd4

Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/interfaces-pseudo-ethernet.py", line 104, in <module>
    apply(c)
  File "/usr/libexec/vyos/conf_mode/interfaces-pseudo-ethernet.py", line 95, in apply
    p = MACVLANIf(peth['ifname'], **conf)
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/interface.py", line 318, in __init__
    self._create()
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/macvlan.py", line 43, in _create
    self._cmd(cmd.format(**self.config))
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/control.py", line 52, in _cmd
    return cmd(command, self.debug)
  File "/usr/lib/python3/dist-packages/vyos/util.py", line 161, in cmd
    raise OSError(code, feedback)
FileNotFoundError: [Errno 2] failed to run command: ip link add peth1 link eth1 type macvlan mode private
returned: 
exit code: 2

noteworthy:
cmd 'ip link add peth1 link eth1 type macvlan mode private'
returned (out):

returned (err):
RTNETLINK answers: Device or resource busy

[[interfaces pseudo-ethernet peth1]] failed
Commit failed
[edit]
vyos@r1#

Details

Difficulty level
Normal (likely a few hours)
Version
1.3-stable-202207060425
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

Interface virtio

vyos@r1# run show interfaces ethernet eth1 physical 
Settings for eth1:
        Supported ports: [ ]
        Supported link modes:   Not reported
        Supported pause frame use: No
        Supports auto-negotiation: No
        Supported FEC modes: Not reported
        Advertised link modes:  Not reported
        Advertised pause frame use: No
        Advertised auto-negotiation: No
        Advertised FEC modes: Not reported
        Speed: Unknown!
        Duplex: Unknown! (255)
        Port: Other
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: off
        Link detected: yes
Ring parameters for eth1:
Pre-set maximums:
RX:             256
RX Mini:        0
RX Jumbo:       0
TX:             256
Current hardware settings:
RX:             256
RX Mini:        0
RX Jumbo:       0
TX:             256

driver: virtio_net
version: 1.0.0
firmware-version: 
expansion-rom-version: 
bus-info: 0000:09:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no
[edit]
vyos@r1#

Maybe some bug with the hypervisor
eth0 works fine
eth1 doesn't work

root@r1:/home/vyos# sudo ip link add peth1 link eth1 type macvlan mode private
RTNETLINK answers: Device or resource busy
root@r1:/home/vyos# 
root@r1:/home/vyos# sudo ip link add peth1 link eth0 type macvlan mode private
root@r1:/home/vyos#

I re-created a new VM and it is Not reproducing
I closed it