]> git.proxmox.com Git - ifupdown2.git/log
ifupdown2.git
4 years agopatch : postinst/postrm : convert network config for compatibility
Alexandre Derumier [Fri, 21 Feb 2020 09:27:14 +0000 (10:27 +0100)]
patch : postinst/postrm : convert network config for compatibility

4 years agoadd openvswitch addon
Alexandre Derumier [Fri, 21 Feb 2020 09:27:13 +0000 (10:27 +0100)]
add openvswitch addon

This reimplement the ifupdown1 script with same options,

with reloading included !

4 years agoremove patch 0008-execute-addons-scripts-before-modules.patch
Alexandre Derumier [Fri, 21 Feb 2020 09:27:12 +0000 (10:27 +0100)]
remove patch 0008-execute-addons-scripts-before-modules.patch

This was a workaround for openvswitch

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoadd patch to ifup/ifdown allow=ovs on start/stop
Alexandre Derumier [Thu, 13 Feb 2020 06:30:31 +0000 (07:30 +0100)]
add patch to ifup/ifdown allow=ovs on start/stop

This is fixing possible race condition with ovs 2.12

ans also cleanly remove ovs interfaces on networking service stop

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoadd ifupdown2-pre.service service
Alexandre Derumier [Wed, 19 Feb 2020 11:47:11 +0000 (12:47 +0100)]
add ifupdown2-pre.service service

ifupdown1 have a service to launch "udevadm settle",
to be sure that networking devices are correctly setup
before networking service is started.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=920623
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agopatch: don't change interface forwarding value if not defined
Alexandre Derumier [Mon, 24 Feb 2020 14:35:50 +0000 (15:35 +0100)]
patch: don't change interface forwarding value if not defined

Seem that my previous patch was forgot in the 2.0
https://github.com/CumulusNetworks/ifupdown2/pull/101

Without this, user with routed setup with sysctl fordwarding enable,
is removed when interface is up

User have reported the bug here:
https://forum.proxmox.com/threads/no-internet-on-all-vms-after-update.64404/#post-296540

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agobump version to 2.0.1-1+pve4
Wolfgang Bumiller [Mon, 3 Feb 2020 10:09:18 +0000 (11:09 +0100)]
bump version to 2.0.1-1+pve4

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agopatch: config_tuning: state_dir=/run/network/
Alexandre Derumier [Mon, 3 Feb 2020 05:30:29 +0000 (06:30 +0100)]
patch: config_tuning: state_dir=/run/network/

we don't want state_dir persistent across reboot.
I have add some ifreload hanging after a crash, with non existing old interfaces

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agopatch: execute addons scripts before modules
Alexandre Derumier [Mon, 3 Feb 2020 05:30:28 +0000 (06:30 +0100)]
patch: execute addons scripts before modules

ifupdown2.0 now setup address in pre-up, but ovs script also
create in pre-up, but after address module.

This patch execute addons scripts before ifupdown modules

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agofollowup: restore service ordering state as previous
Thomas Lamprecht [Thu, 30 Jan 2020 12:45:47 +0000 (13:45 +0100)]
followup: restore service ordering state as previous

commit 214bc505acdeaa33c9b9b14b75e16f292f8d95f3 removed this by
mistake. While I fix it before detecting that (thank Wolfgang!) lets
restore it more like the state it was.

Add missing ordering:
  After=network-pre.target
    See systemd.special(7)'s description of this target
  After=systemd-sysctl.service
    ifupdown does the same - we want net.*.conf.default.*
    sysctl keys to apply to newly created interfaces
  After=systemd-modules-load.service
    ifupdown does the same, though this should be mostly
    optional as modules should be autoloaded anyway
  Before=network.target
    This is required to prevent services which require
    network to be started too early and listen on wrong
    addresses (iow. only on loopback or ipv4-only).
  Before=network-online.target
    See systemd.special(7)'s description. We are the
    provider of this target.
  Before=shutdown.target
    ifupdown does it this way, it also makes more sense
    given the Conflict entry, compared to the previous
    WantedBy entry in [Install]

Changed install section:
  WantedBy=multi-user.target
    I wasn't sure about this. ifupdown does this.
    basic.target didn't seem useful since we actually want:
  WantedBy=network-online.target
    We provide this, so we should be installed into it.
  removed WantedBy=network.target
    We strictly want to be ordered before this and instead
    are required by multi-user.target already.
  removed WantedBy=shutdown.target
    I didn't see the point.

Originally-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 2.0.1-1+pve3
Thomas Lamprecht [Thu, 30 Jan 2020 11:51:48 +0000 (12:51 +0100)]
bump version to 2.0.1-1+pve3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofix networking.service ordering
Thomas Lamprecht [Thu, 30 Jan 2020 11:50:53 +0000 (12:50 +0100)]
fix networking.service ordering

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 2.0.1-1+pve2
Thomas Lamprecht [Mon, 13 Jan 2020 08:14:30 +0000 (09:14 +0100)]
bump version to 2.0.1-1+pve2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobackport fix to avoid exception in ifreload
Thomas Lamprecht [Mon, 13 Jan 2020 08:13:34 +0000 (09:13 +0100)]
backport fix to avoid exception in ifreload

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 2.0.1-1+pve1
Alexandre Derumier [Tue, 7 Jan 2020 01:41:08 +0000 (02:41 +0100)]
bump version to 2.0.1-1+pve1

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoupdate patches
Alexandre Derumier [Thu, 9 Jan 2020 11:23:00 +0000 (12:23 +0100)]
update patches

remove add-uplink-id-option.patch (not needed),
remove arp-accept option patch (available upstream)
remove debian-fixup-networking.service.patch  (new @ifup service upstream)

rebase others patches

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoupdate submodule to 2.0.1-1
Thomas Lamprecht [Wed, 8 Jan 2020 10:13:02 +0000 (11:13 +0100)]
update submodule to 2.0.1-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 1.2.8-1+pve4
Thomas Lamprecht [Tue, 26 Nov 2019 13:31:45 +0000 (14:31 +0100)]
bump version to 1.2.8-1+pve4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoconfig: keep addon_syntax_check=0
Alexandre Derumier [Fri, 13 Sep 2019 14:53:20 +0000 (16:53 +0200)]
config: keep addon_syntax_check=0

It was wrong set to 1, and break openvswitch

Ifupdown2 was 1 by default last year,
and the first version ofpatch was setting to 0.
But ifupdown2 was reverted to 0 in 2019, and I wrongly change the patch to 1.

So now, it's default to 0 , no need to patch it.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
5 years agoadd patch to add arp-accept option
Alexandre Derumier [Tue, 3 Sep 2019 08:07:16 +0000 (10:07 +0200)]
add patch to add arp-accept option

needed for bgp-evpn

upstream pull request:
https://github.com/CumulusNetworks/ifupdown2/pull/121

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
5 years agobump version to 1.2.8-1+pve3
Thomas Lamprecht [Fri, 30 Aug 2019 04:59:22 +0000 (06:59 +0200)]
bump version to 1.2.8-1+pve3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agore-add config tuning patch lost during upgrade to 1.2.8
Thomas Lamprecht [Fri, 30 Aug 2019 04:53:13 +0000 (06:53 +0200)]
re-add config tuning patch lost during upgrade to 1.2.8

Reported-by: Mira Limbeck <m.limbeck@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agobump version to 1.2.8-1+pve2
Thomas Lamprecht [Wed, 28 Aug 2019 15:00:02 +0000 (17:00 +0200)]
bump version to 1.2.8-1+pve2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agobuildsys: add own buildir target
Thomas Lamprecht [Wed, 28 Aug 2019 14:59:45 +0000 (16:59 +0200)]
buildsys: add own buildir target

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agobuildsys: use dpkg-dev makefile helpers for pkg info
Thomas Lamprecht [Wed, 28 Aug 2019 14:47:17 +0000 (16:47 +0200)]
buildsys: use dpkg-dev makefile helpers for pkg info

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agofix bridge_port_condone_regex default value
Alexandre Derumier [Wed, 28 Aug 2019 14:05:05 +0000 (16:05 +0200)]
fix bridge_port_condone_regex default value

5 years agobump version to 1.2.8-1+pve1
Thomas Lamprecht [Wed, 28 Aug 2019 09:08:13 +0000 (11:08 +0200)]
bump version to 1.2.8-1+pve1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoupdate patches for 1.2.8-1 release
Thomas Lamprecht [Wed, 28 Aug 2019 09:07:34 +0000 (11:07 +0200)]
update patches for 1.2.8-1 release

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoupdate submodule to 1.2.8-1
Thomas Lamprecht [Wed, 28 Aug 2019 09:08:04 +0000 (11:08 +0200)]
update submodule to 1.2.8-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agobump version to 1.2.5-2+pve1
Thomas Lamprecht [Tue, 18 Jun 2019 08:24:28 +0000 (10:24 +0200)]
bump version to 1.2.5-2+pve1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agopatch: add uplink-id option
Alexandre Derumier [Thu, 13 Jun 2019 12:48:55 +0000 (14:48 +0200)]
patch: add uplink-id option

only to avoid warning, not used by ifupdown2

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
5 years agopatch: don't remove bridge if tap|veth|fw are connected
Alexandre Derumier [Thu, 13 Jun 2019 12:48:54 +0000 (14:48 +0200)]
patch: don't remove bridge if tap|veth|fw are connected

instead make a warning

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
5 years agopatch: ifup/ifdown vxlan interface on reload
Alexandre Derumier [Thu, 13 Jun 2019 12:48:53 +0000 (14:48 +0200)]
patch: ifup/ifdown vxlan interface on reload

almost all vxlan options can't be changed online,
simply ifdown/up them in case of reload

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
5 years agodrop patches applied upstream
Thomas Lamprecht [Mon, 3 Jun 2019 09:17:25 +0000 (11:17 +0200)]
drop patches applied upstream

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoupdate to current upstream master
Thomas Lamprecht [Mon, 3 Jun 2019 09:17:44 +0000 (11:17 +0200)]
update to current upstream master

to save Alexandre some backport work

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoupstream fix for error: 'NoneType' object has no attribute '__getitem__'
Alexandre Derumier [Mon, 6 May 2019 04:24:59 +0000 (06:24 +0200)]
upstream fix for error: 'NoneType' object has no attribute '__getitem__'

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
5 years agoifupdown2 : bump to 1.2.5
Alexandre Derumier [Tue, 16 Apr 2019 23:25:50 +0000 (01:25 +0200)]
ifupdown2 : bump to 1.2.5

5 years agobridge up : skip tap|veth|fwpr
Alexandre Derumier [Tue, 16 Apr 2019 23:25:53 +0000 (01:25 +0200)]
bridge up : skip tap|veth|fwpr

to avoid error like

info: vmbr5001: applying bridge port configuration: ['tap111i0']
info: vmbr5001: applying bridge configuration specific to ports
error: 'NoneType' object has no attribute '__getitem__'

5 years agoallow vlan subinterface in vlan aware bridge
Alexandre Derumier [Tue, 16 Apr 2019 23:25:52 +0000 (01:25 +0200)]
allow vlan subinterface in vlan aware bridge

(for qinq)

5 years agoconfig: keep ifreload_down_changed=0
Alexandre Derumier [Tue, 16 Apr 2019 23:25:51 +0000 (01:25 +0200)]
config: keep ifreload_down_changed=0

bug introduce is commit
https://git.proxmox.com/?p=ifupdown2.git;a=commit;h=b58be4449b3a009ba8324e3f414f2355fcf94c06

We don't stop/start interface on config change,
but only apply changes. (to avoid stop/start bridge as we don't track tap/veth)

5 years agoupdate submodule to 1.2.5-1
Thomas Lamprecht [Wed, 17 Apr 2019 07:19:30 +0000 (07:19 +0000)]
update submodule to 1.2.5-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agobump version to 1.2.2-1+pvetest1
Alexandre Derumier [Mon, 31 Dec 2018 10:20:05 +0000 (11:20 +0100)]
bump version to 1.2.2-1+pvetest1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoupdate config tuning patch
Alexandre Derumier [Mon, 31 Dec 2018 10:20:07 +0000 (11:20 +0100)]
update config tuning patch

5 years agoupdate submodule to 1.2.2-1
Thomas Lamprecht [Tue, 8 Jan 2019 14:55:20 +0000 (15:55 +0100)]
update submodule to 1.2.2-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoMakefile: replace ARCH with all
Dietmar Maurer [Thu, 9 Aug 2018 09:58:03 +0000 (11:58 +0200)]
Makefile: replace ARCH with all

This is an architecture independent package.

6 years agobump version to 1.2.0-1+pvetest1
Wolfgang Bumiller [Tue, 3 Jul 2018 08:57:01 +0000 (10:57 +0200)]
bump version to 1.2.0-1+pvetest1

Note that ifupdown2 changed its versioning scheme: Instead
of 2.0 this release is 1.2.0.
This version has a release tag, so it _should_ stick now ;-)

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoadd patch to fix networking.service
Wolfgang Bumiller [Tue, 3 Jul 2018 08:59:39 +0000 (10:59 +0200)]
add patch to fix networking.service

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoupdate to current master-next and remove upstreamed patches
Wolfgang Bumiller [Tue, 3 Jul 2018 08:56:28 +0000 (10:56 +0200)]
update to current master-next and remove upstreamed patches

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agobump version to 2.0.0-1~pvetest3
Wolfgang Bumiller [Mon, 18 Jun 2018 08:05:16 +0000 (10:05 +0200)]
bump version to 2.0.0-1~pvetest3

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoallow address on vlan aware bridge
Alexandre Derumier [Sat, 16 Jun 2018 13:07:23 +0000 (15:07 +0200)]
allow address on vlan aware bridge

6 years agobump version to 2.0.0-1~pvetest2
Wolfgang Bumiller [Mon, 18 Jun 2018 07:57:39 +0000 (09:57 +0200)]
bump version to 2.0.0-1~pvetest2

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agorevert 113afc4da2, the patch wasn't actually applied
Wolfgang Bumiller [Mon, 18 Jun 2018 07:56:16 +0000 (09:56 +0200)]
revert 113afc4da2, the patch wasn't actually applied

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agocleanup patches
Wolfgang Bumiller [Fri, 15 Jun 2018 07:41:52 +0000 (09:41 +0200)]
cleanup patches

Generate them with --zero-commit passed to git format-patch.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoremove already-applied patch
Wolfgang Bumiller [Fri, 15 Jun 2018 07:24:58 +0000 (09:24 +0200)]
remove already-applied patch

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agochange to pve packaging
Wolfgang Bumiller [Fri, 15 Jun 2018 07:17:29 +0000 (09:17 +0200)]
change to pve packaging

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoswitch to relative mirror
Wolfgang Bumiller [Fri, 15 Jun 2018 06:55:45 +0000 (08:55 +0200)]
switch to relative mirror

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agobuildsys: cleanup
Wolfgang Bumiller [Fri, 15 Jun 2018 06:54:56 +0000 (08:54 +0200)]
buildsys: cleanup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoadd ifupdown2 submodule
Alexandre Derumier [Thu, 14 Jun 2018 23:52:03 +0000 (01:52 +0200)]
add ifupdown2 submodule

6 years agoadd debian dir
Alexandre Derumier [Thu, 14 Jun 2018 23:52:02 +0000 (01:52 +0200)]
add debian dir

6 years agoadd makefile
Alexandre Derumier [Thu, 14 Jun 2018 23:52:01 +0000 (01:52 +0200)]
add makefile