Luca Boccassi
65224c1d0e
core: rename ShutdownWatchdogSec to RebootWatchdogSec
...
This option is only used on reboot, not on other types of shutdown
modes, so it is misleading.
Keep the old name working for backward compatibility, but remove it
from the documentation.
2019-07-23 20:29:03 +01:00
Luca Boccassi
acafd7d8a6
core: add KExecWatchdogSec option
...
Rather than always enabling the shutdown WD on kexec, which might be
dangerous in case the kernel driver and/or the hardware implementation
does not reset the wd on kexec, add a new timer, disabled by default,
to let users optionally enable the shutdown WD on kexec separately
from the runtime and reboot ones. Advise in the documentation to
also use the runtime WD in conjunction with it.
Fixes: a637d0f9ec
("core: set shutdown watchdog on kexec too")
2019-07-23 20:29:03 +01:00
Yu Watanabe
e3cbaeab86
test-network: add tests for issue #6088
2019-07-23 22:08:58 +09:00
Zbigniew Jędrzejewski-Szmek
f7e7bb6546
Merge pull request #13070 from yuwata/network-set-route-to-dhcp-dns
2019-07-19 09:35:22 +02:00
Dan Streetman
65dd488fe1
test: convert all uses of '|| true' into '|| :'
...
No change in functionality; just use the shorter || :
2019-07-19 13:47:21 +09:00
Yu Watanabe
fb2ba3305b
test-network: add test for neighbor with ipv6 lladdr
2019-07-19 07:14:58 +09:00
Yu Watanabe
195a18c17d
test-network: add tests for routes to DNS servers provided by DHCPv4
2019-07-19 01:56:14 +09:00
Yu Watanabe
a24e12f020
network: add DHCPv4.RoutesToDNS= setting
2019-07-19 01:49:39 +09:00
Michael Biebl
b333c4d101
test: replace Makefile copy with a symlink for TEST-28-PERCENTJ-WANTEDBY
...
TEST-28-PERCENTJ-WANTEDBY/Makefile is identical to
TEST-01-BASIC/Makefile so avoid duplication and use a symlink instead.
2019-07-18 12:49:41 +02:00
Michael Biebl
6db904625d
meson: make nologin path build time configurable
...
Some distros install nologin as /usr/sbin/nologin, others as
/sbin/nologin.
Since we can't really on merged-usr everywhere (where the path wouldn't
matter), make the path build time configurable via -Dnologin-path=.
Closes #13028
2019-07-18 12:46:35 +02:00
Yu Watanabe
693283cd58
Revert "test-network: extend sleep time"
...
This reverts commit 7d7bb5c861
.
Still the CIs are flaky and the commit just slow down them.
2019-07-17 23:13:40 +09:00
Dan Streetman
2a2aeed460
test/TEST-16: don't copy systemd-notify or lib from $BUILD_DIR
...
On Ubuntu CI, these don't exist because it tests installed
binaries, not just-built binaries.
2019-07-17 14:25:27 +02:00
Lennart Poettering
52f4b5ac8a
Merge pull request #12675 from yuwata/network-set-dns
...
resolvectl: support to modify interfaces managed by networkd
2019-07-17 12:07:39 +02:00
Anita Zhang
31cd5f63ce
core: ExecCondition= for services
...
Closes #10596
2019-07-17 11:35:02 +02:00
Zbigniew Jędrzejewski-Szmek
4a747647b3
Merge pull request #13082 from ddstreet/minor
...
Minor fixes in test framework
2019-07-17 08:44:01 +02:00
Dan Streetman
59279e9618
test/test-functions: fix install_dmeventd to correctly install bin/libs
2019-07-17 08:34:48 +02:00
Dan Streetman
e96386521c
test/test-functions: instmods call to find should use -type f
...
without using -type f, the logs print an error such as:
E: E: modprobe: FATAL: Module asymmetric_keys not found in directory /lib/modules/4.15.0-54-generic
while this doesn't appear to cause problems, it can be extremely
distracting when trying to debug real failures.
2019-07-16 18:05:15 -04:00
Dan Streetman
d391ee10a0
test: when stripping binaries, ignore case in suppressing "File format not recognized"
...
The grep -v matches all lowercase, but "file" is captialized; just ignore case so
it's suppressed for either all lowercase or capital File.
2019-07-16 18:05:15 -04:00
Dan Streetman
f85bc044e5
test: ignore errors during test cleanup, so cleanup can finish
...
Also move TESTDIR and STATEFILE removal into test_cleanup
2019-07-16 18:05:15 -04:00
Dan Streetman
ec4cab49c9
test: add create_empty_image_rootdir() to simplify testcase setup
...
Almost all tests were manually mounting/unmounting $TESTDIR/root
from the loopback image; this moves all that into test-functions
so the test setup functions are simplier.
Also add test_setup_cleanup() function, to cleanup what is mounted
by create_empty_image_rootdir()
2019-07-16 18:05:15 -04:00
Yu Watanabe
217246a990
test-network: drop warn_about_firewalld() as it is not necessary any more
2019-07-17 06:59:12 +09:00
Yu Watanabe
2225e7fd88
test-network: stop firewalld in setUpModule()
2019-07-17 06:59:12 +09:00
Yu Watanabe
336d18f0ff
test-network: add tests for link state file vs resolvectl or timedatectl
2019-07-17 06:59:12 +09:00
Yu Watanabe
26408c7d5f
Merge pull request #13069 from yuwata/network-do-not-set-routes-when-carrier-lost
...
network: do not configure routes when dropping addresses
2019-07-17 06:56:32 +09:00
Yu Watanabe
7d7bb5c861
test-network: extend sleep time
...
Even if addresses provided by DHCP is assigned, the state file may not
be written yet, or resolved may not receive the state change signal
yet, or resolved may not process the signal yet...
2019-07-17 01:01:10 +09:00
Evgeny Vereshchagin
038bf640e9
tests: bump up QEMU_MEM
2019-07-16 15:01:26 +00:00
Lennart Poettering
15bcd9fa09
Merge pull request #12925 from yuwata/network-generator
...
network-generator: introduce new tool systemd-network-generator
2019-07-16 16:23:42 +02:00
Yu Watanabe
e2aea43f31
test-network: make wait_online() check setup state
...
Previously, event if link's setup state is in failed, tests may pass,
as systemd-networkd-wait-online success if the state is in failed state.
This makes tests be checked more strictly.
2019-07-16 01:32:24 +09:00
Yu Watanabe
e0c1341df2
test-network: add tests for DHCPv4.UseDomains=
2019-07-15 00:43:15 +09:00
Yu Watanabe
12fc80bed5
test: add TEST-35-NETWORK-GENERATOR
2019-07-14 10:59:54 +09:00
Yu Watanabe
6d60f9dbe6
test-network: add tests for route with type local, multicast, anycast, or broadcast
2019-07-12 09:39:43 +09:00
Yu Watanabe
5424fd9573
test-network: test more bridge properties
...
Imported from networkd-test.py
2019-07-12 09:39:43 +09:00
Yu Watanabe
6fa0524133
Merge pull request #12971 from yuwata/network-reassign-static-routes
...
network: reassign static routes and process reply address messages
2019-07-12 09:36:16 +09:00
Lennart Poettering
be9d8212a5
Merge pull request #13017 from yuwata/network-neighbor-lladdr-13015
...
network: rename Neighbor.MACAddress= and also support IPv4 address
2019-07-11 19:23:29 +02:00
Lennart Poettering
2e8e1a1ab6
Merge pull request #12461 from Werkov/fix-job-ordering
...
Refactor job ordering implementation (and fix cycle detection)
2019-07-11 16:43:58 +02:00
Yu Watanabe
c1b01a62d1
test-network: add test for route reassignment
2019-07-11 22:37:58 +09:00
Yu Watanabe
74761cf37e
test-network: add testcase that Neighbor.LinkLayerAddress= is IP address
2019-07-11 22:22:29 +09:00
Yu Watanabe
d86f5c194c
test-network: use Neighbor.LinkLayerAddress= instead of deprecated Neighbor.MACAddress=
2019-07-11 22:22:29 +09:00
Yu Watanabe
b956364db0
network: rename Neighbor.MACAddress= to Neighbor.LinkLayerAddress=
...
And make it support IPv4 address.
Closes #13015 .
2019-07-11 22:22:29 +09:00
Lennart Poettering
273fe5d3cb
test: add testcase for new CleanUnit logic
2019-07-11 12:18:51 +02:00
Lennart Poettering
66d3159739
Merge pull request #13018 from yuwata/network-tunnel-follow-up-13016
...
network: drop assertions about Tunnel.family
2019-07-11 12:10:39 +02:00
Yu Watanabe
cef94248ff
test-network: drop test_udev_driver as it is unstable
...
The test unexpectedly succeeds on KVM with sanitizer CI.
At least tentatively, let's drop the test.
2019-07-11 11:17:20 +02:00
Lennart Poettering
7e82b4059b
Merge pull request #13006 from yuwata/network-split-dhcp-12917
...
networkd: DHCPv6 - separate DHCPv6 options from DHCPv4 options
2019-07-11 10:28:03 +02:00
Yu Watanabe
42a29fcb12
test-network: add testcases Tunnel.Remote=any and Local=any
2019-07-11 15:09:50 +09:00
Yu Watanabe
e64dc40615
test-network: add test for Xfrm netdev
2019-07-11 11:51:23 +09:00
Yu Watanabe
95082dbef5
test-network: add test for AssignToLoopback= setting
2019-07-11 09:59:06 +09:00
Yu Watanabe
8c9c703c55
network: add AssignToLoopback= setting to [Tunnel] section
...
networkd does not manage loopback interface lo. So, previously, we have
no way to assign tunnel devices to lo.
2019-07-11 09:59:06 +09:00
Yu Watanabe
f392c06566
Merge pull request #12863 from 1848/if_xfrm
...
Added support for xfrm interfaces
2019-07-10 23:04:49 +09:00
1848
98d20a17a9
Added support for xfrm interfaces
2019-07-10 23:02:19 +09:00
Yu Watanabe
e4443f9bfc
network: fix memleak
...
set_put() does not return -EEXIST.
Fixes #12995 and oss-fuzz#15678.
2019-07-10 12:27:48 +02:00