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

linstor: use relative hostname path #8633

Merged

Conversation

rp-
Copy link
Contributor

@rp- rp- commented Feb 9, 2024

As described in issue #8310 some older distributions don't have hostname in /usr/bin so rely on PATH resolving

Description

This PR Fixes: #8310 on 4.18 branch

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

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?

local linstor cluster and was working before see changes in #6682

As described in issue apache#8310 some older distributions don't have
hostname in /usr/bin so rely on PATH resolving
@rohityadavcloud rohityadavcloud added the Severity:Critical Critical bug label Feb 9, 2024
@rohityadavcloud
Copy link
Member

Thanks for fixing this @rp-
@blueorangutan package

@blueorangutan
Copy link

@rohityadavcloud a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

Copy link

codecov bot commented Feb 9, 2024

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (56f0448) 13.16% compared to head (abb24a0) 13.16%.

Files Patch % Lines
.../hypervisor/kvm/storage/LinstorStorageAdaptor.java 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##               4.18    #8633   +/-   ##
=========================================
  Coverage     13.16%   13.16%           
  Complexity     9199     9199           
=========================================
  Files          2724     2724           
  Lines        258109   258109           
  Branches      40228    40228           
=========================================
  Hits          33970    33970           
  Misses       219837   219837           
  Partials       4302     4302           

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

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8608

Copy link
Member

@weizhouapache weizhouapache left a comment

Choose a reason for hiding this comment

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

code lgtm

@@ -88,7 +88,7 @@ private String getHostname() {
return result.trim();
} catch (IOException | InterruptedException exc) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
} catch (IOException | InterruptedException exc) {
} catch (Exception exc) {

if so, remove IOException from import.

@weizhouapache
Copy link
Member

tested ok, merging

@weizhouapache weizhouapache merged commit 393f3d7 into apache:4.18 Feb 9, 2024
25 of 26 checks passed
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Feb 20, 2024
As described in issue apache#8310 some older distributions don't have
hostname in /usr/bin so rely on PATH resolving
rp- added a commit to LINBIT/cloudstack that referenced this pull request May 16, 2024
As described in issue apache#8310 some older distributions don't have
hostname in /usr/bin so rely on PATH resolving
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants