-
Notifications
You must be signed in to change notification settings - Fork 4
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
redhat: adjust IP bonding to bond0 only #58
Conversation
It's possible that adding IPs to bond1 can create a scenario where networking isn't happy. Lets remove those accordingly
we need to add the tests for this too to confirm the fix |
It gets replaced by a prior formatting pass
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.
bond isn't a variable in the jinja environment, it gets replaced in a formatting pass before the template is rendered. These changes allowed the tests to pass locally for me.
packetnetworking/distros/redhat/templates/bonded/etc_sysconfig_network-scripts_ifcfg-bondX.j2
Outdated
Show resolved
Hide resolved
packetnetworking/distros/redhat/templates/bonded/etc_sysconfig_network-scripts_ifcfg-bondX.j2
Outdated
Show resolved
Hide resolved
…_network-scripts_ifcfg-bondX.j2 Co-authored-by: nuclearbob <6314562+nuclearbob@users.noreply.github.com>
…_network-scripts_ifcfg-bondX.j2 Co-authored-by: nuclearbob <6314562+nuclearbob@users.noreply.github.com>
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.
Ship it!
…t-networking into rh-bond1-fixup-and-more
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.
Other than this, and testing changes. looks good
@@ -1,5 +1,6 @@ | |||
DEVICE={bond} | |||
NAME={bond} | |||
{{% if "{bond}" == "bond0" %}} |
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.
{{% if "{bond}" == "bond0" %}} | |
{{% if bond == "bond0" %}} |
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 is python formatted before it's handled with jinja2, so this is proper
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.
once live tests have been completed, 👍
Testing on actual machines went well except for n3.xlarge.x86, which shows problems on alma_8, rocky_8, and centos_8. alma and rocky install correctly with current osie, so I'm looking into what goes wrong when we use the new one. |
alma_8 is now broken with or without this, so let's go ahead and land it, and I'll keep working on alma. |
Oh, let's get a review from another team? Maybe @nshalman can recommend someone? |
Do we still want a review from another team on this, or is it okay to go in since it's a fix requested by another team and it's pretty small? Either way, I'd like to keep moving on this since it fixes issues in some of the plans we're enabling. |
It's possible that adding IPs to bond1 can create a scenario where
networking isn't happy. Lets remove those accordingly