Project

General

Profile

Actions

Feature #26643

closed

Allow to change mediapath for synced content to ip

Added by Dirk Götz about 5 years ago. Updated over 4 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

In one environment a separate installation network is required but in this network there is no dns server and no routing to the global dns, so we have to use ip addresses. When changing the foreman_url to ip, provisioning can find the templates but then fails when requesting the mediapath. For this use case it would be good if it is possible set the url to ip or foreman_url could affect the mediapath.

Actions #1

Updated by James Jeffers about 5 years ago

  • Target version set to Katello Backlog
  • Triaged changed from No to Yes
Actions #2

Updated by Partha Aji almost 5 years ago

Synced Content url media path is dynamically generated based on the smart proxy it points to. (https://github.com/Katello/katello/blob/master/app/models/katello/glue/pulp/repo.rb#L393-L411.)

Have you tried updating your smart proxy url to use ip address instead of FQDN ?

Actions #3

Updated by Dirk Götz almost 5 years ago

I tried it right now, but I get a SSL verification error because the Smart proxy certificate only contains the FQDN and not the IP address.

Unable to communicate with the proxy: ERF12-2530 [ProxyAPI::ProxyException]: Unable to detect features ([RestClient::SSLCertificateNotVerified]: SSL_connect returned=1 errno=0 state=error: certificate verify failed (error number 1)) for proxy https://192.168.200.2:9090/v2/features
Actions #4

Updated by Partha Aji almost 5 years ago

Can you use http instead of https and confirm that runs. Use port 8000 instead of 9090 in the proxy url

Actions #5

Updated by Jonathon Turel over 4 years ago

  • Triaged changed from Yes to No
Actions #6

Updated by Justin Sherrill over 4 years ago

  • Status changed from New to Rejected
  • Target version changed from Katello Backlog to Katello Recycle Bin
  • Triaged changed from No to Yes

Oh i see the problem. You want to use an ip address for provisioning, but the 'smart proxy url' still needs to use ssl and thus a hostname. This is a feature, to be able to provision to a different URL than the smart proxy's hostname.

I don't see this feature being implemented any time soon, so iam going to close for now. Pull requests welcome though, we would accept this change and happily assist in someone making it.

Actions

Also available in: Atom PDF