Commit Graph

156 Commits

Author SHA1 Message Date
Alexandre Derumier
4f25fa796f 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>
2020-03-04 14:49:38 +01:00
Alexandre Derumier
c3bbaa7e59 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>
2020-03-03 10:21:00 +01:00
Wolfgang Bumiller
5976965fb8 bump version to 2.0.1-1+pve4
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-02-03 11:09:18 +01:00
Alexandre Derumier
9a1cfd2361 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>
2020-02-03 10:43:12 +01:00
Alexandre Derumier
c2be9ea133 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>
2020-02-03 10:43:10 +01:00
Thomas Lamprecht
fbe4b342ea followup: restore service ordering state as previous
commit 214bc505ac 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>
2020-01-30 13:50:46 +01:00
Thomas Lamprecht
41e45a2fb6 bump version to 2.0.1-1+pve3
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-01-30 12:51:48 +01:00
Thomas Lamprecht
2bbbe2f2a8 fix networking.service ordering
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-01-30 12:50:55 +01:00
Thomas Lamprecht
11b2fc1b69 bump version to 2.0.1-1+pve2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-01-13 09:14:30 +01:00
Thomas Lamprecht
261c92e5dc backport fix to avoid exception in ifreload
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-01-13 09:13:34 +01:00
Alexandre Derumier
be33182132 bump version to 2.0.1-1+pve1
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-01-09 13:07:44 +01:00
Alexandre Derumier
214bc505ac 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>
2020-01-09 13:06:08 +01:00
Thomas Lamprecht
7078641c41 update submodule to 2.0.1-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-01-09 13:06:08 +01:00
Thomas Lamprecht
a78fdaa60e bump version to 1.2.8-1+pve4
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-11-26 14:31:45 +01:00
Alexandre Derumier
861f8648d5 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>
2019-09-19 15:01:16 +02:00
Alexandre Derumier
2c9a4386ca 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>
2019-09-04 16:43:04 +02:00
Thomas Lamprecht
a63abd7bc1 bump version to 1.2.8-1+pve3
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-08-30 06:59:22 +02:00
Thomas Lamprecht
51aa63dd54 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>
2019-08-30 06:58:41 +02:00
Thomas Lamprecht
b774c52e32 bump version to 1.2.8-1+pve2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-08-28 17:00:02 +02:00
Thomas Lamprecht
08415f3789 buildsys: add own buildir target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-08-28 16:59:45 +02:00
Thomas Lamprecht
1d5643c498 buildsys: use dpkg-dev makefile helpers for pkg info
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-08-28 16:47:17 +02:00
Alexandre Derumier
7736a4f9de fix bridge_port_condone_regex default value 2019-08-28 16:42:19 +02:00
Thomas Lamprecht
d881bf7f8b bump version to 1.2.8-1+pve1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-08-28 11:08:31 +02:00
Thomas Lamprecht
d2867e8cc2 update patches for 1.2.8-1 release
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-08-28 11:08:31 +02:00
Thomas Lamprecht
a850e8b1e6 update submodule to 1.2.8-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-08-28 11:08:31 +02:00
Thomas Lamprecht
0b3ac6b9b1 bump version to 1.2.5-2+pve1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-18 10:24:28 +02:00
Alexandre Derumier
cde973e46e patch: add uplink-id option
only to avoid warning, not used by ifupdown2

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2019-06-14 07:17:16 +02:00
Alexandre Derumier
46178de4d4 patch: don't remove bridge if tap|veth|fw are connected
instead make a warning

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2019-06-14 07:17:16 +02:00
Alexandre Derumier
ae0187f8f2 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>
2019-06-14 07:17:16 +02:00
Thomas Lamprecht
5548b4e03f drop patches applied upstream
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-03 11:18:09 +02:00
Thomas Lamprecht
22177ed398 update to current upstream master
to save Alexandre some backport work

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-03 11:18:09 +02:00
Alexandre Derumier
1827532ef2 upstream fix for error: 'NoneType' object has no attribute '__getitem__'
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2019-05-08 12:14:04 +00:00
Alexandre Derumier
5cb56ae5a0 ifupdown2 : bump to 1.2.5 2019-04-17 07:19:41 +00:00
Alexandre Derumier
c7f587d2e0 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__'
2019-04-17 07:19:41 +00:00
Alexandre Derumier
f062437c0c allow vlan subinterface in vlan aware bridge
(for qinq)
2019-04-17 07:19:41 +00:00
Alexandre Derumier
2fc8782ce3 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)
2019-04-17 07:19:41 +00:00
Thomas Lamprecht
41a60149a0 update submodule to 1.2.5-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-17 07:19:41 +00:00
Alexandre Derumier
a60dd3bdb9 bump version to 1.2.2-1+pvetest1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-01-08 15:58:20 +01:00
Alexandre Derumier
b58be4449b update config tuning patch 2019-01-08 15:57:57 +01:00
Thomas Lamprecht
baa9c23f0d update submodule to 1.2.2-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-01-08 15:57:57 +01:00
Dietmar Maurer
49d057b85f Makefile: replace ARCH with all
This is an architecture independent package.
2018-08-09 11:58:03 +02:00
Wolfgang Bumiller
a4f583b1f2 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>
2018-07-03 11:09:26 +02:00
Wolfgang Bumiller
d07b39b4f9 add patch to fix networking.service
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2018-07-03 11:09:26 +02:00
Wolfgang Bumiller
6b9c5906e2 update to current master-next and remove upstreamed patches
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2018-07-03 10:56:28 +02:00
Wolfgang Bumiller
c509a4b4a0 bump version to 2.0.0-1~pvetest3
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2018-06-18 10:05:16 +02:00
Alexandre Derumier
07b8c991a0 allow address on vlan aware bridge 2018-06-18 10:04:37 +02:00
Wolfgang Bumiller
17a9c9e5f7 bump version to 2.0.0-1~pvetest2
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2018-06-18 09:57:39 +02:00
Wolfgang Bumiller
683590d3a0 revert 113afc4da2, the patch wasn't actually applied
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2018-06-18 09:56:16 +02:00
Wolfgang Bumiller
9cdefd1123 cleanup patches
Generate them with --zero-commit passed to git format-patch.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2018-06-15 09:56:35 +02:00
Wolfgang Bumiller
113afc4da2 remove already-applied patch
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2018-06-15 09:56:35 +02:00