-
Notifications
You must be signed in to change notification settings - Fork 296
CA-384228: Xapi fail to start on slave when "Synchronising bonds on slave with master" #6817
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
Open
gangj
wants to merge
2
commits into
xapi-project:master
Choose a base branch
from
gangj:private/gangj/CA-384228
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+179
−0
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| # TCP Path MTU Discovery settings | ||
| # | ||
| # These settings enable automatic TCP MTU detection to prevent issues when | ||
| # path MTU is smaller than configured interface MTU (e.g., jumbo frames | ||
| # configured but not supported by network path). | ||
| # | ||
| # References: | ||
| # - https://blog.cloudflare.com/path-mtu-discovery-in-practice/ | ||
| # - CA-384228: Slave hang during pool join due to MTU mismatch | ||
| # | ||
| # net.ipv4.tcp_mtu_probing: | ||
| # 0 = disabled (default) | ||
| # 1 = enabled when ICMP blackhole detected (recommended) | ||
| # 2 = always enabled | ||
| # | ||
| # net.ipv4.tcp_base_mss: | ||
| # Base MSS to use for MTU probing (default 1024) | ||
| # This is the starting point for MTU probing when enabled | ||
|
|
||
| net.ipv4.tcp_mtu_probing = 1 | ||
| net.ipv4.tcp_base_mss = 1024 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,9 @@ install: | |
| mkdir -p $(DESTDIR)/usr/lib/yum-plugins | ||
| mkdir -p $(DESTDIR)$(OPTDIR)/packages/post-install-scripts | ||
| mkdir -p $(DESTDIR)/etc/systemd/system/[email protected]/ | ||
| mkdir -p $(DESTDIR)/etc/sysctl.d | ||
| $(IPROG) base-path $(DESTDIR)/etc/xapi.d | ||
| $(IDATA) 92-xapi-tcp-mtu.conf $(DESTDIR)/etc/sysctl.d/92-xapi-tcp-mtu.conf | ||
| $(IPROG) sm_diagnostics $(DESTDIR)$(LIBEXECDIR) | ||
| $(IPROG) xn_diagnostics $(DESTDIR)$(LIBEXECDIR) | ||
| $(IPROG) thread_diagnostics $(DESTDIR)$(LIBEXECDIR) | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
configuration files has been a salient point of issues regarding user configuration in xcp-ng. I'm asking the platform teams whether this change follows their recommendations
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.
Thanks @psafont , I understand your point.
Would you please share more about the good practice or recommendations? Thank you.
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'm expecting somebody from xcp-ng's platform team to share them here
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'm not from platform team, but indeed, system configuration files should likely be part of packages like, on xcp-ng side,
xcp-ng-release.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.
What happens on xapi updates when this file has been changed manually? Would the next xapi update overwrite any change? We might want to add a line instructing not to change this file.
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.
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 means, we should write this to
/usr/lib/sysctl.dsuch that a user would put an overwrite into/etc/sysctl.d/?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.
The current implementation installs via xapi's Makefile to /etc/sysctl.d/ for these reasons:
code added in commit 2 assumes TCP PMTUD is enabled.
before admin overrides like 99-). Admins can override with higher-priority files if needed.
This follows the same pattern.
However, I understand the concerns about package ownership and platform-wide impact.
Alternative: We could move to /usr/lib/sysctl.d/92-xapi-tcp-mtu.conf instead, which is:
I'm happy to hear the preference from the platform team or other recommendations. Thanks!
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 read points 1, 2, 3 and 4, and pardon me if I'm imagining things, but it looks like they are justifications made by a LLM.
I'm not going to comment on them one by one but will instead try to think about the big picture.
So the main questions are:
/usr/lib/sysctl.d/would be appropriate, if we can ensure that the files are loaded in the right order. If for some reason a user would had to override some settings, then they could drop a file in/etc.@ydirson Does this look good to to you?
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.
Yes, 100%