Skip to content

Use url method to obtain correct protocol and adapt port accordingly #18696

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
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dosas
Copy link
Collaborator

@dosas dosas commented Jun 12, 2025

Problem Statement

Puppet test unable to reach url with specific port

Solution

see commit message

Tests to run

tests/foreman/api/test_provisioning_puppet.py::test_positive_puppet_bootstrap

@dosas dosas requested a review from vsedmik June 12, 2025 11:05
@dosas dosas requested a review from a team as a code owner June 12, 2025 11:05
@dosas dosas added CherryPick PR needs CherryPick to previous branches 6.15.z Introduced in or relating directly to Satellite 6.15 6.16.z Introduced in or relating directly to Satellite 6.16 6.17.z labels Jun 12, 2025
@Satellite-QE
Copy link
Collaborator

Can one of the admins verify this patch?

Comment on lines +67 to +68
f'{session_puppet_enabled_sat.url}:9090/unattended/provision?token={host.token}',
verify=False,
Copy link
Collaborator

Choose a reason for hiding this comment

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

For us, this puppet test is correctly able to reach url with specific port, and I haven't seen any issues with it yet, so I wonder is that a change for your setups? And, why it needs to adapt to the new port?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

At first I thought the same but then I checked where else this port is used and only found one occurrence. All the other places use the pattern from the PR. So this might have been a change that was forgotten?

Would you mind running the PRT for this test?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@dosas dosas requested a review from lhellebr June 17, 2025 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.15.z Introduced in or relating directly to Satellite 6.15 6.16.z Introduced in or relating directly to Satellite 6.16 6.17.z CherryPick PR needs CherryPick to previous branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants