Skip to content
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

UC22 network setup crashes #31

Open
valentindavid opened this issue Feb 24, 2022 · 8 comments
Open

UC22 network setup crashes #31

valentindavid opened this issue Feb 24, 2022 · 8 comments

Comments

@valentindavid
Copy link
Contributor

To reproduce it, just freshly install UC22, and in subiquity, unconfigure the network. Apply. Then reconfigure it.

It will crash when subiquity calls "netplan apply", which will crash when calling "networkctl reload". And it is not possible to reconfigure.

The issue is more obvious on real hardware like raspberry pi, because network might not have configured itself before subiquity starts.

subiquity stops systemd-networkd since
canonical/subiquity@4101440

netplan tries to reload systemd-networkd since
canonical/netplan@3ec52c4

These 2 commits are not compatible.

@valentindavid
Copy link
Contributor Author

valentindavid commented Feb 24, 2022

Here is the bug for netplan on LP https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/1962095
However I am not sure it is totally the same situation since it is not called through subiquity.

@xnox
Copy link
Contributor

xnox commented Mar 3, 2022

@mwhudson @slyon so it seems that somehow console-conf should be compatible with the recent netplan. Such that it does the compatible thing on UC20 and their netplan; and also on UC22 and their netplan. What's the way forward to detect what target's netplan is expecting and ensuring that networkd is not stopped when it is expected to still be up?

@sil2100
Copy link
Collaborator

sil2100 commented Mar 3, 2022

I think there is a fix on the netplan side in the works already - there is no PR yet but there is a branch from Lukas: https://github.com/canonical/netplan/tree/slyon/fix-netplan-apply-race

@xnox
Copy link
Contributor

xnox commented Mar 3, 2022

@sil2100 sure, but canonical/netplan@2952644 is compatibility mode and is good making netplan compatible with old consumers.

But it would be nice for UC22 for consoleconf to use the optimal codepath - i.e. just do reload like the new netplan supports, without stopping and starting networkd. If that works?

@valentindavid
Copy link
Contributor Author

Note that restarting the service will not work, because consolconf masks the service. You would have to unmask it. The socket unit as well.

@slyon
Copy link

slyon commented Mar 7, 2022

Note that restarting the service will not work, because consolconf masks the service. You would have to unmask it. The socket unit as well.

From canonical/subiquity@4101440 it looks like it would actually be unmasking systemd-networkd before calling netplan apply. I wonder why it does not (re-)start systemd-networkd at the same time? This way netplan would not need to use a fallback/compatibility mode.

If systemd-networkd would be masked when netplan apply is called, netplan will not be able to start it even in compatibility mode.

@xnox
Copy link
Contributor

xnox commented Mar 7, 2022

Note that restarting the service will not work, because consolconf masks the service. You would have to unmask it. The socket unit as well.

From canonical/subiquity@4101440 it looks like it would actually be unmasking systemd-networkd before calling netplan apply. I wonder why it does not (re-)start systemd-networkd at the same time? This way netplan would not need to use a fallback/compatibility mode.

If systemd-networkd would be masked when netplan apply is called, netplan will not be able to start it even in compatibility mode.

It seems that subiquity change was applied from the pull request canonical/subiquity#681 which seems to indicate that something kept on deleting (and possibly not recreating) vlans when their config did not change. Which is pretty bad in s390x, where ones connectivity to the installer may be hanging off the the vlan in question.

Does networkd handle vlans / virtual devices more gracefully these days?

@valentindavid
Copy link
Contributor Author

From canonical/subiquity@4101440 it looks like it would actually be unmasking systemd-networkd before calling netplan apply.

Right, I misread it.

robert-ancell pushed a commit to robert-ancell/core-base that referenced this issue Aug 15, 2023
…ll-and-clean

Better locale install and clean
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

No branches or pull requests

4 participants