[Bug 1905156] Re: netplan KeyError with gretap in bridge

Dimitri John Ledkov 1905156 at bugs.launchpad.net
Mon Nov 23 11:12:58 UTC 2020


** Also affects: netplan.io (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to netplan.io in Ubuntu.
Matching subscriptions: foundations-bugs
https://bugs.launchpad.net/bugs/1905156

Title:
  netplan KeyError with gretap in bridge

Status in netplan:
  New
Status in netplan.io package in Ubuntu:
  New

Bug description:
  With version 0.100-0ubuntu4~20.04.3 on Ubuntu focal, using the
  following config:

  network:
    version: 2
    renderer: networkd
    ethernets:
      lo:
        match:
          name: lo
        addresses: [ 172.16.100.2/32 ]
      eth0:
        dhcp4: true
    bridges:
      br0:
        interfaces: [eth0, gretap1]
        addresses: [10.0.0.5/24]
    vlans:
      en-intra:
        id: 2999
        link: eth0
    tunnels:
      gretap1:
        mode: gretap
        remote: 2.2.2.2
        local: 1.1.1.1

  Results in:

  # netplan apply
  Traceback (most recent call last):
    File "/usr/sbin/netplan", line 23, in <module>
      netplan.main()
    File "/usr/share/netplan/netplan/cli/core.py", line 50, in main
      self.run_command()
    File "/usr/share/netplan/netplan/cli/utils.py", line 211, in run_command
      self.func()
    File "/usr/share/netplan/netplan/cli/commands/apply.py", line 55, in run
      self.run_command()
    File "/usr/share/netplan/netplan/cli/utils.py", line 211, in run_command
      self.func()
    File "/usr/share/netplan/netplan/cli/commands/apply.py", line 154, in command_apply
      NetplanApply.process_ovs_cleanup(config_manager, old_files_ovs, restart_ovs, exit_on_error)
    File "/usr/share/netplan/netplan/cli/commands/apply.py", line 324, in process_ovs_cleanup
      apply_ovs_cleanup(config_manager, ovs_old, ovs_current)
    File "/usr/share/netplan/netplan/cli/ovs.py", line 119, in apply_ovs_cleanup
      if (is_ovs_interface(i, config_manager.interfaces)):
    File "/usr/share/netplan/netplan/cli/ovs.py", line 105, in is_ovs_interface
      return any(is_ovs_interface(i, interfaces) for i in interfaces[iface].get('interfaces', []))
    File "/usr/share/netplan/netplan/cli/ovs.py", line 105, in <genexpr>
      return any(is_ovs_interface(i, interfaces) for i in interfaces[iface].get('interfaces', []))
    File "/usr/share/netplan/netplan/cli/ovs.py", line 102, in is_ovs_interface
      if interfaces[iface].get('openvswitch') is not None:
  KeyError: 'gretap1'

  The 'gretap1' interface has to be removed from the br0 interfaces
  list, in order for this to apply.

  This is a regression from 0.99-0ubuntu1, which does not appear to have
  this bug.

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/1905156/+subscriptions



More information about the foundations-bugs mailing list