Skip to content

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

Merged
slyon merged 1 commit intocanonical:mainfrom
slyon:migration-systemd-254
Jul 20, 2023
Merged

tests:integration: Adopt for systemd v254 (Closes: #1041310)#381
slyon merged 1 commit intocanonical:mainfrom
slyon:migration-systemd-254

Conversation

@slyon
Copy link
Contributor

@slyon slyon commented Jul 18, 2023

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

  • 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 slyon requested a review from daniloegea July 18, 2023 15:29
@slyon
Copy link
Contributor Author

slyon commented Jul 18, 2023

cc @bluca

@slyon slyon changed the title tests:integration: Adopt for systemd v254 tests:integration: Adopt for systemd v254 (Closes: #1041310) Jul 18, 2023
@bluca
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 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 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants