summaryrefslogtreecommitdiffstats
path: root/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #33570 from AdrianVovk/sysupdate-incompleteAdrian Vovk2024-08-271-13/+51
|\ | | | | sysupdate: Handle incomplete versions
| * sysupdate: Add tests for incomplete versionsAdrian Vovk2024-08-221-13/+51
| | | | | | | | To make sure we don't regress on #33339
* | service: add 'debug' option to RestartMode=Luca Boccassi2024-08-271-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | One of the major pait points of managing fleets of headless nodes is that when something fails at startup, unless debug level was already enabled (which usually isn't, as it's a firehose), one needs to manually enable it and pray the issue can be reproduced, which often is really hard and time consuming, just to get extra info. Usually the extra log messages are enough to triage an issue. This new option makes it so that when a service fails and is restarted due to Restart=, log level for that unit is set to debug, so that all setup code in pid1 and sd-executor logs at debug level, and also a new DEBUG_INVOCATION=1 env var is passed to the service itself, so that it knows it should start with a higher log level. Once the unit succeeds or reaches the rate limit the original level is restored.
* | test: add more test cases for resolvconfYu Watanabe2024-08-261-0/+40
| |
* | test-network: check one more rule we configureYu Watanabe2024-08-231-0/+4
| |
* | Revert "nspawn: Allow specifying custom init program"Daan De Meyer2024-08-221-30/+0
|/ | | | | | | | | | I don't actually need this anymore since we're going with a unit based approach for the containers stuff internally so let's just revert it. Fixes #34085 This reverts commit ce2291730d5f91190e97e7c515ac772ae4970062.
* Merge pull request #34072 from yuwata/networkd-routing-policy-rule-follow-upYu Watanabe2024-08-221-2/+20
|\ | | | | network/routing-policy-rule: follow up for recent change
| * test-network: also test routing policy rules are configured as expected ↵Yu Watanabe2024-08-211-1/+15
| | | | | | | | | | | | after reconfiguration For issue #34068.
| * test-network: find routing policy rule by priorityYu Watanabe2024-08-211-1/+5
| | | | | | | | | | | | | | | | We usually configure a test rule with a unique priority. Hence, finding rule by priority reduces the lines of output, and we can debug easily. Also print short comments on check. That's helpful when the check is called several times.
* | Merge pull request #32363 from CodethinkLabs/sysupdate-dbusAdrian Vovk2024-08-212-16/+60
|\ \ | |/ |/| sysupdate: Implement dbus service
| * sysupdate: Add integration test for updatectl updatesTom Coldrick2024-08-212-16/+60
| |
* | Merge pull request #34049 from yuwata/network-routing-policy-ruleLuca Boccassi2024-08-213-33/+84
|\ \ | |/ |/| network: further rework for routing policy rule
| * test-network: add test for ManageForeignRoutingPolicyRules=Yu Watanabe2024-08-202-1/+40
| |
| * test-network: add tests for Type=table, goto, and nopYu Watanabe2024-08-202-32/+44
| |
| * test-network: do not pass '[detached]' to 'ip rule del'Yu Watanabe2024-08-201-1/+1
| | | | | | | | | | | | | | | | That indicates the interface name in 'iif' or 'oif' cannot be resolved when 'ip rule' command is invoked. That's natural when networkd fail to remove rule but the corresponding interface is already removed. To make not the residual rules interfere subsequent test cases, let's ignore the flag and actually remove unwanted rules.
* | Merge pull request #34018 from yuwata/network-address-labelYu Watanabe2024-08-202-1/+8
|\ \ | | | | | | network: allow to configure IPv6 address label in networkd.conf
| * | network/address-label: allow to configure IPv6 address label in networkd.confYu Watanabe2024-08-202-1/+8
| |/ | | | | | | Closes #23159.
* / tests: Don't override QemuKvm= value if TEST_NO_KVM=0Daan De Meyer2024-08-201-1/+1
|/ | | | | Let's disable KVM if TEST_NO_KVM=1 is set but let's not specify anything if it's not set so the QemuKvm= setting from mkosi.conf is used.
* Merge pull request #34014 from yuwata/network-ip-masqueradeLuca Boccassi2024-08-203-9/+78
|\ | | | | network: make IPMasquerade= imply global IP forwarding settings again
| * test: add test case that 'nspawn --network-veth' enables IP forwardingYu Watanabe2024-08-163-2/+67
| |
| * test: allow to skip matrix_run_one() if $TEST_MATCH_TESTCASE is setYu Watanabe2024-08-161-7/+11
| |
* | test-network: make kernel send NA with router flagYu Watanabe2024-08-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | If the router interface send NA without router flag, client interface will drop SLAAC addresses. To make the router interface send NA with router flag, IPv6 forwarding needs to be enabled. === client: NDISC: Received Neighbor Advertisement from fe80::1034:56ff:fe78:9a99: Router=no, Solicited=yes, Override=no client: NDISC: Invoking callback for 'neighbor' event. client: Removing NDisc route (configured): dst: 2002:da8:1:99::/64, src: n/a, gw: n/a, prefsrc: n/a, table: main(254), priority: 1024, proto: ra, scope: global, type: unicast, flags: n/a client: Removing NDisc route (configured): dst: n/a, src: n/a, gw: fe80::1034:56ff:fe78:9a99, prefsrc: n/a, table: main(254), priority: 1024, proto: ra, scope: global, type: unicast, flags: n/a client: Removing NDisc address (configured): 2002:da8:1:99:1034:56ff:fe78:9a00/64 (valid for 23h 59min 58s, preferred for 3h 59min 58s), flags: manage-temporary-address,no-prefixroute, scope: global ===
* | analyze: introduce --instance= option to control instance name for template ↵Yu Watanabe2024-08-181-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | units Note, `systemd-analyze foo@.service --instance=hoge` is equivalent to `systemd-analyze foo@hoge.service`. But, the option may be useful when e.g. passing multiple template units that have restriction on their instance name: ``` $ ls template_aaa@.service template_bbb@.service template_ccc@.service $ systemd-analyze ./template_* --instance=hoge ``` Without the option, we need to embed an instance name into each unit name, so cannot use globs. Prompted by #33681.
* | network/wireguard: introduce [WireGuardPeer] PublicKeyFile=Yu Watanabe2024-08-163-2/+3
|/ | | | | | Similar to PresharedKeyFile=, but for public key. Closes #34012.
* Add $SYSTEMD_IN_CHROOT to override chroot detectionDaan De Meyer2024-08-162-1/+8
| | | | | | | When running unprivileged, checking /proc/1/root doesn't work because it requires privileges. Instead, let's add an environment variable so the process that chroot's can tell (systemd) subprocesses whether they're running in a chroot or not.
* test: sync journal after all invocations finishedYu Watanabe2024-08-151-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise, several messages for the last invocation have not been stored to journal yet. Hopefully fixes the following race: === [ 603.037765] H systemd-run[10503]: Running as unit: invocation-id-test-26448.service; invocation ID: 1a49edeb05a641aaa2def72411134822 [ 603.099587] H bash[10504]: invocation 10 1a49edeb05a641aaa2def72411134822 [ 603.212069] H systemd[1]: invocation-id-test-26448.service: Deactivated successfully. [ 603.225092] H systemd-run[10503]: Finished with result: success [ 603.225163] H TEST-04-JOURNAL.sh[10506]: + journalctl --list-invocation -u invocation-id-test-26448.service [ 603.225318] H systemd-run[10503]: Main processes terminated with: code=exited, status=0/SUCCESS [ 603.225357] H TEST-04-JOURNAL.sh[10507]: + tee /tmp/tmp.UzSmYamXyg/10 [ 603.225357] H TEST-04-JOURNAL.sh[10507]: IDX INVOCATION ID FIRST ENTRY LAST ENTRY [ 603.225357] H TEST-04-JOURNAL.sh[10507]: -9 d6efabb546014027b6bd7ee3a78386d6 Wed 2024-08-14 22:12:16 UTC Wed 2024-08-14 22:12:17 UTC [ 603.225357] H TEST-04-JOURNAL.sh[10507]: -8 3e402b81c28d4a8fa2c5e8e31dffd9ee Wed 2024-08-14 22:12:17 UTC Wed 2024-08-14 22:12:17 UTC [ 603.225357] H TEST-04-JOURNAL.sh[10507]: -7 5ebd0ba07d4f4f52bc84275f55a3ee2e Wed 2024-08-14 22:12:17 UTC Wed 2024-08-14 22:12:17 UTC [ 603.225357] H TEST-04-JOURNAL.sh[10507]: -6 bc53c49d6ce24bb7acd438c3e61cfb23 Wed 2024-08-14 22:12:17 UTC Wed 2024-08-14 22:12:17 UTC [ 603.225357] H TEST-04-JOURNAL.sh[10507]: -5 24680907919e4839a75378117bb5a816 Wed 2024-08-14 22:12:17 UTC Wed 2024-08-14 22:12:17 UTC [ 603.225357] H TEST-04-JOURNAL.sh[10507]: -4 ec364ed7673c4a1fa22929f95ce7047b Wed 2024-08-14 22:12:17 UTC Wed 2024-08-14 22:12:17 UTC [ 603.225357] H TEST-04-JOURNAL.sh[10507]: -3 2e8a4dea43044d1a9faf922f7a2f3d42 Wed 2024-08-14 22:12:17 UTC Wed 2024-08-14 22:12:17 UTC [ 603.225357] H TEST-04-JOURNAL.sh[10507]: -2 ac610b6e6c9c4a29bf8947890685478b Wed 2024-08-14 22:12:17 UTC Wed 2024-08-14 22:12:17 UTC [ 603.225357] H TEST-04-JOURNAL.sh[10507]: -1 9b7d52c3620948f9831e323910f605f5 Wed 2024-08-14 22:12:17 UTC Wed 2024-08-14 22:12:17 UTC [ 603.225357] H TEST-04-JOURNAL.sh[10507]: 0 1a49edeb05a641aaa2def72411134822 Wed 2024-08-14 22:12:17 UTC Wed 2024-08-14 22:12:17 UTC [ 603.225823] H systemd-run[10503]: Service runtime: 174ms [ 603.225866] H TEST-04-JOURNAL.sh[10508]: + journalctl --list-invocation -u invocation-id-test-26448.service --reverse [ 603.226110] H systemd-run[10503]: CPU time consumed: 12ms [ 603.226142] H TEST-04-JOURNAL.sh[10509]: + tee /tmp/tmp.UzSmYamXyg/10-r [ 603.226378] H systemd-run[10503]: Memory peak: 1.4M (swap: 0B) [ 603.230161] H TEST-04-JOURNAL.sh[10509]: IDX INVOCATION ID FIRST ENTRY LAST ENTRY [ 603.230161] H TEST-04-JOURNAL.sh[10509]: 0 1a49edeb05a641aaa2def72411134822 Wed 2024-08-14 22:12:17 UTC Wed 2024-08-14 22:12:18 UTC [ 603.230161] H TEST-04-JOURNAL.sh[10509]: -1 9b7d52c3620948f9831e323910f605f5 Wed 2024-08-14 22:12:17 UTC Wed 2024-08-14 22:12:17 UTC [ 603.230161] H TEST-04-JOURNAL.sh[10509]: -2 ac610b6e6c9c4a29bf8947890685478b Wed 2024-08-14 22:12:17 UTC Wed 2024-08-14 22:12:17 UTC [ 603.230161] H TEST-04-JOURNAL.sh[10509]: -3 2e8a4dea43044d1a9faf922f7a2f3d42 Wed 2024-08-14 22:12:17 UTC Wed 2024-08-14 22:12:17 UTC [ 603.230161] H TEST-04-JOURNAL.sh[10509]: -4 ec364ed7673c4a1fa22929f95ce7047b Wed 2024-08-14 22:12:17 UTC Wed 2024-08-14 22:12:17 UTC [ 603.230161] H TEST-04-JOURNAL.sh[10509]: -5 24680907919e4839a75378117bb5a816 Wed 2024-08-14 22:12:17 UTC Wed 2024-08-14 22:12:17 UTC [ 603.230161] H TEST-04-JOURNAL.sh[10509]: -6 bc53c49d6ce24bb7acd438c3e61cfb23 Wed 2024-08-14 22:12:17 UTC Wed 2024-08-14 22:12:17 UTC [ 603.230161] H TEST-04-JOURNAL.sh[10509]: -7 5ebd0ba07d4f4f52bc84275f55a3ee2e Wed 2024-08-14 22:12:17 UTC Wed 2024-08-14 22:12:17 UTC [ 603.230161] H TEST-04-JOURNAL.sh[10509]: -8 3e402b81c28d4a8fa2c5e8e31dffd9ee Wed 2024-08-14 22:12:17 UTC Wed 2024-08-14 22:12:17 UTC [ 603.230161] H TEST-04-JOURNAL.sh[10509]: -9 d6efabb546014027b6bd7ee3a78386d6 Wed 2024-08-14 22:12:16 UTC Wed 2024-08-14 22:12:17 UTC ===
* test: add TEST_SKIP to mkosi integration test wrapperLuca Boccassi2024-08-152-0/+6
| | | | Takes a space-separate list of test names, allows to skip one or more tests
* Merge pull request #32067 from ssahani/bareudp1Yu Watanabe2024-08-142-0/+2
|\ | | | | network: netdev - BareUDP Add support for srcportmin
| * test-network: Add test for BareUDP srcportminSusant Sahani2024-08-142-0/+2
| |
* | test: Use usual setup in integration-test-setup scriptDaan De Meyer2024-08-141-2/+3
| |
* | test: Fix section of StateDirectory=Daan De Meyer2024-08-141-1/+1
|/
* Merge pull request #33957 from yuwata/network-generator-vlanLuca Boccassi2024-08-141-2/+2
|\ | | | | network-generator: fixlets for vlan interfaces
| * network-generator: use extract_first_word()Yu Watanabe2024-08-141-2/+2
| | | | | | | | Now, ip= with trailing colon is refused.
* | Merge pull request #33979 from YHNdnzj/edit-util-no-duplicate-stripLuca Boccassi2024-08-131-3/+4
|\ \ | | | | | | edit-util: a few cleanups; support networkctl edit --stdin
| * | networkctl: support edit --stdinMike Yuan2024-08-121-3/+4
| | |
* | | systemd-run: add unit and invocation_id JSON outputLukas Nykryn2024-08-121-0/+2
|/ /
* | Merge pull request #33961 from bluca/busctl_exitLuca Boccassi2024-08-091-0/+2
|\ \ | | | | | | busctl: add support for --timeout and --num-matches for monitor verb
| * | busctl: add --num-matches= for monitor verbLuca Boccassi2024-08-091-1/+1
| | | | | | | | | | | | | | | Useful in scripts when one wants to wait for a specific signal before continuing
| * | busctl: add support for --timeout to monitor verbLuca Boccassi2024-08-081-0/+2
| | | | | | | | | | | | Useful in scripts when you want to exit successfully after a certain time
* | | core/unit: do not use unit path cache in unit_need_daemon_reload()Nick Rosbrook2024-08-091-0/+44
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | When unit_need_daemon_reload() calls unit_find_dropin_paths() to check for new drop-in configs, the manager's unit path cache is used to limit which directories are considered. If a new drop-in directory is created, it may not be in the unit path cache, and hence unit_need_daemon_reload() may return false, despite a new drop-in being present. However, if a unit path cache is not given to unit_file_find_dropin_paths() at all, then it behaves as if the target path was found in the unit path cache. So, to fix this, adapt unit_find_dropin_paths() to take a boolean argument indicating whether or not to pass along the unit path cache. Set this to false in unit_need_daemon_reload(). Fixes #31752
* | test: note in README how to get full list of Ubuntu CI jobsLuca Boccassi2024-08-081-1/+6
|/
* Merge pull request #33951 from DaanDeMeyer/nspawnDaan De Meyer2024-08-071-0/+30
|\ | | | | nspawn: Allow specifying custom init program
| * nspawn: Allow specifying custom init programDaan De Meyer2024-08-061-0/+30
| | | | | | | | | | | | This allows for example forcing to use /sbin/init instead of always using /usr/lib/systemd/systemd if it exists. Or it allows using a different path altogether.
* | sysusers: check if requested group name matches user name in queueNick Rosbrook2024-08-063-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When creating a user, check if the requested group name matches a user name in the queue. If that matched user name is also going to be a group name, then use it for the new user too. In other words, allow the following: u foo - u bar -:foo when both foo and bar are new users. Fixes #33547
* | Merge pull request #33942 from yuwata/udevadm-info-attribute-walk-jsonDaan De Meyer2024-08-061-0/+3
|\ \ | | | | | | udevadm-info: support json output for --attribute-walk
| * | udevadm-info: support json output for --attribute-walkYu Watanabe2024-08-051-0/+3
| | | | | | | | | | | | Closes #33852.
* | | Merge pull request #33933 from yuwata/systemctl-bus-transport-and-runtime-scopeYu Watanabe2024-08-061-0/+0
|\ \ \ | | | | | | | | systemctl: fix bus transport and runtime scope handling
| * | | systemctl: gracefully adjust bus transport and runtime scope when ↵Yu Watanabe2024-08-051-0/+0
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | --boot-loader-entry=help This fixes the following assertion: === SYSTEMD_LOG_LEVEL=debug systemctl --user -H foo --boot-loader-entry=help Assertion 'transport != BUS_TRANSPORT_REMOTE || runtime_scope == RUNTIME_SCOPE_SYSTEM' failed at src/shared/bus-util.c:284, function bus_connect_transport(). Ignoring. Failed to connect to bus: Operation not supported === Fixes a bug introduced by 97af80c5a7029c3f92e982dcf9338b9e67ad9cde. Fixes #33661. Fixes oss-fuzz#70153.
* | | Merge pull request #33941 from yuwata/network-dhcp-pd-route-typeYu Watanabe2024-08-063-0/+12
|\ \ \ | | | | | | | | network/dhcp-pd: introduce UnassignedSubnetPolicy= to customize type of 'catch-all' route
| * | | test-network: add test case for UnassignedSubnetPolicy=Yu Watanabe2024-08-053-0/+12
| |/ /