Commit Graph

156 Commits

Author SHA1 Message Date
Thomas Lamprecht
59e69799e1 bump version to 3.2.0-1+pmx11
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-11-15 16:21:43 +01:00
Alexandre Derumier
c297955185 patches: update slaac patch
remove self._sysctl_slaac call for bridge, or it'll be called twice

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2024-11-15 16:09:44 +01:00
Thomas Lamprecht
148258d323 bump version to 3.2.0-1+pmx10
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-11-14 18:36:34 +01:00
Stoiko Ivanov
e10142c0fa d/maintscripts: use postinst arguments to determine first install
Following https://www.debian.org/doc/debian-policy/ap-flowcharts.html
postinst gets called as 'postinst configure' w/o second argument on
first installation, use that information instead of creating a
flag-file in preinst.

Technically this changes the semantics and the first-install parts
will not be run, in case ifupdown2 had been installed on the system,
but was subsequently removed, but not purged ('rc' in dpkg-output).
Since the functionality was added quite a while ago (released with PVE
6.2 to support ovs-setups with ifupdown2 - the potential for
regression should be limited. Originally introduced in:
849ae55de6

Fixes: 8d5303c350
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2024-11-14 18:34:21 +01:00
Stoiko Ivanov
8453de808d fix #5869: d/postinst: do not fail if ifreload fails on first install
erroring out here will not help getting a running network, therefore
just log a warning.

Tested the original reporters case (running in a debootstrap) with:
```
mmdebstrap \
 --variant=minbase \
 --include=/tmp/ifupdown2_3.2.0-1+pmx10_all.deb \
 --hook-dir=/usr/share/mmdebstrap/hooks/file-mirror-automount \
 bookworm \
 ./bookworm-amd64.tar.zst
```
ran through our install on plain debian guide:
https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_12_Bookworm
with this package in a local repository to check for regressions

adding the reference to the commit that introduced the reload on
first-install, as this got shifted around a bit and it took me too
long to see that we did not want to error out here on purpose

Fixes: 86335f3f89
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2024-11-14 18:34:13 +01:00
Thomas Lamprecht
48bff42bc2 bump version to 3.2.0-1+pmx9
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-07-05 09:21:02 +02:00
Alexandre Derumier
376b553086 patch : addons: vxlan: fix VNI filter on single VXLAN device
Requested by a customer using setup with single vxlan devices.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-07-05 09:19:35 +02:00
Stefan Hanreich
c55b5af038 fix #5197: do not run scripts ending with .dpkg-{old, new, tmp, dist}
This can lead to issue when upgrading from ifupdown to ifupdown2. The
particular issue this fixes occurs in the following scenario:

* Suppose there is a legacy Debian host with ifupdown and ifenslave
  installed that has a bond configured in /etc/network/interfaces.
* ifenslave installs a script /etc/network/if-pre-up.d/ifenslave.
* Now, an upgrade creates a second script
  /etc/network/if-pre-up.d/ifenslave.dpkg-new. As ifupdown executes
  network scripts via run-parts which ignores scripts with . in their
  name, ifenslave.dpkg-new has no effect.
* If the host switches over to ifupdown2 by installing it (removing
  ifupdown, keeping ifenslave) and reboots, the network will not come
  up:
  /etc/network/if-pre-up.d/ifenslave still exists, but is ignored
  by ifupdown2's bond addon [1]
  /etc/network/if-pre-up.d/ifenslave.dpkg-new is executed by ifupdown2
  because it executes all scripts in /etc/network/if-pre-up.d, even if
  their name contains a dot

This leads to ifreload failing on upgrades, which in turn causes
issues with the networking of upgraded hosts.

Also submitted upstream at [2]

[1] ccdc386cfa/ifupdown2/addons/bond.py (L45)
[2] https://github.com/CumulusNetworks/ifupdown2/pull/304

Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
Tested-by: Friedrich Weber <f.weber@proxmox.com>
Reviewed-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-07-04 11:31:23 +02:00
Thomas Lamprecht
3863066c2d bump version to 3.2.0-1+pmx8
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-12-20 14:15:44 +01:00
Friedrich Weber
1997a5a6d7 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>
2023-12-20 14:14:17 +01:00
Thomas Lamprecht
e6835fd11d bump version to 3.2.0-1+pmx7
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-20 14:33:15 +01:00
Alexandre Derumier
6e35afed4f Fix vxlan addon trying to remove fdb entries on reload with evpn
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2023-11-20 14:33:15 +01:00
Mira Limbeck
911804b5fc 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>
2023-11-20 14:23:21 +01:00
Thomas Lamprecht
033e928212 bump version to 3.2.0-1+pmx6
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-15 08:51:19 +01:00
Thomas Lamprecht
da9efd06ea 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 a1a0ee3828.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-15 08:48:35 +01:00
Thomas Lamprecht
c5ce931497 bump version to 3.2.0-1+pmx5
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-09-15 16:20:36 +02:00
Alexandre Derumier
a1a0ee3828 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>
2023-09-15 16:18:45 +02:00
Wolfgang Bumiller
f18921bd18 bump version to 3.2.0-1+pmx4
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-08-10 09:05:34 +02:00
Alexandre Derumier
029291810b 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>
2023-08-10 08:55:29 +02:00
Thomas Lamprecht
0bb513335b bump version to 3.2.0-1+pmx3
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-26 20:42:13 +02:00
Thomas Lamprecht
edbd9dd19f d/patches: fix missing newline at end of series file
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-26 20:42:13 +02:00
Alexandre Derumier
1d1512c804 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>
2023-06-26 20:42:13 +02:00
Alexandre Derumier
254c66ce10 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>
2023-06-26 20:42:13 +02:00
Alexandre Derumier
f82f684a21 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>
2023-06-26 20:42:13 +02:00
Thomas Lamprecht
8bd3ea38af bump version to 3.2.0-1+pmx2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-21 08:22:49 +02:00
Thomas Lamprecht
0b706d7190 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>
2023-06-21 08:22:35 +02:00
Thomas Lamprecht
a507189819 buildsys: derive upload dist automatically
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-20 15:52:40 +02:00
Alexandre Derumier
8ff75e3c69 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>
2023-05-20 15:48:33 +02:00
Thomas Lamprecht
19e2335ced lintian: fix/override some complaints
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-20 15:48:33 +02:00
Thomas Lamprecht
f02194b871 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>
2023-05-20 15:48:33 +02:00
Thomas Lamprecht
3a7603f059 buildsys: add sbuild target for convenience
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-20 15:48:33 +02:00
Thomas Lamprecht
698f831926 d/control: raise standards version compliance to 4.6.2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-20 15:48:33 +02:00
Thomas Lamprecht
e668a4278c buildsys: add dsc target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-20 15:48:33 +02:00
Thomas Lamprecht
4fb10245ab buildsys: use full DEB_VERSION
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-20 15:48:33 +02:00
Thomas Lamprecht
c4132b1ce4 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>
2023-05-20 15:48:33 +02:00
Thomas Lamprecht
c4159c1c07 merge in downstream packaging changes & drop patches
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-20 15:48:33 +02:00
Thomas Lamprecht
2bc14bc254 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>
2023-05-20 15:48:33 +02:00
Thomas Lamprecht
cf37f188a5 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>
2023-05-20 15:48:33 +02:00
Thomas Lamprecht
0fbaa455ab update submodule to 3.2.0-pmx1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-20 15:48:33 +02:00
Alexandre Derumier
f9fec01680 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>
2023-05-20 15:48:33 +02:00
Alexandre Derumier
9e5b857e45 patch: add ipv6 slaac support upstream patch
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-20 15:48:33 +02:00
Alexandre Derumier
234ce3a0a5 patch: reorder patches
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-20 15:48:33 +02:00
Alexandre Derumier
3233d1716e patch: remove old upstreamed patches
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-20 15:48:33 +02:00
Alexandre Derumier
261944f030 patch: patch5: fix code nit
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-20 15:48:33 +02:00
Thomas Lamprecht
6e7ad15f2a makefile: convert to use simple parenthesis
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-20 15:48:33 +02:00
Thomas Lamprecht
4c0e2ad7bd bump version to 3.1.0-1+pmx4
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-16 12:01:18 +02:00
Alexandre Derumier
be93f4754c patch: add vlan interface ifdown/ifup when changes on reload, like for vxlan
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2023-04-22 08:59:03 +02:00
Alexandre Derumier
3c4e774f5e patch : vlan: fix vlan-protocol query check
upstream:
https://github.com/CumulusNetworks/ifupdown2/pull/258
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2023-04-22 08:59:03 +02:00
Alexandre Derumier
7aa3a5e6b6 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>
2022-10-14 15:21:19 +02:00
Thomas Lamprecht
02c0adc2ae bump version to 3.1.0-1+pmx3
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-26 12:29:12 +02:00