Skip to content

network: fix fetching link properties #28447

Merged
daandemeyer merged 3 commits intosystemd:mainfrom
mrc0mmand:test-network
Jul 19, 2023
Merged

network: fix fetching link properties #28447
daandemeyer merged 3 commits intosystemd:mainfrom
mrc0mmand:test-network

Conversation

@mrc0mmand
Copy link
Member

@mrc0mmand mrc0mmand commented Jul 18, 2023

This fixes regression introduced in 5a0c810 with which all requests
for link properties ended up with EINVAL as we kept hitting
the signature_is_single() assert in sd_bus_get_property().

+ a couple of tests for other stuff I found while going through coverage reports.

@github-actions github-actions bot added network tests please-review PR is ready for (re-)review by a maintainer labels Jul 18, 2023
@github-actions
Copy link

An -rc1 tag has been created and a release is being prepared, so please note that PRs introducing new features and APIs will be held back until the new version has been released.

@yuwata yuwata added good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed and removed please-review PR is ready for (re-)review by a maintainer labels Jul 18, 2023
@yuwata yuwata added this to the v254 milestone Jul 18, 2023
Copy link
Member

@bluca bluca left a comment

Choose a reason for hiding this comment

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

I guess this might explain:

961s Failed to query link DHCP leases: Invalid argument
961s iface2 Failed to query link bit rates: Invalid argument
961s Failed to query link DHCP leases: Invalid argument

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1041310

@mrc0mmand
Copy link
Member Author

I guess this might explain:

961s Failed to query link DHCP leases: Invalid argument
961s iface2 Failed to query link bit rates: Invalid argument
961s Failed to query link DHCP leases: Invalid argument

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1041310

Yep, that's it.

This fixes regression introduced in 5a0c810 with which all requests
for link properties ended up with EINVAL as we kept hitting
the signature_is_single() assert in sd_bus_get_property().
@mrc0mmand
Copy link
Member Author

(quick force push to drop one debug call I forgot about, whoops)

@daandemeyer daandemeyer merged commit 95f3bd0 into systemd:main Jul 19, 2023
@github-actions github-actions bot removed the good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed label Jul 19, 2023
@mrc0mmand mrc0mmand deleted the test-network branch July 19, 2023 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants