Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes a bug with changed qemu network interface names and also generally should be preferred to using a release tag.
- Loading branch information
6b9771e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This broke a test: https://hydra.nixos.org/job/nixos/release-18.03-small/nixos.tests.containers-imperative.x86_64-linux β I'm not yet sure why exactly.
As this isn't on master yet, it's well visible on 18.03 Hydra only, but I tested this commit and its parent as well. Curious thing: this test is missing from the large jobset, so that's why it got ahead of the small one in 18.03.
6b9771e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In earlier parts of the test it still shows
but in a later iteration that gets changed to
which kills the rest of the test.
6b9771e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fpletz: it seems like some change in behavior of containers.
ip link show
shows no devices beyondlo
, after the container got restarted:I can't assume having much time this weekend, due to a sudden personal situation. BTW, next time we might try to avoid last-weeks update for packages like systemd.
6b9771e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I expect this blocks the 18.03 release, until we move this forward in some way or disprove the regression. Sadly, today is the last of March, but to me it seems better to delay it a bit than to announce it and risk breakages.
6b9771e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me the test (
nixos/tests/containers-imperative.nix
) fails because offline files are missing6b9771e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when I disable the sandbox it test succeeds on master:
but fails on 18.03 with the same error as @vcunat reported.
6b9771e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, well, the missing downloads were resolved in my case by
I somehow forgot to post that.
6b9771e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vcunat Ok. I try to have another look this evening. I had some debug sessions in the past regarding interface naming...
6b9771e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vcunat Sorry about the breakage. We can revert that bump anytime. I only attempted the bump because it fixed the problem from #30333 properly though, see also #32279.
6b9771e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fpletz did it really solve the problem? I didn't spend much time on it, but it wasn't clear for me.
6b9771e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Preparing systemd revert in staging-18.03 b3c938b, but if you find a fix in the meantime (or find that it's OK), we may still keep it. In any case, systemd-238 should get to master soon, so we will need to resolve it somehow sooner or later.
6b9771e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After some manual test runs with
systemd-nspawn
238 on NixOS, it looks like--private-network
and all related network options don't work, including--network-bridge=
,--network-veth
,--network-macvlan=
. In all these cases, the container only sees a loopback interface. Doesn't look a bug in systemd 238 itself - works fine on Arch and they don't seem to have any related patches. I'll keep investigating.6b9771e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more data point: looks fine on NixOS with systemd 238 and linux 4.9.
Guess we'll have to look at kernel changelogs.
6b9771e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Systemd downgraded for 18.03, but the issue continues on #38341.