Skip to content

Conversation

shwstppr
Copy link
Contributor

@shwstppr shwstppr commented Oct 7, 2025

Description

Fixes #11460

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

}

protected InetAddress getBindAddressIfAvailable() {
String bindAddressStr = ServerPropertiesUtil.getProperty("bind.interface");
Copy link
Member

Choose a reason for hiding this comment

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

bind.interface is a bit misleading, maybe bind.address ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

ok, I see
let's keep the name

can you update the description in server.properties ?

Copy link
Member

Choose a reason for hiding this comment

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

I checked the javadoc

https://javadoc.jetty.org/jetty-12/org/eclipse/jetty/server/AbstractNetworkConnector.html#setHost(java.lang.String)

image

so IP/hostname/null/0.0.0.0 are valid values. maybe we need to consider them ?

Copy link

codecov bot commented Oct 7, 2025

Codecov Report

❌ Patch coverage is 33.33333% with 28 lines in your changes missing coverage. Please review.
✅ Project coverage is 17.53%. Comparing base (5a8a1e2) to head (fdb4eba).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
.../apache/cloudstack/utils/ServerPropertiesUtil.java 7.14% 26 Missing ⚠️
...a/com/cloud/cluster/ClusterServiceServletImpl.java 85.71% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #11797      +/-   ##
============================================
+ Coverage     17.50%   17.53%   +0.02%     
- Complexity    15427    15463      +36     
============================================
  Files          5894     5898       +4     
  Lines        526890   527263     +373     
  Branches      64338    64383      +45     
============================================
+ Hits          92240    92455     +215     
- Misses       424272   424413     +141     
- Partials      10378    10395      +17     
Flag Coverage Δ
uitests 3.60% <ø> (ø)
unittests 18.59% <33.33%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

bind.interface configuration only affects server binding, not client HTTP connections in cluster communication
2 participants