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

fix: disable proxy when connecting to pcsd local socket #265

Merged

Conversation

tomjelinek
Copy link
Member

Enhancement:
Do not use proxy when connecting to local pcsd via unix socket on managed nodes.

Reason:
When a proxy is defined, it disrupts communication towards the local pcsd unix socket. This makes the role fail.

Result:
Role works even if a proxy is defined.

Issue Tracker Tickets (Jira or BZ if any):
https://issues.redhat.com/browse/RHEL-81918

@tomjelinek tomjelinek requested a review from richm as a code owner March 4, 2025 13:31
Copy link

codecov bot commented Mar 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.88%. Comparing base (b3efb78) to head (32b8ef7).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #265   +/-   ##
=======================================
  Coverage   82.88%   82.88%           
=======================================
  Files           6        6           
  Lines         479      479           
=======================================
  Hits          397      397           
  Misses         82       82           

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

@spetrosi
Copy link
Collaborator

spetrosi commented Mar 4, 2025

[citest]

@tomjelinek
Copy link
Member Author

I don't get why all tests are suddenly failing with ha_cluster_hacluster_password must be specified. The PR is completely unrelated. Has anything changed in CI systems?

@richm
Copy link
Contributor

richm commented Mar 4, 2025

@spetrosi some problem with support for vault? The hacluster password comes from the vault file

@spetrosi
Copy link
Collaborator

spetrosi commented Mar 4, 2025

[citest]

@spetrosi
Copy link
Collaborator

spetrosi commented Mar 4, 2025

Should be fixed in linux-system-roles/tft-tests#70

@@ -214,6 +214,8 @@ def call_api_raw(
"""
response, info = fetch_url(
module,
# never use a proxy when connecting to a local unix socket (RHEL-81918)
use_proxy=False,
Copy link
Contributor

Choose a reason for hiding this comment

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

ok - since this will only ever be a local unix socket (and not a TCP/IP socket), proxies should never be used.

@tomjelinek tomjelinek merged commit 32b8ef7 into linux-system-roles:main Mar 5, 2025
28 checks passed
@tomjelinek tomjelinek deleted the fix-calling-pcsd-api branch March 5, 2025 08:34
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.

3 participants