Page MenuHomeVyOS Platform

GRETAP: key is not applied when interface is created
Closed, ResolvedPublicBUG

Description

 tunnel tun2000 {
     encapsulation gre-bridge
     local-ip xxx.xxx.249.144
     parameters {
         ip {
             key 2000
         }
     }
     remote-ip xxx.xxx.8.67
 }
+tunnel tun3000 {
+    encapsulation gre-bridge
+    local-ip xxx.xxx.249.144
+    parameters {
+        ip {
+            key 3000
+        }
+    }
+    remote-ip xxx.xxx.8.67
+}
[edit]
cpo@BR1.ffmI# commit
[ interfaces tunnel tun3000 ]
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):
- Make sure you are running the latest stable version of VyOS
  the code is available at https://downloads.vyos.io/?dir=release/current
- Contact us using the online help desk
  https://support.vyos.io/
- Join our community on slack where our users exchange help and advice
  https://vyos.slack.com

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:      2021-07-20 19:05:18
Image Version:    VyOS 1.3.0-rc5
Release Train:    equuleus

Built by:         Sentrium S.L.
Built on:         Tue 29 Jun 2021 08:26 UTC
Build UUID:       36f7c218-6ebb-497f-9ec5-676241e5c13a
Build Commit ID:  892e8689b3234e

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

Hardware vendor:  QEMU
Hardware model:   Standard PC (i440FX + PIIX, 1996)
Hardware S/N:
Hardware UUID:    6a3f4e98-1913-402e-bf69-8ac07126871a

Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/interfaces-tunnel.py", line 202, in <module>
    apply(c)
  File "/usr/libexec/vyos/conf_mode/interfaces-tunnel.py", line 191, in apply
    tun = klass(interface, **conf)
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/tunnel.py", line 71, in __init__
    super().__init__(ifname, **config)
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/interface.py", line 266, in __init__
    self._create()
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/tunnel.py", line 77, in _create
    self._cmd('{} {}'.format(self._create_cmd.format(**self.config), options))
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/control.py", line 51, 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 name tun3000 type gretap local xxx.xxx.249.144 remote xxx.xxx.8.67 ttl 64
returned:
exit code: 2

noteworthy:
cmd 'ip link add name tun3000 type gretap local xxx.xxx.249.144 remote xxx.xxx.8.67 ttl 64'
returned (out):

returned (err):
RTNETLINK answers: File exists

[[interfaces tunnel tun3000]] failed

Details

Difficulty level
Normal (likely a few hours)
Version
1.3.0-rc5
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

c-po changed the task status from Open to Confirmed.Tue, Jul 20, 5:13 PM
c-po claimed this task.
c-po created this task.
c-po triaged this task as Normal priority.
c-po removed a project: VyOS 1.4 Sagitta.
c-po moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus board.