Project

General

Profile

Actions

Bug #4195

open

Bootdisk fails to provision if root url is set

Added by Justin Sherrill about 10 years ago. Updated over 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

When using a foreman bootdisk, if the rails relative url root is set to something like '/foreman' it will fail during provisioning as it seems to assume the root url is simply '/'.

A work around is to go into the "Boot disk gPXE - generic host'
and edit:

chain <%= (u = URI.parse(foreman_url("gPXE")); u.query = "#{u.query}&mac="; u.to_s) >${net<= i ->/mac} || goto net<= i+1 %>

to

chain <%= (u = URI.parse('http://hostname.example.com/foreman/unattended/gPXE'); u.query = "#{u.query}&mac="; u.to_s) >${net<= i ->/mac} || goto net<= i+1 %>

assuming that the root is set to '/foreman'.


Related issues 1 (0 open1 closed)

Related to Boot disk - Support #4184: undefined method 'mask' for Safemode::Jail (NilClass)Closed01/25/2014Actions
Actions #1

Updated by Dominic Cleal about 10 years ago

  • Related to Support #4184: undefined method 'mask' for Safemode::Jail (NilClass) added
Actions #2

Updated by Dominic Cleal about 10 years ago

I've fixed the generic ISO case, but the host image rendering is missing the URL context and the rake tasks will too. This is probably not unique to bootdisk, but I wonder if PXELinux templates render properly in Foreman itself, and I suspect we should use the unattended_url setting always.

https://github.com/domcleal/foreman_bootdisk/tree/4195-relative-url

Actions #3

Updated by David Smith over 1 year ago

best essay writing examples [[https://www.nursingpaper.com/examples/rheumatoid-arthritis/]]
as well as writing works according to all requirements and tight deadlines

Actions

Also available in: Atom PDF