Lennart Poettering
8e0ba0c984
networkd-test: restart hostnamed after reverting /etc/hostname too
...
Otherwise hostnamed will not report the right data in the next test
2018-12-07 12:25:24 +01:00
Lennart Poettering
fef740aed3
networkd-test: add write_config()
...
The call was removed in ec89276c2a , but is
still used. Not sure why noone noticed this.
2018-12-07 12:25:24 +01:00
Lennart Poettering
ff7507295d
networkd-test: set right access modes for /run/systemd/netif
...
Otherwise networkd isn't happy.
Let's also make addition of the "systemd-network" non-fatal. The user
exists on many machines anyway, hence it shouldn't fail if it already
exists.
2018-12-07 12:25:24 +01:00
Yu Watanabe
131717cbb4
test-network: make search_words_in_file() hit multi words
2018-12-06 16:48:42 +01:00
Yu Watanabe
e4eacdb09f
test-network: delete rules before running next test
2018-12-06 16:48:42 +01:00
Yu Watanabe
fa7cd60281
test-network: add a line break after starting networkd
...
This may be ugly. But otherwise, outputs of several check commands
are shown without new line...
2018-12-06 16:48:42 +01:00
Yu Watanabe
e40a58b5bc
test-network: check link before starting dnsmasq
2018-12-06 16:48:42 +01:00
Yu Watanabe
14ecd604a4
test-network: show command outputs
2018-12-06 16:48:41 +01:00
Yu Watanabe
a9bc5e370e
test-network: sort imported modules
2018-12-06 16:48:41 +01:00
Yu Watanabe
09ea6724e7
test-network: sort links and units
2018-12-06 16:48:41 +01:00
Yu Watanabe
14dc033574
test-network: fix typo in class name
2018-12-06 16:48:41 +01:00
Yu Watanabe
801503d22b
Merge pull request #10988 from ssahani/IFLA_BRPORT_MCAST_TO_UCAST
...
networkd: bridge add support to configure multicast_to_unicast
2018-12-06 14:32:52 +01:00
Susant Sahani
4d7ed14f9f
test-network: add test for bridge MulticastToUnicast
2018-12-06 11:54:14 +05:30
Susant Sahani
efecf9cd15
test-network: Add test for invert RPDB rule
2018-12-06 11:00:36 +05:30
Susant Sahani
8b220643b1
networkd: RPDB rule - add support to configure inverted rule.
...
Closes #10706
2018-12-06 10:42:36 +05:30
Yu Watanabe
253de60634
Merge pull request #11021 from ssahani/isatap
...
networkd: Add support to configure ISATAP tunnel
2018-12-05 23:13:17 +01:00
Susant Sahani
d3aa8b49e5
networkd: bridge add support to configure multicast_to_unicast
...
closes #10649
2018-12-03 23:49:46 +05:30
Chris Down
c72703e26d
cgroup: Add DisableControllers= directive to disable controller in subtree
...
Some controllers (like the CPU controller) have a performance cost that
is non-trivial on certain workloads. While this can be mitigated and
improved to an extent, there will for some controllers always be some
overheads associated with the benefits gained from the controller.
Inside Facebook, the fix applied has been to disable the CPU controller
forcibly with `cgroup_disable=cpu` on the kernel command line.
This presents a problem: to disable or reenable the controller, a reboot
is required, but this is quite cumbersome and slow to do for many
thousands of machines, especially machines where disabling/enabling a
stateful service on a machine is a matter of several minutes.
Currently systemd provides some configuration knobs for these in the
form of `[Default]CPUAccounting`, `[Default]MemoryAccounting`, and the
like. The limitation of these is that Default*Accounting is overrideable
by individual services, of which any one could decide to reenable a
controller within the hierarchy at any point just by using a controller
feature implicitly (eg. `CPUWeight`), even if the use of that CPU
feature could just be opportunistic. Since many services are provided by
the distribution, or by upstream teams at a particular organisation,
it's not a sustainable solution to simply try to find and remove
offending directives from these units.
This commit presents a more direct solution -- a DisableControllers=
directive that forcibly disallows a controller from being enabled within
a subtree.
2018-12-03 15:40:31 +00:00
Susant Sahani
d0e728b6cd
test-network: add test for ISATAP
2018-12-03 09:16:06 +05:30
Susant Sahani
918049ad53
networkd: Add support to configure ISATAP tunnel
...
Let's just reuse the code of sit tunnel to create a ISATAP tunnel.
Matter of turning a flag
Please see https://elixir.bootlin.com/linux/v4.19.6/source/net/ipv6/sit.c#L208
2018-12-03 09:15:24 +05:30
Yu Watanabe
97f9df9e30
network: rename Protocol= in [RoutingPolicyRule] to IPProtocol=
2018-12-02 06:13:47 +01:00
Zbigniew Jędrzejewski-Szmek
401faa3533
Merge pull request #10357 from poettering/import-fs
...
machinectl import-fs command and other fixes
2018-11-29 16:38:46 +01:00
Evgeny Vereshchagin
c90c39ff7b
catalog: reject entries where the language is too short early
...
Closes https://oss-fuzz.com/testcase-detail/5674475278827520
2018-11-29 13:41:40 +09:00
Yu Watanabe
c0bf673376
test-network: stop systemd-networkd.socket during testing
...
To suppress noisy warning messages.
2018-11-28 22:00:40 +01:00
Yu Watanabe
bad4969bba
test-network: clear state file before starting networkd
...
Otherwise, some tests may disturb others, e.g.,
NetworkdNetWorkTests.test_routing_policy_rule_port_range and
NetworkdNetWorkTests.test_routing_policy_rule.
2018-11-28 21:40:57 +01:00
Yu Watanabe
d486a2d0c1
test-network: use /run instead of legacy /var/run
2018-11-28 19:55:01 +01:00
Yu Watanabe
fab57f7f13
Merge pull request #10948 from ssahani/iprule-port-proto
...
networkd: add support to configure ip rule port range and protocol.
2018-11-29 03:17:36 +09:00
Susant Sahani
926062f083
networkd: add support to configure ip rule port range and protocol.
...
Please see:
iprule: support for ip_proto, sport and dport match options
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=f686f764682745daf6a93b0a6330ba42a961f858
Closes 10622
2018-11-28 20:06:28 +05:30
Susant Sahani
0d34228fc0
fix: systemd-networkd reverse route ordering
...
We missing a default route. Add gateway first.
This fixes https://github.com/systemd/systemd/issues/5430
2018-11-28 23:19:00 +09:00
Yu Watanabe
66e3834010
Merge pull request #10967 from evverx/check-directives
...
travis: make sure that *.perf and directives.* files are in sync
2018-11-28 14:02:42 +09:00
Evgeny Vereshchagin
5260482d4c
tests: update test/fuzz/fuzz-netdev-parser/directives.netdev
...
This is a follow-up to 2266864b04 .
2018-11-28 05:19:12 +01:00
Lennart Poettering
324ca05459
test: make TEST-27 non-racy
...
Not sure how I missed this, but we of course need to wait for the
"systemd-run" commands to finish before we can check the output files
this generated.
2018-11-28 13:05:54 +09:00
Lennart Poettering
196b0a11f3
test: add a test for StandardError=file:…
...
This deserves a test of its, given how broken on so many levels this
previously was.
2018-11-27 10:06:51 +01:00
Lennart Poettering
79411bbcce
test: add test for setting service manager environment variables
...
This is a follow-up for #10594 . I somehow forgot to commit this when I
worked on that.
2018-11-27 14:25:17 +09:00
Susant Sahani
2266864b04
networkd: Add support for ERSPAN tunnel
...
Please see: https://patchwork.ozlabs.org/patch/800327/
```
[NetDev]
Name=erspan-test
Kind=erspan
[Tunnel]
Independent=true
ERSPANIndex=123
Local = 172.16.1.200
Remote = 172.16.1.100
Key=101
SerializeTunneledPackets=true
```
2018-11-27 11:04:42 +09:00
Yu Watanabe
f5050e48ae
test-network: add tests for #5430 and GatewayOnLink=
2018-11-26 18:47:52 +01:00
Lennart Poettering
f5d9a12780
Merge pull request #10928 from yuwata/fix-9940
...
network: also load foo.netdev.d/*.conf
2018-11-26 18:46:47 +01:00
Lennart Poettering
f5095a6af0
test: add simple test for importd
...
It tests importing and exporting, and a few other machinectl commands.
It currently does not test pulling (i.e. http downloads), but we might
want to add that later on.
2018-11-26 18:09:01 +01:00
Yu Watanabe
d80734f7cd
test-network: add one more test for netdev dropin .conf files
...
For netdev, config files are loaded twice, and the first time,
only Match and NetDev setions are read. So, the test given by
the previous commit covers only the second loading.
This adds another test that also covers the first loading.
2018-11-26 22:48:27 +09:00
Lennart Poettering
9630d4dd68
Merge pull request #10894 from poettering/root-cgroup-fix
...
A multitude of cgroup fixes
2018-11-26 14:13:01 +01:00
Evgeny Vereshchagin
2e646cbed8
tests: add a fuzzer for the udev rules parser ( #10929 )
2018-11-26 18:14:30 +09:00
Yu Watanabe
013c8dc94d
test-network: add tests for dropin .conf files
2018-11-26 15:01:01 +09:00
Evgeny Vereshchagin
a4aa59bae2
tests: add a fuzzer for server_process_native_file
2018-11-23 17:29:59 +01:00
Lennart Poettering
43738e001e
test: extend testcase to ensure controller membership doesn't regress
2018-11-23 13:41:37 +01:00
Evgeny Vereshchagin
4928e8adba
tests: add a fuzzer for catalog_import_file
2018-11-22 21:02:34 +01:00
Lennart Poettering
bd0ce2447d
tmpfiles: also order glob child/parent relationships
...
This is necessary so that "r" can be nested and are always executed in
the same order.
Fixes : #10191
2018-11-20 16:36:29 +01:00
Zbigniew Jędrzejewski-Szmek
606b0b64a7
Merge pull request #10538 from poettering/tmpfiles-reorder
...
tmpfiles: remove children before their parents plus other fixlets
2018-11-20 13:00:28 +01:00
Evgeny Vereshchagin
9541f5ff5c
tests: add a fuzzer for journald streams
2018-11-20 03:03:32 +01:00
Lennart Poettering
2b38a8ea80
Merge pull request #10507 from cdown/cpu_acct
...
cgroup v2: Don't require CPU controller for CPU accounting in 4.15+
2018-11-19 10:57:48 +01:00
Xi Ruoyao
b0fbf9bd40
test: let the shell find "touch" instead of hard-coded "/bin/touch"
2018-11-19 08:37:36 +01:00