Skip to content

Conversation

@sathlan
Copy link
Contributor

@sathlan sathlan commented Nov 19, 2025

The workload launch script fails on IPv6-only RHOSO deployments
because it uses an IPv4-only regex to extract nameservers from
/etc/resolv.conf. This causes subnet creation to fail when only IPv6
nameservers are available.

Replace the regex approach with awk-based parsing that:

  • Supports both IPv4 and IPv6 addresses automatically
  • Only parses actual nameserver lines (ignores comments)
  • Collects all nameservers for redundancy
  • Provides public DNS fallback if no nameservers found
  • Maintains backward compatibility

Closes: OSPCIX-1114

The workload launch script fails on IPv6-only RHOSO deployments
because it uses an IPv4-only regex to extract nameservers from
`/etc/resolv.conf`. This causes subnet creation to fail when only IPv6
nameservers are available.

Replace the regex approach with `awk`-based parsing that:
- Supports both IPv4 and IPv6 addresses automatically
- Only parses actual `nameserver` lines (ignores comments)
- Collects all nameservers for redundancy
- Provides public DNS fallback if no nameservers found
- Maintains backward compatibility

Closes: [OSPCIX-1114](https://issues.redhat.com/browse/OSPCIX-1114)
@sathlan sathlan requested a review from a team as a code owner November 19, 2025 12:48
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 19, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sathlan sathlan marked this pull request as draft November 19, 2025 12:49
done
else
echo "Warning: No nameservers found, using public DNS fallback"
DNS_ARGS="--dns-nameserver 8.8.8.8 --dns-nameserver 2001:4860:4860::8888"
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to set an IPv6 dns nameserver for an IPv4 subnet. (I think it might fail validation?)

@github-actions
Copy link

This PR is stale because it has been for over 15 days with no activity.
Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Dec 10, 2025
@github-actions github-actions bot closed this Dec 18, 2025
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.

2 participants