Bug 1624072

Summary: Templates subnet association renders to Capsule URL and not template_url
Product: Red Hat Satellite Reporter: Sanket Jagtap <sjagtap>
Component: ProvisioningAssignee: Lukas Zapletal <lzap>
Status: CLOSED ERRATA QA Contact: Sanket Jagtap <sjagtap>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.4CC: egolov, inecas, jhutar, lhellebr, lpramuk, lzap, mlele, sshtein
Target Milestone: 6.4.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: https://projects.theforeman.org/issues/23291
Whiteboard:
Fixed In Version: foreman-1.18.0.19-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-16 19:10:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1332702, 1542023    

Description Sanket Jagtap 2018-08-30 20:24:48 UTC
Description of problem:


Version-Release number of selected component (if applicable):
Build: Satellite 6.4.0 snap19 and BETA

How reproducible:
Always

Steps to Reproduce:
1. Have a External Capsule, configured with provisioning setup
2. Create a host on the Capsule on any CR
3.

Actual results:
Host is created but, unattended url of the capsule is HTTPS , so it is not able to fetch required files

Expected results:
Host should be created and provisioned

Additional info:
Pxelinux template rendered for the given host provisioned on capsule
# This file was deployed via 'Kickstart default PXELinux' template


TIMEOUT 10
DEFAULT Kickstart default PXELinux

LABEL Kickstart default PXELinux
  KERNEL boot/RedHat-7.5-x86_64-vmlinuz
  APPEND initrd=boot/RedHat-7.5-x86_64-initrd.img ks=https://Capsule:9090/unattended/provision?token=12a89e4d-80a3-4437-b952-c96e9141bc3b  network ksdevice=bootif ks.device=bootif BOOTIF=00-00-1a-4a-16-01-b2 kssendmac ks.sendmac inst.ks.sendmac
  IPAPPEND 2

Comment 4 Lukas Zapletal 2018-09-03 13:44:33 UTC
I can confirm, the feature actually does not work correctly, unit tests are incorrect.

You can reproduce by setting Templates Capsule and then rendering PXELinux. It returns Capsule URL instead of Capsule HTTP port (8000) and in logs there is this error message:

[W|tem|] unable to obtain template url set by proxy https://next.nat.lan:9090/unattended. falling back on proxy url

Comment 9 Mihir Lele 2018-09-09 17:22:45 UTC
*** Bug 1626833 has been marked as a duplicate of this bug. ***

Comment 10 Sanket Jagtap 2018-09-28 13:05:02 UTC
Build: Satellite 6.4.0 snap24


The Host was successfully provisioned through external Capsule and Template was rendered successfully with external capsule URL and port

ks=http://ext-cap:8000/unattended/provision

Comment 11 Bryan Kearney 2018-10-16 19:10:35 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:2927