Project

General

Profile

Actions

Bug #36639

closed

Template proxy is not used for IPv6 subnets

Added by Ewoud Kohl van Wijngaarden over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Unattended installations
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

When provisioning a host using the Smart Proxy template feature it's only used from the IPv4 subnet.

To reproduce, create a host with only an IPv6 subnet (that has a template proxy set) on the provisioning interface. You would expect the template proxy to be used, but instead you see the actual unattended URL.

It's because this only looks at subnet and not subnet6.

https://github.com/theforeman/foreman/blob/7c4128649ea125f799389eb0dec24a847e3b8416/app/services/foreman/foreman_url_renderer.rb#L66

Actions

Also available in: Atom PDF