Skip to content

Fix ACS IPv6 tests with ACS HTTP proxy - #18767

Merged
sambible merged 1 commit into
SatelliteQE:masterfrom
vsedmik:acs-ipv6-fix
Jun 18, 2025
Merged

Fix ACS IPv6 tests with ACS HTTP proxy#18767
sambible merged 1 commit into
SatelliteQE:masterfrom
vsedmik:acs-ipv6-fix

Conversation

@vsedmik

@vsedmik vsedmik commented Jun 18, 2025

Copy link
Copy Markdown
Contributor

Problem Statement

Some ACS tests (those running Refresh) fail in IPv6 pipeline since they can't reach out to the IPv4 source, because ACSes have the HTTP proxy set separately for the capsule they are using.

Solution

Set the ACS HTTP proxy on the Capsule used by ACS to the IPv6 proxy and create the ACS with use_http_proxies option.

Related Issues

https://issues.redhat.com/browse/SAT-34801
Requires SatelliteQE/nailgun#1314

PRT test Cases example

trigger: test-robottelo
pytest: tests/foreman -k CRUD_all_types
nailgun: 1314
network_type: ipv6

@vsedmik vsedmik self-assigned this Jun 18, 2025
@vsedmik
vsedmik requested a review from a team June 18, 2025 11:01
@vsedmik vsedmik added CherryPick PR needs CherryPick to previous branches 6.17.z labels Jun 18, 2025
@vsedmik

vsedmik commented Jun 18, 2025

Copy link
Copy Markdown
Contributor Author
trigger: test-robottelo
pytest: tests/foreman -k CRUD_all_types
nailgun: 1314

@Satellite-QE

Copy link
Copy Markdown
Collaborator

PRT Result

Build Number: 11836
Build Status: SUCCESS
PRT Comment: pytest tests/foreman -k CRUD_all_types --external-logging
Test Result : ======== 10 passed, 5732 deselected, 102 warnings in 1097.23s (0:18:17) ========

@Satellite-QE Satellite-QE added the PRT-Passed Indicates that latest PRT run is passed for the PR label Jun 18, 2025
@vsedmik

vsedmik commented Jun 18, 2025

Copy link
Copy Markdown
Contributor Author
trigger: test-robottelo
pytest: tests/foreman -k CRUD_all_types
nailgun: 1314
network_type: ipv6

@LadislavVasina1 LadislavVasina1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ACK, pending PRT

@Satellite-QE

Copy link
Copy Markdown
Collaborator

PRT Result

Build Number: 11839
Build Status: SUCCESS
PRT Comment: pytest tests/foreman -k CRUD_all_types --external-logging
Test Result : ======== 10 passed, 5732 deselected, 148 warnings in 1186.10s (0:19:46) ========


# In case of IPv6, set 'ACS HTTP proxy' of the bound capsule to the IPv6 proxy
# This is necessary for the Refresh to succeed.
if not settings.server.network_type.has_ipv4:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
if not settings.server.network_type.has_ipv4:
if settings.server.network_type.has_ipv6:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

NACK, this does not translate the same.

not settings.server.network_type.has_ipv4 => renders to "anything that does not have IPv4" => IPv6 only at the moment, but can be any future version lacking IPv4.
settings.server.network_type.has_ipv6 => renders to "anything that has IPv6" => IPv6 and dualstack at the moment. We don't need this fix for dualstack since it has the IPv4 connectivity.


# In case of IPv6, set 'ACS HTTP proxy' of the bound capsule to the IPv6 proxy
# This is necessary for the Refresh to succeed.
if not settings.server.network_type.has_ipv4:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
if not settings.server.network_type.has_ipv4:
if settings.server.network_type.has_ipv6:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Answered above.

@sambible
sambible merged commit 3fa840f into SatelliteQE:master Jun 18, 2025
9 checks passed
github-actions Bot pushed a commit that referenced this pull request Jun 18, 2025
Gauravtalreja1 pushed a commit that referenced this pull request Jun 18, 2025
Fix ACS IPv6 tests with ACS HTTP proxy (#18767)

(cherry picked from commit 3fa840f)

Co-authored-by: Vladimir Sedmik <46570670+vsedmik@users.noreply.github.com>
@vsedmik
vsedmik deleted the acs-ipv6-fix branch June 19, 2025 06:33
damoore044 pushed a commit that referenced this pull request Sep 22, 2025
Fix ACS IPv6 tests with ACS HTTP proxy (#18767)

(cherry picked from commit 3fa840f)

Co-authored-by: Vladimir Sedmik <46570670+vsedmik@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.17.z CherryPick PR needs CherryPick to previous branches PRT-Passed Indicates that latest PRT run is passed for the PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants