Skip to content

tests:integration: Adopt for systemd v254 (Closes: #1041310) #381

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 20, 2023

Conversation

Image for: Conversation
Copy link
Collaborator

slyon commented Jul 18, 2023

Description

Image for: Description

systemd-networkd v245 seems to be more picky about moving an interface from "configuring" to "configured" state. It waits for an IPv6 RA to be received. So we need to define "accept-ra: false" in Netplan tests to ignore that, or make our test environment (dnsmasq) to actually provide RAs. I went with the latter.

We still see weird error messages from 'networkctl', which seems new, but they do not fail tests. E.g.: Failed to query link bit rates: Invalid argument
Failed to query link DHCP leases: Invalid argument

I have the impression that those error messages are thrown while the interface is still in "configuring" state, i.e. while waiting for the RA to be received/processed. We're calling 'networkctl status IFACE' in a loop and the error message vanishes when calling the command after a few seconds.

https://bugs.debian.org/1041310

Checklist

Image for: Checklist
  • Runs make check successfully.
  • Retains 100% code coverage (make check-coverage).
  • New/changed keys in YAML format are documented.
  • (Optional) Adds example YAML for new feature.
  • (Optional) Closes an open bug in Launchpad.
systemd-networkd v245 seems to be more picky about moving an interface from "configuring" to "configured" state.
It waits for an IPv6 RA to be received. So we need to define "accept-ra: false" in Netplan tests to ignore that,
or make our test environment (dnsmasq) to actually provide RAs. I went with the latter.

We still see weird error messages from 'networkctl', which seems new, but they do not fail tests. E.g.:
Failed to query link bit rates: Invalid argument
Failed to query link DHCP leases: Invalid argument

I have the impression that those error messages are thrown while the interface is still in "configuring" state,
i.e. while waiting for the RA to be received/processed. We're calling 'networkctl status IFACE' in a loop and
the error message vanishes when calling the command after a few seconds.
slyon requested a review from daniloegea July 18, 2023 15:29
Copy link
Collaborator Author

slyon commented Jul 18, 2023

cc @bluca

slyon changed the title tests:integration: Adopt for systemd v254 Jul 18, 2023
Copy link

bluca commented Jul 18, 2023

We still see weird error messages from 'networkctl', which seems new, but they do not fail tests. E.g.: Failed to query link bit rates: Invalid argument
Failed to query link DHCP leases: Invalid argument

Those are due to a bug that is going to be fixed by: systemd/systemd#28447

Copy link
Contributor

daniloegea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

slyon merged commit 5851195 into canonical:main Jul 20, 2023
sir-xw pushed a commit to openkylin/netplan.io that referenced this pull request Apr 18, 2025
Bug: canonical/netplan#381
Origin: canonical/netplan@e113d46

systemd-networkd v245 seems to be more picky about moving an interface from "configuring" to "configured" state.
It waits for an IPv6 RA to be received. So we need to define "accept-ra: false" in Netplan tests to ignore that,
or make our test environment (dnsmasq) to actually provide RAs. I went with the latter.

We still see weird error messages from 'networkctl', which seems new, but they do not fail tests. E.g.:
Failed to query link bit rates: Invalid argument
Failed to query link DHCP leases: Invalid argument

I have the impression that those error messages are thrown while the interface is still in "configuring" state,
i.e. while waiting for the RA to be received/processed. We're calling 'networkctl status IFACE' in a loop and
the error message vanishes when calling the command after a few seconds.

Gbp-Pq: Name 0020-tests-integration-Adopt-for-systemd-v254.patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants