]> git.proxmox.com Git - ifupdown2.git/log
ifupdown2.git
4 months agobump version to 3.2.0-1+pmx8 master
Thomas Lamprecht [Wed, 20 Dec 2023 13:15:44 +0000 (14:15 +0100)]
bump version to 3.2.0-1+pmx8

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 months agofix #5009: avoid waiting for stdout eof of /etc/network/ scripts
Friedrich Weber [Tue, 19 Dec 2023 09:22:27 +0000 (10:22 +0100)]
fix #5009: avoid waiting for stdout eof of /etc/network/ scripts

Previously, PVE (7 and 8) hosts would hang at boot if both ntpsec and
ntpsec-ntpdate are installed. The root cause for the hang is an
unfortunate interaction between ntpsec, ntpsec-ntpdate and the PVE
ifupdown2 package. The hang happens because ntpsec-ntpdate installs a
hook /etc/network/if-up.d/ntpsec-ntpdate that blocks until networking
is available if ntpsec is installed. Previously, ifupdown2 would wait
for the hook to terminate, so networking would never become available,
resulting in a deadlock. See the bug report [0] for more information.

With this patch, ifupdown2 runs the hook in the background and does
not wait for it to terminate, thus resolving the deadlock.

This patch was already applied upstream [1]. Backport it to make it
available before the next upstream release.

[0] https://bugzilla.proxmox.com/show_bug.cgi?id=5009
[1] https://github.com/CumulusNetworks/ifupdown2/pull/274

Signed-off-by: Friedrich Weber <f.weber@proxmox.com>
5 months agobump version to 3.2.0-1+pmx7
Thomas Lamprecht [Mon, 20 Nov 2023 13:31:14 +0000 (14:31 +0100)]
bump version to 3.2.0-1+pmx7

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agoFix vxlan addon trying to remove fdb entries on reload with evpn
Alexandre Derumier [Mon, 20 Nov 2023 12:57:27 +0000 (13:57 +0100)]
Fix vxlan addon trying to remove fdb entries on reload with evpn

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
5 months agofix patch 0008-lacp: replace else with if condition
Mira Limbeck [Mon, 20 Nov 2023 12:52:08 +0000 (13:52 +0100)]
fix patch 0008-lacp: replace else with if condition

The original patch removed the first branch of `if` condition, leaving the
`else` in which matched the `if` above.
The correct condition for this `else` is any bond mode that is not `lacp`
(4).

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
5 months agobump version to 3.2.0-1+pmx6
Thomas Lamprecht [Wed, 15 Nov 2023 07:51:19 +0000 (08:51 +0100)]
bump version to 3.2.0-1+pmx6

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agoRevert "patch: fix bond mac address at boot."
Thomas Lamprecht [Wed, 15 Nov 2023 07:36:39 +0000 (08:36 +0100)]
Revert "patch: fix bond mac address at boot."

causes odd issues, reported in the forum [0], so revert before we move
this along to the enterprise repository.

[0]: https://forum.proxmox.com/threads/136359/

Will be replaced by a systemd policy file [1].

[1]: https://lists.proxmox.com/pipermail/pve-devel/2023-September/059129.html

This reverts commit a1a0ee382869f52b66ab67b237138b0375183a9e.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agobump version to 3.2.0-1+pmx5
Thomas Lamprecht [Fri, 15 Sep 2023 14:20:36 +0000 (16:20 +0200)]
bump version to 3.2.0-1+pmx5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agopatch: fix bond mac address at boot.
Alexandre Derumier [Fri, 1 Sep 2023 09:12:31 +0000 (11:12 +0200)]
patch: fix bond mac address at boot.

since systemd v241, like for bridge, the bond mac is setup randomly at
boot, instead inherit from first slave.

Then, on next ifreload, ifupdown2 was already fixing it, but with an
down/up of the bond (with potentials impact on the network).

This patch have been sent upstream:
https://github.com/CumulusNetworks/ifupdown2/pull/270

This patch is applying fine too for ifupdown2 for proxmox7

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agobump version to 3.2.0-1+pmx4
Wolfgang Bumiller [Thu, 10 Aug 2023 07:05:34 +0000 (09:05 +0200)]
bump version to 3.2.0-1+pmx4

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
8 months agopatch: fix ipv6 slaac on bridge
Alexandre Derumier [Tue, 27 Jun 2023 10:56:51 +0000 (12:56 +0200)]
patch: fix ipv6 slaac on bridge

reported on the forum
https://forum.proxmox.com/threads/hi-i-stumble-upon-ipv6-slaac-issue-after-updating-to-pve8-0-3.129553

the sysctl accept_ra|autoconf was not applied on bridge interfaces

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 months agobump version to 3.2.0-1+pmx3
Thomas Lamprecht [Mon, 26 Jun 2023 18:40:29 +0000 (20:40 +0200)]
bump version to 3.2.0-1+pmx3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
9 months agod/patches: fix missing newline at end of series file
Thomas Lamprecht [Mon, 26 Jun 2023 18:42:03 +0000 (20:42 +0200)]
d/patches: fix missing newline at end of series file

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
9 months agopatch: add missing import traceback in scheduler
Alexandre Derumier [Mon, 26 Jun 2023 09:42:42 +0000 (11:42 +0200)]
patch: add missing import traceback in scheduler

upstream: https://github.com/CumulusNetworks/ifupdown2/pull/267

if a script in /etc/network/ifup.d/ is segfaulting,

ifup is crashing with

info: executing2 /etc/network/if-up.d/postfix
debug: lo: up : running script /etc/network/if-up.d/resolved info: executing2 /etc/network/if-up.d/resolved
error: name 'traceback' is not defined
debug: saving state ..
info: exit status 1
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
9 months agopatch: ethtool: add rx-vlan-filter support
Alexandre Derumier [Fri, 23 Jun 2023 09:02:58 +0000 (11:02 +0200)]
patch: ethtool: add rx-vlan-filter support

to fix nic like mellanox && vlan-aware-bridge

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

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
9 months agoadd ethtool as depend
Alexandre Derumier [Fri, 23 Jun 2023 09:02:56 +0000 (11:02 +0200)]
add ethtool as depend

some users need to disable some buggy features for their nic,
install ethtool by default

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
10 months agobump version to 3.2.0-1+pmx2
Thomas Lamprecht [Wed, 21 Jun 2023 06:22:49 +0000 (08:22 +0200)]
bump version to 3.2.0-1+pmx2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
10 months agoship again policy for setting the bridge MAC from its first port
Thomas Lamprecht [Wed, 21 Jun 2023 06:21:24 +0000 (08:21 +0200)]
ship again policy for setting the bridge MAC from its first port

Fixes: cf37f18 ("merge upstream debian packaging metadata with ours")
Reported-by: Mira Limbeck <m.limbeck@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobuildsys: derive upload dist automatically
Thomas Lamprecht [Sat, 20 May 2023 13:52:40 +0000 (15:52 +0200)]
buildsys: derive upload dist automatically

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobump version to 3.2.0-1+pmx1
Alexandre Derumier [Mon, 15 May 2023 22:47:10 +0000 (00:47 +0200)]
bump version to 3.2.0-1+pmx1

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
 [ T: merge and update changelog ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agolintian: fix/override some complaints
Thomas Lamprecht [Sat, 20 May 2023 12:59:42 +0000 (14:59 +0200)]
lintian: fix/override some complaints

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agofix some outdated python interpreter shebang
Thomas Lamprecht [Sat, 20 May 2023 12:58:35 +0000 (14:58 +0200)]
fix some outdated python interpreter shebang

luckily lintian complained, so fix it for two plugins we add in
patches and library module from upstream.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobuildsys: add sbuild target for convenience
Thomas Lamprecht [Sat, 20 May 2023 10:42:00 +0000 (12:42 +0200)]
buildsys: add sbuild target for convenience

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agod/control: raise standards version compliance to 4.6.2
Thomas Lamprecht [Sat, 20 May 2023 10:18:34 +0000 (12:18 +0200)]
d/control: raise standards version compliance to 4.6.2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobuildsys: add dsc target
Thomas Lamprecht [Sat, 20 May 2023 10:18:28 +0000 (12:18 +0200)]
buildsys: add dsc target

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobuildsys: use full DEB_VERSION
Thomas Lamprecht [Sat, 20 May 2023 10:18:15 +0000 (12:18 +0200)]
buildsys: use full DEB_VERSION

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agod/control: define compat level via build-depends and raise to 13
Thomas Lamprecht [Sat, 20 May 2023 10:06:56 +0000 (12:06 +0200)]
d/control: define compat level via build-depends and raise to 13

drop outdated systemd override fallback

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agomerge in downstream packaging changes & drop patches
Thomas Lamprecht [Sat, 20 May 2023 09:46:32 +0000 (11:46 +0200)]
merge in downstream packaging changes & drop patches

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agomerge upstream and our changelog
Thomas Lamprecht [Sat, 20 May 2023 09:52:18 +0000 (11:52 +0200)]
merge upstream and our changelog

with tabs removed from upstream entries due to not being valid in a
changelog

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agomerge upstream debian packaging metadata with ours
Thomas Lamprecht [Sat, 20 May 2023 09:26:25 +0000 (11:26 +0200)]
merge upstream debian packaging metadata with ours

as first step towards hosting the debian/packaging fully ourselves.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agoupdate submodule to 3.2.0-pmx1
Thomas Lamprecht [Sat, 20 May 2023 09:14:24 +0000 (11:14 +0200)]
update submodule to 3.2.0-pmx1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agopatch: remove lacp bond min-links=0 warning
Alexandre Derumier [Mon, 15 May 2023 22:47:09 +0000 (00:47 +0200)]
patch: remove lacp bond min-links=0 warning

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agopatch: add ipv6 slaac support upstream patch
Alexandre Derumier [Mon, 15 May 2023 22:47:08 +0000 (00:47 +0200)]
patch: add ipv6 slaac support upstream patch

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agopatch: reorder patches
Alexandre Derumier [Mon, 15 May 2023 22:47:07 +0000 (00:47 +0200)]
patch: reorder patches

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agopatch: remove old upstreamed patches
Alexandre Derumier [Mon, 15 May 2023 22:47:06 +0000 (00:47 +0200)]
patch: remove old upstreamed patches

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agopatch: patch5: fix code nit
Alexandre Derumier [Mon, 15 May 2023 22:47:05 +0000 (00:47 +0200)]
patch: patch5: fix code nit

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agomakefile: convert to use simple parenthesis
Thomas Lamprecht [Wed, 17 May 2023 11:47:03 +0000 (13:47 +0200)]
makefile: convert to use simple parenthesis

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 months agobump version to 3.1.0-1+pmx4
Thomas Lamprecht [Tue, 16 May 2023 10:01:18 +0000 (12:01 +0200)]
bump version to 3.1.0-1+pmx4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
12 months agopatch: add vlan interface ifdown/ifup when changes on reload, like for vxlan
Alexandre Derumier [Thu, 20 Apr 2023 21:37:11 +0000 (23:37 +0200)]
patch: add vlan interface ifdown/ifup when changes on reload, like for vxlan

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
12 months agopatch : vlan: fix vlan-protocol query check
Alexandre Derumier [Thu, 20 Apr 2023 21:37:10 +0000 (23:37 +0200)]
patch : vlan: fix vlan-protocol query check

upstream:
https://github.com/CumulusNetworks/ifupdown2/pull/258
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
18 months agoadd ovs support for fakebridge.
Alexandre Derumier [Fri, 14 Oct 2022 07:22:35 +0000 (09:22 +0200)]
add ovs support for fakebridge.

This was request by a proxmox user on ifupdown2 github issues.

https://github.com/CumulusNetworks/ifupdown2/issues/245

It was possible to do it with ifupdown1, but not ifupdown2.

The patch is already applied upstream
https://github.com/CumulusNetworks/ifupdown2/pull/246

example to define a fake ovs bridge with vlan10:

auto vmbr0
iface vmbr0 inet manual
        ovs_type OVSBridge

auto vmbr0v10
iface vmbr0v10 inet manual
        ovs_type OVSBridge
        ovs_bridge vmbr0
        ovs_options vmbr0 10

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2 years agobump version to 3.1.0-1+pmx3
Thomas Lamprecht [Mon, 26 Jul 2021 10:29:12 +0000 (12:29 +0200)]
bump version to 3.1.0-1+pmx3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopatch: fix 3.1 pointopoint regression
Alexandre Derumier [Mon, 26 Jul 2021 06:11:38 +0000 (08:11 +0200)]
patch: fix 3.1 pointopoint regression

user have reported a bug with pointopoint in 3.1

https://forum.proxmox.com/threads/hetzner-pve-7-0-problems-after-reboot-maybe-ifupdown2.92935/

it's coming from a change in
https://github.com/CumulusNetworks/ifupdown2/commit/ba5437b9ecf9aa1401ac985ebf97009cc3114481

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2 years agobump version to 3.1.0-1+pmx2
Thomas Lamprecht [Fri, 16 Jul 2021 13:18:16 +0000 (15:18 +0200)]
bump version to 3.1.0-1+pmx2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agodo not trigger ifreload in installer
Thomas Lamprecht [Thu, 15 Jul 2021 08:35:00 +0000 (10:35 +0200)]
do not trigger ifreload in installer

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobuildsys: change upload dist to bullseye and add pmg and pbs
Thomas Lamprecht [Wed, 14 Jul 2021 15:01:04 +0000 (17:01 +0200)]
buildsys: change upload dist to bullseye and add pmg and pbs

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 3.1.0-1+pmx1
Thomas Lamprecht [Wed, 14 Jul 2021 14:59:00 +0000 (16:59 +0200)]
bump version to 3.1.0-1+pmx1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoship policy for setting the bridge MAC from its first port
Thomas Lamprecht [Wed, 14 Jul 2021 14:58:55 +0000 (16:58 +0200)]
ship policy for setting the bridge MAC from its first port

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoupdate submodule to what will be 3.1.0
Thomas Lamprecht [Wed, 14 Jul 2021 14:21:44 +0000 (16:21 +0200)]
update submodule to what will be 3.1.0

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoupdate patches for 3.1.0
Alexandre Derumier [Wed, 14 Jul 2021 07:52:22 +0000 (09:52 +0200)]
update patches for 3.1.0

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2 years agobump version to 3.0.0-1+pve6
Thomas Lamprecht [Tue, 6 Jul 2021 12:00:20 +0000 (14:00 +0200)]
bump version to 3.0.0-1+pve6

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoadd patch to reload after first install
Dominik Csapak [Tue, 6 Jul 2021 11:42:02 +0000 (13:42 +0200)]
add patch to reload after first install

when installing for the first time we want to reload the network config,
since sometimes the network will not be configured, e.g. when
coming from ifupdown. this would break installing ifupdown2 over
the network (e.g. ssh)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agobump version to 3.0.0-1+pve5
Thomas Lamprecht [Tue, 25 May 2021 08:36:44 +0000 (10:36 +0200)]
bump version to 3.0.0-1+pve5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agod/rules: add dh_installsystemd override for compat >= 12
Thomas Lamprecht [Tue, 25 May 2021 08:36:07 +0000 (10:36 +0200)]
d/rules: add dh_installsystemd override for compat >= 12

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 3.0.0-1+pve4
Thomas Lamprecht [Mon, 24 May 2021 10:39:32 +0000 (12:39 +0200)]
bump version to 3.0.0-1+pve4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agodebian: update comapt level to 12 and drop dh-systemd B-D
Thomas Lamprecht [Mon, 24 May 2021 10:37:38 +0000 (12:37 +0200)]
debian: update comapt level to 12 and drop dh-systemd B-D

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 3.0.0-1+pve3
Thomas Lamprecht [Fri, 25 Sep 2020 07:22:45 +0000 (09:22 +0200)]
bump version to 3.0.0-1+pve3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoupdate ifupdown2 submodule
Thomas Lamprecht [Fri, 25 Sep 2020 07:17:15 +0000 (09:17 +0200)]
update ifupdown2 submodule

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoupdate patch10: only rewrite config on first ifupdown2
Alexandre Derumier [Mon, 21 Sep 2020 16:51:15 +0000 (18:51 +0200)]
update patch10: only rewrite config on first ifupdown2

we don't want to update config at each upgrade.

postinst can't detect upgrade vs install, it need to be done in preinst.

so I create a tmp file in preinst for first install, and detect this file
in postinst.
(as we need to have ifupdown2 installed first, to have the config rewrite working)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agopatch: allow vlan tag inside vxlan tunnel
Alexandre Derumier [Mon, 21 Sep 2020 16:51:14 +0000 (18:51 +0200)]
patch: allow vlan tag inside vxlan tunnel

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoremove patch 0009-address-don-t-process_mtu-if-ovs-mtu-is-defined.patch
Alexandre Derumier [Mon, 21 Sep 2020 16:51:13 +0000 (18:51 +0200)]
remove patch 0009-address-don-t-process_mtu-if-ovs-mtu-is-defined.patch

upstream : https://github.com/CumulusNetworks/ifupdown2/commit/8994bdd39af6014c6de02cb0d9eb15535af2123e#diff-1481ea1b5d4c5d73242f448fc8412b21
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoadd patch 0009-address-don-t-process_mtu-if-ovs-mtu-is-defined.patch
Alexandre Derumier [Thu, 4 Jun 2020 11:33:58 +0000 (13:33 +0200)]
add patch 0009-address-don-t-process_mtu-if-ovs-mtu-is-defined.patch

https://github.com/CumulusNetworks/ifupdown2/pull/166

Openvswitch already manage mtu if ovs-mtu is defined.
(Ovs manage mtu in userland, and sync mtu for some interfaces in kernel).

If mtu is changed by address module, before the ovs userland mtu,
this give packets drop.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 3.0.0-1+pve1
Thomas Lamprecht [Wed, 3 Jun 2020 07:22:48 +0000 (09:22 +0200)]
bump version to 3.0.0-1+pve1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoupdate to master to avoid extra patches
Thomas Lamprecht [Wed, 3 Jun 2020 07:37:17 +0000 (09:37 +0200)]
update to master to avoid extra patches

All upstreamed by Alexandre and the master at time of writing is
besides one patch just that, so use it directly.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoadd patch 0008-openvswitch-ovs-ports-condone-regex-exclude-tap-veth.patch
Alexandre Derumier [Tue, 2 Jun 2020 08:31:23 +0000 (10:31 +0200)]
add patch 0008-openvswitch-ovs-ports-condone-regex-exclude-tap-veth.patch

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agocontrol: update python3
Alexandre Derumier [Tue, 2 Jun 2020 08:31:21 +0000 (10:31 +0200)]
control: update python3

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoadd extra patch: 0004-fix-start-networking-permission.patch
Alexandre Derumier [Tue, 2 Jun 2020 08:31:20 +0000 (10:31 +0200)]
add extra patch: 0004-fix-start-networking-permission.patch

https://github.com/CumulusNetworks/ifupdown2/commit/5cbe13d17a28e1ce4a411092f0bd659360406572
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoadd extra patch: 0003-ovs-multiple-ovsport.patch
Alexandre Derumier [Tue, 2 Jun 2020 08:31:19 +0000 (10:31 +0200)]
add extra patch: 0003-ovs-multiple-ovsport.patch

https://github.com/CumulusNetworks/ifupdown2/pull/164
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoadd extra patch: 0002-nllistener-increase-buffer.patch
Alexandre Derumier [Tue, 2 Jun 2020 08:31:18 +0000 (10:31 +0200)]
add extra patch: 0002-nllistener-increase-buffer.patch

https://github.com/CumulusNetworks/ifupdown2/commit/523b347ad49234efb7787f6f084070034de7e977
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoremove 0008-add-openvswitch-addon.patch
Alexandre Derumier [Tue, 2 Jun 2020 08:31:17 +0000 (10:31 +0200)]
remove 0008-add-openvswitch-addon.patch

openvswitch is now upstream

add extra-patch for ovs-ports-condone-regex
https://github.com/CumulusNetworks/ifupdown2/pull/157

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agorebase 0007-networking.service-fix-dependencies-and-ordering.patch
Alexandre Derumier [Tue, 2 Jun 2020 08:31:16 +0000 (10:31 +0200)]
rebase 0007-networking.service-fix-dependencies-and-ordering.patch

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agorebase 0001-don-t-remove-tap-veth-fwpr-interfaces-from-bridge-on.patch
Alexandre Derumier [Tue, 2 Jun 2020 08:31:15 +0000 (10:31 +0200)]
rebase 0001-don-t-remove-tap-veth-fwpr-interfaces-from-bridge-on.patch

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoremove extra patches
Alexandre Derumier [Tue, 2 Jun 2020 08:31:14 +0000 (10:31 +0200)]
remove extra patches

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoupdate submodule for 3.0.0 tag
Thomas Lamprecht [Wed, 3 Jun 2020 07:23:31 +0000 (09:23 +0200)]
update submodule for 3.0.0 tag

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 2.0.1-1+pve10
Thomas Lamprecht [Tue, 19 May 2020 20:11:56 +0000 (22:11 +0200)]
bump version to 2.0.1-1+pve10

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agopostinst/postrm: only update network config on pve-common using systems
Thomas Lamprecht [Tue, 19 May 2020 20:10:53 +0000 (22:10 +0200)]
postinst/postrm: only update network config on pve-common using systems

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 2.0.1-1+pve9
Thomas Lamprecht [Tue, 19 May 2020 06:26:16 +0000 (08:26 +0200)]
bump version to 2.0.1-1+pve9

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoopenvswitch: don't remove tap|veth interfaces when adding an internal ovs port
Alexandre Derumier [Sat, 16 May 2020 12:07:05 +0000 (14:07 +0200)]
openvswitch: don't remove tap|veth interfaces when adding an internal ovs port

Currently, tap|veth interfaces are removed if user add a new ovs internal port and reload.

add ovs-ports-condone-regex option, like for bridge (to have the patch upstream).
default options to "tap|veth|fwpr"

to avoid to remove theses interfaces

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agobump version to 2.0.1-1+pve8
Thomas Lamprecht [Mon, 16 Mar 2020 05:33:50 +0000 (06:33 +0100)]
bump version to 2.0.1-1+pve8

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agodrop now outdated allow=ovs service ExecStart/Stop
Thomas Lamprecht [Sun, 15 Mar 2020 16:08:35 +0000 (17:08 +0100)]
drop now outdated allow=ovs service ExecStart/Stop

we now have a real OVS plugin which can handle this.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 2.0.1-1+pve7
Thomas Lamprecht [Tue, 10 Mar 2020 07:10:04 +0000 (08:10 +0100)]
bump version to 2.0.1-1+pve7

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agopost* compat rewrite: do not print changes to stdout
Thomas Lamprecht [Tue, 10 Mar 2020 07:07:53 +0000 (08:07 +0100)]
post* compat rewrite: do not print changes to stdout

It can contain unicode stuff which gets us warnings and could also be
quite long, so avoid printing that out for now but add some newlines
to make the message stand out more.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agonetowrking-pre: fix udevadm path for non usr-merged systems
Thomas Lamprecht [Tue, 10 Mar 2020 06:58:25 +0000 (07:58 +0100)]
netowrking-pre: fix udevadm path for non usr-merged systems

udevadm ships actually a full executable copy in /bin and /sbin, so
go for the path systemd-udev-settle.service is using too - but it
shouldn't matter

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 2.0.1-1+pve6
Thomas Lamprecht [Mon, 9 Mar 2020 12:26:01 +0000 (13:26 +0100)]
bump version to 2.0.1-1+pve6

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agodrop breaks on ovs
Thomas Lamprecht [Mon, 9 Mar 2020 12:25:10 +0000 (13:25 +0100)]
drop breaks on ovs

it seems the OVS plugin can handle older versions still fine

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 2.0.1-1+pve5
Thomas Lamprecht [Sat, 7 Mar 2020 15:50:37 +0000 (16:50 +0100)]
bump version to 2.0.1-1+pve5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agod/control: record break for pve-common and ovs
Thomas Lamprecht [Sat, 7 Mar 2020 16:56:33 +0000 (17:56 +0100)]
d/control: record break for pve-common and ovs

while we not actively break that we really want to ensure that those
or newer versions are used

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoinstall/purge compat change, graceful exit
Thomas Lamprecht [Sat, 7 Mar 2020 15:42:05 +0000 (16:42 +0100)]
install/purge compat change, graceful exit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
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>