Skip to content

Conversation

@ftarasenko
Copy link

@ftarasenko ftarasenko commented Nov 14, 2025

Fix regression in bond parameter handling when using OpenStack network_data.json with sysconfig renderer.

The issue occurred when translating bond parameters from OpenStack format (bond_xmit_hash_policy) to cloud-init format. The previous implementation only replaced "bond_" prefix with "bond-", leaving remaining underscores unchanged. This created a mixed format like "bond-xmit_hash_policy" which didn't match either lookup variant in the sysconfig renderer:

  • bond_xmit_hash_policy (all underscores)
  • bond-xmit-hash-policy (all hyphens)

As a result, bond options like xmit_hash_policy and lacp_rate were silently dropped from BONDING_OPTS in sysconfig rendering.

The fix replaces ALL underscores with hyphens, ensuring parameters match the expected format in sysconfig renderer.

Before: BONDING_OPTS="mode=802.3ad"
After: BONDING_OPTS="mode=802.3ad xmit_hash_policy=layer3+4 lacp_rate=fast"

Affects versions: 24.4+

Proposed Commit Message

fix: correct handling of bonding options in network_data.json

Fix regression in bond parameter handling when using OpenStack network_data.json with sysconfig renderer.

Additional Context

Test Steps

Merge type

  • Squash merge using "Proposed Commit Message"

@holmanb holmanb added the CLA not signed The submitter of the PR has not (yet) signed the CLA label Nov 20, 2025
@holmanb
Copy link
Member

holmanb commented Nov 20, 2025

Thanks for this contribution @ftarasenko. Can you please sign the CLA?

@ftarasenko
Copy link
Author

@holmanb Oh, sorry — I thought I had already signed the CLA.
I’ll take a look at the failing test. I don’t yet see why it’s failing, since with this commit bonding was working correctly on the RHEL image.

Fix regression in bond parameter handling when using OpenStack
network_data.json with sysconfig renderer.

The issue occurred when translating bond parameters from OpenStack
format (bond_xmit_hash_policy) to cloud-init format. The previous
implementation only replaced "bond_" prefix with "bond-", leaving
remaining underscores unchanged. This created a mixed format like
"bond-xmit_hash_policy" which didn't match either lookup variant
in the sysconfig renderer:
- bond_xmit_hash_policy (all underscores)
- bond-xmit-hash-policy (all hyphens)

As a result, bond options like xmit_hash_policy and lacp_rate were
silently dropped from BONDING_OPTS in sysconfig rendering.

The fix replaces ALL underscores with hyphens, ensuring parameters
match the expected format in sysconfig renderer.

Before: BONDING_OPTS="mode=802.3ad"
After:  BONDING_OPTS="mode=802.3ad xmit_hash_policy=layer3+4 lacp_rate=fast"

Affects versions: 24.4+
@ftarasenko ftarasenko force-pushed the claude/compare-tags-23-24-01Qov2aZ5wGxG5TEirtbWwUJ branch from 4953447 to e96a85c Compare November 29, 2025 09:04
@github-actions
Copy link

Hello! Thank you for this proposed change to cloud-init. This pull request is now marked as stale as it has not seen any activity in 14 days. If no activity occurs within the next 7 days, this pull request will automatically close.

If you are waiting for code review and you are seeing this message, apologies! Please reply, tagging blackboxsw, and he will ensure that someone takes a look soon.

(If the pull request is closed and you would like to continue working on it, please do tag blackboxsw to reopen it.)

@github-actions github-actions bot added the stale-pr Pull request is stale; will be auto-closed soon label Dec 14, 2025
@holmanb
Copy link
Member

holmanb commented Dec 18, 2025

@ftarasenko any progress on this?

I’ll take a look at the failing test. I don’t yet see why it’s failing, since with this commit bonding was working correctly on the RHEL image.

If it worked when testing locally it may just require unit test updates.

@holmanb holmanb added incomplete Action required by submitter and removed CLA not signed The submitter of the PR has not (yet) signed the CLA labels Dec 18, 2025
@github-actions github-actions bot removed the stale-pr Pull request is stale; will be auto-closed soon label Dec 19, 2025
@github-actions
Copy link

github-actions bot commented Jan 2, 2026

Hello! Thank you for this proposed change to cloud-init. This pull request is now marked as stale as it has not seen any activity in 14 days. If no activity occurs within the next 7 days, this pull request will automatically close.

If you are waiting for code review and you are seeing this message, apologies! Please reply, tagging blackboxsw, and he will ensure that someone takes a look soon.

(If the pull request is closed and you would like to continue working on it, please do tag blackboxsw to reopen it.)

@github-actions github-actions bot added the stale-pr Pull request is stale; will be auto-closed soon label Jan 2, 2026
@holmanb holmanb self-assigned this Jan 5, 2026
@github-actions github-actions bot removed the stale-pr Pull request is stale; will be auto-closed soon label Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

incomplete Action required by submitter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants