Project

General

Profile

Actions

Bug #26154

closed

NoMethodError: undefined method `pxedir' for #<Windows:0x0000000007298338>

Added by Or Tal almost 6 years ago. Updated almost 6 years ago.

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

Description

Can not render PXELinux templates for Windows operating system. Same for iPXE.

2019-02-25T16:33:59 [W|app|5ef2d] Unable to render PXELinux template 'WDS - Send to WDS': undefined method `pxedir' for #<Windows:0x0000000007298338>
NoMethodError: undefined method `pxedir' for #<Windows:0x0000000007298338>
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activemodel-5.2.1/lib/active_model/attribute_methods.rb:430:in `method_missing'
/usr/share/foreman/app/services/medium_providers/default.rb:29:in `unique_id'
/usr/share/foreman/app/models/operatingsystems/windows.rb:17:in `pxe_prefix'
/usr/share/foreman/app/models/operatingsystems/windows.rb:21:in `bootfile'
/usr/share/foreman/app/models/operatingsystem.rb:214:in `kernel'
/usr/share/foreman/lib/foreman/renderer/scope/variables/base.rb:14:in `kernel'
/usr/share/foreman/lib/foreman/renderer/scope/variables/base.rb:101:in `pxe_config'
/usr/share/foreman/lib/foreman/renderer/scope/variables/base.rb:31:in `load_variables_base'
/usr/share/foreman/lib/foreman/renderer/scope/variables.rb:20:in `block in load_variables'
/usr/share/foreman/lib/foreman/renderer/scope/variables.rb:18:in `each'
/usr/share/foreman/lib/foreman/renderer/scope/variables.rb:18:in `load_variables'
/usr/share/foreman/lib/foreman/renderer/scope/base.rb:27:in `initialize'
/usr/share/foreman/lib/foreman/renderer/scope/template.rb:9:in `initialize'
/usr/share/foreman/lib/foreman/renderer.rb:38:in `new'
/usr/share/foreman/lib/foreman/renderer.rb:38:in `get_scope'
/usr/share/foreman/app/models/template.rb:172:in `render'
/usr/share/foreman/app/models/host/base.rb:352:in `render_template'
/usr/share/foreman/app/models/concerns/orchestration/tftp.rb:66:in `build_pxe_render'
/usr/share/foreman/app/models/concerns/orchestration/tftp.rb:57:in `generate_pxe_template'
/usr/share/foreman/app/models/concerns/orchestration/tftp.rb:82:in `setTFTP'


Related issues 2 (0 open2 closed)

Related to Foreman - Bug #25733: Media provider unique ID does not work for Debian-based distrosClosedLukas ZapletalActions
Has duplicate Foreman - Bug #26170: Undefined method `pxedir’ for #<Windows:xxxxxxxxxxxxx> when rendering a Windows PXELinux template (wimboot)DuplicateActions
Actions #1

Updated by Or Tal almost 6 years ago

More information:
my hosts are booting via iPXE and I’m trying to have a PXE template which chain them to the windows WDS server:

set net0/next-server 172.26.60.66
chain tftp://172.26.60.66/boot%5Cx64%5cwdsnbp.com

Actions #2

Updated by Tomer Brisker almost 6 years ago

  • Has duplicate Bug #26170: Undefined method `pxedir’ for #<Windows:xxxxxxxxxxxxx> when rendering a Windows PXELinux template (wimboot) added
Actions #3

Updated by Tomer Brisker almost 6 years ago

  • Category set to Unattended installations
  • Target version set to 1.20.3
Actions #4

Updated by Tomer Brisker almost 6 years ago

  • Related to Bug #25733: Media provider unique ID does not work for Debian-based distros added
Actions #5

Updated by The Foreman Bot almost 6 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Tomer Brisker
  • Pull request https://github.com/theforeman/foreman/pull/6616 added
Actions #6

Updated by Shimon Shtein almost 6 years ago

  • Fixed in Releases 1.22.0 added
Actions #7

Updated by Tomer Brisker almost 6 years ago

  • Fixed in Releases 1.20.3, 1.21.1 added
Actions #8

Updated by Tomer Brisker almost 6 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF