Philip Withnall
f627573031
man: Add missing <literal> tags in various man pages
...
A minor formatting improvement brought to you by the wonders of `git
grep`.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-06-12 10:39:50 +01:00
Philip Withnall
e69cacd2af
man: Fix typo in sd_notify man page
...
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-06-12 10:39:50 +01:00
Yu Watanabe
e5dd7bc25d
Merge pull request #12774 from yuwata/network-ignore-ipv6-settings-when-sysctl-disable-ipv6
...
network: ignore ipv6 settings when sysctl disable ipv6
2019-06-12 14:46:00 +09:00
Tomas Mraz
18bddeaaf2
resolved: Fix incorrect use of OpenSSL BUF_MEM
...
Fixes : #12763
2019-06-12 11:15:25 +09:00
Yu Watanabe
4933b97d59
test-network: add more test cases when ipv6 is disabled
2019-06-12 11:04:10 +09:00
Yu Watanabe
b0ab85a2e4
network: ignore requested ipv6 fdb entry when ipv6 is disabled by sysctl
2019-06-12 11:04:06 +09:00
Yu Watanabe
7ef7e5509b
network: ignore requested ipv6 routing policy rule when ipv6 is disabled by sysctl
2019-06-12 11:03:37 +09:00
Yu Watanabe
c442331750
network: ignore requested ipv6 route when ipv6 is disabled by sysctl
2019-06-12 11:03:08 +09:00
Yu Watanabe
54a1a535bd
network: ignore requested ipv6 addresses when ipv6 is disabled by sysctl
2019-06-12 11:02:33 +09:00
Peter A. Bigot
12880d14ad
man: fix reference to sd_bus_add_fallback_vtable
2019-06-11 23:02:37 +09:00
Zbigniew Jędrzejewski-Szmek
469b18d87d
Merge pull request #12685 from yuwata/network-dhcp-assign-adn-remove-12676
...
network: assign new DHCP address before removing old lease address
2019-06-11 09:52:26 +02:00
Karel Zak
08185cff19
systemd-mount: don't check for non-normalized WHAT for network FS
...
The WHAT string could be whatever for many filesystems. The common
example are network filesystems.
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1708996
2019-06-11 09:19:16 +02:00
Theo Ouzhinski
9a31142997
man/systemd-veritysetup-generator: Fix grammar
2019-06-09 08:22:03 +09:00
Yu Watanabe
d03073ddcd
network: assign new DHCP address before removing old lease address
...
Closes #12676 .
2019-06-07 16:22:00 +09:00
Yu Watanabe
3ab7ed3f12
network: ignore callback calls when link is in failed state
2019-06-07 16:22:00 +09:00
Yu Watanabe
a2f684904c
network: drop unnecessary link_enter_failed() calls
...
As the function called soon later anyway.
2019-06-07 16:22:00 +09:00
Yu Watanabe
448aaf9f43
network: check earlier the existence of lifetime in lease
2019-06-07 16:22:00 +09:00
Yu Watanabe
1590dfa4a0
network: make all failures in route configuration fatal
2019-06-07 16:22:00 +09:00
Yu Watanabe
1f3bb9df2f
Merge pull request #12756 from cdown/uninit
...
a couple of correctness fixups
2019-06-07 15:58:30 +09:00
Chris Down
c710d3b430
cgroup: Prevent theoretical nullptr deref in unit mask calculation
2019-06-07 06:33:53 +01:00
Chris Down
aa91d5925a
systemctl: Prevent state_missing from being used uninit
2019-06-07 06:33:35 +01:00
Zbigniew Jędrzejewski-Szmek
2db18cdd46
Merge pull request #12738 from yuwata/network-routing-policy-cleanup
...
network: several cleanups for routing policy rule
2019-06-06 18:53:20 +02:00
Zbigniew Jędrzejewski-Szmek
08ed12bb79
Merge pull request #12511 from ssahani/high-avilability-12050
...
networkd: add new KeepConfiguration= setting
2019-06-06 18:51:46 +02:00
Yu Watanabe
1e498853a3
test-network: add tests for KeepConfiguration=
2019-06-06 23:36:27 +09:00
Yu Watanabe
c98d78d32a
man: add documentation about KeepConfiguration
2019-06-06 22:50:29 +09:00
Yu Watanabe
db51778f85
network: make KeepConfiguration=static drop DHCP addresses and routes
...
Also, KeepConfiguration=dhcp drops static foreign addresses and routes.
2019-06-06 22:50:29 +09:00
Yu Watanabe
95355a281c
network: add KeepConfiguration=dhcp-on-stop
...
The option prevents to drop lease address on stop.
By setting this, we can safely restart networkd.
2019-06-06 22:50:29 +09:00
Susant Sahani
7da377ef16
networkd: add support to keep configuration
2019-06-06 22:50:29 +09:00
Yu Watanabe
f0c53dfe3c
Merge pull request #12748 from keszybz/modernize-networkd-tests-style
...
Modernize networkd-tests.py style
2019-06-06 22:23:09 +09:00
Zbigniew Jędrzejewski-Szmek
9120e2bfdf
NEWS: add note about the CPUAffinity= changes
2019-06-06 21:33:59 +09:00
Yu Watanabe
042526868a
Merge pull request #12508 from keszybz/no-root-checks
...
Drop many root checks
2019-06-06 21:31:19 +09:00
Zbigniew Jędrzejewski-Szmek
88aaf89ecb
networkd-tests.py: properly escape pluses in regexps
...
Python warns that '\+' is an invalid escape. We need either '\\+' or r'\+'.
2019-06-06 14:11:28 +02:00
Zbigniew Jędrzejewski-Szmek
ec38833c75
networkd-tests.py: remove some java-style boilerplate
...
A class was used to put some utility functions under a namespace. But then this
namespace was inherited into classes, so the namespace split was undone. Let's
just define those functions in the module namespace.
(The Utilities class with a few functions still remain, because of the
unittest-style self.assert* craziness.)
2019-06-06 14:11:28 +02:00
Zbigniew Jędrzejewski-Szmek
cefd6b3db8
networkd-tests.py: use check_output() instead of unittests' assertEqual()
...
It's pretty much the same thing, but more in pytest style, without the
unittest boilerplate.
2019-06-06 14:11:28 +02:00
Zbigniew Jędrzejewski-Szmek
371810d18a
networkd-tests.py: add helpers to common subprocess call patterns
...
For normal shell calls, python syntax is quite verbose. We don't need to punish
ourselves like that. In some places we would fork a shell to do argument splitting
for us. We know that our arguments can be safely split on whitespace, so let's do
that ourselves in all cases, without forking a shell.
We also expect command output to be valid text, so let's always set
universal_newlines=True.
This makes things shorter and easier to read. Development is also easier because
it's possible to paste many of the commands directly to/from a shell.
2019-06-06 14:11:28 +02:00
Zbigniew Jędrzejewski-Szmek
632037cf4a
networkd-tests.py: remove unused import
2019-06-06 13:58:58 +02:00
Yu Watanabe
9ee92e7ed8
network: check stored object is euivalent to what we want to remove
...
When object A is stored in Manager::rules and B is in ::rules_foreign,
and compare function for the object cannot distinguish them,
then freeing A causes B to be removed from rules_foreign or vice versa.
Hopefully fixes #12731 .
2019-06-06 00:45:46 +09:00
Michael Biebl
c0d11245d2
Drop no longer needed halt-local.service.in
...
Follow-up for commit 4450894653
.
2019-06-05 14:32:44 +02:00
Zbigniew Jędrzejewski-Szmek
341b19da90
Merge pull request #12744 from yuwata/test-network-stability-dhcp-tests
...
test-network: improve stability of DHCP client tests
2019-06-05 14:31:24 +02:00
Yu Watanabe
d90f4f7d91
test-network: do not directly compare two results of "ip address"
...
As it contains lifetime of the address.
2019-06-05 19:42:12 +09:00
Chris Down
eab5049520
Merge pull request #11778 from anitazha/rfe_11654_dbus
...
core: add ExecStartXYZEx= with dbus support for executable prefixes
2019-06-05 10:02:00 +01:00
Yu Watanabe
99058cd66a
udev: propagate errors in udev_event_execute_rules()
...
And do not set initialized flag to the device.
2019-06-05 10:44:17 +02:00
Zbigniew Jędrzejewski-Szmek
97afc0351a
udevadm trigger: log errors and return first failure
...
When udevadm trigger is called, the list of devices to trigger is always
generated through enumeration, and devices can come and go, so we should not
treat -ENOENT as a failure. But other types of failure should be logged.
It seems they were logged until baa30fbc2c
.
Also, return the first error. (I'm not sure if there are other failure modes
which we want to ignore. If they are, they'll need to be whitelisted like
-ENOENT.).
2019-06-05 09:54:54 +02:00
Yu Watanabe
e16ffe7954
test-network: do not allow addresses in tentative state
2019-06-05 16:35:20 +09:00
Zbigniew Jędrzejewski-Szmek
7e95efb508
man: mention quoting in description of Parameters=
...
Also add a short example how to translate nspawn command line to .nspawn settings.
Fixes #12703 .
2019-06-05 04:23:18 +09:00
Yu Watanabe
277cb7631e
Merge pull request #12741 from keszybz/bpf-firewall-warning
...
Silence BPF firewall warning when not useful
2019-06-05 04:01:44 +09:00
Yu Watanabe
e8b88eb94c
Merge pull request #12737 from keszybz/meson-man-nspawn
...
meson: escape dots in man/man helper
2019-06-05 02:45:39 +09:00
Yu Watanabe
56dacb8d2e
Merge pull request #12661 from mrc0mmand/debug-journalctl-flush
...
journal: disable varlink timeout for journalctl --flush or friends
2019-06-05 00:46:29 +09:00
Zbigniew Jędrzejewski-Szmek
4fb334113b
man/man: refer to the right build directory in the helpers
...
I have no idea how this one slipped through.
2019-06-04 17:33:59 +02:00
Zbigniew Jędrzejewski-Szmek
f140ed02f7
Silence warning about BPF firewall in containers
...
We'd get a warning on every nspawn invocation:
dev-hugepages.mount: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
(This warning is only shown for the first unit using IP firewalling.)
Before the previous commit, I'd generally get a warning about systemd-udev.service, even though that service is
not started in containers. But are still many other units which that declare a
firewall, which is currently unsupported in containers. Let's stop warning
about this.
The warning is still emitted e.g. if legacy cgroups are used. This is something
that can be configured, so it makes more sense to emit the warning.
2019-06-04 17:22:37 +02:00