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

Debian fix multi-bonds #84

Merged
merged 2 commits into from
Mar 21, 2024
Merged

Conversation

mmlb
Copy link
Member

@mmlb mmlb commented Mar 21, 2024

Bonds 1+ need to be configured with method=manual instead of method=static since we do not have any static addresses to configure them with. I've also gone through and sorted all the loop'd stuff so that the e-n-i contents isn't random depending on metadata json and python internals.

Since these bonds don't have addresses assigned they must be `manual`
not `static`. When we had the method as static we'd get an ifup error
complaining about a missing address, something like:

```
Mar 21 15:47:04 mm-test-n3 systemd[1]: Starting networking.service - Raise network interfaces...
Mar 21 15:47:04 mm-test-n3 ifup[3012]: ifup: missing required variable: address
Mar 21 15:47:04 mm-test-n3 ifup[3012]: ifup: missing required configuration variables for interface bond1/inet
Mar 21 15:47:04 mm-test-n3 ifup[3012]: ifup: failed to bring up bond1
```
This way we get bonds, interfaces, resolvers, routes in a stable order
since they are all now sorted. Not really necessary but a nice QoL for
humans.
Copy link
Contributor

@dustinmiller dustinmiller left a comment

Choose a reason for hiding this comment

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

manual > static

@mmlb mmlb merged commit dae5ea8 into packethost:master Mar 21, 2024
14 checks passed
@mmlb mmlb deleted the deb-fix-bond1+-method branch March 21, 2024 18:13
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.

None yet

2 participants